/* Variables de color basadas en la paleta original */
:root {
    --primary-color: #1d1f2a;       /* Azul marino principal */
    --primary-light: #4682B4;       /* Azul claro para hovers */
    --background-light: #F0F0F0;    /* Gris claro de fondo */
    --text-dark: #000000;           /* Texto principal */
    --text-medium: #696969;         /* Texto secundario */
    --text-light: #FFFFFF;          /* Texto claro */
    --border-color: #A9A9A9;        /* Gris para bordes */
    --card-background: #FFFFFF;      /* Fondo de tarjetas */
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: auto;
}

header h1 {
    font-size: 1.5rem;
    color: var(--text-light);
}

.navbar {
    display: flex;
    list-style: none;
    gap: 25px;
}

.navbar a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--border-color);
}

.navbar a.active {
    border-bottom: 2px solid var(--text-light);
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(29, 31, 42, 0.9), rgba(29, 31, 42, 0.9)), url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 75px 0 50px;
    text-align: center;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Productos destacados */
#featured-products {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-image-container {
    width: 100%; /* o el ancho que desees para el contenedor */
    max-width: 600px; /* límite máximo si lo necesitas */
    height: 300px; /* altura fija o puedes usar aspect-ratio */
    overflow: hidden; /* opcional: oculta lo que sobresalga */
}

.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* mantiene proporciones sin recortar */
    /* object-fit: cover; /* alternativa: cubre todo el espacio recortando excesos */
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.product-card p {
    color: var(--text-medium);
    margin-bottom: 20px;
}

.product-specs {
    list-style: none;
    margin-bottom: 25px;
}

.product-specs li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-medium);
}

.product-specs i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Contacto rápido */
#quick-contact {
    padding: 60px 0;
}

.contact-card {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-card p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding-top: 60px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    width: 100px;
    margin-bottom: 20px;
}

.footer-section p {
    margin-top: 15px;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--text-light);
}

.contact-info, .business-hours {
    list-style: none;
}

.contact-info li, .business-hours li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0.8;
}

.contact-info i {
    margin-top: 3px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.1);
    padding: 20px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    #hero {
        padding: 60px 0 40px;
    }
    
    #hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
}

#services-preview {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: #191970;
    margin-bottom: 20px;
    background: #f0f5ff;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.service-card h3 {
    color: #191970;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
}

/* Estilos para la sección de acciones rápidas */
.dual-column-section {
    padding: 60px 0;
    background-color: #f5f7fa;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.action-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-icon {
    margin-right: 25px;
}

.action-icon i {
    font-size: 2.5rem;
    color: white;
    background: #191970;
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
}

.tech-card .action-icon i {
    background: #4682B4; /* Azul claro para diferenciar */
}

.action-content h3 {
    color: #191970;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.action-content p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .action-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Estilos para las pestañas del catálogo */
.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.tab-btn {
    padding: 12px 25px;
    margin: 0 10px;
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(29, 31, 42, 0.05);
}

.tab-btn.active {
    color: var(--text-light);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(29, 31, 42, 0.15);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.category-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.category-description {
    text-align: center;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}
/* Estilos adicionales para pestañas con iconos */
.tab-btn i {
    margin-right: 8px;
    font-size: 0.9em;
}

.category-tabs-container {
    background-color: #f9f9f9;
    padding: 20px 0;
    margin-bottom: 40px;
}
/* Estilos específicos para la página de cotización */
.page-hero {
    background: linear-gradient(rgba(29, 31, 42, 0.9), rgba(29, 31, 42, 0.9)), url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.page-hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Formulario de cotización */
#quote-form-section {
    padding: 60px 0;
}

.form-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

#quoteForm {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 31, 42, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    margin-top: 30px;
}

.form-sidebar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.form-sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.form-sidebar h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--text-light);
}

.benefits-list {
    list-style: none;
    margin-bottom: 30px;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.benefits-list i {
    margin-top: 3px;
    color: #4CAF50;
}

.contact-promo {
    margin-top: auto;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.contact-promo p {
    margin-bottom: 15px;
    font-size: 1rem;
}

/* ============================================================
   PÁGINA DE COTIZACIÓN - CONTACTO DIRECTO
   ============================================================ */
#quote-contact-section {
    padding: 60px 0;
}

.quote-contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-method-card {
    background: var(--card-background);
    border-radius: 10px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.contact-method-card .method-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f0f5ff;
    color: var(--primary-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-method-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-method-card p {
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-method-card .method-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    word-break: break-all;
}

.contact-method-card .method-action {
    margin-top: 15px;
}

.contact-form-intro {
    color: var(--text-medium);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .form-container {
        grid-template-columns: 1fr;
    }
    
    .form-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 50px;
    }
    
    .page-hero h2 {
        font-size: 1.8rem;
    }
    
    #quote-form-section {
        padding: 40px 0;
    }
    
    #quoteForm, .form-sidebar {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 90px 0 40px;
        margin-top: 60px;
    }
    
    .page-hero h2 {
        font-size: 1.6rem;
    }
    
    #quoteForm, .form-sidebar {
        padding: 25px 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }
}

/* ============================================================
   CATÁLOGO MEJORADO
   ============================================================ */
.catalog-product {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.catalog-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.product-visual {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f5ff 0%, #e6edf7 100%);
    position: relative;
}

.product-visual i {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.85;
}

/* Fotografías reales dentro de las tarjetas de producto */
.product-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Variante con icono (cuando no hay fotografía disponible) */
.product-image.icon-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f5ff 0%, #e6edf7 100%);
}

.product-image.icon-visual i {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.85;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background-color: #27ae60;
}

.product-details {
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.product-details h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.product-details .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-details .btn {
    margin-top: auto;
    width: 100%;
}

/* ============================================================
   PÁGINA DE SERVICIOS
   ============================================================ */
#services-list {
    padding: 60px 0;
}

.service-item {
    background: var(--card-background);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.service-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.service-item-header .service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f5ff;
    color: var(--primary-color);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-item-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.service-item p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-item ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.service-item ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-medium);
}

.service-item ul li i {
    color: #27ae60;
    margin-top: 3px;
}

/* Proceso de trabajo */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.process-step {
    background: var(--card-background);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
}

.process-step .step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.process-step h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Galería de proyectos (servicios) */
#services-gallery {
    padding: 60px 0;
    background-color: var(--background-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 16px 12px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(transparent, rgba(29, 31, 42, 0.85));
}

/* Responsive servicios */
@media (max-width: 768px) {
    .service-item-header {
        flex-direction: column;
        text-align: center;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}