/* ── VARIABLES ── */
:root {
    --brand:    #0f766e;
    --brand-dk: #0d5f57;
    --accent:   #14b8a6;
    --text:     #0f172a;
    --muted:    #475569;
    --line:     #e2e8f0;
    --bg:       #f8fafc;
    --surface:  #ffffff;
}

/* ── BASE ── */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* ── NAV ── */
.avyr-nav {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255,255,255,0.93);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.avyr-nav .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--brand) !important;
    letter-spacing: .06em;
}
.nav-logo {
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
}
.nav-cta {
    background: var(--brand) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600;
    padding: 8px 20px !important;
    transition: background .2s !important;
}
.nav-cta:hover { background: var(--brand-dk) !important; }

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 40%, #e0f2fe 100%);
    padding: 110px 0 100px;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    background: #d1fae5; color: var(--brand);
    font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 16px; border-radius: 999px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800; line-height: 1.15;
}
.hero h1 span { color: var(--brand); }
.hero .lead { color: var(--muted); max-width: 620px; margin: 0 auto 40px; }

.btn-brand {
    background: var(--brand); color: #fff;
    padding: 14px 32px; border-radius: 10px;
    font-size: 1rem; font-weight: 700;
    box-shadow: 0 4px 18px rgba(15,118,110,.35);
    transition: background .2s, transform .15s;
    display: inline-block;
}
.btn-brand:hover {
    background: var(--brand-dk);
    color: #fff;
    transform: translateY(-2px);
}
.btn-outline-brand {
    border: 2px solid var(--brand); color: var(--brand);
    padding: 12px 28px; border-radius: 10px;
    font-size: 1rem; font-weight: 600;
    transition: background .2s;
    display: inline-block;
}
.btn-outline-brand:hover { background: #f0fdfa; color: var(--brand); }

/* ── SECTION BASE ── */
.section-label {
    display: block; text-align: center;
    font-size: .72rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 10px;
}
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800; margin-bottom: 14px;
}
.section-sub {
    text-align: center; color: var(--muted);
    max-width: 580px; margin: 0 auto 56px;
    font-size: 1.05rem;
}

/* ── PROBLEMAS ── */
.problem-card {
    border: 1.5px solid var(--line);
    border-radius: 14px; padding: 28px 24px;
    background: #fff; height: 100%;
    transition: box-shadow .25s, border-color .25s;
}
.problem-card:hover {
    box-shadow: 0 8px 28px rgba(15,23,42,.09);
    border-color: var(--accent);
}
.problem-card .emoji { font-size: 2.2rem; margin-bottom: 12px; }
.problem-card p { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ── SOLUCIÓN ── */
.solution-section { background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%); }
.pillar {
    background: #fff; border-radius: 16px; padding: 36px 28px; height: 100%;
    box-shadow: 0 4px 20px rgba(15,23,42,.06);
    border-top: 4px solid var(--brand);
}
.pillar .icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: #d1fae5;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 18px;
}
.pillar h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.pillar p  { color: var(--muted); font-size: .93rem; }

/* ── CARACTERÍSTICAS ── */
.feature-card {
    border: 1.5px solid var(--line); border-radius: 14px; padding: 28px 22px;
    text-align: center; height: 100%;
    transition: box-shadow .25s;
}
.feature-card:hover { box-shadow: 0 6px 24px rgba(15,23,42,.09); }
.feature-card .icon-wrap {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto 16px;
}
.feature-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { color: var(--muted); font-size: .88rem; }

/* ── BENEFICIOS ── */
.benefits-section { background: var(--brand); color: #fff; }
.benefits-section .section-label { color: #5eead4; }
.benefits-section .section-title { color: #fff; }
.benefits-section .section-sub   { color: #99f6e4; }
.benefit-item { text-align: center; }
.benefit-item .number {
    font-size: 3rem; font-weight: 900; color: #5eead4;
    line-height: 1; margin-bottom: 8px;
}
.benefit-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.benefit-item p  { font-size: .9rem; color: #99f6e4; }

/* ── CTA FINAL ── */
.cta-final {
    background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
    text-align: center;
}
.cta-final h2   { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; }
.cta-final .lead { color: var(--muted); max-width: 500px; margin: 0 auto; }

/* ── FOOTER ── */
.avyr-footer {
    background: var(--text); color: #94a3b8;
    text-align: center; padding: 32px 5%;
    font-size: .85rem;
}
.avyr-footer strong { color: #fff; }

/* ── ANIMACIONES AL SCROLL ── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(.92);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* delay helpers */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
