/* =========================================================
   IMPORTACIÓN DE FUENTE
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');


/* =========================================================
   VARIABLES GLOBALES
========================================================= */

:root {
    --bg: #071018;
    --bg-secondary: #0c1724;
    --card: rgba(16, 28, 43, 0.75);
    --border: rgba(255,255,255,0.08);

    --primary: #17c964;
    --primary-dark: #0ea856;
    --secondary: #2088ff;

    --text: #f4f7fb;
    --text-secondary: #a7b4c7;

    --shadow: 0 20px 50px rgba(0,0,0,0.35);

    --radius: 22px;

    --transition: 0.3s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, #071018, #0a1623);
    color: var(--text);
    overflow-x: hidden;
}


/* =========================================================
   FONDOS GLOW
========================================================= */

body::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;

    background:
        radial-gradient(
            circle,
            rgba(32,136,255,0.12),
            transparent 70%
        );

    top: -250px;
    right: -200px;

    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;

    background:
        radial-gradient(
            circle,
            rgba(23,201,100,0.10),
            transparent 70%
        );

    bottom: -250px;
    left: -150px;

    z-index: -1;
}


/* =========================================================
   LAYOUT GENERAL
========================================================= */

.container {
    width: min(1180px, 92%);
    margin: auto;
}

section {
    padding: 90px 0;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 999;

    backdrop-filter: blur(14px);

    background: rgba(7, 16, 24, 0.82);

    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;

    color: var(--text);

    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;

    color: var(--text-secondary);

    font-weight: 500;

    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-buttons {
    display: flex;
    gap: 14px;
}


/* =========================================================
   BOTONES
========================================================= */

.btn {
    position: relative;
    overflow: hidden;

    padding: 14px 22px;

    border-radius: 14px;

    text-decoration: none;

    font-weight: 600;

    transition: var(--transition);

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn::before {
    content: '';

    position: absolute;

    width: 120%;
    height: 100%;

    background: rgba(255,255,255,0.08);

    top: 0;
    left: -130%;

    transform: skewX(-20deg);

    transition: 0.6s ease;
}

.btn:hover::before {
    left: 130%;
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #29f08a
        );

    color: #03120a;

    box-shadow:
        0 10px 25px rgba(23,201,100,0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--border);

    color: var(--text);

    background: rgba(255,255,255,0.03);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    padding: 110px 0 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);

    gap: 60px;

    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 10px 16px;

    background: rgba(23,201,100,0.12);

    border: 1px solid rgba(23,201,100,0.2);

    color: #8cf2ba;

    border-radius: 999px;

    margin-bottom: 28px;

    font-size: 0.95rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);

    line-height: 1.05;

    margin-bottom: 24px;
}

.hero p {
    color: var(--text-secondary);

    font-size: 1.15rem;

    line-height: 1.8;

    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 18px;

    flex-wrap: wrap;
}

.hero-card {
    position: relative;
    overflow: visible;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 28px;

    backdrop-filter: blur(12px);

    box-shadow: var(--shadow);

    animation:
        floating 6s ease-in-out infinite;
}

.hero-card::before {
    content: '';

    position: absolute;

    inset: -30px;

    background:
        radial-gradient(
            circle,
            rgba(23,201,100,0.16),
            transparent 70%
        );

    z-index: -1;

    filter: blur(40px);
}


/* =========================================================
   MOCKUP HERO
========================================================= */

.mockup {
    padding: 0;

    overflow: hidden;

    background: transparent;

    border: none;

    box-shadow: none;
}

.mockup img {
    width: 100%;

    display: block;

    border-radius: 22px;

    filter:
        drop-shadow(
            0 30px 60px rgba(0,0,0,0.45)
        );
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {
    text-align: center;

    margin-bottom: 70px;
}

.section-title h2 {
    font-size: clamp(2rem,4vw,3rem);

    margin-bottom: 18px;
}

.section-title p {
    color: var(--text-secondary);

    max-width: 720px;

    margin: auto;

    line-height: 1.8;
}


/* =========================================================
   FEATURES
========================================================= */

.features-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 26px;
}

.feature-card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 32px;

    transition: var(--transition);
}

.feature-card:hover {
    transform:
        translateY(-10px)
        scale(1.02);

    border-color:
        rgba(23,201,100,0.35);

    box-shadow:
        0 20px 40px rgba(0,0,0,0.25),
        0 0 30px rgba(23,201,100,0.08);
}

.feature-icon {
    width: 58px;
    height: 58px;

    border-radius: 18px;

    background: rgba(23,201,100,0.12);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;

    margin-bottom: 22px;
}

.feature-card h3 {
    margin-bottom: 16px;

    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-secondary);

    line-height: 1.7;
}


/* =========================================================
   STATS
========================================================= */

.stats {
    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 24px;
}

.stat-card {
    position: relative;
    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 34px;

    text-align: center;

    transition: 0.35s ease;
}

.stat-card::before {
    content: '';

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(23,201,100,0.06),
            rgba(32,136,255,0.04)
        );

    opacity: 0;

    transition: 0.35s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(23,201,100,0.2);
}

.stat-card h3 {
    font-size: 2.6rem;

    color: var(--primary);

    margin-bottom: 12px;
}

.stat-card p {
    color: var(--text-secondary);
}


/* =========================================================
   HOW / TESTIMONIOS
========================================================= */

.how-grid,
.testimonial-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));

    gap: 28px;
}

.how-card,
.testimonial-card {
    background: rgba(255,255,255,0.03);

    border: 1px solid var(--border);

    border-radius: 24px;

    padding: 34px;

    transition: 0.35s ease;

    position: relative;

    overflow: hidden;
}

.how-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(23,201,100,0.25);
}

.how-number {
    font-size: 3rem;

    font-weight: 800;

    color: rgba(23,201,100,0.18);

    margin-bottom: 20px;
}

.how-card h3,
.testimonial-card h4 {
    margin-bottom: 14px;
}

.how-card p,
.testimonial-card p,
.testimonial-card span {
    color: var(--text-secondary);

    line-height: 1.7;
}

.testimonial-card span {
    font-size: 0.95rem;
}


/* =========================================================
   FAQ
========================================================= */

.faq-section {
    padding-top: 40px;
}

.faq-container {
    max-width: 900px;

    margin: auto;
}

.faq-item {
    background: rgba(255,255,255,0.03);

    border: 1px solid var(--border);

    border-radius: 18px;

    margin-bottom: 18px;

    overflow: hidden;
}

.faq-question {
    width: 100%;

    background: transparent;

    border: none;

    color: white;

    text-align: left;

    padding: 24px;

    font-size: 1.05rem;

    font-weight: 600;

    cursor: pointer;
}

.faq-answer {
    max-height: 0;

    overflow: hidden;

    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 24px 24px;

    color: var(--text-secondary);

    line-height: 1.8;
}


/* =========================================================
   SHOWCASE FUNCIONES
========================================================= */

.feature-showcase {
    padding: 120px 0;
}

.showcase-grid {
    display: grid;

    grid-template-columns: 1.05fr 1.25fr;

    gap: 90px;

    align-items: center;
}

.showcase-content h2 {
    font-size: clamp(2rem,4vw,3.5rem);

    margin-bottom: 24px;

    line-height: 1.1;
}

.showcase-content p {
    color: var(--text-secondary);

    line-height: 1.9;

    margin-bottom: 30px;

    font-size: 1.08rem;
}

.showcase-badge {
    display: inline-block;

    padding: 10px 16px;

    border-radius: 999px;

    background: rgba(23,201,100,0.12);

    color: #8cf2ba;

    margin-bottom: 24px;

    font-size: 0.9rem;

    font-weight: 600;
}

.showcase-list {
    list-style: none;
}

.showcase-list li {
    margin-bottom: 16px;

    color: var(--text-secondary);
}

.showcase-image {
    position: relative;

    animation:
        floatingImage 7s ease-in-out infinite;
}

.showcase-image::before {
    content: '';

    position: absolute;

    inset: -60px;

    background:
        radial-gradient(
            circle,
            rgba(23,201,100,0.14),
            transparent 65%
        );

    z-index: -1;

    filter: blur(70px);

    opacity: 0.9;

    animation:
        pulseGlow 5s ease-in-out infinite;
}

.showcase-image img {
    width: 100%;
    max-width: 900px;

    border-radius: 28px;

    box-shadow:
        0 40px 90px rgba(0,0,0,0.45);

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.showcase-image:hover img {
    transform:
        translateY(-10px)
        scale(1.02);

    box-shadow:
        0 50px 120px rgba(0,0,0,0.55),
        0 0 50px rgba(23,201,100,0.12);
}


/* =========================================================
   CONTACTO
========================================================= */

.contact-section {
    padding: 100px 0;
}

.contact-form {
    max-width: 850px;

    margin: auto;

    background: rgba(255,255,255,0.03);

    border: 1px solid var(--border);

    padding: 40px;

    border-radius: 28px;

    backdrop-filter: blur(12px);
}

.form-grid {
    display: grid;

    grid-template-columns: repeat(2,1fr);

    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.08);

    padding: 18px;

    border-radius: 16px;

    color: white;

    margin-bottom: 20px;

    font-size: 1rem;

    outline: none;

    transition: 0.3s ease;
}

.contact-form textarea {
    min-height: 160px;

    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color:
        rgba(23,201,100,0.5);

    box-shadow:
        0 0 0 4px rgba(23,201,100,0.08);
}

.contact-form button {
    width: 100%;

    border: none;

    cursor: pointer;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    background:
        linear-gradient(
            145deg,
            rgba(23,201,100,0.12),
            rgba(32,136,255,0.10)
        );

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.cta-box {
    text-align: center;

    max-width: 760px;

    margin: auto;
}

.cta-box h2 {
    font-size: clamp(2rem,4vw,3.4rem);

    margin-bottom: 22px;
}

.cta-box p {
    color: var(--text-secondary);

    margin-bottom: 34px;

    line-height: 1.8;
}


/* =========================================================
   PRECIOS
========================================================= */

.pricing-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;
}

.pricing-card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 42px 34px;

    position: relative;
}

.pricing-card.featured {
    border:
        1px solid rgba(23,201,100,0.4);

    transform: scale(1.03);
}

.pricing-card h3 {
    margin-bottom: 12px;
}

.price {
    font-size: 3rem;

    font-weight: 800;

    margin-bottom: 10px;
}

.price span {
    font-size: 1rem;

    color: var(--text-secondary);
}

.pricing-card ul {
    list-style: none;

    margin: 28px 0;
}

.pricing-card ul li {
    margin-bottom: 14px;

    color: var(--text-secondary);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 50px 0;

    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}

.footer-content p,
.footer-content a {
    color: var(--text-secondary);

    text-decoration: none;
}


/* =========================================================
   WHATSAPP FLOAT
========================================================= */

.whatsapp-button {
    position: fixed;

    right: 22px;
    bottom: 22px;

    width: 68px;
    height: 68px;

    background:
        linear-gradient(
            145deg,
            #25d366,
            #17b455
        );

    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 1.8rem;

    z-index: 99999999;

    box-shadow:
        0 15px 30px rgba(0,0,0,0.35);

    transition: var(--transition);
}

.whatsapp-button:hover {
    transform: scale(1.08);
}


/* =========================================================
   REVEAL ANIMATIONS
========================================================= */

.feature-card,
.stat-card,
.section-title,
.how-card,
.testimonial-card,
.faq-item {
    opacity: 1;

    transform: translateY(0);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal {
    opacity: 0;

    transform: translateY(40px);
}

.reveal.active-reveal {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   HERO ENTRY ANIMATION
========================================================= */

.hero h1,
.hero p,
.hero-buttons,
.badge {
    opacity: 0;

    transform: translateY(30px);

    animation:
        fadeUp 0.9s ease forwards;
}

.hero p {
    animation-delay: 0.2s;
}

.hero-buttons {
    animation-delay: 0.4s;
}

.badge {
    animation-delay: 0.1s;
}


/* =========================================================
   KEYFRAMES
========================================================= */

@keyframes floating {

    0%{
        transform: translateY(0px);
    }

    50%{
        transform: translateY(-12px);
    }

    100%{
        transform: translateY(0px);
    }

}

@keyframes fadeUp {

    to{
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes pulseGlow {

    0%{
        transform: scale(1);
        opacity: 0.75;
    }

    50%{
        transform: scale(1.08);
        opacity: 1;
    }

    100%{
        transform: scale(1);
        opacity: 0.75;
    }

}

@keyframes floatingImage {

    0%{
        transform: translateY(0px);
    }

    50%{
        transform: translateY(-12px);
    }

    100%{
        transform: translateY(0px);
    }

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .hero-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 70px;
    }

}

@media (max-width: 900px){

    .showcase-grid{
        grid-template-columns: 1fr;
    }

    .showcase-image img{
        width: 100%;
    }
    .footer-grid{
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 768px){

    .form-grid{
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons,
    .nav-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
    .footer-grid{
        grid-template-columns: 1fr;
    }
    
    .footer-bottom{
        flex-direction: column;
        align-items: flex-start;
    }

}



/* =========================================================
   FOOTER
========================================================= */
.footer {
    padding: 90px 0 40px;

    border-top: 1px solid var(--border);

    background:
        linear-gradient(
            to top,
            rgba(255,255,255,0.02),
            transparent
        );
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1fr;

    gap: 60px;

    margin-bottom: 70px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    margin-bottom: 24px;

    font-size: 1rem;

    color: white;
}

.footer-column a {
    color: var(--text-secondary);

    text-decoration: none;

    margin-bottom: 14px;

    transition: 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);

    transform: translateX(4px);
}

.footer-description {
    color: var(--text-secondary);

    margin-top: 20px;

    line-height: 1.9;

    max-width: 320px;
}

.footer-bottom {
    border-top: 1px solid var(--border);

    padding-top: 28px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}

.footer-bottom p {
    color: var(--text-secondary);
}

.footer-bottom-links {
    display: flex;

    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-secondary);

    text-decoration: none;

    transition: 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* =========================================================
   MOBILE FIXES
========================================================= */

@media (max-width: 768px){

    body{
        overflow-x: hidden;
    }

    .showcase-image{
        overflow: hidden;
    }

    .showcase-image img{
        width: 100%;
        max-width: 100%;
    }

    .showcase-image::before{
        inset: -20px;
        filter: blur(30px);
    }

    .hero-card{
        overflow: hidden;
    }

    .mockup img{
        width: 100%;
    }

    .whatsapp-button{
        width: 58px;
        height: 58px;

        font-size: 1.5rem;

        right: 16px;
        bottom: 16px;
    }

    section{
        padding: 70px 0;
    }

}

/* =========================================================
   MOBILE FULL FIX
========================================================= */

@media (max-width: 768px){

    html,
    body{
        width: 100%;
        overflow-x: hidden;
    }

    .container{
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-grid,
    .showcase-grid,
    .stats,
    .footer-grid,
    .features-grid,
    .testimonial-grid,
    .how-grid,
    .form-grid,
    .pricing-grid{
        grid-template-columns: 1fr !important;
    }

    .hero{
        padding-top: 40px;
    }

    .hero-card{
        width: 100%;
    }

    .showcase-image{
        width: 100%;
        overflow: hidden;
    }

    .showcase-image img{
        width: 100% !important;
        max-width: 100%;
        display: block;
        margin: auto;
    }

    .mockup img{
        width: 100%;
    }

    .footer-grid{
        gap: 40px;
    }

    .whatsapp-button{
        width: 58px;
        height: 58px;

        font-size: 1.5rem;

        right: 14px;
        bottom: 14px;
    }

}

@media (max-width: 768px){

    .whatsapp-button{
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

}

