/* ======================================
   VARIABLES
====================================== */
:root {
    /* Colores base */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;

    /* Colores primarios - sky */
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;

    /* Colores secundarios - blue */
    --blue-400: #4299e1;
    --blue-500: #3182ce;
    --blue-600: #2b6cb0;
    --blue-700: #2c5282;

    /* Colores terciarios - purple */
    --purple-400: #9f7aea;
    --purple-500: #805ad5;

    /* Colores semánticos */
    --text-primary: var(--gray-50);
    --text-secondary: var(--gray-200);
    --text-muted: var(--gray-300);

    /* Colores de fondo */
    --background: var(--gray-800);
    --background-darker: var(--gray-900);
    --surface: var(--gray-800);

    /* Colores de acento */
    --primary: var(--sky-500);
    --primary-light: var(--sky-400);
    --primary-dark: var(--sky-600);
    --secondary: var(--blue-500);
    --secondary-light: var(--blue-400);
    --tertiary: var(--purple-500);

    /* Sombras y bordes */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.25);
    --border-color: rgba(56, 189, 248, 0.1);
    --divider-color: rgba(255, 255, 255, 0.1);

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--sky-500), var(--blue-700));
    --gradient-card: linear-gradient(145deg, var(--gray-800), #1a2234);
    --gradient-step-icon: linear-gradient(135deg, var(--sky-500), var(--sky-600));
    --gradient-benefit-icon: linear-gradient(135deg, var(--sky-400), var(--sky-500));
    --gradient-step-line: linear-gradient(90deg, var(--sky-500), var(--sky-400));
    --gradient-benefit-line: linear-gradient(90deg, var(--blue-500), var(--blue-400));
    --gradient-text-underline: linear-gradient(90deg, var(--sky-400), transparent);

    /* Radiales */
    --radial-primary: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0) 70%);
    --radial-secondary: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, rgba(56, 189, 248, 0) 70%);
    --radial-tertiary: radial-gradient(circle, rgba(128, 90, 213, 0.1) 0%, rgba(128, 90, 213, 0) 70%);
}

/* ======================================
   RESET Y ESTILOS GENERALES
====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--background);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-primary);
}

/* ======================================
   COMPONENTES REUTILIZABLES
====================================== */
/* Card Base - Estilo reutilizable para todas las cards */
.card-base {
    background: var(--gradient-card);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.card-base::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    transform: scaleX(1);
    transform-origin: left;
}

/* Botones */
.btn-acceso {
    background-color: var(--primary);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-web {
    background-color: var(--text-primary);
    color: var(--primary);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-web:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-store {
    display: inline-block;
    margin: 10px 15px;
    transition: all 0.3s ease;
    position: relative;
}

.btn-store:active {
    transform: translateY(1px);
}

.btn-store img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-buttons,
.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* ======================================
   HEADER
====================================== */
header {
    background-color: var(--background-darker);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:not(.btn-acceso):hover {
    color: var(--primary-light);
}

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

.hero {
    padding-top: 150px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: left;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-height: 600px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* ======================================
   HOW IT WORKS SECTION
====================================== */
.how-it-works {
    background-color: var(--background-darker);
    position: relative;
    overflow: hidden;
}

.how-it-works::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--radial-primary);
    bottom: -150px;
    right: -150px;
    border-radius: 50%;
    z-index: 1;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.step {
    padding: 30px;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
}

.step::before {
    background: var(--gradient-step-line);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-step-icon);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    transition: transform 0.3s ease;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ======================================
   BENEFITS SECTION
====================================== */
.benefits {
    background-color: var(--surface);
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--radial-secondary);
    top: -200px;
    left: -200px;
    border-radius: 50%;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.benefit {
    padding: 35px 30px;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
}

.benefit::before {
    background: var(--gradient-benefit-line);
}

.benefit i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-benefit-icon);
    background-clip: text;
    color: transparent; /* Reemplaza -webkit-text-fill-color */
    display: inline-block;
    transition: transform 0.3s ease;
}

.benefit h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.benefit h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: var(--gradient-text-underline);
    transition: width 0.3s ease;
}

.benefit p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ======================================
   TESTIMONIALS SECTION
====================================== */
.testimonials {
    background-color: var(--background-darker);
    position: relative;
    overflow: hidden;
}

.testimonials::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--radial-tertiary);
    top: -150px;
    right: -150px;
    border-radius: 50%;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial {
    min-width: 300px;
    padding: 30px;
    scroll-snap-align: start;
    background: var(--gradient-card);
    border-left: 4px solid var(--tertiary);
    opacity: 1;
    transform: translateY(0);
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    margin-right: 10px;
}

.testimonial p {
    font-style: italic;
    color: var(--gray-100);
    margin-bottom: 20px;
    position: relative;
}

.testimonial p::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -30px;
    left: -10px;
    color: rgba(128, 90, 213, 0.2);
    font-family: serif;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author p {
    margin-bottom: 0;
    font-style: normal;
    color: var(--text-muted);
}

.testimonial-author strong {
    color: var(--text-primary);
}

/* ======================================
   DOWNLOAD SECTION
====================================== */
.download {
    text-align: center;
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.download h2,
.download p {
    color: var(--text-primary);
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.web-access {
    margin-top: 40px;
}

/* ======================================
   TERMS AND CONDITIONS SECTION
====================================== */
.terms-conditions {
    padding-top: 120px; /* Ajusta según la altura de tu header */
    padding-bottom: 80px;
    background-color: var(--background-darker);
    color: var(--text-primary);
}

.terms-conditions h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-light);
}

.terms-conditions h3 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary);
}

.terms-conditions h4 {
    font-size: 1.4rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--sky-400);
}

.terms-conditions p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-muted);
}

.terms-conditions ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.terms-conditions ul li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* ======================================
   FOOTER
====================================== */
footer {
    background-color: var(--background-darker);
    color: var(--text-primary);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: left;
    color: var(--text-primary);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--divider-color);
}

/* ======================================
   RESPONSIVE STYLES
====================================== */
/* Eliminar las animaciones para las cards */
.step,
.benefit,
.testimonial {
    opacity: 1;
    transform: translateY(0);
}

/* Pantallas grandes */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero-content h2 {
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }
}

/* Tablets */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 10px 15px;
    }

    h2 {
        font-size: 2rem;
    }

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

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .steps,
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .step,
    .benefit {
        padding: 25px 20px;
    }

    .testimonial {
        min-width: 260px;
    }

    .btn-store {
        margin: 8px;
    }

    .btn-store img {
        height: 50px;
    }
}

/* Móviles */
@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .testimonial {
        min-width: 250px;
    }

    .hero-content h2 {
        margin-top: 100px;
    }
}

/* ======================================
   HAMBURGER BUTTON
====================================== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animación del hamburger cuando está activo */
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ======================================
   HEADER SCROLL BEHAVIOR (Mobile)
====================================== */
/* Solo aplicar en móviles */
@media (max-width: 768px) {
    header {
        transition: all 0.3s ease;
    }

    /* Estado normal del header en móviles */
    header .container {
        flex-direction: column;
        padding: 20px 15px;
        position: relative;
    }

    /* Ocultar hamburger por defecto */
    .hamburger-btn {
        display: none;
    }

    /* Estado cuando se hace scroll */
    .header-scrolled {
        padding: 0;
    }

    .header-scrolled .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
    }

    .header-scrolled .hamburger-btn {
        display: flex;
    }

    .header-scrolled nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background-darker);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .header-scrolled nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header-scrolled nav ul {
        flex-direction: column;
        padding: 20px 0;
        margin: 0;
    }

    .header-scrolled nav ul li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--divider-color);
    }

    .header-scrolled nav ul li:last-child {
        border-bottom: none;
    }

    .header-scrolled .logo h1 {
        font-size: 1.4rem;
        margin: 0;
    }
}

/* ======================================
   PRÓXIMAMENTE BADGE
====================================== */
.btn-proximamente {
    position: relative;
    cursor: default;
    opacity: 0.9;
}

.badge-proximamente {
    display: inline-block;
    background-color: var(--tertiary);
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* Modificar el comportamiento del hover para los botones "próximamente" */
.btn-acceso.btn-proximamente:hover {
    background-color: var(--primary);
    transform: none;
    cursor: default;
}

.btn-web.btn-proximamente:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: default;
}
