/* css/styles.css */
:root {
    --bg-light: #f8fafd;
    --card-bg: #ffffff;
    --accent-blue: #0077b6;
    --accent-hover: #00b4d8;
    --text-main: #1d2d35;
    --text-dim: #546e7a;
    --border-color: #e1e8ed;
    --white: #ffffff;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--bg-light);
    /*overflow-x: hidden;*/
    scroll-behavior: smooth;
}

body {
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* Estilos Generales de Secciones */
section {
    width: 100%;
    padding: 60px 5%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-fluid {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

h2.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text-main);
}

/* 1. BARRA ENCABEZADO */
nav {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 4%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    flex-wrap: nowrap;
    overflow: hidden;
}

.nav-logo { height: 50px; width: auto; }

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a:not(.login-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s;
}

.nav-links a:hover:after { width: 100%; }
.nav-links a:hover { color: var(--accent-blue); }

.nav-links a.login-btn {
    background: var(--accent-blue);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.15);
}

.nav-links a.login-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 119, 182, 0.25);
}

/* 2. SECCION HERO */
.hero {
    margin-bottom: 160px;
    background: linear-gradient(135deg, #003459 0%, #0077b6 100%);
    padding: 48px 6%;
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 0 0 65%;
    max-width: 900px; 
    padding-right: 40px; 
    margin: 0;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-self: center;
    flex: 0 0 35%;
}

.hero-image img {
    width: 90%; 
    max-width: 450px; 
    height: auto;
    /*border-radius: 5px;*/
    /*box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);*/
    /*mask-image: radial-gradient(circle, black 70%, rgba(0,0,0,0.4) 90%, transparent 100%);*/
    /*-webkit-mask-image: radial-gradient(circle, black 70%, rgba(0,0,0,0.4) 90%, transparent 100%);*/
    animation: floating 3s ease-in-out infinite;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero h1 span { color: #00d4ff; }

.hero .subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 50px;
    max-width: 800px;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.btn-cta {
    display: inline-block;
    background: var(--white);
    color: var(--accent-blue);
    padding: 18px 45px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 10;
}

.btn-cta:hover { background: #eef2f7; transform: translateY(-3px); }

/* 3. VENTAJAS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.benefit-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.benefit-card:hover { border-color: var(--accent-blue); transform: translateY(-5px); }
.benefit-card i { font-size: 2.5rem; color: var(--accent-blue); margin-bottom: 20px; }
.benefit-card h3 { margin-bottom: 15px; font-size: 1.5rem; }

/* 4. PASOS */
.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    margin-top: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

/* 5. TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    width: 100%;
}

.testimonial-card {
    background: #f1f5f9;
    padding: 40px;
    border-radius: 20px;
    position: relative;
}

.testimonial-card p { font-style: italic; font-size: 1.1rem; margin-bottom: 20px; }
.author { font-weight: 700; color: var(--accent-blue); }

/* 6. PLANES */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.price-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.price-card.featured {
    border: 2px solid var(--accent-blue);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.price-card h3 { font-size: 1.8rem; margin-bottom: 10px; }
.price { font-size: 3rem; font-weight: 800; margin: 20px 0; color: var(--accent-blue); }
.price span { font-size: 1rem; color: var(--text-dim); }
.price-card ul { list-style: none; padding: 0; margin: 30px 0; color: var(--text-dim); line-height: 2; }

.btn-secondary {
    display: inline-block;
    background: #eeeeee;
    color: #333333 !important;
    padding: 18px 45px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    text-align: center;
}

/* 7. FOOTER */
footer {
    background: #1d2d35;
    color: #ffffff;
    padding: 80px 4% 40px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-logo { height: 50px; filter: brightness(0) invert(1); margin-bottom: 20px; }

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 8. MEDIA QUERIES (RESPONSIVE) */

/* Tablets y Laptops pequeñas */
@media (max-width: 1100px) {
    .hero-text { flex: 0 0 60%; }
    .hero-image { flex: 0 0 40%; }
}

/* Celulares y Tablets en vertical */
@media (max-width: 768px) {
    nav { padding: 10px 4%; }
    .nav-logo { height: 35px; }
    .nav-links { gap: 10px; }
    
    /* Mantiene los links visibles pero ajustados */
    .nav-links a:not(.login-btn) {
        font-size: 0.75rem;
    }

    .nav-links a.login-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-image {
        flex: 0 0 100%;
        justify-content: center;
    }

    .hero-image img {
        max-width: 80%;
        /*mask-image: none;
        -webkit-mask-image: none;*/
    }

    .price-card.featured { transform: scale(1); }
}

@media (max-width: 480px) {
    .benefits-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .price { font-size: 2.5rem; }
    .hero h1 { font-size: 1.76rem; }
}

/* ANIMACIONES */

/* Hero - entrada al cargar */
.hero h1 {
    animation: fadeUp 0.7s ease both;
}
.hero .subtitle {
    animation: fadeUp 0.7s ease 0.15s both;
}
.btn-cta {
    animation: fadeUp 0.7s ease 0.3s both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Beneficios, Planes - fade desde abajo */
.benefit-card,
.price-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.benefit-card.visible,
.price-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pasos - pop en los números */
.step-number {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
    transform: scale(0.5);
}
.step.visible .step-number {
    opacity: 1;
    transform: scale(1);
}

/* Testimonios - entrada desde lados opuestos */
.testimonial-card:nth-child(odd) {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-card:nth-child(even) {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-card.visible {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .benefit-card, .price-card,
    .testimonial-card, .step-number {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}