/* Variables y Sistema de Diseño */
:root {
    /* Colores - Dark Mode (Por defecto) */
    --color-bg-shell: #161616;
    --color-bg-visor: #222222;
    --color-bg-footer: #161616;
    --color-text-main: #FFFFFF;
    --color-text-primary: #F3F1F1;
    --color-text-muted: #888888;
    --color-border: #333333;

    /* Colores - Light Mode */
    --color-bg-shell-light: #F6F6F6;
    --color-bg-visor-light: #FFFFFF;
    --color-bg-footer-light: #F6F6F6;
    --color-text-main-light: #161616;
    --color-text-primary-light: #2B2B2B;
    --color-text-muted-light: #666666;
    --color-border-light: #E0E0E0;

    /* Acento (Se mantiene en ambos modos) */
    --color-accent: #F86119;
    /* Naranja corporativo */
    --color-accent-hover: #E05413;

    /* Tipografía */
    --font-family: 'Space Grotesk', sans-serif;
    --font-secondary: 'Pixelify Sans', sans-serif;

    /* Layout */
    --shell-padding-h: 2rem;
    --shell-padding-v: 2rem;
}

[data-theme="dark"] {
    --bg-shell: var(--color-bg-shell);
    --bg-visor: var(--color-bg-visor);
    --bg-footer: var(--color-bg-footer);
    --text-main: var(--color-text-main);
    --text-primary: var(--color-text-primary);
    --text-muted: var(--color-text-muted);
    --border: var(--color-border);
}

[data-theme="light"] {
    --bg-shell: var(--color-bg-shell-light);
    --bg-visor: var(--color-bg-visor-light);
    --bg-footer: var(--color-bg-footer-light);
    --text-main: var(--color-text-main-light);
    --text-primary: var(--color-text-primary-light);
    --text-muted: var(--color-text-muted-light);
    --border: var(--color-border-light);
}

/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-shell);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow: hidden;
    /* Mantiene la app sin scroll en el body, 100vh fijo */
    height: 100vh;
}

/* Arquitectura: Shell (100vh) */
.shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: var(--shell-padding-v) var(--shell-padding-h) 0 var(--shell-padding-h);
    max-width: 1440px;
    margin: 0 auto;
    gap: 2rem;
    position: relative;
}

/* 1. Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    width: 200px;
    height: auto;
    display: flex;
    align-items: center;
}

.logo-img {
    width: 100%;
    height: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-selector {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-family);
    transition: color 0.3s ease, opacity 0.3s ease;
}

.lang-selector:hover {
    opacity: 0.7;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

/* Alternar imágenes según el tema activo usando CSS puro */
[data-theme="dark"] .logo-light,
[data-theme="dark"] .icon-moon,
[data-theme="dark"] .partner-light {
    display: none;
}

[data-theme="light"] .logo-dark,
[data-theme="light"] .icon-sun,
[data-theme="light"] .partner-dark {
    display: none;
}

/* 2. Arquitectura: Visor (Scrollable content) */
.visor-container {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.visor {
    flex-grow: 1;
    background-color: var(--bg-visor);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease;
    scrollbar-width: none;
}

.visor-container .visor {
    flex-grow: 0;
    height: 100%;
}

.visor::-webkit-scrollbar {
    display: none;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
}

.hero-icon {
    width: auto;
    height: auto;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    /* Equivalente responsivo a text-4xl */
    font-weight: 400;
    /* font-normal en Figma */
    line-height: 2.5rem;
    /* leading-9 en Figma */
    color: var(--text-main);
    /* Color primary de Figma */
    max-width: 420px;
    letter-spacing: normal;
}

.value-section .hero-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
}

.highlight {
    color: var(--color-accent);
    font-weight: 600;
    font-family: var(--font-secondary);
}

.hero-chevron {
    width: 24px;
    height: auto;
    margin-top: 1.5rem;
    animation: bounce 2.5s infinite ease-in-out;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    opacity: 0.7;
}

.hero-chevron:hover {
    opacity: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* 3. Controles (Bajo el visor) */
.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.products-nav {
    display: flex;
    gap: 1rem;
}

.product-btn {
    width: 72px;
    height: 72px;
    border: 1px solid var(--border);
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: border-color 0.3s ease;
    background: transparent;
}

.product-btn .icon-hover {
    display: none;

}

.product-btn:hover {
    border-color: var(--color-accent);
}

.product-btn:hover .icon-default {
    display: none;
}

.product-btn:hover .icon-hover {
    display: block;
}

.btn-primary {
    background: linear-gradient(90deg, #f05a16 0%, #f76f26 52%, #ff7a2f 100%);
    color: #000000;
    text-decoration: none;
    padding: 1rem 3.5rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
}

/* 4. Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 1.25rem;
}

.footer-social a {
    display: flex;
    align-items: center;
}

.footer-social img {
    height: 20px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-social a:hover img {
    opacity: 1;
}

/* Agrupación de la parte izquierda del footer */
.footer-info-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Ajusta este valor para pegar o separar más el texto del logo */
}



.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--color-accent);
}

.footer-partners {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
}

.footer-partners img {
    height: 64px;
    width: auto;
    border-radius: 4px;
    display: block;
    margin: 0;
}

/* Ocultar temporalmente los iconos de Instagram y X (Twitter) */
.footer-social a:has(img[alt="Instagram"]),
.footer-social a:has(img[alt="X"]),
.visor-footer-icons a:has(img[alt="Instagram"]),
.visor-footer-icons a:has(img[alt="X"]) {
    display: none !important;
}


/* Ajustes para iconos blancos en Light Mode (Inversión de color) */
/* Si los SVGs son líneas blancas, al pasarlos a light mode debemos invertirlos a negro */
[data-theme="light"] .product-btn .icon-default,
[data-theme="light"] .product-btn .icon-hover,
[data-theme="light"] .footer-social img,
[data-theme="light"] .hero-icon {
    filter: invert(1);
}

/* ---- ESTILOS ESPECÍFICOS PARA us.html ---- */
.page-us {
    background-color: var(--color-accent) !important;
    padding-bottom: 0;
}

.header-center {
    justify-content: center;
}

.header-actions-us {
    position: absolute;
    right: var(--shell-padding-h);
}

.logo-large {
    height: 48px;
}

.logo-word {
    transition: filter 0.3s ease;
}

/* Logo word: Negro en modo oscuro / Blanco en modo claro */
[data-theme="light"] .logo-word {
    filter: invert(1) brightness(2);
}

.tabs-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tabs-nav {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    justify-content: flex-start;
    flex-shrink: 0;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.tab-content {
    display: none;
    flex-grow: 1;
    width: 100%;
    padding: 0 4rem 4rem 4rem;
    /* Añadido padding abajo para no chocar con el email */
    position: relative;
    box-sizing: border-box;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

#tab-valores.active {
    padding: 0;
}

/* Estilos para la lista de VISIÓN */
.vision-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
}

.vision-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.vision-arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
}

.vision-text {
    font-family: var(--font-family);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    transition: font-size 0.3s ease;
}

.vision-chevron {
    width: 20px;
    height: 20px;
    transform: rotate(-90deg);
    display: block;
}

.highlight-orange {
    color: var(--color-accent);
}

/* Estilos para VALORES (Scroll Vertical) */
.values-scroll-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.values-scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    /* Ocultar scrollbar */
}

.values-scroll-container::-webkit-scrollbar {
    display: none;
}

.value-section {
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 4rem;
    box-sizing: border-box;
}

.scroll-indicator {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 10;
}

.indicator-dot {
    width: 2px;
    height: 15px;
    background-color: var(--text-muted);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background-color: var(--color-accent);
    opacity: 1;
    height: 25px;
}

/* Estilos para HISTORIA (Timeline) */
#tab-historia {
    padding-left: 0.5rem;
    /* Reduce el margen para pegarlo a la izquierda */
}

.history-container {
    display: flex;
    gap: 4rem;
    height: 100%;
    width: 100%;
    /*padding: 3rem;*/
    box-sizing: border-box;
    text-align: left;
}

.history-image-col {
    flex: 1;
    display: flex;
    align-items: stretch;
    /* Para que la imagen rellene la altura */
    justify-content: center;
    height: 100%;
    overflow: hidden;
}

.history-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Rellenar el espacio elegantemente */
    border-radius: 8px;
}

.history-timeline-col {
    flex: 1.5;
    overflow-y: auto;
    padding-left: 4rem;
    /* Un poco más de espacio para la línea */
    position: relative;
    scrollbar-width: none;
    height: 100%;
}

.history-timeline-col::-webkit-scrollbar {
    display: none;
}

.history-event {
    margin-bottom: 4rem;
    position: relative;
}

/* La línea que une los puntos */
.history-event::before {
    content: "";
    position: absolute;
    left: -2.95rem;
    /* Centrado con el punto de 10px */
    top: 0.4rem;
    width: 1px;
    height: calc(100% + 4rem);
    /* Llega hasta el siguiente punto */
    background-color: var(--color-accent);
    opacity: 0.6;
    z-index: 1;
}

.history-event:last-child {
    margin-bottom: 0;
}

.history-event:last-child::before {
    display: none;
    /* El último no tiene línea hacia abajo */
}

.event-dot {
    position: absolute;
    left: -3.3rem;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    z-index: 2;
    /* Por encima de la línea */
}

.event-date {
    display: block;
    color: var(--color-accent);
    font-size: 1rem;
    font-family: var(--font-family);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    color: var(--text-main);
}

.event-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
}



.us-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
}

.us-content .hero-title {
    font-size: 2rem;
    font-family: var(--font-family);
    font-weight: 400;
    margin: 1rem 0;
    color: var(--text-main);
    letter-spacing: -1px;
    line-height: 1.1;
}

.us-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 550px;
    text-align: left;
    align-self: flex-start;
}

/* Chevron centrado en la base del visor en us.html */
.visor .hero-chevron {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.visor-footer {
    position: absolute;
    bottom: calc(2rem - 12px);
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    /* Espacio extra por encima */
}

.visor-footer span,
.visor-footer-email {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.visor-footer-email:hover {
    color: var(--color-accent);
}

.visor-footer-icons {
    display: flex;
    gap: 1rem;
}

.visor-footer-icons img,
.footer-social img {
    height: 18px;
    opacity: 0.9;
    /* Más contraste */
    filter: invert(1);
    /* Blanco por defecto (Modo Oscuro) */
    transition: all 0.3s ease;
}

[data-theme="light"] .visor-footer-icons img,
[data-theme="light"] .footer-social img {
    filter: invert(0);
    /* Negro en modo claro */
    opacity: 0.7;
}

.visor-footer-icons img:hover,
.footer-social img:hover {
    opacity: 1;
}

.page-us .controls-us {
    justify-content: space-between;
}

.page-us .product-btn {
    background-color: var(--bg-visor);
    border-color: var(--border);
}

.decorative-bars {
    display: flex;
    gap: 3px;
    height: 56px;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: transparent;

    /* Ocupar el espacio disponible y centrar con márgenes más amplios */
    flex-grow: 1;
    margin: 0 150px;
}

.decorative-bars .bar {
    width: 1px;
    height: 100%;
    background-color: var(--border);
    opacity: 1;
}

.btn-inverted {
    background: none !important;
    background-color: var(--text-main) !important;
    color: var(--bg-shell) !important;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon-back {
    width: 14px;
    height: 14px;
    background-image: url('../assets/icons/icon_chevron_black.svg');
    /* Negro para modo oscuro (botón blanco) */
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    display: inline-block;
}

[data-theme="light"] .btn-icon-back {
    background-image: url('../assets/icons/icon_chevron_white.svg');
    /* Blanco para modo claro (botón negro) */
}

.btn-inverted:hover {
    opacity: 0.9;
}

.footer-wrapper {
    background-color: var(--bg-footer);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 1rem calc(50vw - 50% + var(--shell-padding-h));
    /* Reducido de 1.5rem para compensar el tamaño de los logos */
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA products.html
   ========================================================================== */
.product-layout {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.product-identity {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid var(--border);
    padding: 2rem;
}

.product-main-icon {
    width: 80px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 4px rgba(255, 106, 26, 0.85)) drop-shadow(0 0 12px rgba(255, 106, 26, 0.45));

}

.product-name {
    font-family: var(--font-family);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.product-details {
    flex: 1.5;
    padding: 0 4rem;
    /* El aire vertical lo darán los pseudo-elementos */
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
}

.product-details::before,
.product-details::after {
    content: "";
    display: block;
    margin: auto;
    /* Esto centra el contenido si sobra espacio */
    min-height: 4rem;
    /* Este es el espacio mínimo para que "respire" */
    width: 100%;
    flex-shrink: 0;
}

.product-details::-webkit-scrollbar {
    display: none;
}

.product-section {
    margin-bottom: 1.5rem;
}

.product-section:last-child {
    margin-bottom: 0;
}

.section-label {
    font-family: var(--font-family);
    font-size: 1rem;
    /* Un poco más pequeño para que no compita tanto */
    font-weight: 700;
    color: var(--text-primary);
    /* Mismo color que el texto descriptivo */
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    /* Mucho más cerca del texto */
    letter-spacing: 0.1em;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.section-divider {
    height: 1px;
    background-color: var(--border);
    opacity: 0.8;
    /* Más visible */
    margin: 1.5rem 0 1rem 0;
    /* Un poco más de espacio arriba del divisor */
    width: 100%;
}

/* Estado activo para botones de producto */
.product-btn.active {
    background: linear-gradient(90deg, #f05a16 0%, #f76f26 52%, #ff7a2f 100%) !important;
    /* Nuevo fondo degradado de 3 puntos */
    border-color: #ff7a2f !important;
    /* Ajustamos el borde al tono del degradado */
    box-shadow: 0 0 4px rgba(255, 106, 26, 0.85), 0 0 12px rgba(255, 106, 26, 0.45);
}

.product-btn.active .icon-default {
    display: none;
}

.product-btn.active .icon-hover {
    display: block;
}

[data-theme="light"] .product-btn.active .icon-hover {
    filter: invert(0);
    /* Mantener blanco en el botón naranja aunque estemos en modo claro */
}

.shell-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
}

/* Oculto por defecto en escritorio */
.mobile-legal-visor {
    display: none;
}

/* ==========================================================================
   CONSIDERACIONES FINALES PARA MÓVIL (MAX-WIDTH: 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* Cabecera: Logo a la izquierda, acciones a la derecha */
    .header {
        justify-content: space-between !important;
        padding: 0 !important;
        /* El shell ya tiene padding de 1rem */
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0.25rem;
    }

    /* Especial para la página Nosotros: Logo centrado */
    .header.header-center {
        justify-content: center !important;
    }

    .logo-large {
        height: 28px !important;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .header.header-center .logo-large {
        justify-content: center !important;
    }

    .header-actions {
        position: static !important;
        display: flex !important;
        gap: 1rem !important;
    }

    .theme-toggle {
        position: static !important;
        padding: 0 !important;
    }

    /* Ocultar elementos según instrucción */
    footer,
    .footer-wrapper,
    .product-selector,
    .decorative-bars {
        display: none !important;
    }

    .shell {
        padding: 1rem;
        height: 100vh;
        box-sizing: border-box;
        gap: 0.5rem !important;
        /* Ajuste solo para móvil */
    }

    /* En Nosotros móvil, el shell es un contenedor flex que no hace scroll */
    .page-us .shell-us {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background-color: var(--color-accent);
        /* Fondo naranja para que el visor destaque */
    }

    /* Ajuste del Visor para scroll interno */
    .page-us .visor {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        position: relative;
    }

    /* Empujar la botonera hacia abajo para compensar el gap pequeño del shell */
    .btn-back,
    .controls-wrapper {
        margin-top: 1rem !important;
    }

    .tabs-container {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        overflow: hidden;
    }

    .tab-content.active {
        display: block !important;
        flex: 1;
        overflow-y: auto;
        padding: 1.5rem !important;
        padding-bottom: 4rem !important;
        /* Espacio para que el texto no lo tape el contacto */
        min-height: 0;
        /* NUEVO: Ocultar scrollbar en Firefox */
        scrollbar-width: none; 
    }

    /* NUEVO: Ocultar scrollbar en Chrome, Safari y Edge */
    .tab-content.active::-webkit-scrollbar {
        display: none;
    }

    .history-container {
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .history-image-col {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        padding: 1rem 1.5rem;
        box-sizing: border-box;
        flex: none !important;
    }

    .history-main-img {
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 12px;
        object-fit: contain;
    }

    .history-timeline-col {
        padding: 1rem 1.5rem 3rem 4rem !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        box-sizing: border-box;
    }

    .event-dot {
        left: -3.3rem !important;
    }

    .history-event::before {
        left: -2.95rem !important;
    }

    .event-title {
        font-size: 1.1rem !important;
    }

    .event-text {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    .us-content .hero-title {
        font-size: 1.8rem !important;
    }

    .us-content p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
    }

    /* Botón HOME centrado */
    .shell-footer {
        padding: 2rem 1.5rem;
        justify-content: center !important;
        background: transparent !important;
    }

    .btn-home {
        width: auto !important;
        min-width: 160px;
        margin: 0 auto;
    }

    /* Vision responsive adjustments */
    .vision-text {
        font-size: 1.3rem !important;
    }

    .vision-list {
        gap: 2rem !important;
        padding: 0 1.5rem !important;
        margin: 2rem auto !important;
        max-width: 500px;
    }

    .vision-item {
        gap: 1rem !important;
    }

    .tabs-nav {
        padding: 1.5rem 1rem !important;
        gap: 1rem !important;
        justify-content: center !important;
    }

    /* Visor Footer Anclado dentro del Visor en Móvil */
    .page-us .visor-footer {
        display: flex !important;
        position: absolute !important;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1.2rem 1.5rem;
        box-sizing: border-box;
        justify-content: space-between !important;
        align-items: center;
        background: var(--bg-visor);
        /* Asegura que tape el texto que hace scroll por detrás */
        z-index: 10;
        pointer-events: auto;
    }

    .page-us .visor-footer-icons {
        order: 1;
    }

    .page-us .visor-footer-email {
        order: -1;
    }

    /* Ocultar botones de producto en la página Nosotros en móvil */
    .page-us .products-nav {
        display: none !important;
    }

    .scroll-indicator {
        right: 0.75rem !important;
    }

    /* Asegurar que la pestaña de valores no haga scroll general y ocupe todo el espacio */
    #tab-valores.active {
        padding: 0 !important;
        overflow: hidden !important; 
    }

    /* Forzar a que cada sección individual ocupe el 100% del alto disponible */
    .value-section {
        height: 100% !important; 
        padding: 3rem 1.5rem !important;
    }

    /* Product Page Mobile */
    .product-layout {
        flex-direction: column;
        overflow-y: auto;
        
        /* OCULTAR BARRA DE SCROLL */
        scrollbar-width: none; /* Firefox */
    }

    /* Ocultar barra en Chrome, Safari y Edge */
    .product-layout::-webkit-scrollbar {
        display: none;
    }

    .product-identity {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 3rem 2rem;
        flex: none;
    }

    .product-main-icon {
        width: 60px;
    }

    .product-name {
        font-size: 1.8rem;
    }

    .product-details {
        padding: 36px 1.5rem 2rem 1.5rem;
        flex: none;
        overflow-y: visible;
    }

    .product-details::before,
    .product-details::after {
        display: none;
    }

    .section-label {
        font-size: 1rem;
    }

    .section-content {
        font-size: 0.95rem;
    }

    /* Controles en móvil (Aplica a TODAS las páginas) */
    .controls-wrapper {
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding-bottom: 2rem !important;
        width: 100% !important;
    }

    .controls-wrapper .products-nav {
        width: 100% !important;
        justify-content: center !important;
    }

    .controls-wrapper .btn-primary {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    .mobile-legal-visor {
        display: block !important;
        position: absolute;
        bottom: 0.75rem;
        left: 0;
        width: 100%;
        font-size: 10px;
        color: var(--text-muted);
        text-align: center;
        opacity: 0.6;
        z-index: 20;
        pointer-events: auto;
    }

    .mobile-legal-visor a {
        color: var(--text-muted);
        text-decoration: underline;
        transition: color 0.2s ease;
    }

    .mobile-legal-visor a:hover {
        color: var(--color-accent);
    }

    /* Ajuste de tamaño para los botones de producto en móvil */
    .product-btn {
        width: 56px !important;
        height: 56px !important;
    }
}

/* Specific adjustments for very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .tabs-nav {
        padding: 1rem 0.5rem !important;
        gap: 0.25rem !important;
        justify-content: center !important;
    }

    .tab-btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.7rem !important;
    }

    .products-nav {
        gap: 0.5rem !important;
    }

    .product-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.8rem !important;
    }

    .vision-text {
        font-size: 1.1rem !important;
    }
}

/* Ajuste específico para iconos de leyenda en pantallas muy pequeñas */
@media (max-width: 475px) {
    .product-main-icon {
        width: 48px !important;
        margin-bottom: 1.5rem !important;
    }
}

/* ==========================================================================
   ESTILOS PARA DOCUMENTOS LEGALES (legal.html)
   ========================================================================== */
.page-legal .visor {
    display: block; /* Quitamos el flex para que haga scroll normal */
    padding: 3rem 4rem;
    scroll-snap-type: none; /* Quitamos el snap para leer cómodamente */
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-primary);
}

.legal-document h1 {
    font-family: var(--font-family);
    color: var(--color-accent);
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-document h2 {
    font-family: var(--font-family);
    color: var(--text-main);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-document p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-document ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-document li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .page-legal .visor {
        padding: 2rem 1.5rem;
    }
    .legal-document h1 {
        font-size: 2rem;
    }
    .legal-document h2 {
        font-size: 1.3rem;
    }
    .legal-document p, .legal-document li {
        font-size: 1rem;
    }
}