/* ============================================= */
/* --- VARIABLES Y ESTILOS GLOBALES --- */
/* ============================================= */
:root {
    --color-background: #0D0D0D;
    --color-surface: #1A1A1A;
    --color-primary-text: #f2f2f2;
    --color-secondary-text: #A8A8A8;
    --color-accent: #9d783f; /* Tono bronce antiguo */
    --color-accent-dark: #8C6D46; /* Sombra del bronce */
    --color-accent-rgb: 176, 141, 87; /* Versión RGB del bronce */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background);
    color: var(--color-primary-text);
    font-family: var(--font-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
}


h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary-text);
    margin-bottom: 1rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 2.1rem; margin-bottom: 2rem; }
h3 { font-size: 1.4rem; }
h4 {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}
h5 {
    font-size: 1.3rem;
    color: var(--color-secondary-text);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

p {
    color: var(--color-secondary-text);
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0D0D0D
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #4e4e4e, #919191, #4e4e4e);
    color: #0D0D0D;
    border: none;
  cursor: pointer;
  text-align: center;
  display: inline-block; /* O la que uses */
  font-family: inherit; /* Hereda la fuente */
  font-size: inherit; /* Hereda el tamaño de fuente */
}



.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--color-accent-rgb), 0.2);
    background: linear-gradient(135deg, #a7a7a7, #575757, #a7a7a7);}

.text-center { text-align: center; }
.accent-text { color: var(--color-accent); }

/* ============================================= */
/* --- HEADER Y NAVEGACIÓN --- */
/* ============================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background 0.4s ease-out, border-bottom 0.4s ease-out, backdrop-filter 0.4s ease-out;
}

/* Oculta el menú de hamburguesa por defecto en pantallas grandes */
.main-header .hamburger-menu {
    display: none;
}

/* ESTILO DEL HEADER AL HACER SCROLL (CON EFECTO BLUR) */
.main-header.scrolled {
    background: rgba(13, 13, 13, 0.445); /* Fondo semitransparente para que el blur funcione */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px); /* Para compatibilidad con Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.main-nav a {
    color: var(--color-primary-text);
    font-weight: 500;
    font-family: var(--font-primary);
    padding-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.main-nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-nav a:not(.btn-primary):hover::after {
    width: 100%;
}

/* MENÚ DESPLEGABLE */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    padding: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    max-height: 70vh; /* Altura máxima: 70% de la altura de la ventana. Ajusta este valor si lo necesitas. */
    overflow-y: auto; /* Muestra el scroll VERTICAL solo si el contenido excede max-height */
    overflow-x: hidden; /* Oculta el scroll HORIZONTAL por si algún texto es muy largo */
}
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}

.dropdown-content a {
    display: block;
    padding: 12px 15px;
    margin: 5px 0;
    border-bottom: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a::after { display: none; }

.dropdown-content a:hover {
    color: var(--color-primary-text);
    background-color: rgba(var(--color-accent-rgb), 0.15);
}

/* ============================================= */
/* --- MENÚ HAMBURGUESA (MÓVIL) --- */
/* ============================================= */
.main-header .hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    color: var(--color-primary-text);
    
    /* ESTA ES LA LÍNEA CLAVE */
    position: relative; 
    
    /* Y ESTO ASEGURA SU ÁREA TÁCTIL */
    width: 44px;
    height: 44px;
}

/* Estilos base para ambos iconos SVG */
.main-header .hamburger-menu svg {
    width: 32px;
    height: 32px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute; /* Posicionamos uno encima del otro para la transición */
}

/* Ocultamos el icono de 'cerrar' por defecto */
.main-header .hamburger-menu .icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* -- ESTADO ACTIVO (MENÚ ABIERTO) -- */

/* Cuando el menú está activo, mostramos 'cerrar' y ocultamos 'abrir' */
.main-header.mobile-menu-active .hamburger-menu .icon-menu {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.main-header.mobile-menu-active .hamburger-menu .icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ============================================= */
/* --- SECCIÓN HERO (VIDEO OSCURECIDO) --- */
/* ============================================= */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.900) 0%, rgba(0, 0, 0, 0.815) 80%); /* Fondo negro semitransparente */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-primary-text);
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* ============================================= */
/* --- SECCIÓN POR QUÉ ELEGIRNOS --- */
/* ============================================= */
#why-us .grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

#why-us img {
    width: 100%;
    border-radius: 10px;

}

#why-us ul {
    list-style: none;
    margin-top: 2rem;
}

#why-us li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
}

#why-us li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

/* ============================================= */
/* --- SECCIÓN PROCESO --- */
/* ============================================= */
#process {
    background: linear-gradient(135deg, #1A1A1A, #111111);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.process-card {
    background: linear-gradient(145deg, #141414, #222222);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 5px 10px 20px rgba(0,0,0,0.6);
}

.process-card .step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* ============================================= */
/* --- SECCIÓN PARTNERS --- */
/* ============================================= */
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 3rem;
}

.partners-logos img {
    height: 45px;
    width: auto;
    max-width: 180px;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.partners-logos img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}
/* ======================================================== */
/* ---        ESTILOS CORREGIDOS PARA TARJETAS DE PLANES       --- */
/* ======================================================== */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 3rem;
    /* Ayuda a que las tarjetas de una misma fila tengan la misma altura */
    align-items: stretch; 
}

.plan-card {
    background: linear-gradient(145deg, #181818, #282828);
    border-radius: 15px;
    padding: 40px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    
    /* --- LA MAGIA DE FLEXBOX --- */
    display: flex;
    flex-direction: column; /* Apila los elementos verticalmente */
}

.plan-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
    border-color: var(--color-accent);
    background: linear-gradient(145deg, #2a221a, var(--color-accent-dark));
}

.plan-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.plan-card .price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary-text);
}

.plan-card .price span {
    font-size: 1.2rem;
    color: var(--color-secondary-text);
}

.plan-card ul {
    list-style: none;
    margin-bottom: 2.5rem;
    padding: 0;
    /* Hacemos que la lista de características crezca para ocupar el espacio sobrante */
    flex-grow: 1; 
}

.plan-card li {
    padding: 12px 0;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}

.plan-card li::before {
    content: '✓';
    color: var(--color-accent);
    margin-right: 10px;
    font-weight: bold;
}

.plan-card li:last-child {
    border-bottom: none;
}

.plan-card .btn-primary {
    width: 100%;
    text-align: center;
    /* Nos aseguramos que el botón no se estire y se quede abajo */
    margin-top: auto;
}

/* ============================================= */
/* --- SECCIÓN CTA (IMAGEN ELIMINADA) --- */
/* ============================================= */
#cta .container {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7), rgba(51, 51, 51, 0.7)); /* Se eliminó la URL de la imagen */
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

/* ============================================= */
/* --- FOOTER --- */
/* ============================================= */
/* --- ESTILOS GENERALES DEL FOOTER --- */
.main-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 60px 5%;
    font-family: Arial, sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-accent);
    font-family: var(--font-primary);
    font-size: 1.1em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover,
.email-link:hover {
    color: #ffffff;
}

/* --- ESTILOS PARA LOGO Y REDES SOCIALES --- */
.footer-logo-link {
    display: block;
    margin-bottom: 20px;
}

.logo-img {
    max-width: 250px; /* Ajusta el tamaño de tu logo */
    height: auto;
}

.social-links {
    display: flex;
    gap: 18px; /* Espacio entre iconos */
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: #cccccc; /* Color de los iconos */
    transition: fill 0.3s ease, transform 0.3s ease;
}

.social-links a:hover svg {
    fill: #ffffff; /* Color de los iconos al pasar el ratón */
    transform: translateY(-3px); /* Efecto de elevación */
}

/* --- COPYRIGHT --- */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9em;
}
/* ============================================= */
/* --- MEDIA QUERIES (RESPONSIVIDAD) --- */
/* ============================================= */

/* --- TABLET Y MÓVIL (992px o menos) --- */
@media (max-width: 992px) {

    /* --- AJUSTES GENERALES --- */
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.0rem; }
    #why-us .grid-2-cols {
        grid-template-columns: 1fr;
    }

    /* --- BOTÓN DE HAMBURGUESA Y ANIMACIÓN DE ÍCONOS --- */
    .main-header .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        position: relative; 
        width: 44px;
        height: 44px;
        color: var(--color-primary-text);
    }

    .main-header .hamburger-menu svg {
        width: 32px;
        height: 32px;
        transition: opacity 0.3s ease, transform 0.3s ease;
        position: absolute;
    }

    .main-header .hamburger-menu .icon-close {
        opacity: 0;
        transform: rotate(-90deg) scale(0.5);
    }

    /* CORRECTO: Animación para los iconos SVG que estás usando */
    .main-header.mobile-menu-active .hamburger-menu .icon-menu {
        opacity: 0;
        transform: rotate(90deg) scale(0.5);
    }

    .main-header.mobile-menu-active .hamburger-menu .icon-close {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    
    /* --- PANEL DE NAVEGACIÓN MÓVIL --- */
    .main-header {
        padding: 15px 5%;
        background: var(--color-background); /* Fondo sólido siempre en móvil */
    }

    .main-nav {
        /* Estado inicial: Oculto fuera de la pantalla */
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: #1a1a1a;
        z-index: 1000;
        padding: 80px 0 20px 0;
        display: block;
        overflow-y: auto;
        
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.4s ease-in-out, visibility 0s 0.4s, opacity 0.4s;
    }

    /* Estado activo: Panel visible */
    .main-header.mobile-menu-active .main-nav {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        transition-delay: 0s;
    }
    
    /* --- ESTILOS DE ENLACES EN MÓVIL --- */
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start; /* CORRECTO: Alineación a la izquierda para los items */
        gap: 0;
        padding: 0;
        width: 100%;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left; /* CORRECTO: Alinea el texto a la izquierda */
    }
    
    .main-nav a {
        display: block;
        width: 100%;
        padding: 15px 25px;
    }
    
    /* --- MANEJO DE DROPDOWNS EN MÓVIL --- */
    .dropdown-content {
        position: relative;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0;
        background-color: #222;
        overflow: hidden;
        
        /* CORRECTO: Oculto con max-height para permitir animación */
        max-height: 0;
        transition: max-height 0.4s ease-out;
    }
    
    /* CLAVE: Muestra el submenú al añadir la clase .open */
    .dropdown.open .dropdown-content {
        max-height: 500px;
    }
    
    /* Estilos para los enlaces del submenú para alineación perfecta */
    .main-nav .dropdown-content a {
        padding: 15px 25px;
        color: var(--color-secondary-text); 
    }
    
    .main-nav .dropdown-content a:hover {
        background-color: var(--color-accent);
        color: var(--color-surface);
    }
}

/* --- REGLA PARA ESCRITORIO (993px o más) --- */
@media (min-width: 993px) {
    /* Oculta el botón de hamburguesa */
    .main-header .hamburger-menu {
        display: none;
    }

    /* CLAVE: Restablece los estilos para la vista de escritorio */
    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding: 0;
        transform: none;
        visibility: visible;
        opacity: 1;
        overflow: visible;
    }

    .main-nav ul {
        flex-direction: row;
        align-items: center;
        gap: 35px;
    }

    .main-nav li {
        width: auto;
        border-bottom: none;
    }

    .main-nav a {
        display: inline-block;
        width: auto;
        padding: 8px 0;
    }
}

/* ============================================= */
/* --- SECCIÓN TESTIMONIOS (NUEVO) --- */
/* ============================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--color-surface);
    padding: 35px;
    border-radius: 10px;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--color-primary-text);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.testimonial-card .quote::before {
    content: '“';
    font-size: 3rem;
    color: var(--color-accent);
    font-weight: 700;
    line-height: 0;
    margin-right: 5px;
}

.testimonial-card .author-info {
    text-align: right;
    margin-top: auto; /* Empuja el autor hacia abajo */
}

.testimonial-card .author-name {
    display: block;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--color-primary-text);
}

.testimonial-card .author-location {
    font-size: 0.9rem;
    color: var(--color-secondary-text);
}
/* ============================================= */
/* --- PROCESO MEJORADO - LÍNEA DE TIEMPO --- */
/* ============================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 0 20px;
}

/* La línea vertical central de la línea de tiempo */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: rgba(var(--color-accent-rgb), 0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    /* Efecto de entrada (requiere la clase 'fade-in' y JS) */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Posiciona los items a la izquierda y derecha */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px; /* Espacio para el ícono */
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px; /* Espacio para el ícono */
}

/* El ícono en el centro de la línea */
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-surface);
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-icon svg {
    width: 24px;
    height: 24px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-item:hover .timeline-icon {
    transform: translateY(-50%) scale(1.1);
    background-color: var(--color-accent);
    color: var(--color-surface);
}

.timeline-content {
    padding: 20px;
    background-color: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: relative;
}

.timeline-content h3 {
    color: var(--color-accent);
}

/* La flecha/puntero que apunta a la línea de tiempo */
.timeline-content::after {
    content: " ";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -15px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--color-surface);
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -15px;
    border-left: none;
    border-right: 15px solid var(--color-surface);
}


/* --- RESPONSIVIDAD PARA LA LÍNEA DE TIEMPO --- */
@media (max-width: 768px) {
    /* La línea se mueve a la izquierda */
    .timeline::after {
        left: 31px;
    }

    /* Todos los items se mueven a un solo lado */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    
    /* El ícono se alinea con la línea */
    .timeline-icon {
        left: 6px;
    }

    /* Las flechas apuntan todas hacia la izquierda */
    .timeline-content::after {
        left: -15px;
        border-right: 15px solid var(--color-surface);
        border-left: none;
    }
}

/* ============================================= */
/* --- ESTILOS PARA LA SECCIÓN DE PROCESO --- */
/* ============================================= */

/* Estilo para el párrafo de introducción */
.section-intro {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--color-secondary-text);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: rgba(var(--color-accent-rgb), 0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-surface);
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-icon svg {
    width: 24px;
    height: 24px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-item:hover .timeline-icon {
    transform: translateY(-50%) scale(1.1);
    background-color: var(--color-accent);
    color: var(--color-surface);
}

.timeline-content {
    padding: 20px;
    background-color: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: relative;
}

.timeline-content h3 {
    color: var(--color-accent);
    font-size: 1.2rem; /* Ajuste para títulos sin íconos */
}

.timeline-content::after {
    content: " ";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -15px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--color-surface);
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -15px;
    border-left: none;
    border-right: 15px solid var(--color-surface);
}

/* ======================================================== */
/* --- ESTILOS CORREGIDOS PARA RECUADRO DE PROCESO --- */
/* ======================================================== */

/* Contenedor para la sección final de "¿Qué lo hace único?" */
.process-highlights {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 30px;
    background-color: rgba(var(--color-accent-rgb), 0.05);
    border-radius: 0 8px 8px 0;
    /* --- LA CLAVE DE LA SOLUCIÓN --- */
    text-align: center; /* Centramos el contenido del recuadro */
}

.process-highlights h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.process-highlights ul {
    list-style: none;
    padding: 0;
    /* Hacemos que la lista se comporte como un bloque en línea */
    display: inline-block;
    /* Devolvemos la alineación del texto a la izquierda para mejor legibilidad */
    text-align: left;
}

.process-highlights li {
    color: var(--color-secondary-text);
    margin-bottom: 0.5rem;
    padding-left: 25px;
    position: relative;
}

.process-highlights li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* --- RESPONSIVIDAD PARA LA LÍNEA DE TIEMPO --- */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-icon {
        left: 6px;
    }
    .timeline-content::after {
        left: -15px;
        border-right: 15px solid var(--color-surface);
        border-left: none;
    }
}
/* ============================================= */
/* --- ESTILOS CORREGIDOS PARA CARRUSEL DE RESEÑAS --- */
/* ============================================= */
#testimonials {
    background: linear-gradient(135deg, #1A1A1A, #111111);
}

.testimonial-container {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    overflow: hidden; /* Oculta las slides que no están en el viewport */
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%; /* Cada slide ocupa el 100% del contenedor */
    width: 100%;
    padding: 0 15px; /* Espacio para que no se pegue a los bordes */
}

.testimonial-card {
    background: var(--color-surface);
    padding: 40px;
    border-radius: 10px;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Altura mínima para alinear tarjetas */
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--color-primary-text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- CORRECCIÓN DE LA COMILLA --- */
.testimonial-card .quote::before {
    content: '“';
    display: block;
    font-size: 3.5rem;
    color: var(--color-accent);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem; /* Crea espacio debajo de la comilla */
}


.testimonial-card .author-info {
    text-align: right;
    margin-top: auto;
}

.testimonial-card .author-name {
    display: block;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--color-primary-text);
}

.testimonial-card .author-location {
    font-size: 0.9rem;
    color: var(--color-secondary-text);
}

/* --- CORRECCIÓN DE LAS FLECHAS --- */
/* Contenedor principal de los botones */
.carousel-navigation {
    position: absolute;
    top: 50%;
    /* Hacemos el contenedor de navegación más ancho que el carrusel */
    width: calc(100% + 50px); 
    /* Lo centramos y ajustamos para que sobresalga por los lados */
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between; /* Esto empuja las flechas a los extremos */
    pointer-events: none; /* Permite hacer clic "a través" de la capa */
    z-index: 10; /* Se asegura que esté por encima de otros elementos */
}

/* Estilo individual de cada botón */
.carousel-button {
    pointer-events: all; /* Reactiva los eventos de clic en los botones */
    background-color: rgba(var(--color-accent-rgb), 0.3);
    border: none;
    color: var(--color-primary-text);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Ya no necesitan márgenes individuales */
}

.carousel-button.prev-slide {
    margin-left: -22px; /* Mueve la flecha fuera del área de corte */
}

.carousel-button.next-slide {
    margin-right: -22px; /* Mueve la flecha fuera del área de corte */
}


.carousel-button:hover {
    background-color: var(--color-accent);
    transform: scale(1.1);
}

.carousel-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .carousel-navigation {
        /* En móvil, el contenedor vuelve a su tamaño normal */
        width: 100%;
        padding: 0 10px; /* Un poco de espacio interior */
    }

    .carousel-button {
       width: 40px;
       height: 40px;
       font-size: 1.2rem;
    }
}

/* ============================================= */
/* --- EFECTO FLOTANTE PARA LÍNEA DE TIEMPO --- */
/* ============================================= */

/* 1. Definimos la animación */
@keyframes floatAnimation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* Sube 10px */
  }
  100% {
    transform: translateY(0);
  }
}

/* ================================================================ */
/* --- ALTERNATIVA: EFECTO FLOTANTE EN HOVER (SOLO TARJETA) --- */
/* ================================================================ */

/* Añadimos una transición suave a la tarjeta de contenido */
.timeline-content {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

/* Cuando el usuario pasa el mouse sobre el item, la tarjeta sube */
.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6); /* Opcional: añade una sombra más pronunciada */
}
/* ======================================================== */
/* ---        ESTILOS CORREGIDOS PARA SERVICIOS       --- */
/* ======================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    /* Añadimos esto para que las tarjetas de una misma fila tengan la misma altura */
    align-items: stretch;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    /* --- LA MAGIA DE FLEXBOX --- */
    display: flex;
    flex-direction: column; /* Apila los elementos verticalmente */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--color-accent);
}

.service-card h3 {
    font-family: var(--font-primary);
    color: var(--color-primary-text);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    /* Restauramos el borde completo */
    border-bottom: 2px solid var(--color-accent); 
    /* Quitamos los estilos de la línea centrada */
    position: static;
    text-align: left;
    min-height: 80px; 
    
    /* Centramos el texto verticalm nte dentro de este nuevo espacio */
    display: flex;
    align-items: center; 
}

/* Eliminamos la regla ::after si la tenías */
.service-card h3::after {
    content: none;
}

.service-card ul {
    list-style: none;
    padding: 0;
    /* Hacemos que la lista crezca para ocupar el espacio sobrante */
    flex-grow: 1; 
}

.service-card li {
    color: var(--color-secondary-text);
    margin-bottom: 0.75rem;
    padding-left: 22px;
    position: relative;
    font-size: 0.95rem;
}

.service-card li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

/* Ajustes para la tarjeta destacada */
.featured-card h3 {
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.price-tag {
    /* Nos aseguramos que no crezca y se quede abajo */
    flex-shrink: 0;
    margin-top: 1.5rem; /* Damos un espacio consistente arriba */
    padding-top: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================= */
/* --- ESTILO PARA EL MOÑO DEL PLAN POPULAR --- */
/* ============================================= */

/* 1. Preparamos la tarjeta para contener el moño */
.plan-card.plan-popular {
  position: relative; /* Necesario para posicionar el moño dentro de la tarjeta */
  overflow: hidden;   /* Esencial para que el moño se corte en los bordes y se vea integrado */
  border-top: none;   /* Eliminamos la antigua línea de color superior */
}

/* 2. Diseñamos el moño/banda */
.popular-ribbon {
  /* Posicionamiento */
  position: absolute;
  top: 18px;       /* Distancia desde la parte superior */
  right: -38px;      /* Distancia desde la derecha (lo movemos fuera para que la diagonal cruce la esquina) */
  transform: rotate(45deg); /* La rotación que crea el efecto diagonal */
  
  /* Estilo visual */
  background: var(--color-accent); /* Usamos tu color de acento para consistencia */
  color: var(--color-background);  /* Texto oscuro para que contraste con el fondo del moño */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); /* Sombra para darle profundidad */
  
  /* Texto y tamaño */
  width: 150px;       /* Ancho de la banda */
  padding: 8px 0;
  text-align: center;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  z-index: 10; /* Nos aseguramos que esté por encima de otros elementos */
}
/* ================================================================= */
/* ==   ESTILOS PARA LA PÁGINA DE PREGUNTAS (TEMA OSCURO)          == */
/* ================================================================= */

/* Contenedor principal del acordeón */
.faq-accordion {
    max-width: 850px;
    margin: 40px auto;
    border-radius: 8px;
    overflow: hidden;
    /* Usamos un borde sutil en lugar de una sombra para el tema oscuro */
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
}

/* Estilo para cada item (pregunta + respuesta) del acordeón */
.faq-item {
    /* El color de fondo de cada tarjeta o superficie */
    background-color: var(--color-surface);
    /* Borde sutil que separa cada pregunta */
    border-bottom: 1px solid var(--color-background);
}

.faq-item:last-child {
    border-bottom: none;
}

/* Botón que contiene la pregunta y el ícono */
.faq-question {
    width: 100%;
    /* Hereda el color de la superficie */
    background-color: var(--color-surface);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: none;
    text-align: left;
    /* Usamos la fuente primaria definida en el root */
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    /* Usamos el color de texto principal */
    color: var(--color-primary-text);
    transition: background-color 0.3s;
}

.faq-question:hover {
    /* Usamos el color de acento oscuro para el efecto hover */
    background-color: var(--color-accent-dark);
}

/* Ícono de "+" y "-" */
.faq-icon {
    width: 16px;
    height: 16px;
    position: relative;
    transition: transform 0.3s ease-in-out;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    /* Usamos el color de texto secundario para el ícono */
    background-color: var(--color-secondary-text);
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-in-out;
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Panel de la respuesta */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out;
    /* El fondo de la respuesta es el fondo principal para crear contraste */
    background-color: var(--color-background);
    /* Usamos el color de texto secundario para la respuesta */
    color: var(--color-secondary-text);
    /* Usamos la fuente secundaria definida en el root */
    font-family: var(--font-secondary);
    line-height: 1.6;
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    margin: 0;
}

/* Estilo para cuando el item está activo (pregunta abierta) */
.faq-item.active .faq-question {
    /* El color de la pregunta activa es el color de acento principal */
    color: var(--color-accent);
    background-color: var(--color-surface); /* Mantenemos el color de superficie */
}

/* Le damos al texto de la respuesta una transición más suave */
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 10px;
}
/* ================================================================= */
/* ==      ESTILOS PARA LA PÁGINA DETALLADA DE PLANES             == */
/* ================================================================= */

/* Encabezado de la página de planes */
#plans-hero {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Contenedor para las tarjetas detalladas de planes */
#plan-details {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

.plan-detail-card {
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
    position: relative; /* Para la cinta de "Más Popular" */
}

.plan-detail-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--color-accent-rgb), 0.5);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--color-background);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.plan-header h2 {
    color: var(--color-primary-text);
    margin: 0;
    font-size: 1.8rem;
}

.plan-header .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.plan-header .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-secondary-text);
}

.plan-audience {
    color: var(--color-secondary-text);
    font-style: italic;
    margin-bottom: 25px;
}

.plan-features h3 {
    color: var(--color-primary-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    color: var(--color-secondary-text);
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

/* Icono de checkmark para las características */
.plan-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.plan-detail-card .btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

/* Estilos para la cinta "Más Popular" */
.plan-detail-card.popular {
    border-color: var(--color-accent);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-surface);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Tabla Comparativa */
.comparison-table-wrapper {
    overflow-x: auto; /* Para responsividad en móviles */
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 10px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ancho mínimo para evitar que se comprima demasiado */
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-background);
}

.comparison-table thead th {
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table tbody tr:hover {
    background-color: var(--color-accent-dark);
}

.comparison-table tbody td {
    color: var(--color-secondary-text);
    text-align: center;
}

.comparison-table tbody td:first-child {
    color: var(--color-primary-text);
    font-weight: 500;
    text-align: left;
}

.check-mark {
    color: #22c55e; /* Verde para el check */
    font-size: 1.5rem;
    font-weight: bold;
}

.cross-mark {
    color: #ef4444; /* Rojo para la cruz */
    font-size: 1.5rem;
    font-weight: bold;/* ================================================================= */
/* ==       ESTILOS PARA LA PÁGINA DETALLADA DE PLANES          == */
/* ================================================================= */

/* Encabezado de la página de planes */
#plans-hero {
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center; /* Centrado para mejor apariencia en móvil */
}

/* Contenedor para las tarjetas detalladas de planes (Mobile-First) */
#plan-details {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
    /* Por defecto, una sola columna para móviles */
    grid-template-columns: 1fr;
}

.plan-detail-card {
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.plan-detail-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--color-accent-rgb), 0.5);
}

/* Encabezado del plan (apilado en móvil por defecto) */
.plan-header {
    display: flex;
    flex-direction: column; /* Apilado verticalmente */
    align-items: flex-start; /* Alineado a la izquierda */
    gap: 10px; /* Espacio entre título y precio */
    border-bottom: 1px solid var(--color-background);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.plan-header h2 {
    color: var(--color-primary-text);
    margin: 0;
    font-size: 1.6rem; /* Ligeramente ajustado para móviles */
}

.plan-header .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent);
}

.plan-header .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-secondary-text);
}

.plan-audience {
    color: var(--color-secondary-text);
    font-style: italic;
    margin-bottom: 25px;
}

.plan-features h3 {
    color: var(--color-primary-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    color: var(--color-secondary-text);
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.plan-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.plan-detail-card .btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

/* Estilos para la cinta "Más Popular" */
.plan-detail-card.popular {
    border-color: var(--color-accent);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-surface);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Tabla Comparativa (ya tiene buena base responsiva) */
.comparison-table-wrapper {
    overflow-x: auto; /* Permite scroll horizontal en móviles */
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 10px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ancho mínimo para forzar el scroll */
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-background);
}

.comparison-table thead th {
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table tbody tr:hover {
    background-color: var(--color-accent-dark);
}

.comparison-table tbody td {
    color: var(--color-secondary-text);
    text-align: center;
}

.comparison-table tbody td:first-child {
    color: var(--color-primary-text);
    font-weight: 500;
    text-align: left;
}

.check-mark {
    color: #22c55e;
    font-size: 1.5rem;
    font-weight: bold;
}

.cross-mark {
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ================================================================= */
/* ==                ESTILOS RESPONSIVOS AÑADIDOS                 == */
/* ================================================================= */

/* --- Para Tablets (768px) y más grandes --- */
@media (min-width: 768px) {
    #plans-hero {
        text-align: left; /* Alineación vuelve a la normalidad */
    }

    #plan-details {
        /* Un grid flexible que crea columnas automáticamente */
        /* Tendrá tantas columnas de 320px como quepan */
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .plan-header {
        /* El encabezado vuelve a ser horizontal */
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }

    .plan-header h2 {
        font-size: 1.8rem; /* El tamaño de fuente original regresa */
    }
}

/* --- Para Escritorios (1200px) y más grandes --- */
@media (min-width: 1200px) {
    /* En pantallas muy grandes, podemos limitar el ancho máximo de las tarjetas
       si quisiéramos, pero 'auto-fit' ya hace un gran trabajo.
       Se pueden añadir estilos adicionales si es necesario. */
    #plan-details {
        gap: 40px; /* Aumentamos el espacio entre tarjetas */
    }
}
}
/* ================================================================= */
/* ==      ESTILOS PARA LA PÁGINA DE POWER BUYING                 == */
/* ================================================================= */

/* Reutiliza .plan-card pero añade un estilo para la línea de "Requiere Depósito" */
.plan-fee {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-background);
    color: var(--color-secondary-text);
    font-size: 0.9rem;
    font-weight: 500;
}

/* El resto de estilos para .plans-grid, .plan-card, .timeline y .faq-accordion ya existen y se reutilizan. */
/* ================================================================= */
/* ==      ESTILOS PARA LA PÁGINA DE EXPORTACIÓN (TABS)           == */
/* ================================================================= */

.tabs-container {
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 20px 30px;
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap; /* Para que los botones se ajusten en móviles */
    border-bottom: 2px solid var(--color-background);
    margin-bottom: 20px;
}

.tab-button {
    padding: 12px 20px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: var(--color-secondary-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.tab-button:hover {
    color: var(--color-primary-text);
}

.tab-button.active {
    color: var(--color-accent);
}

/* Línea decorativa debajo del botón activo */
.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Alineado con el borde del contenedor */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
}

.tab-content {
    display: none; /* Oculto por defecto */
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block; /* Visible cuando está activo */
}

.tab-content h3 {
    color: var(--color-primary-text);
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.tab-content p {
    color: var(--color-secondary-text);
    line-height: 1.6;
    margin-bottom: 20px;
}
.tab-content ul {
    list-style: none;
    padding-left: 0;
}
.tab-content li {
    color: var(--color-secondary-text);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}
.tab-content li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.5rem;
    top: -5px;
}

.disclaimer {
    margin-top: 30px;
    padding: 15px;
    background-color: var(--color-background);
    border-left: 4px solid var(--color-accent-dark);
    border-radius: 4px;
    color: var(--color-secondary-text);
    font-size: 0.9rem;
}

/* Keyframe para la animación de fade-in */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================================================================= */
/* ==      ESTILOS PARA LA PÁGINA "SOBRE NOSOTROS"                == */
/* ================================================================= */

/* Hero Section */
#about-hero {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Mission Section */
#mission {
    padding: 60px 0;
}

#mission .grid-2-cols {
    align-items: center;
    gap: 50px;
}

.mission-content h2 {
    color: var(--color-primary-text);
    margin-bottom: 20px;
}

.mission-content p {
    color: var(--color-secondary-text);
    line-height: 1.7;
    margin-bottom: 15px;
}

.mission-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Why Choose Us Section */
#why-choose-us {
    padding: 60px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-card {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--color-background);
}

.why-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px auto;
    background-color: var(--color-accent-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-icon svg {
    width: 24px;
    height: 24px;
    color: #000000;
}

.why-card h3 {
    color: var(--color-primary-text);
    margin-bottom: 15px;
}

.why-card p {
    color: var(--color-secondary-text);
    line-height: 1.6;
}

/* Join Us (CTA) Section */
#join-us {
    padding: 60px 0;
}

.cta-card {
    background: linear-gradient(135deg, #a7a7a7, var(--color-surface));
    padding: 50px;
    border-radius: 12px;
    text-align: center;
}

.cta-card h2 {
    color: var(--color-primary-text);
    margin-bottom: 15px;
}

.cta-card p {
    color: var(--color-secondary-text);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* ================================================================= */
/* ==      ESTILOS PERSONALIZADOS PARA LA BARRA DE SCROLL         == */
/* ================================================================= */

/* Funciona en navegadores basados en WebKit (Chrome, Safari, Edge) */
.dropdown-content::-webkit-scrollbar {
  width: 8px; /* Ancho de la barra de scroll */
}

/* El fondo de la barra de scroll (la pista) */
.dropdown-content::-webkit-scrollbar-track {
  background: var(--color-surface); /* Fondo que coincide con el menú */
  border-radius: 10px;
}

/* La parte móvil de la barra de scroll (el "pulgar") */
.dropdown-content::-webkit-scrollbar-thumb {
  background-color: var(--color-accent-dark); /* Usamos un tono oscuro del color de acento */
  border-radius: 10px;
  border: 2px solid var(--color-surface); /* Un borde que coincide con el fondo para dar un efecto de "flotación" */
}

/* El "pulgar" al pasar el cursor sobre él */
.dropdown-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-accent); /* Se ilumina con el color de acento principal */
}
/* ================================================================= */
/* ==      ESTILOS REPORTE DE INSPECCIÓN V6 (TEMA OSCURO)         == */
/* ================================================================= */

/* Fondo oscuro para la página completa */
body.report-body {
    background-color: var(--color-background);
}

/* Contenedor principal que centra el reporte */
.report-main-container {
        padding-top: 120px; /* Ajusta este valor al alto de tu header + un margen */
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
}


/* Sección de introducción de la página */
#report-hero {
    margin-bottom: 40px;
}

/* Contenedor principal del contenido del reporte */
#report-sheet {
    max-width: 1100px;
    margin: 0 auto;
    background-color: transparent; /* SIN FONDO BLANCO */
    padding: 0; /* Sin padding extra, se maneja en las secciones */
    color: var(--color-primary-text);
}

/* Encabezado del reporte */
.report-header-block {
    text-align: center;
    border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.3);
    padding-bottom: 20px;
    margin-bottom: 10px;
}
.report-header-block h1 {
    font-family: var(--font-primary);
    color: var(--color-primary-text);
    font-size: 2.2rem;
    margin: 0;
}
.report-header-block .header-logo img {
    max-width: 150px;
}

/* Metadatos del reporte */
.report-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    font-family: var(--font-secondary);
    color: var(--color-secondary-text);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.report-meta strong {
    color: var(--color-accent);
}

/* Títulos de cada sección */
.report-section-title {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary-text);
    padding-bottom: 10px;
    margin: 50px 0 25px 0;
    border-bottom: 2px solid var(--color-accent);
}

/* Cuadrículas para organizar los datos */
.report-grid-3-col, .report-grid-2-col {
    display: grid;
    gap: 25px;
    margin-bottom: 20px;
}
.report-grid-3-col { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.report-grid-2-col { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

/* Grupos de datos y puntos individuales */
.data-group {
    background-color: var(--color-surface);
    border: 1px solid rgba(var(--color-accent-rgb), 0.1);
    border-radius: 8px;
    padding: 25px;
}
.data-group h4 {
    font-family: var(--font-primary);
    color: var(--color-accent);
    margin: 0 0 15px 0;
    border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.2);
    padding-bottom: 10px;
}
.data-point {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-background);
}
.data-point:last-child { border-bottom: none; }
.data-point label {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--color-secondary-text);
    font-weight: 400;
}
.data-point > span {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary-text);
    text-align: right;
}
.data-point.full-width, .data-point.note {
    flex-direction: column;
    align-items: flex-start;
}
.data-point.full-width label, .data-point.note label {
    margin-bottom: 8px;
    color: var(--color-accent-dark);
    font-weight: 600;
}
.data-point.full-width span, .data-point.note span {
    text-align: left;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-secondary-text);
}

/* Puntos de colores */
.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}
.dot-green { background-color: #27ae60; }
.dot-yellow { background-color: #f1c40f; }
.dot-red { background-color: #e74c3c; }
.dot-label > span { vertical-align: middle; }

/* Resumen del inspector */
.summary-text p {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 10px 0;
    color: var(--color-secondary-text);
}
.summary-text strong {
    color: var(--color-primary-text);
}

/* Disclaimer al final */
.report-disclaimer {
    margin-top: 50px;
    padding: 20px;
    border-radius: 6px;
    background-color: var(--color-surface);
    border-top: 3px solid var(--color-accent-dark);
}
.report-disclaimer p {
    font-size: 0.85rem;
    color: var(--color-secondary-text);
    text-align: center;
    line-height: 1.6;
    margin: 0;
}
/* ================================================================= */
/* ==   ESTILOS PARA CUADRÍCULA DE FOTOS Y AVISO ADICIONAL      == */
/* ================================================================= */

/* Cuadrícula de placeholders para fotos */
.photo-placeholder-grid {
    display: grid;
    /* Crea 6 columnas de ancho uniforme */
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

/* Estilo de cada celda de la cuadrícula */
.photo-placeholder-item {
    background-color: var(--color-surface); /* Fondo oscuro de tu tema */
    color: var(--color-secondary-text);
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    padding: 20px 10px;
    border-radius: 6px;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px; /* Altura mínima para cada celda */
}

/* Aviso debajo de la cuadrícula de fotos */
.photo-grid-disclaimer {
    background-color: rgba(var(--color-accent-rgb), 0.05); /* Fondo muy sutil con tu color de acento */
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-radius: 6px;
    padding: 15px 20px;
    margin: 30px 0;
}

.photo-grid-disclaimer p {
    margin: 0;
    font-family: var(--font-secondary);
    color: var(--color-secondary-text);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.photo-grid-disclaimer p strong {
    color: var(--color-accent); /* Resalta el texto importante con tu color de acento */
}

/* Adaptación para móviles */
@media screen and (max-width: 900px) {
    .photo-placeholder-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas en tablets */
    }
}

@media screen and (max-width: 600px) {
    .photo-placeholder-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en móviles */
    }
}
/* ========== ESTILOS PARA EL POP-UP DE IDIOMA ========== */

.language-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.language-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.language-popup-content {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.language-popup-overlay.visible .language-popup-content {
    transform: scale(1);
}

.language-popup-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: #1c1e21;
    margin: 0 0 10px 0;
}

.language-popup-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #606770;
    margin-bottom: 30px;
}

.language-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.language-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: none;
    border: 2px solid #dddfe2;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 120px;
}

.language-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #c09a5c;
}

.language-option img {
    width: 60px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.language-option span {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

/* ESTILOS PARA ÁRABE (RTL - Right to Left) */
body.rtl {
    direction: rtl;
}

/* Ajustes específicos para RTL. Puedes añadir más según sea necesario. */
body.rtl .main-header {
    flex-direction: row-reverse;
}

body.rtl .grid-2-cols {
    direction: ltr; /* Mantiene la dirección de la cuadrícula si se rompe */
}

body.rtl .grid-2-cols > * {
    direction: rtl; /* Restablece la dirección para el contenido */
}

body.rtl .timeline::before {
    right: 20px;
    left: auto;
}

body.rtl .timeline-item {
    padding: 20px 40px 20px 0;
    text-align: right;
}

body.rtl .timeline-icon {
    left: auto;
    right: -20px;
}

/* ========== ESTILOS PARA EL SELECTOR DE IDIOMA EN EL HEADER ========== */
.language-switcher {
    position: relative;
    margin-left: 15px; /* Espacio entre la navegación y la bandera */
}

.current-lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.current-lang-btn img {
    width: 32px;
    height: auto;
    border-radius: 50%;
    border: 2px solid #dddfe2;
    transition: border-color 0.2s ease;
}

.current-lang-btn:hover img {
    border-color: #c09a5c;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 10px;
    min-width: 150px;
    z-index: 10;
}

/* Muestra el dropdown cuando se hace hover sobre el contenedor */
.language-switcher:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.lang-dropdown a:hover {
    background-color: #f0f2f5;
}

.lang-dropdown a img {
    width: 24px;
    height: auto;
    border-radius: 2px;
}

/* Ajustes para RTL en el selector de idioma del header */
body.rtl .language-switcher {
    margin-left: 0;
    margin-right: 15px; /* Invertir el margen */
}

body.rtl .lang-dropdown {
    right: auto;
    left: 0; /* Alinear a la izquierda */
}
/* --- Efecto de Fondo con Líneas Animadas --- */

.lines {
  /* Lo posicionamos de forma fija para que cubra toda la pantalla y no se mueva con el scroll */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh; /* Alto total de la ventana */
  width: 100%;
  
  /* Con z-index: -1 nos aseguramos de que se quede detrás de todo tu contenido */
  z-index: -1;
}

.lines .line {
  position: absolute;
  width: 1px;
  height: 100%;
  top: 0;
  left: 50%;
  background: rgba(0, 0, 0, 0);
  overflow: hidden;
}

/* El destello de luz que cae */
.lines .line::after {
  content: "";
  display: block;
  position: absolute;
  height: 15vh;
  width: 100%;
  top: -50%;
  left: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #9c6e31 75%, #414141 100%);
  
  /* Animación */
  animation: run 7s 0s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

/* --- Posición y retraso de cada línea --- */

/* Línea 1 (Izquierda) */
.lines .line:nth-child(1) {
  margin-left: -25%;
}
.lines .line:nth-child(1)::after {
  animation-delay: 2s;
}

/* Línea 2 (Centro) - no necesita reglas especiales */

/* Línea 3 (Derecha) */
.lines .line:nth-child(3) {
  margin-left: 25%;
}
.lines .line:nth-child(3)::after {
  animation-delay: 2.5s;
}


/* --- Definición de la Animación --- */
@keyframes run {
  0% {
    top: -50%;
  }
  100% {
    top: 110%;
  }
}

/* ========= NUEVOS ESTILOS PARA LA CALCULADORA ========= */
.calculator-container {
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 12px;
    padding: 40px;
    margin: 60px auto 0;
    max-width: 800px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-container h3 {
    margin-top: 0;
    font-size: 1.8rem;
    text-align: center;
    color: #f0f0f0;
}

.slider-wrapper {
    margin: 30px 0;
}

/* Estilo de la barra deslizante (slider) */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #444;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

/* Estilo del "pulgar" o control deslizante para Chrome/Safari */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #c59d5f;
    border-radius: 50%;
    border: 3px solid #fff;
    cursor: pointer;
    margin-top: -8px; /* Centrar el pulgar verticalmente */
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Estilo del "pulgar" o control deslizante para Firefox */
input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #c59d5f;
    border-radius: 50%;
    border: 3px solid #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.calculator-output {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 30px;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.output-item {
    flex-basis: 250px;
}

.output-item span {
    font-size: 1rem;
    color: #ccc;
    display: block;
    margin-bottom: 10px;
}

.output-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}

/* --- ESTILOS DEL DIAGRAMA DE FLUJO MODERNO --- */
.flow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.flow-path {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 60px;
    flex-wrap: wrap;
    width: 100%;
}

.flow-path.vertical {
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.flow-step {
    background: rgba(44, 44, 44, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animated.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.flow-step:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px var(--glow-color);
    border-color: var(--accent-color);
}

.flow-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    color: var(--accent-color);
}
.flow-icon svg {
    width: 100%;
    height: 100%;
}
.flow-step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted-color);
}

/* --- LÓGICA DE CONECTORES CORREGIDA --- */
.flow-path:not(.vertical) > .flow-step:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -45px;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    transform: translateY(-50%);
}

.flow-path.vertical > .flow-step:not(:first-child)::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
}

.flow-decision-box {
    border: 0px dashed #000000;
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
}
.flow-decision-box.small {
    padding: 20px;
    border-style: solid;
}

.flow-branches {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    flex: 1;
    min-width: 300px;
}
.flow-branch.loss {
    background: var(--loss-bg);
    border: 1px solid var(--loss-border);
}
.flow-branch.win {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
}
.flow-branch h5 { color: var(--text-color); }
.flow-branch.loss h5 { color: #ff8a8a; }
.flow-branch.win h5 { color: #8aff9d; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .flow-path {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }
    .flow-path:not(.vertical) > .flow-step:not(:first-child)::before {
        top: -35px;
        left: 50%;
        width: 2px;
        height: 20px;
        transform: translateX(-50%);
    }


.main-nav .dropdown-content a {
    color: var(--color-primary-text); /* O un color claro como #f2f2f2 */
}

.main-nav .dropdown-content a {
    color: var(--color-secondary-text); /* Un color un poco más tenue */
}

.main-nav .dropdown-content a:hover {
    color: var(--color-primary-text);   /* Se ilumina al pasar el cursor */
    background-color: rgba(var(--color-accent-rgb), 0.1); /* Fondo sutil de tu color de acento */
}
}
/* ==================================================== */
/* =============   ESTILOS PARA EL POP-UP   =========== */
/* ==================================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.popup-content {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid #c0a062;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
    opacity: 1;
}

.popup-content h2 {
    color: #c0a062;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-content .offer-list {
    text-align: left;
    display: inline-block;
    margin-bottom: 25px;
    padding-left: 0;
    list-style-position: inside;
}

.popup-content .offer-list li {
    margin-bottom: 10px;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input[type="email"] {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.popup-form input[type="email"]::placeholder {
    color: #999;
}

.popup-form .btn-primary {
    background-color: #c0a062;
    color: #111;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    padding: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
}

.popup-form .btn-primary:hover {
    background-color: #d4b375;
    transform: scale(1.05);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
}