/* ══════════════════════════════════════════════
   TuHora Landing Page – styles.css
   Dark mode premium, gradients, animations
══════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0f1e;
    --bg2: #111827;
    --surface: #1e293b;
    --border: #1e3a5f;
    --text: #f1f5f9;
    --subtext: #94a3b8;
    --green: #22c55e;
    --green-dark: #16a34a;
    --blue: #3b82f6;
    --yellow: #f59e0b;
    --red: #ef4444;
    --grad: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --grad-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f2a1a 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.1rem 0;
    transition: background .3s, box-shadow .3s;
}

.navbar.scrolled {
    background: rgba(10, 15, 30, .92);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -.04em;
}

.logo-tu {
    color: #1e3a5f;
    text-shadow: 0 0 20px rgba(30, 58, 95, .8);
}

.logo-hora {
    color: var(--green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--subtext);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--grad) !important;
    color: #0a0f1e !important;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    font-size: .82rem !important;
    transition: opacity .2s, transform .2s !important;
}

.nav-cta:hover {
    opacity: .88;
    transform: translateY(-1px);
}

@media(max-width:680px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s, opacity .18s, box-shadow .18s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: .85rem 1.8rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--grad);
    color: #0a0f1e;
    box-shadow: 0 4px 24px rgba(34, 197, 94, .3);
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(34, 197, 94, .5);
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, .15);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--green);
    color: var(--green);
}

.btn-wa {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .3);
}

.btn-wa:hover {
    box-shadow: 0 8px 32px rgba(37, 211, 102, .5);
}

/* ── GRADIENT TEXT ───────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #22c55e, #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── SECTION LABELS ──────────────────────────────── */
.section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green);
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .25);
    padding: .25rem .75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
}

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.animate-fade-up {
    animation: fadeUp .7s ease both;
}

.animate-fade-left {
    animation: fadeLeft .8s ease both;
}

.animate-float {
    animation: floatAnim 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 4s ease-in-out infinite .8s;
}

.delay-1 {
    animation-delay: .1s;
}

.delay-2 {
    animation-delay: .22s;
}

.delay-3 {
    animation-delay: .34s;
}

.delay-4 {
    animation-delay: .46s;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══ HERO ════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    background: var(--grad-hero);
    padding-top: 90px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(34, 197, 94, .12) 0%, transparent 70%);
    top: -100px;
    left: -200px;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 1.5rem 5rem;
}

@media(max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem 4rem;
    }

    .hero-img {
        order: -1;
    }
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .3);
    color: var(--green);
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .9rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.13;
    letter-spacing: -.04em;
    margin-bottom: 1.2rem;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--subtext);
    line-height: 1.7;
    margin-bottom: 1.8rem;
    max-width: 480px;
}

.hero-sub strong {
    color: var(--text);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 1.3rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--green);
}

.stat-label {
    display: block;
    font-size: .72rem;
    color: var(--subtext);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, .1);
}

/* Hero image */
.hero-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, .15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-img img {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    position: relative;
    z-index: 1;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .7rem;
    background: rgba(15, 23, 42, .9);
    border: 1px solid rgba(34, 197, 94, .2);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: .65rem 1rem;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

.card-confirmed {
    bottom: 30px;
    left: -30px;
}

.card-new {
    top: 40px;
    right: -20px;
}

.card-icon {
    font-size: 1.4rem;
}

.card-title {
    font-size: .78rem;
    font-weight: 700;
}

.card-sub {
    font-size: .68rem;
    color: var(--subtext);
}

@media(max-width:768px) {
    .card-confirmed {
        left: 10px;
        bottom: 10px;
    }

    .card-new {
        right: 10px;
        top: 10px;
    }
}

/* Wave */
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}

.wave-bottom svg {
    display: block;
    width: 100%;
}

/* ══ PROBLEMA ════════════════════════════════════ */
.problem-section {
    background: #111827;
    padding: 5rem 0 4rem;
    text-align: center;
}

.problem-section .section-title {
    margin-bottom: 2.5rem;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.problem-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.2rem;
    transition: transform .2s, border-color .2s;
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 68, 68, .4);
}

.problem-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: .75rem;
}

.problem-card p {
    color: var(--subtext);
    font-size: .9rem;
    line-height: 1.6;
}

.problem-cta {
    background: linear-gradient(135deg, rgba(34, 197, 94, .08), rgba(34, 197, 94, .02));
    border: 1px solid rgba(34, 197, 94, .2);
    border-radius: 14px;
    padding: 1.2rem;
}

.problem-cta-text {
    font-size: 1rem;
    color: var(--subtext);
}

.problem-cta-text strong {
    color: var(--green);
}

/* ══ CÓMO FUNCIONA ═══════════════════════════════ */
.how-section {
    background: var(--bg);
    padding: 5.5rem 0;
    text-align: center;
}

.how-section .section-title {
    margin-bottom: 3rem;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(34, 197, 94, .1);
    border-color: rgba(34, 197, 94, .3);
}

.step-num {
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
    color: var(--green);
    margin-bottom: .5rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    display: block;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.step-card p {
    font-size: .85rem;
    color: var(--subtext);
    line-height: 1.6;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--border);
    align-self: center;
    padding: 0 .3rem;
    flex-shrink: 0;
}

@media(max-width:760px) {
    .step-arrow {
        display: none;
    }
}

/* ══ FEATURES ════════════════════════════════════ */
.features-section {
    background: #111827;
    padding: 5.5rem 0;
    text-align: center;
}

.features-section .section-title {
    margin-bottom: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.8rem 1.5rem;
    text-align: left;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 197, 94, .3);
    box-shadow: 0 16px 40px rgba(34, 197, 94, .08);
}

.feature-icon-wrap {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.feature-card p {
    font-size: .84rem;
    color: var(--subtext);
    line-height: 1.6;
}

/* ══ TESTIMONIOS ═════════════════════════════════ */
.testimonials-section {
    background: var(--bg);
    padding: 5.5rem 0;
    text-align: center;
}

.testimonials-section .section-title {
    margin-bottom: 2.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.testi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.8rem 1.5rem;
    text-align: left;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}

.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}

.testi-card.featured {
    border-color: rgba(34, 197, 94, .35);
    box-shadow: 0 0 40px rgba(34, 197, 94, .08);
}

.testi-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #0a0f1e;
    font-size: .68rem;
    font-weight: 800;
    padding: .2rem .8rem;
    border-radius: 999px;
    white-space: nowrap;
}

.testi-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: .75rem;
    letter-spacing: .05em;
}

.testi-text {
    font-size: .88rem;
    color: var(--subtext);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.testi-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #0a0f1e;
    font-weight: 900;
    font-size: .88rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testi-name {
    font-size: .85rem;
    font-weight: 700;
}

.testi-role {
    font-size: .72rem;
    color: var(--subtext);
}

/* Numbers bar */
.numbers-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.8rem 2rem;
}

.number-item {
    text-align: center;
}

.number-val {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--green);
}

.number-label {
    display: block;
    font-size: .76rem;
    color: var(--subtext);
}

.number-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

@media(max-width:600px) {
    .number-divider {
        display: none;
    }
}

/* ══ DEMO ════════════════════════════════════════ */
.demo-section {
    background: linear-gradient(135deg, #0a0f1e 0%, #0d2a1a 50%, #0a0f1e 100%);
    padding: 5.5rem 0;
    position: relative;
    overflow: hidden;
}

.demo-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, .1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.demo-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media(max-width:768px) {
    .demo-inner {
        grid-template-columns: 1fr;
    }
}

.demo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.demo-list li {
    color: var(--subtext);
    font-size: .9rem;
}

.demo-list li::marker {
    color: var(--green);
}

.demo-form-wrap {}

.demo-form {
    background: rgba(30, 41, 59, .7);
    border: 1px solid rgba(34, 197, 94, .2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.demo-form h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: .3rem;
}

.demo-contact-line {
    margin-top: 1rem;
    text-align: center;
}

/* ══ FOOTER ══════════════════════════════════════ */
.footer {
    background: #070c18;
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    font-size: .82rem;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-email {
    color: var(--green);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
}

.footer-email:hover {
    text-decoration: underline;
}