/* ============================================
   VARIABLES Y RESET GLOBAL
   ============================================ */

:root {
    --primary-blue: #2F55A0;
    --dark-blue: #004499;
    --light-blue: #E6F0FF;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    --gray-dark: #333333;
    --whatsapp-green: #25D366;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: var(--white);
    border-bottom: 2px solid var(--light-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 80px;
    width: 320px;
    max-width: 100%;
    object-fit: cover;
    object-position: 50% 45%;
    display: block;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    outline: none;
}

.nav-link[aria-current="page"] {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    font-weight: 700;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
}
.hero-title-image {
    display: block;
    max-width: 720px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-title-image:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.sede-banner {
    padding: 0 0 16px;
    background-color: var(--white);
    overflow: hidden;
}

.carousel-topbar {
    width: 100%;
    padding: 0;
    background-color: var(--white);
}

.carousel-topbar .section-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.carousel-topbar-image {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-topbar-text {
    text-align: center;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.sede-carousel {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    height: auto;
    background-color: var(--white);
    position: relative;
}

@media (min-width: 1024px) {
    .sede-carousel {
        /* Desktop: keep full width of container but cap vertical growth */
        aspect-ratio: auto;
        height: clamp(360px, 34vw, 560px);
    }
}

.sede-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.sede-carousel-image {
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sede-carousel-image:hover {
    transform: scale(1.01);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.sede-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}

.sede-carousel-btn:hover,
.sede-carousel-btn:focus {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.05);
    outline: none;
}

.sede-carousel-btn.prev {
    left: 12px;
}

.sede-carousel-btn.next {
    right: 12px;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}
.section-subtitle {
    text-align: center;
    color: var(--gray-dark);
    opacity: 0.8;
    font-size: 1.05rem;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
}

.home-intro {
    padding: 2.5rem 0 0;
}

.home-intro .section-title {
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.home-intro .section-subtitle {
    margin-top: 0;
    margin-bottom: 1.5rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ============================================
   SECCIÓN UBICACIÓN
   ============================================ */

.ubicacion {
    background-color: var(--gray-light);
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.ubicacion-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.ubicacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.2);
}

.ubicacion-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ubicacion-card .direccion {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.ubicacion-card iframe {
    width: 100%;
    height: 280px;
    border-radius: var(--border-radius);
}

/* ============================================
   SECCIÓN CONTACTO
   ============================================ */

.contacto {
    background-color: var(--white);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contacto-card {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    border: 2px solid var(--primary-blue);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.contacto-card:hover {
    box-shadow: var(--shadow-medium);
    transform: scale(1.02);
}

.contacto-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contacto-info {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.contacto-subtitle {
    color: var(--gray-dark);
    opacity: 0.9;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.contacto-social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-facebook {
    background-color: #1877f2;
    color: var(--white);
}

.btn-facebook:hover,
.btn-facebook:focus {
    background-color: #0f62d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
    outline: none;
}

.btn-instagram {
    background: linear-gradient(90deg, #f58529 0%, #dd2a7b 45%, #8134af 70%, #515bd4 100%);
    color: var(--white);
}

.btn-instagram:hover,
.btn-instagram:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 42, 123, 0.3);
    outline: none;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    outline: none;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--white);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    outline: none;
}

/* ============================================
   SECCIÓN INSTITUCIONAL
   ============================================ */

.institucional {
    background-color: var(--gray-light);
}

.institucional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.institucional-card {
    background-color: var(--white);
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.institucional-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.institucional-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.institucional-card p {
    color: var(--gray-dark);
    line-height: 1.8;
}

.about {
    background-color: var(--gray-light);
}

.about-card {
    background-color: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.about-grid {
    display: grid;
    /* Desktop: give more width to the text to reduce vertical scroll */
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 0;
    align-items: start;
}

.about-media {
    background-color: var(--gray-light);
}

.about-image {
    width: 100%;
    /* Force a wide "banner" frame so vertical videos don't become too tall */
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    display: block;
}

/* "Nosotros" video: vertical 9:16, centered, no cropping and no weird background blocks. */
.about-media--video {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
}

.about-media--video video.about-image {
    aspect-ratio: 9 / 16;
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.about-content {
    padding: 2.5rem 2.25rem;
}

.about-title {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.25rem;
}

.about-content p {
    color: var(--gray-dark);
    line-height: 1.9;
    font-size: 1.05rem;
    text-align: justify;
    hyphens: auto;
}

.about-content p + p {
    margin-top: 1.25rem;
}

.legal-actions {
    margin-top: 2rem;
    text-align: center;
}

.legal-intro {
    margin-bottom: 1.5rem;
}

.institucional-card .legal-section-title {
    background-color: var(--light-blue);
    border-left: 6px solid var(--primary-blue);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0 1rem;
}

.institucional-card .legal-section-title:first-of-type {
    margin-top: 0;
}

.institucional-card .legal-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0.75rem 0 0;
}

.institucional-card .legal-list li {
    margin: 0.5rem 0;
}

.legal-updated {
    margin-top: 1.75rem;
}

.legal-update-pill {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 2rem auto 0;
    padding: 0.9rem 1.25rem;
    border-radius: 9999px;
    background-color: #eaf2ff;
    border: 1px solid rgba(47, 85, 160, 0.22);
    color: var(--primary-blue);
    font-weight: 700;
    text-align: center;
    box-shadow: var(--shadow-soft);
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.redes-banner {
    padding: 0;
    background-color: var(--white);
    overflow: hidden;
}

.redes-banner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.redes-banner-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.redes-banner-image:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .redes-banner-grid {
        grid-template-columns: 1fr;
    }
}

.objetivos-list {
    list-style: none;
    color: var(--gray-dark);
}

.objetivos-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.objetivos-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   SECCIÓN REDES SOCIALES
   ============================================ */

.contact-form button:hover {
    background-color: #083b7a;
}

/* BOTÓN WHATSAPP */
.whatsapp {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 30px;
    z-index: 2000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    margin-bottom: 20px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .whatsapp {
        bottom: 20px;
        right: 20px;
        width: 62px;
        height: 62px;
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .whatsapp {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 3.5rem 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: start;
}

.footer--with-sedes .footer-container {
    grid-template-columns: 1fr 2fr 1fr;
}

.footer-title {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    width: fit-content;
    box-shadow: var(--shadow-soft);
}

.footer-logo-img {
    height: 58px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-legal-link:hover,
.footer-legal-link:focus {
    color: var(--white);
    text-decoration: underline;
    outline: none;
}

.footer-sedes {
    display: flex;
    flex-direction: column;
}

.footer-maps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.footer-map-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.footer-map-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.footer-map-card p {
    font-size: 0.9rem;
    opacity: 0.92;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.footer-map-card iframe {
    width: 100%;
    height: 160px;
    border: 0;
    border-radius: 12px;
}

.footer-social {
    display: flex;
    flex-direction: column;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.footer-social-link:hover,
.footer-social-link:focus {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    outline: none;
}

.footer-social-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: inline-flex;
}

.footer-social-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    background-color: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
    opacity: 0.95;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1023px) {
    .sede-carousel {
        aspect-ratio: 3 / 1;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        justify-content: center;
    }

    .logo {
        height: 56px;
        width: 224px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .sede-carousel {
        /* Mobile: keep a wide banner ratio so the carousel doesn't look "boxed" */
        aspect-ratio: 3 / 1;
    }

    .sede-carousel-image {
        object-fit: cover;
    }

    .sede-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .sede-carousel-btn.prev {
        left: 8px;
    }

    .sede-carousel-btn.next {
        right: 8px;
    }

    .ubicacion-grid,
    .contacto-grid,
    .institucional-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 1.75rem 1.25rem;
    }

    .about-image {
        /* Keep the same wide frame on mobile without forcing extra height */
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .about-media--video video.about-image {
        /* Mobile: avoid an excessively tall video block on small screens. */
        max-width: 360px;
        margin: 0 auto;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer--with-sedes .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-logo-box {
        margin: 0 auto;
    }

    .footer-legal {
        align-items: center;
    }

    .footer-maps {
        grid-template-columns: 1fr;
    }

    .footer-social-links {
        align-items: center;
    }

    .footer-social-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1rem;
    }

    .logo {
        height: 46px;
        width: 184px;
    }

    .company-name {
        font-size: 1.3rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem;
        text-align: center;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: 300px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 2rem 0;
    }

    .section-container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .sede-carousel {
        /* Keep the same banner ratio on very small screens */
        aspect-ratio: 3 / 1;
    }

    .sede-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (width: 828px) {
    .sede-carousel {
        aspect-ratio: 512 / 163;
    }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */

a:focus,
button:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================
   PRODUCTOS (detalle)
   ========================= */

.product-page {
    padding: 2.5rem 0 4rem;
    background: #f5f8fc;
}

.product-page .section-container {
    max-width: 1200px;
    overflow-x: clip;
}

.product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.product-media,
.product-main,
.product-buy-card,
.product-info-card {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(47, 85, 160, 0.08);
}

.product-media {
    min-width: 0;
    padding: 1.5rem;
}

.product-media img {
    width: 100%;
    max-height: 460px;
    display: block;
    object-fit: contain;
}

.product-main {
    min-width: 0;
    padding: 1.75rem;
}

.product-label {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.product-title {
    margin: 0;
    color: var(--primary-blue);
    font-size: clamp(1.7rem, 2.4vw, 2.3rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.product-rating {
    margin: 0.85rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.product-stars {
    position: relative;
    display: inline-block;
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: 0.08rem;
}

.product-stars-base {
    color: #d7dbe5;
}

.product-stars-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 88%;
    overflow: hidden;
    color: #f4b400;
    white-space: nowrap;
}

.product-rating-text {
    color: #52607a;
    font-size: 0.95rem;
    font-weight: 600;
}

.product-description {
    margin: 0;
    color: #334155;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.product-aside {
    min-width: 0;
}

.product-buy-card {
    padding: 1.2rem;
}

.product-buy-card h2 {
    margin: 0 0 0.9rem;
    color: #1e3a8a;
    font-size: 1.12rem;
}

.product-cta {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 1rem;
    font-weight: 700;
}

.product-cta:hover,
.product-cta:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.25);
}

.product-bullets {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    color: #334155;
}

.product-bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.product-bullets span {
    color: var(--whatsapp-green);
    font-weight: 700;
}

.product-details {
    margin-top: 1.5rem;
}

.product-info-card {
    padding: 1.25rem 1.35rem;
}

.product-info-card h2 {
    margin: 0 0 1rem;
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.product-info-table {
    margin: 0;
}

.product-info-row {
    display: grid;
    grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid #e6edf7;
}

.product-info-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.product-info-row:last-child {
    padding-bottom: 0;
}

.product-info-row dt {
    margin: 0;
    color: #1f2937;
    font-weight: 700;
}

.product-info-row dd {
    margin: 0;
    color: #334155;
    overflow-wrap: anywhere;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .product-aside {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .product-page {
        padding: 1.5rem 0 3rem;
    }

    .product-page .section-container {
        padding: 0 1rem;
        overflow-x: hidden;
    }

    .product-grid {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .product-main,
    .product-media,
    .product-buy-card,
    .product-info-card {
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .product-media {
        order: 3;
        padding: 16px;
    }

    .product-main {
        order: 1;
        padding: 16px;
    }

    .product-aside {
        order: 2;
        width: 100%;
        max-width: 100%;
    }

    .product-buy-card,
    .product-info-card {
        padding: 16px;
    }

    .product-media img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        display: block;
        object-fit: contain;
    }

    .product-title {
        font-size: clamp(22px, 6vw, 32px);
        line-height: 1.15;
        word-break: break-word;
        margin-bottom: 10px;
    }

    .product-description {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .product-info-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

/* ============================================
   PRODUCTS SEARCH
   ============================================ */

.products-search-wrap {
    display: grid;
    gap: 0.9rem;
}

.products-search-input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid #cfd8ea;
    border-radius: 10px;
    font: inherit;
}

.products-search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(47, 85, 160, 0.18);
}

.products-counter {
    margin: 0;
    color: #52607a;
    font-size: 0.95rem;
    font-weight: 600;
}

.products-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.products-result-item {
    border: 1px solid #e6edf7;
    border-radius: 10px;
    overflow: hidden;
}

.products-result-item a {
    display: block;
    padding: 0.72rem 0.85rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.products-result-item a:hover,
.products-result-item a:focus {
    background-color: #f6f9ff;
    outline: none;
}

@media (max-width: 768px) {
    .products-search-input {
        width: 100%;
    }
}

.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .header {
        z-index: 300;
    }

    .header-container {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.6rem 1rem;
    }

    .logo {
        height: 48px;
        width: auto;
        max-width: 220px;
        object-fit: contain;
        object-position: left center;
    }

    .nav-toggle {
        margin-left: auto;
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #d7e2f3;
        border-radius: 10px;
        background-color: var(--white);
        color: var(--primary-blue);
        cursor: pointer;
        padding: 0;
        flex: 0 0 auto;
        transition: var(--transition);
    }

    .nav-toggle:hover {
        background-color: #f6f9ff;
    }

    .nav-toggle:focus-visible {
        outline: 2px solid var(--primary-blue);
        outline-offset: 2px;
    }

    .nav-toggle-bars,
    .nav-toggle-bars::before,
    .nav-toggle-bars::after {
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background-color: currentColor;
        display: block;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle-bars {
        position: relative;
    }

    .nav-toggle-bars::before,
    .nav-toggle-bars::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .nav-toggle-bars::before {
        transform: translateY(-6px);
    }

    .nav-toggle-bars::after {
        transform: translateY(6px);
    }

    .header.is-menu-open .nav-toggle-bars {
        background-color: transparent;
    }

    .header.is-menu-open .nav-toggle-bars::before {
        transform: translateY(0) rotate(45deg);
    }

    .header.is-menu-open .nav-toggle-bars::after {
        transform: translateY(0) rotate(-45deg);
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: var(--white);
        border-top: 1px solid var(--light-blue);
        border-bottom: 1px solid var(--light-blue);
        box-shadow: var(--shadow-medium);
        z-index: 320;
        padding: 0.2rem 0;
    }

    .header.is-menu-open .nav-menu {
        display: flex;
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.85rem 1rem;
        border-bottom: 0;
    }

    .nav-link:hover,
    .nav-link:focus {
        border-bottom-color: transparent;
        background-color: #f6f9ff;
    }

    .nav-link[aria-current="page"] {
        background-color: #eef4ff;
        border-bottom-color: transparent;
    }
}
