* {
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* Estilos generales */
:root {
    /* Colores clave - Palette Industrial Anti-Fatiga */
    --navy-blue-deep: #1B263B;
    --olive-green-soft: #556B2F;
    --off-white: #F0F2F5;
    --pure-white: #FFFFFF;
    --light-warm-gray: #E2E8F0;
    --blueish-gray-accent: #6A7B8E;

    /* Colores preexistentes */
    --whatsapp-green: #25d366;
    --dark-gray: #2d3748;

    /* Colores específicos de la imagen de referencia (para el hero y el blog) */
    --dark-blue-bg: #29384E;
    /* Fondo oscuro del hero */
    --text-gray: #B0B5BB;
    /* Color de texto del subtítulo del hero */
    --button-green: #4CAF50;
    /* Verde de los botones del hero */
    --button-border: #4CAF50;
    /* Borde del botón secundario del hero */

    /* Colores para las tarjetas de carrusel */
    --card-pink: #FFC0CB;
    --card-blue: #ADD8E6;
    --card-red: #FF6347;
    --card-yellow: #FFD700;
}

body {
    font-family: 'Open Sans', sans-serif;
    /* Fuente para el cuerpo de texto */
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--off-white);
    scroll-behavior: smooth;
    /* Habilita el desplazamiento suave globalmente */
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    /* Fuente con serifa para encabezados */
    color: var(--navy-blue-deep);
}

/* Cabecera */
.header {
    background: var(--navy-blue-deep);
    /* Fondo azul marino profundo */
    color: var(--off-white);
    padding: 1.2rem 0;
    /* Un poco más de padding */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Sombra más pronunciada */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    /* Tamaño de fuente más pequeño para el logo de texto, como en la imagen */
    font-weight: 700;
    /* Negrita para el logo */
    color: var(--off-white);
    /* Color blanco roto para el logo */
    font-family: 'Playfair Display', serif;
    /* Asegura la fuente del encabezado para el logo */
    display: flex;
    /* Permite alinear el logo y el texto horizontalmente */
    align-items: center;
    /* Centra verticalmente el logo y el texto */
    gap: 0.5rem;
    /* Espacio entre el logo y el texto */
}

/* Estilos para la imagen del logo dentro del encabezado */
.logo img {
    height: 30px;
    /* Altura del logo, más pequeña como en la imagen */
    width: 30px;
    /* Ancho del logo */
    border-radius: 50%;
    /* Opcional: para hacer el logo circular */
    object-fit: cover;
    /* Asegura que la imagen no se distorsione */
    vertical-align: middle;
    /* Alinea el centro de la imagen con el centro del texto */
    margin-right: 5px;
    /* Espacio entre el logo y el texto */
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    /* Mayor espaciado entre enlaces */
}

.nav-links a {
    font-family: 'Open Sans', sans-serif;
    /* Asegura Open Sans para los enlaces de navegación */
    color: var(--off-white);
    /* Enlaces en blanco roto */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    /* Transición suave */
    cursor: pointer;
    padding-bottom: 5px;
    /* Espacio para el subrayado */
}

.nav-links a:hover {
    color: var(--olive-green-soft);
    /* Cambio a verde olivo suave al pasar el cursor */
    border-bottom: 2px solid var(--olive-green-soft);
    /* Subrayado discreto */
}

/* Estilo para el ícono de búsqueda en el nav (si se mantiene, aunque no es parte del requerimiento original) */
.nav-links .search-icon {
    font-size: 1.2rem;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--off-white);
    font-size: 1.8rem;
    /* Tamaño de icono ligeramente más grande */
    cursor: pointer;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    /* Asegura que sea un círculo perfecto */
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Sombra más suave */
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    /* Sombra más intensa al pasar el cursor */
}

/* Sección Hero */
.hero {
    background-image: url('images/hero-background.jpg');
    /* Imagen de fondo del hero */
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    padding: 150px 0 100px;
    /* Más padding para espacio en blanco */
    text-align: center;
    min-height: 500px;
    /* Altura mínima para asegurar visibilidad */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    /* Overlay oscuro para la imagen de fondo del hero */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(41, 56, 78, 0.7);
    /* Overlay oscuro basado en la imagen */
    z-index: 1;
}

.hero-content {
    position: relative;
    /* Para que el contenido esté sobre el overlay */
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.8rem;
    /* Título más grande */
    margin-bottom: 1.5rem;
    font-weight: 700;
    /* Negrita */
    color: var(--off-white);
    /* Color blanco roto */
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
    /* Asegura Playfair Display para el H1 */
}

.hero p {
    font-size: 1.3rem;
    /* Subtítulo más grande */
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: var(--light-warm-gray);
    /* Gris cálido claro */
    font-family: 'Open Sans', sans-serif;
}

.cta-button {
    background: var(--olive-green-soft);
    /* Fondo verde olivo suave */
    color: var(--off-white);
    /* Texto blanco roto */
    padding: 18px 40px;
    /* Padding generoso */
    border: none;
    border-radius: 8px;
    /* Bordes más redondeados */
    font-size: 1.2rem;
    font-weight: 600;
    /* Semi-negrita */
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(139, 158, 119, 0.3);
    /* Sombra sutil del color del botón */
}

.cta-button:hover {
    background: var(--blueish-gray-accent);
    /* Cambia al color de acento azulado al pasar el cursor */
    transform: translateY(-3px);
    /* Ligero levantamiento */
    box-shadow: 0 8px 20px rgba(106, 123, 142, 0.4);
    /* Sombra más intensa */
}

.whatsapp-button {
    background: var(--whatsapp-green);
    color: var(--off-white);
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 20px;
    /* Más espacio */
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(18, 140, 126, 0.4);
}

/* Contenido principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
    /* Más padding para espacio en blanco */
    display: none;
}

.section.active {
    display: block;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    /* Asegura Playfair Display para los H2 */
    color: var(--navy-blue-deep);
    /* Azul marino profundo para encabezados de sección */
    font-size: 3rem;
    /* Título de sección más grande */
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

/* Sección de Productos */
.products-intro-text {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.product-section-heading,
.category-description {
    display: none;
}

.products-grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 2rem;
    grid-template-columns: repeat(3, 1fr);
}

/* === NUEVOS ESTILOS PARA LA CUADRÍCULA DE CATEGORÍAS TIPO CARRUSEL === */
.category-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
}

.category-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: 250px;
    /* Ancho fijo para cada tarjeta, puedes ajustar */
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.category-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.category-image-container {
    position: relative;
    height: 250px;
}

.category-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.category-item h3 {
    color: white;
    margin: 0;
    text-align: left;
    font-size: 1.5rem;
}

.view-products-button {
    display: block;
    background-color: var(--olive-green-soft);
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.view-products-button:hover {
    background-color: var(--navy-blue-deep);
}

/* Ocultamos las descripciones de las categorías en esta estructura de carrusel para mantener el diseño limpio */
.product-card,
.product-section-heading,
.category-description {
    display: none;
}

/* Sección de Blog */
.blog {
    background-color: var(--off-white);
    padding: 80px 0;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-post {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    overflow: hidden;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.blog-post-content {
    padding: 2rem;
}

.blog-post h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--navy-blue-deep);
}

.blog-post p.blog-excerpt {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.blog-post .read-more {
    color: var(--olive-green-soft);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-post .read-more:hover {
    color: var(--navy-blue-deep);
    text-decoration: underline;
}


/* Sección de Contacto */
.contact-content {
    background: var(--off-white);
    padding: 3.5rem;
    border-radius: 15px;
    margin-top: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.contact-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy-blue-deep);
    margin-bottom: 1.8rem;
    font-size: 2rem;
}

.contact-content p {
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--dark-gray);
}

.contact-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.contact-list li {
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    color: var(--navy-blue-deep);
}

.contact-list li strong {
    color: var(--navy-blue-deep);
}

.contact-list li a {
    color: var(--olive-green-soft);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-list li a:hover {
    color: var(--navy-blue-deep);
    text-decoration: underline;
}

/* Estilos específicos para el mapa de Google */
.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Sección de Cotización */
.quote-form {
    background: var(--off-white);
    padding: 3.5rem;
    border-radius: 15px;
    margin-top: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.form-group label {
    font-family: 'Open Sans', sans-serif;
    display: block;
    margin-bottom: 0.8rem;
    color: var(--navy-blue-deep);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-warm-gray);
    border-radius: 8px;
    background-color: var(--off-white);
    color: var(--dark-gray);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-warm-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--olive-green-soft);
    box-shadow: 0 0 0 3px rgba(139, 158, 119, 0.2);
}

.product-selection-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--light-warm-gray);
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.product-selection-row .form-group {
    margin-bottom: 0;
}

.custom-product-input {
    width: 100%;
    margin-bottom: 1.5rem;
}

.custom-product-input label {
    font-family: 'Open Sans', sans-serif;
    display: block;
    margin-bottom: 0.8rem;
    color: var(--navy-blue-deep);
    font-weight: 600;
    font-size: 1.1rem;
}

.custom-product-input textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-warm-gray);
    border-radius: 8px;
    background-color: var(--off-white);
    color: var(--dark-gray);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
    min-height: 80px;
}

.custom-product-input textarea:focus {
    outline: none;
    border-color: var(--olive-green-soft);
    box-shadow: 0 0 0 3px rgba(139, 158, 119, 0.2);
}


.add-button-container {
    grid-column: span 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quote-items-list {
    background: var(--off-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
    min-height: 100px;
    border: 1px solid var(--light-warm-gray);
}

.quote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-warm-gray);
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.quote-item:last-child {
    border-bottom: none;
}

.remove-quote-item {
    background: #e53e3e;
    color: var(--off-white);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.remove-quote-item:hover {
    background: #c53030;
}

/* Sección de Carga de Archivos */
.upload-area {
    border: 2px dashed var(--olive-green-soft);
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    background: var(--off-white);
    margin-top: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.upload-area:hover {
    background: #f8fcf9;
    border-color: var(--navy-blue-deep);
}

.upload-area.dragover {
    background: #e6f6ee;
    border-color: var(--olive-green-soft);
}

.upload-icon {
    font-size: 3.5rem;
    color: var(--olive-green-soft);
    margin-bottom: 1.5rem;
}

.file-list {
    margin-top: 2.5rem;
    background: var(--off-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--light-warm-gray);
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-warm-gray);
    font-size: 1.05rem;
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark-gray);
}

.file-icon {
    background: var(--olive-green-soft);
    color: var(--off-white);
    padding: 0.6rem;
    border-radius: 6px;
}

.remove-file {
    background: #e53e3e;
    color: var(--off-white);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.remove-file:hover {
    background: #c53030;
}

/* Pie de página */
.footer {
    background: var(--navy-blue-deep);
    color: var(--light-warm-gray);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    font-family: 'Open Sans', sans-serif;
    text-align: left;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-family: 'Playfair Display', serif;
    color: var(--off-white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-column p,
.footer-column a,
.footer-column li {
    color: var(--light-warm-gray);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--olive-green-soft);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li a {
    display: block;
}

.footer-social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.footer-social-icons a {
    color: var(--off-white);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover {
    color: var(--olive-green-soft);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    color: var(--light-warm-gray);
    font-size: 0.9rem;
}

/* Diseño Responsivo */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--navy-blue-deep);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-button,
    .whatsapp-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .quote-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-buttons {
        flex-direction: column;
    }

    .product-selection-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .custom-product-input {
        margin-bottom: 1rem;
    }

    .add-button-container {
        width: 100%;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .product-section-heading {
        font-size: 2rem;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .map-container {
        padding-bottom: 75%;
    }
}

.confirmation-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.confirmation-modal-content {
    background-color: var(--off-white);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.confirmation-modal-content h3 {
    color: var(--navy-blue-deep);
    margin-bottom: 1rem;
}

.confirmation-modal-content p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.confirmation-modal-content .cta-button {
    padding: 10px 20px;
    font-size: 1rem;
}

.confirmation-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.confirmation-modal-close:hover,
.confirmation-modal-close:focus {
    color: var(--navy-blue-deep);
    text-decoration: none;
    cursor: pointer;
}

.view-all-products-button {
    display: block;
    width: fit-content;
    margin: 4rem auto 0;
    background: var(--navy-blue-deep);
    color: var(--off-white);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.view-all-products-button:hover {
    background: var(--olive-green-soft);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--navy-blue-deep);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =================================
   Estilos para Subpáginas (Versión Mejorada)
   ================================= */

/* Contenedor principal de la sección de introducción */
.subpage-section {
    padding-top: 120px;
    /* Espacio para el header fijo */
    padding-bottom: 4rem;
    /* Espacio antes de la galería de productos */
    background-color: #ffffff;
    /* Un fondo blanco limpio para esta sección */
    text-align: center;
    /* Centra todo el texto */
}

/* Título principal de la subpágina (H1) */
.subpage-section h1 {
    font-size: 3.2rem;
    position: relative;
    /* Necesario para el detalle decorativo */
    display: inline-block;
    /* Asegura que el subrayado no ocupe todo el ancho */
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

/* Detalle decorativo (subrayado) para el H1 */
.subpage-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    /* Ancho del subrayado */
    height: 4px;
    /* Grosor del subrayado */
    background-color: var(--olive-green-soft);
    /* Usa tu color de acento */
    border-radius: 2px;
}

/* Párrafo de introducción */
.subpage-section .products-intro-text {
    max-width: 800px;
    /* Limita el ancho para facilitar la lectura */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    /* Espacio antes de la galería */
    font-size: 1.15rem;
    /* Texto ligeramente más grande */
    color: var(--dark-gray);
    line-height: 1.7;
}

/* =================================
    Estilos para Galerías de Productos en Subpáginas
    ================================= */

/* Contenedor principal de la galería */
.product-gallery {
    display: grid;
    /* Usamos CSS Grid para crear la cuadrícula */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Crea una cuadrícula responsive */
    gap: 2.5rem;
    /* Espacio entre las tarjetas de producto */
    margin-top: 3rem;
    /* Espacio extra debajo de la introducción */
}

/* Estilo de cada tarjeta de producto individual */
.product-card-subpage {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    /* Sombra sutil para darle profundidad */
    text-align: center;
    padding: 1.5rem;
    display: flex;
    /* Usamos Flexbox para alinear el contenido interno */
    flex-direction: column;
    /* Alinea los elementos verticalmente */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Efecto suave al pasar el mouse */
}

.product-card-subpage:hover {
    transform: translateY(-5px);
    /* Eleva la tarjeta ligeramente */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    /* Sombra más pronunciada */
}

/* Estilo para las imágenes dentro de las tarjetas */
.product-card-subpage img {
    max-width: 100%;
    height: 250px;
    /* Altura fija para todas las imágenes */
    object-fit: cover;
    /* Asegura que la imagen cubra el espacio sin deformarse */
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Estilo para el nombre del producto */
.product-card-subpage h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--navy-blue-deep);
    margin-bottom: 0.75rem;
    flex-grow: 1;
    /* Empuja el botón hacia abajo */
}

/* Estilo para la descripción del producto */
.product-card-subpage p {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Ayuda a alinear los botones si los textos tienen diferente longitud */
}

/* Aseguramos que el botón siempre esté al final */

.confirmation-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.confirmation-modal-close:hover,
.confirmation-modal-close:focus {
    color: var(--navy-blue-deep);
    text-decoration: none;
    cursor: pointer;
}

.view-all-products-button {
    display: block;
    width: fit-content;
    margin: 4rem auto 0;
    background: var(--navy-blue-deep);
    color: var(--off-white);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.view-all-products-button:hover {
    background: var(--olive-green-soft);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--navy-blue-deep);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =================================
   Estilos para Subpáginas (Versión Mejorada)
   ================================= */

/* Contenedor principal de la sección de introducción */
.subpage-section {
    padding-top: 120px;
    /* Espacio para el header fijo */
    padding-bottom: 4rem;
    /* Espacio antes de la galería de productos */
    background-color: #ffffff;
    /* Un fondo blanco limpio para esta sección */
    text-align: center;
    /* Centra todo el texto */
}

/* Título principal de la subpágina (H1) */
.subpage-section h1 {
    font-size: 3.2rem;
    position: relative;
    /* Necesario para el detalle decorativo */
    display: inline-block;
    /* Asegura que el subrayado no ocupe todo el ancho */
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

/* Detalle decorativo (subrayado) para el H1 */
.subpage-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    /* Ancho del subrayado */
    height: 4px;
    /* Grosor del subrayado */
    background-color: var(--olive-green-soft);
    /* Usa tu color de acento */
    border-radius: 2px;
}

/* Párrafo de introducción */
.subpage-section .products-intro-text {
    max-width: 800px;
    /* Limita el ancho para facilitar la lectura */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    /* Espacio antes de la galería */
    font-size: 1.15rem;
    /* Texto ligeramente más grande */
    color: var(--dark-gray);
    line-height: 1.7;
}

/* =================================
    Estilos para Galerías de Productos en Subpáginas
    ================================= */

/* Contenedor principal de la galería */
.product-gallery {
    display: grid;
    /* Usamos CSS Grid para crear la cuadrícula */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Crea una cuadrícula responsive */
    gap: 2.5rem;
    /* Espacio entre las tarjetas de producto */
    margin-top: 3rem;
    /* Espacio extra debajo de la introducción */
}

/* Estilo de cada tarjeta de producto individual */
.product-card-subpage {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    /* Sombra sutil para darle profundidad */
    text-align: center;
    padding: 1.5rem;
    display: flex;
    /* Usamos Flexbox para alinear el contenido interno */
    flex-direction: column;
    /* Alinea los elementos verticalmente */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Efecto suave al pasar el mouse */
}

.product-card-subpage:hover {
    transform: translateY(-5px);
    /* Eleva la tarjeta ligeramente */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    /* Sombra más pronunciada */
}

/* Estilo para las imágenes dentro de las tarjetas */
.product-card-subpage img {
    max-width: 100%;
    height: 250px;
    /* Altura fija para todas las imágenes */
    object-fit: cover;
    /* Asegura que la imagen cubra el espacio sin deformarse */
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Estilo para el nombre del producto */
.product-card-subpage h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--navy-blue-deep);
    margin-bottom: 0.75rem;
    flex-grow: 1;
    /* Empuja el botón hacia abajo */
}

/* Estilo para la descripción del producto */
.product-card-subpage p {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Ayuda a alinear los botones si los textos tienen diferente longitud */
}

/* Aseguramos que el botón siempre esté al final */
.product-card-subpage .cta-button {
    margin-top: auto;
    /* ¡Magia! Empuja el botón al fondo de la tarjeta */
}

/* Estilos para Artículos de Blog (Editorial Corporativo) */
.subpage-section {
    background-color: var(--off-white);
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.blog-article-container {
    background-color: var(--pure-white);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 80px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--light-warm-gray);
    padding-bottom: 30px;
}

.blog-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--navy-blue-deep);
    text-align: left;
}

.blog-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--blueish-gray-accent);
    font-weight: 500;
    text-align: left;
}

.blog-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    text-align: left;
}

.blog-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--navy-blue-deep);
    text-align: left;
}

.blog-content p {
    margin-bottom: 25px;
}

.blog-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.blog-content li {
    margin-bottom: 10px;
}

.infographic-full-width {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: block;
}

.blog-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 40px;
}

.blog-cta {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--light-warm-gray);
    text-align: center;
}

.blog-cta .cta-button {
    display: inline-block;
}

@media (max-width: 768px) {
    .blog-article-container {
        padding: 40px 20px;
    }

    .blog-header h1 {
        font-size: 2.2rem;
    }
}

/* --- HOTFIX: RESTAURACIÓN DE ESTILOS CRÍTICOS --- */

/* 1. Header (Barra de Navegación) */
.header {
    background-color: var(--navy-blue-deep) !important;
}

.nav-links a {
    color: var(--off-white) !important;
}

/* 2. Footer (Pie de Página) */
.footer {
    background-color: var(--navy-blue-deep) !important;
    color: var(--light-warm-gray) !important;
}

.footer p,
.footer a {
    color: var(--light-warm-gray) !important;
}

/* 3. Botones de Acción */
.cta-button,
.view-products-button,
.product-card .cta-button {
    background-color: var(--olive-green-soft) !important;
    color: #FFFFFF !important;
}

.cta-button:hover,
/* Sombra más pronunciada */
}

/* Estilo para las imágenes dentro de las tarjetas */
.product-card-subpage img {
    max-width: 100%;
    height: 250px;
    /* Altura fija para todas las imágenes */
    object-fit: cover;
    /* Asegura que la imagen cubra el espacio sin deformarse */
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Estilo para el nombre del producto */
.product-card-subpage h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--navy-blue-deep);
    margin-bottom: 0.75rem;
    flex-grow: 1;
    /* Empuja el botón hacia abajo */
}

/* Estilo para la descripción del producto */
.product-card-subpage p {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Ayuda a alinear los botones si los textos tienen diferente longitud */
}

/* Aseguramos que el botón siempre esté al final */
.product-card-subpage .cta-button {
    margin-top: auto;
    /* ¡Magia! Empuja el botón al fondo de la tarjeta */
}

/* Estilos para Artículos de Blog (Editorial Corporativo) */
.subpage-section {
    background-color: var(--off-white);
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.blog-article-container {
    background-color: var(--pure-white);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 80px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--light-warm-gray);
    padding-bottom: 30px;
}

.blog-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--navy-blue-deep);
    text-align: left;
}

.blog-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--blueish-gray-accent);
    font-weight: 500;
    text-align: left;
}

.blog-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    text-align: left;
}

.blog-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--navy-blue-deep);
    text-align: left;
}

.blog-content p {
    margin-bottom: 25px;
}

.blog-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.blog-content li {
    margin-bottom: 10px;
}

.infographic-full-width {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: block;
}

.blog-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 40px;
}

.blog-cta {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--light-warm-gray);
    text-align: center;
}

.blog-cta .cta-button {
    display: inline-block;
}

@media (max-width: 768px) {
    .blog-article-container {
        padding: 40px 20px;
    }

    .blog-header h1 {
        font-size: 2.2rem;
    }
}

/* --- HOTFIX: RESTAURACIÓN DE ESTILOS CRÍTICOS --- */

/* 1. Header (Barra de Navegación) */
.header {
    background-color: var(--navy-blue-deep) !important;
}

.nav-links a {
    color: var(--off-white) !important;
}

/* 2. Footer (Pie de Página) */
.footer {
    background-color: var(--navy-blue-deep) !important;
    color: var(--light-warm-gray) !important;
}

.footer p,
.footer a {
    color: var(--light-warm-gray) !important;
}

/* 3. Botones de Acción */
.cta-button,
.view-products-button,
.product-card .cta-button {
    background-color: var(--olive-green-soft) !important;
    color: #FFFFFF !important;
}

.cta-button:hover,
.view-products-button:hover,
.product-card .cta-button:hover {
    background-color: var(--navy-blue-deep) !important;
}

/* 4. Cajas de Productos */
.category-item,
.product-card {
    background-color: #ffffff !important;
    border: 1px solid var(--light-warm-gray) !important;
}

/* 5. Contenedor Maestro para Subpáginas (Blog y Productos) */
.subpage-paper-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 4rem;
    border: 1px solid var(--light-warm-gray);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;

    /* Corrección de Texto Forzada */
    text-align: left !important;
    color: var(--navy-blue-deep);
}

.subpage-paper-container p,
.subpage-paper-container li,
.subpage-paper-container h1,
.subpage-paper-container h2,
.subpage-paper-container h3 {
    text-align: left !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .subpage-paper-container {
        padding: 2rem;
    }
}