/* ======== VARIABLES Y ESTILOS GLOBALES ======== */
:root {
  --primary-color: #0D6EFD;
  --primary-dark: #0a58ca;
  --accent-color: #0DCAF0;
  --dark-color: #212529;
  --text-color: #495057;
  --body-color: #F8F9FA;
  --container-color: #FFFFFF;
  --premium-gold: linear-gradient(135deg, #FFD700, #DAA520);
  --header-height: 5rem;
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Lato', sans-serif;
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--body-color); color: var(--text-color); }
h1, h2, h3 { font-family: var(--font-title); color: var(--dark-color); }
ul { list-style: none; }
a { text-decoration: none; color: var(--primary-color); }
img { max-width: 100%; height: auto; }
.container { max-width: 1140px; margin: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1.5rem; }
.section { padding: 6rem 0; overflow-x: hidden; }
.section__title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
.section__title-left { font-size: 2.2rem; margin-bottom: 1.5rem; }
.section__subtitle { font-weight: 700; color: var(--primary-color); margin-bottom: 0.5rem; }

/* Botones */
.button { display: inline-block; padding: 0.8rem 2rem; border: 2px solid transparent; border-radius: 50px; font-weight: 700; transition: all 0.3s ease; cursor: pointer; }
.button--primary { background-color: var(--primary-color); color: white; }
.button--primary:hover { background-color: var(--primary-dark); transform: translateY(-3px); }
.button--accent { background-color: var(--accent-color); color: var(--dark-color); }
.button--accent:hover { background-color: #0ab9d9; transform: translateY(-3px); }
.button--lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.button--outline { border-color: var(--primary-color); color: var(--primary-color); }
.button--outline:hover { background-color: var(--primary-color); color: white; }


/* =========================================
   HEADER & NAVEGACIÓN (FINAL Y CORREGIDO)
   ========================================= */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    /* ESTADO INICIAL: OCULTO ARRIBA */
    transform: translateY(-100%);
    background-color: transparent;

    /* Animación suave de entrada (0.5s) */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s;

    /* Aseguramos que cuando baje sea funcional */
    opacity: 1;
    pointer-events: auto;
}

/* CLASE QUE SE AGREGA AL BAJAR (VISIBLE) */
.header.header-visible {
    transform: translateY(0); /* Baja a su posición */
    background-color: rgba(255, 255, 255, 0.98); /* Fondo blanco sólido */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Ajustes visuales cuando el menú es visible (Fondo blanco) */
.header.header-visible .nav__link {
    color: var(--title-color, #333); /* Letras oscuras */
    text-shadow: none;
}
.header.header-visible .nav__link:hover {
    color: var(--primary-color, #007bff);
}
.header.header-visible .nav__toggle {
    color: #333; /* Hamburguesa oscura */
}

/* Estado al hacer scroll (Fondo blanco) */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav {
    /* AJUSTE: Aumentamos altura a 6rem (~96px) para que quepa el logo de 75px */
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav__logo {
    display: flex;
    align-items: center;
    z-index: 1001; /* Encima del menú móvil si se abre */
}

.nav__logo img {
    /* TAMAÑO LOGO DESKTOP */
    height: 230px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
    cursor: pointer;
}

.nav__logo img:hover {
    transform: scale(1.05); /* Efecto zoom al pasar mouse */
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav__link {
    color: #fff; /* Blanco al inicio para ver sobre el fondo oscuro */
    font-weight: 700;
    transition: color 0.3s;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Sombra para leer mejor */
    text-decoration: none;
}

/* ESTILOS AL BAJAR EL SCROLL (Fondo Blanco) */
.header.scrolled .nav__link {
    color: var(--title-color, #333); /* Letras oscuras */
    text-shadow: none;
}
.header.scrolled .nav__link:hover {
    color: var(--primary-color, #007bff);
}
.header.scrolled .nav__toggle {
    color: var(--title-color, #333);
}

/* BOTÓN HAMBURGUESA (Móvil) */
.nav__toggle {
    display: none; /* Oculto en PC */
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
    z-index: 1001;
}

/* BOTÓN CERRAR (Móvil) */
.nav__close {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--dark-color, #0b0b0b);
}

.hero__animation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Nivel bajo */
    transform: perspective(400px) rotateX(25deg);
    pointer-events: none; /* CLAVE: Las partículas no bloquearán clics */
}

canvas#fibercanvas,
#tsparticles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* CLAVE: Las partículas no bloquearán clics */
}
canvas#fibercanvas { z-index: 1; }
#tsparticles { z-index: 2; }

.hero__vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(1, 4, 22, 0.2) 0%, rgba(1, 4, 22, 0.9) 100%);
    z-index: 3;
    pointer-events: none;
}

.glow {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    color: white;
}

.glow h1 {
    font-size: clamp(80px, 15vw, 150px);
    opacity: .06;
    font-weight: 900;
    transform: translateY(40px);
}

.hero__container {
    position: relative;
    /* CLAVE: z-index mayor que el fondo pero menor que el header */
    z-index: 10;
    text-align: center;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: white;
    text-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #e0e0e0;
    max-width: 720px;
    margin: 1rem auto 2rem;
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 1; /* Visible por defecto */
    pointer-events: none;
}

.scroll-indicator span {
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.scroll-indicator i {
    font-size: 1.2rem;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}

/* =========================================
   MENÚ MÓVIL (Corrección de clic)
   ========================================= */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background-color: #fff; /* Fondo blanco en móvil para legibilidad */
        padding: 4rem 0 3rem;
        box-shadow: 0 4px 8px rgba(0,0,0,.1);
        transition: .4s;
        z-index: 1000; /* Igual que el header */

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav__menu.show-menu {
        top: 0;
    }

    /* En móvil, los enlaces deben ser oscuros siempre */
    .nav__link {
        color: var(--title-color, #333);
        text-shadow: none;
    }

    .nav__toggle {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--title-color, #333);
        display: block;
    }
}



/* BENEFICIOS */
.benefits__container { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.benefit__card { text-align: center; background: var(--container-color); padding: 2.5rem 1.5rem; border-radius: 15px; box-shadow: 0 8px 24px rgba(0,0,0,0.05); transition: all 0.3s ease; }
.benefit__card:hover { transform: translateY(-10px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.benefit__card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.benefit__card h3 { margin-bottom: 0.5rem; }

/* PAQUETES */
.packages { background-color: #eef3ff; }
.packages__container { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.package__card { background: var(--container-color); padding: 2.5rem 1.5rem; border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.05); transition: all 0.3s ease; border: 3px solid transparent; display: flex; flex-direction: column; position: relative; }
.package__card:hover { transform: translateY(-10px); }
.package__card h3 { font-size: 1.5rem; text-align: center; margin-bottom: 1rem; }
.package__price { text-align: center; margin-bottom: 1.5rem; font-size: 1.2rem; }
.package__price span { font-size: 3rem; font-weight: 900; color: var(--dark-color); }
.package__speed { text-align: center; font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem; background: #eef3ff; padding: 0.5rem; border-radius: 10px; }
.package__speed span { font-size: 1rem; font-weight: 400; }
.package__card ul { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; flex-grow: 1; }
.package__card ul li { display: flex; align-items: center; gap: 0.5rem; }
.package__card ul i { color: var(--primary-color); }
.package__card .button { width: 100%; text-align: center; display: block; animation: pulse 2.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(13, 110, 253, 0); } 100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); } }
.package__card.popular { border-color: var(--primary-color); }
.popular__tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
}
.package__card.popular h3 { margin-top: 1.5rem; }
.package__card.premium { background: var(--premium-gold); color: var(--dark-color); overflow: hidden; }
.package__card.premium .button { animation-name: pulse-premium; }
@keyframes pulse-premium { 0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); } }
.package__card.premium::before { content: ''; position: absolute; top: 0; left: -150%; width: 100%; height: 100%; background: linear-gradient(to right, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%); transform: skewX(-25deg); transition: left 1s; }
.package__card.premium:hover::before { left: 150%; }
.button--premium { background: white; color: #B8860B; }

/* PASOS PARA CONTRATAR */
.process__container { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.process__step { text-align: center; }
.process__step i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.process__number { font-size: 4rem; font-weight: 900; color: #e0e0e0; line-height: 1; }

/* SOBRE NOSOTROS */
.about__container { grid-template-columns: 1fr; align-items: center; }
.about__image img { border-radius: 20px; }
.about__description { margin-bottom: 1.5rem; }
.about__data h3 { margin-top: 2rem; }

/* MODAL DE SOPORTE */
.support__container { grid-template-columns: 1fr; align-items: center; gap: 3rem; }
.support__form-container h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.support__form-container p { margin-bottom: 1.5rem; }
.support__form { display: flex; flex-direction: column; gap: 1rem; }
.form__group { display: flex; flex-direction: column; }
.form__group label { font-weight: 700; margin-bottom: 0.5rem; }
.form__group input, .form__group textarea {
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  resize: none;
}
.form__group input:focus, .form__group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.support__character { display: none; justify-content: center; align-items: center; }
.support__character dotlottie-wc { max-width: 100%; }

/* FAQ */
.faq__container { max-width: 800px; margin: auto; }
.faq__item { background: var(--container-color); margin-bottom: 1rem; border-radius: 10px; border: 1px solid #eee; }
.faq__item summary { padding: 1.5rem; font-weight: 700; cursor: pointer; position: relative; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 1.5rem; transition: transform 0.3s; }
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item p { padding: 0 1.5rem 1.5rem; }

/* COBERTURA */
.coverage { background-color: #eef3ff; }
.coverage__container { max-width: 900px; margin: auto; text-align: center; }
.coverage__search { margin-bottom: 4rem; }
.coverage__cities h3 { font-size: 1.5rem; margin-bottom: 2rem; color: var(--dark-color); }
.cities__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; }
.city-card { background: var(--container-color); padding: 1.5rem; border-radius: 15px; font-weight: 700; color: var(--text-color); box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.city-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); color: var(--primary-color); }
.city-card i { color: var(--primary-color); }
.city-card--soon { background-color: var(--dark-color); color: white; }
.city-card--soon i { color: var(--accent-color); }

/* CONTACTO FINAL */
.contact__subtitle { text-align: center; max-width: 600px; margin: -2rem auto 3rem auto; }
.contact__container { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.contact__card { background: var(--container-color); padding: 2.5rem; text-align: center; border-radius: 15px; box-shadow: 0 8px 24px rgba(0,0,0,0.05); transition: all 0.3s ease; }
.contact__card:hover { transform: translateY(-10px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.contact__card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.contact__card h3 { color: var(--dark-color); }
.contact__card p { color: var(--text-color); }

/* FOOTER */
.footer { background: var(--dark-color); color: #ccc; text-align: center; padding: 4rem 0 2rem; }
.footer h4 { color: white; font-size: 2rem; margin-bottom: 0.5rem; }

/* BURBUJAS FLOTANTES */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 1rem;
}

.whatsapp-fab, .support-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  border: none;
  cursor: pointer;
}
.whatsapp-fab:hover, .support-fab:hover { transform: scale(1.1); }

.whatsapp-fab {
  background-color: #25D366;
  font-size: 2.5rem;
}
.support-fab {
  background-color: var(--primary-color);
}


/* MODAL DE SOPORTE */
.support-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1001; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.support-modal.show-modal { opacity: 1; pointer-events: auto; }
.support-modal__content { background: #eef3ff; border-radius: 20px; padding: 2rem; max-width: 900px; width: 100%; position: relative; transform: scale(0.9); transition: transform 0.3s ease; }
.support-modal.show-modal .support-modal__content { transform: scale(1); }
.support-modal__close { position: absolute; top: 1rem; right: 1.5rem; background: transparent; border: none; font-size: 2rem; cursor: pointer; color: var(--text-color); }

/* RESPONSIVE DESIGN */
@media screen and (min-width: 768px) {
  .about__container { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .support-modal__content { padding: 3rem; }
  .support__container { grid-template-columns: 1fr 1.2fr; }
  .support__character { display: flex; }
}
@media screen and (min-width: 1024px) {
  .nav__toggle { display: none; }
}
@media screen and (max-width: 1023px) {
  body.nav-open { overflow: hidden; }
  .nav__menu { position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; background-color: var(--container-color); padding: 6rem 2rem 2rem; transition: left 0.4s ease-in-out; z-index: 101; }
  .show-menu { left: 0; }
  .nav__list { flex-direction: column; gap: 2.5rem; }
  .nav__toggle { display: block; z-index: 102; position: relative; }
}



/* ======== TESTIMONIOS ======== */
.testimonials__container {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.testimonial__card {
    background-color: #fff; /* Ojo: Si tu fondo general es oscuro, cambia esto a un color oscuro suave */
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 16px hsla(0, 0%, 0%, .1);
    transition: transform .3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
}

.testimonial__header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial__img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    font-size: 3rem;
    color: #ccc; /* Color de avatar genérico */
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial__data h3 {
    font-size: 1.1rem;
    color: var(--title-color, #333);
    margin-bottom: 0.25rem;
}

.testimonial__data span {
    font-size: 0.85rem;
    color: var(--text-color-light, #888);
}

.testimonial__icon {
    margin-left: auto;
    font-size: 2rem;
    color: var(--accent-color, #007bff); /* Usa tu color de acento aquí */
    opacity: 0.2;
}

.testimonial__stars {
    color: #ffc107; /* Color dorado */
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color, #555);
    font-style: italic;
}

/* ======== ESTILOS DEL FOOTER ======== */
.footer__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left; /* Alineación a la izquierda se ve más elegante */
}

/* Ajuste para móviles: Centrar si prefieres */
@media screen and (max-width: 768px) {
    .footer__content-grid {
        text-align: center;
    }
}



/* =========================================
   FOOTER PREMIUM DESIGN
   ========================================= */

.footer {
    background-color: #0b0b0b; /* Fondo casi negro, muy elegante */
    padding: 4rem 0 2rem; /* Espaciado amplio arriba y abajo */
    color: #f0f0f0; /* Texto casi blanco para evitar fatiga visual */
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

/* --- GRID LAYOUT (Columnas) --- */
.footer__content-grid {
    display: grid;
    /* Esto crea columnas automáticas. Si hay espacio, se ponen lado a lado.
       Si es móvil, se apilan. Mínimo 250px de ancho por columna. */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem; /* Separación grande entre columnas */
    margin-bottom: 3rem;
}

/* --- TIPOGRAFÍA Y TÍTULOS --- */
.footer__brand h4,
.footer__legal h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

/* Pequeño detalle visual debajo de los títulos */
.footer__brand h4::after,
.footer__legal h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--first-color, #007bff); /* Usa tu color principal aquí */
    bottom: -5px;
    left: 0;
    border-radius: 2px;
}

.footer__brand p {
    color: #a0a0a0; /* Gris suave */
    line-height: 1.6;
    max-width: 300px; /* Evita que el texto se estire demasiado */
}

/* --- ENLACES LEGALES --- */
.footer__links {
    list-style: none;
    padding: 0;
}

.footer__links li {
    margin-bottom: 0.75rem;
}

.footer__links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

/* Efecto Hover: Cambia a blanco y se mueve un poco a la derecha */
.footer__links a:hover {
    color: #fff;
    transform: translateX(5px); /* Pequeño desplazamiento elegante */
}

/* --- SECCIÓN DE COPYRIGHT --- */
.footer__copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea muy sutil */
    padding-top: 2rem;
    text-align: center;
    color: #666; /* Texto más oscuro para que no distraiga */
    font-size: 0.85rem;
}

/* --- RESPONSIVE (MÓVIL) --- */
@media screen and (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer__content-grid {
        gap: 2.5rem;
        text-align: center; /* Centramos todo en móviles */
    }

    .footer__brand h4::after,
    .footer__legal h4::after {
        left: 50%; /* Centramos la línea decorativa */
        transform: translateX(-50%);
    }

    .footer__brand p {
        margin: 0 auto; /* Centramos el párrafo */
    }

    /* En móvil no movemos los links a la derecha, solo cambiamos color */
    .footer__links a:hover {
        transform: translateX(0);
    }
}


/* =========================================
   SILVER MODERN MODAL STYLES
   ========================================= */

/* Variables locales para facilitar cambios */
:root {
    --silver-bg: #f3f4f6;
    --silver-gradient: linear-gradient(135deg, #ffffff 0%, #e2e4e8 100%);
    --silver-border: 1px solid rgba(255, 255, 255, 0.6);
    --silver-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --accent-blue: #2563eb;
}

/* Overlay general */
.silver-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden; /* Controlado por GSAP */
    opacity: 0;
}

.silver-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.7); /* Oscuro con transparencia */
    backdrop-filter: blur(8px); /* Efecto vidrio */
}

/* La Tarjeta Plateada */
.silver-card {
    position: relative;
    width: 90%;
    max-width: 700px;
    height: 80vh; /* Altura fija para permitir scroll interno */
    background: var(--silver-gradient);
    border-radius: 20px;
    border: var(--silver-border);
    box-shadow: var(--silver-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9); /* Estado inicial para animación */
}

/* Header */
.silver-header {
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.silver-tabs {
    display: flex;
    gap: 1rem;
    background: rgba(0,0,0,0.05);
    padding: 0.3rem;
    border-radius: 10px;
}

.silver-tab {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.silver-tab.active {
    background: white;
    color: var(--text-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-weight: 600;
}

.silver-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.3s;
}

.silver-close-btn:hover {
    color: #ef4444; /* Rojo al pasar el mouse */
    transform: rotate(90deg);
}

/* Cuerpo con Scroll */
.silver-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
}

/* Scrollbar personalizada fina */
.silver-body::-webkit-scrollbar {
    width: 6px;
}
.silver-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.silver-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Contenido */
.silver-content {
    display: none; /* Oculto por defecto */
    animation: fadeIn 0.4s ease;
}

.silver-content.active {
    display: block;
}

.silver-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.silver-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.silver-text-block h4 {
    font-size: 1.1rem;
    color: var(--accent-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.silver-text-block p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
    text-align: justify;
}

/* Footer de la tarjeta */
.silver-footer {
    padding: 1rem 2rem;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: right;
}

.silver-btn-action {
    background: var(--text-dark);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.silver-btn-action:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Animación CSS simple de respaldo */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .silver-card {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .silver-tabs {
        flex-direction: column;
        gap: 0;
    }
    .silver-header {
        align-items: flex-start;
    }
}




/* ======== SLIDER INFINITO DE TESTIMONIOS  ======== */

.slider {
    background: transparent;
    height: auto;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

/* Difuminado lateral (Fade effect) */
.slider::before,
.slider::after {
    background: linear-gradient(to right, var(--body-color) 0%, rgba(255,255,255,0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 150px; /* Más ancho para que sea más suave */
    z-index: 2;
    top: 0;
    pointer-events: none;
}
.slider::before { left: 0; }
.slider::after { right: 0; transform: rotateZ(180deg); }

/* PISTA DE DESLIZAMIENTO */
.slide-track {
    display: flex;
    /* Cálculo: 380px (ancho card + margin) * N total de cards (originales + duplicadas) */
    /* Ajustamos para 11 cards (7 reales + 4 duplicadas) aprox */
    width: calc(380px * 11);
    /* TIEMPO: 80s = Movimiento muy lento y elegante */
    animation: scroll 80s linear infinite;
}

.slide-track:hover {
    animation-play-state: paused;
}

/* CONTENEDOR DE CADA SLIDE */
.slide {
    height: 320px; /* ALTO FIJO: Clave para que se vean iguales */
    width: 380px;  /* ANCHO FIJO */
    padding: 0 15px;
    flex-shrink: 0;
}

/* TARJETA MODERNA */
.slide .testimonial__card {
    height: 100%; /* Ocupa todo el alto definido en .slide */
    background: #fff;
    border-radius: 20px; /* Bordes más redondeados */
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Sombra suave y moderna */
    border: 1px solid rgba(0,0,0,0.03); /* Borde sutil */

    /* FLEXBOX: Esto alinea el contenido perfectamente */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja las estrellas al fondo */
    transition: transform 0.3s ease;
}

/* Efecto al pasar el mouse sobre una tarjeta específica */
.slide .testimonial__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,123,255,0.15); /* Sombra azulita al hover */
}

/* Estructura interna de la tarjeta */
.testimonial__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.testimonial__img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f7ff; /* Fondo azul muy claro para el icono */
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.testimonial__data h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--title-color);
    margin: 0;
}

.testimonial__data span {
    font-size: 0.85rem;
    color: #888;
}

.testimonial__icon {
    font-size: 1.5rem;
    color: #e5e7eb; /* Gris muy claro para la comilla */
}

.testimonial__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 1.5rem 0;
    font-style: normal; /* Quitamos itálica para más modernidad */
}

/* ANIMACIÓN */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% {
        /* Desplazamos el ancho de las 7 cartas originales */
        transform: translateX(calc(-380px * 7));
    }
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .slide {
        width: 320px; /* Un poco más angosto en móvil */
        height: 340px; /* Un poco más alto si el texto se estira */
    }
    .slide-track {
        width: calc(320px * 11);
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-320px * 7)); }
    }
}




/* =========================================
   SILVER MODERN PROMO (VERSIÓN COMPACTA)
   ========================================= */

.silver-promo-container {
    background: linear-gradient(135deg, #f0f2f5 0%, #d9dee6 100%);
    border-radius: 16px; /* Bordes un poco menos redondos para ahorrar espacio */
    position: relative;
    overflow: hidden;
    max-width: 700px; /* Reducido de 850px */
    margin: 1.5rem auto; /* Menos margen vertical */

    /* Sombra ajustada para ser sutil pero 3D */
    box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.6) inset;

    border: 1px solid rgba(200, 200, 200, 0.5);
    transform: translateZ(0);
}

.silver-card-body {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem; /* Padding reducido significativamente */
    position: relative;
    z-index: 2;
    gap: 1.5rem; /* Menos espacio entre icono y texto */
}

/* --- Columna de Acento (Izquierda) --- */
.accent-icon-box {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    width: 55px;  /* Reducido de 80px */
    height: 55px; /* Reducido de 80px */
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem; /* Icono más pequeño */
    color: white;
    position: relative;
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0; /* Evita que se aplaste */
}

.accent-icon-box i {
    animation: silverFloat 3s ease-in-out infinite;
    z-index: 2;
}

.accent-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(15px);
    opacity: 0.5;
    z-index: 1;
}

/* --- Columna de Texto (Derecha) --- */
.silver-text-col {
    flex: 1;
}

.silver-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem; /* Letra más compacta */
    font-weight: 800;
    margin-bottom: 0.25rem; /* Menos separación */
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
    line-height: 1.2;
}

.silver-description {
    font-size: 0.95rem; /* Texto descriptivo más fino */
    color: #546e7a;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.silver-highlight {
    color: #007bff;
    font-weight: 800;
    background: rgba(0, 123, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

.silver-footer-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem; /* Tag más pequeño */
    color: #78909c;
    font-weight: 600;
    background: rgba(255,255,255,0.6);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.05);
}

.silver-footer-tag i {
    color: #007bff;
    font-size: 0.9rem;
}

/* --- Animaciones (Iguales pero ajustadas) --- */
.silver-shine-fx {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
    transform: skewX(-30deg);
    z-index: 1;
    pointer-events: none;
    animation: silverShinePass 6s infinite;
}

@keyframes silverShinePass {
    0% { left: -150%; opacity: 0; }
    10% { opacity: 1; }
    30% { left: 150%; opacity: 1; }
    100% { left: 150%; opacity: 0; }
}

@keyframes silverFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); } /* Movimiento más sutil */
}

/* --- Responsive --- */
@media screen and (max-width: 600px) {
    .silver-card-body {
        padding: 1rem;
        gap: 1rem;
    }
    .accent-icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    .silver-title { font-size: 1.1rem; }
    .silver-description { font-size: 0.9rem; }
}






/* =========================================
   SECCIÓN REFERIDOS (LOYALTY CARD)
   ========================================= */

.referral__container {
    padding: 2rem 1rem;
}

.referral__card {
    /* Degradado Premium (Violeta a Azul Profundo) */
    background: linear-gradient(120deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(37, 117, 252, 0.3);
    color: #fff;
}

/* Formas decorativas de fondo */
.referral__bg-shape {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.referral__content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Izquierda más ancha */
    align-items: center;
    padding: 3rem;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* --- Columna Izquierda --- */
.referral__tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

.referral__title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff; /* Asegura blanco puro */
    font-family: 'Poppins', sans-serif;
}

.referral__description {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6;
}

/* Pasos visuales */
.referral__steps {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.step-item p {
    font-size: 0.8rem;
    font-weight: 600;
}

.step-arrow {
    font-size: 1.2rem;
    opacity: 0.5;
}

.step-item--highlight .step-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    color: #6a11cb;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
}

/* Botón Blanco */
.button--white {
    background-color: #fff;
    color: #2575fc;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    font-weight: 800;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: inline-block;
}

.button--white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    color: #6a11cb;
}

/* --- Columna Derecha (Visual) --- */
.referral__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.discount-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
}

.discount-percent {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.discount-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
    opacity: 0.9;
}

.discount-ribbon {
    position: absolute;
    bottom: 25px;
    background: #ffc107; /* Amarillo dorado */
    color: #333;
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: rotate(-5deg);
}

.referral__note {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    opacity: 0.6;
    text-align: center;
}

/* --- Responsive --- */
@media screen and (max-width: 968px) {
    .referral__content-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .referral__description { margin: 0 auto 2rem; }

    .referral__steps {
        justify-content: center;
    }

    .referral__title {
        font-size: 2rem;
    }

    .discount-badge {
        width: 180px;
        height: 180px;
        margin-top: 2rem;
    }

    .discount-percent { font-size: 3.5rem; }
}