/* ========================= */
/* ROOT VARIABLES */
/* ========================= */

:root {
    --bg-main: #0f172a;
    --bg-card: #111827;
    --primary: #22d3ee;
    --primary-hover: #06b6d4;
    --text-main: #e5e7eb;
    --text-secondary: #9ca3af;
    --border: #1f2937;
}

/* ========================= */
/* GLOBAL */
/* ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 20% 30%, rgba(34,211,238,0.08), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(147,51,234,0.08), transparent 40%),
        #0f172a;
    color: var(--text-main);
    line-height: 1.6;
}


h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

/* ========================= */
/* HEADER */
/* ========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 40px;
    transition: all 0.4s ease;

    background: linear-gradient(
        145deg,
        rgba(30, 41, 59, 0.9),
        rgba(15, 23, 42, 0.9)
    );

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255,255,255,0.05);

    /* 🔥 PROFUNDIDAD 3D */
    box-shadow:
        0 8px 25px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);
}


.header.scrolled {
    height: 60px;
    background: linear-gradient(
        145deg,
        rgba(15, 23, 42, 0.95),
        rgba(10, 15, 30, 0.95)
    );

    box-shadow:
        0 10px 35px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.04);
}


.header.scrolled .logo-img {
    height: 50px;
}


.logo {
    perspective: 800px;
}

.logo-img {
    transition: transform 0.4s ease, height 0.4s ease;
     height: 70px;
    transform-style: preserve-3d;
}

.logo-img:hover {
    transform: rotateY(15deg) rotateX(5deg) scale(1.05);
}

a {
    text-decoration: none;
}



nav a {
    position: relative;
    margin-left: 25px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

nav a:hover::after {
    width: 100%;
}


nav a:hover {
    color: var(--primary);
}

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

.hero {
    padding: 100px 20px;
    text-align: center;
    color: white;
    
    background: radial-gradient(circle at 50% 30%, rgba(34,197,94,0.4), transparent 60%),
            #134e3a;
    position: relative;
    overflow: hidden;
  
}




@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* Glow elegante tipo Stripe */

.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background: url('../images/home/hero.webp') no-repeat center;
    background-size: cover;

    opacity: 0.12; /* suficiente para integrarse */
    pointer-events: none;
    z-index: 1; /* debajo del contenido */
}



.hero::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 600px;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 60%);
    top: -200px;
    left: -25%;
    transform: rotate(25deg);
    filter: blur(60px);
    opacity: 0.6;
    z-index: 0; /* debajo de la imagen */
    pointer-events: none;
}


.hero-content,
.hero-inner {
    position: relative;
    z-index: 2;
}




.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.slogan {
    
    font-weight: 600;
    margin-bottom: 15px;
}

.hero p {
   
    margin-bottom: 25px;
}



.cta-button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    background: var(--primary);
    color: #001018;
    font-weight: 600;
    border-radius: 30px;
    transition: 0.3s ease;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
    z-index: 100;
   
    
}

.cta-button:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.8);
    transform: scale(1.05);
}


.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.slogan {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.hero p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: auto;
}


.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001; /* Siempre encima del menú */
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #22d3ee;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Transform to X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

.logo-img {
    height: 90px;
    position: relative;
    top: 5px;  /* Ajuste fino visual */
}





/* ========================= */
/* CARDS */
/* ========================= */

.calculators {
    padding: 60px 8%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 20px;
    padding: 35px;
    color: white;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}


.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4f46e5, #9333ea, #06b6d4);
    opacity: 0.15;
    z-index: 0;
}

.card > * {
    position: relative;
    z-index: 2;
}

.card:hover {
    transform: translateY(-12px);
    border-color: #22c55e;
    box-shadow: 0 0 40px rgba(34,197,94,0.25);
}


.card h3 {
    
    margin: 0;
    padding: 16px 20px;
    color: #fff;
    text-align: center;
    
}

.card p {
    color: white;
    margin-bottom: 15px;
    flex-grow: 1;
    padding: 15px;
}

.card a {
    
   
    background: var(--primary);
    color: #001018;
    border-radius: 8px;
    font-weight: 600;
    margin: auto;
    bottom: none;
    display: block;
    text-align: center;
    padding: 14px;
}

.card:nth-child(1)::after {
    content: "";
    position: absolute;
    inset: 0;

    background: url('../images/home/svg/hero.svg') no-repeat center;
    background-size: cover;

    opacity: 0.12; /* suficiente para integrarse */
    pointer-events: none;
    z-index: 1; /* debajo del contenido */
}

.card:nth-child(1)::before { background: linear-gradient(135deg,#06b6d4,#3b82f6); }


.card:nth-child(2)::after {
    content: "";
    position: absolute;
    inset: 0;

    background: url('../images/home/svg/discount.svg') no-repeat center;
    background-size: cover;

    opacity: 0.12; /* suficiente para integrarse */
    pointer-events: none;
    z-index: 1; /* debajo del contenido */
}

.card:nth-child(2)::before { background: linear-gradient(135deg,#9333ea,#ec4899); }


.card:nth-child(3)::after {
    content: "";
    position: absolute;
    inset: 0;

    background: url('../images/home/svg/BMI.svg') no-repeat center;
    background-size: cover;

    opacity: 0.12; /* suficiente para integrarse */
    pointer-events: none;
    z-index: 1; /* debajo del contenido */
}

.card:nth-child(3)::before { background: linear-gradient(135deg,#10b981,#06b6d4); }

.card.premium {
    background: linear-gradient(135deg,rgba(34,197,94,0.25),rgba(16,185,129,0.2));
    
    box-shadow: 0 0 35px rgba(34,197,94,0.35);
}


.card:nth-child(4)::after {
    content: "";
    position: absolute;
    inset: 0;

    background: url('../images/home/svg/ROI.svg') no-repeat center;
    background-size: cover;

    opacity: 0.12; /* suficiente para integrarse */
    pointer-events: none;
    z-index: 1; /* debajo del contenido */
}

.card:nth-child(4)::before { background: linear-gradient(135deg,#10b981,#06b6d4); }

.card.premium {
    background: linear-gradient(135deg,rgba(34,197,94,0.25),rgba(16,185,129,0.2));
    
    box-shadow: 0 0 35px rgba(34,197,94,0.35);
}






.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}




.cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34,211,238,0.2) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
}

body:hover .cursor-glow {
    display: block;
}




/* ========================= */
/* BENEFITS */
/* ========================= */

.benefits {
    padding: 60px 8%;
    text-align: center;
}

.benefits li {
    margin: 10px 0;
    color: var(--text-secondary);
    list-style: none; 
}

/* ========================= */
/* FOOTER */
/* ========================= */

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

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;   /* 🔥 QUITA LOS PUNTOS */
    gap: 25px;          /* Espacio entre links */
    align-items: center;
}

.nav-links li {
    perspective: 400px;
}

.nav-links a:hover {
    transform: translateY(-2px);
}




/* ===== SEO ULTRALITE OPTIMIZED ===== */

.seo-ultralite {
    padding: 6rem 5%;
    background: linear-gradient(to bottom, #0f172a, #111827);
    color: #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 4rem;
    max-width: 900px;
}

.seo-block {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.seo-block:nth-child(even) {
    flex-direction: row-reverse;
}

.seo-image {
    flex: 1;
}

.seo-image img {
    width: 100%;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
}

.seo-text {
    flex: 1;
    max-width: 600px;
}

.seo-text h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.seo-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

.seo-longform {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
   
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}



/* Mobile */
@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 260px;
        background: #0f172a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    nav a {
        margin: 0;
        font-size: 1.2rem;
    }
    

}


@media(max-width: 900px){
    .seo-block{
        flex-direction: column !important;
        text-align:center;
    }

    .seo-text{
        max-width: 100%;
    }
}


