/*
Yamba – Landing minimalista
  - Un solo HTML y una sola hoja de estilos
  - Diseño moderno, humano y claro
*/

/* ====== Reset y tokens ====== */
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial,
        sans-serif;
    color: #0b1220;
    background: #0b1120; /* slate-950 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --bg: #0b1120; /* fondo principal oscuro */
    --card: #0f172a; /* surface */
    --muted: #94a3b8; /* texto secundario */
    --text: #e2e8f0; /* texto principal */
    --brand: #0ea5e9; /* sky-500 */
    --brand-600: #0284c7; /* sky-600 */
    --ring: 0 0 0 3px rgba(14, 165, 233, 0.25);
    --container: 1120px;
}

/* ====== Utilitarios ====== */
.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

.section {
    padding: 96px 0;
    position: relative;
}
h1,
h2,
h3 {
    color: var(--text);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
p {
    color: var(--muted);
    margin: 0 0 16px;
}

/* ====== Header sticky ====== */
.site-header {
    position: sticky;
    top: 0;
    inset-inline: 0;
    z-index: 50;
    background: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header.scrolled {
    background: rgba(11, 17, 32, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-family: 'Ubuntu', 'DM Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Cantarell,
        'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    letter-spacing: -0.01em;
    text-decoration: none;
    color: #e2e8f0;
}
.site-header .logo {
    line-height: 1;
}

.nav {
    display: block;
}
.nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}
.nav-link:hover {
    color: #fff;
}
.nav-cta {
    color: #0b1120;
    background: #e2e8f0;
    padding: 10px 16px;
    border-radius: 999px;
}
.nav-cta:hover {
    background: #fff;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: #e2e8f0;
    margin: 8px 6px;
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ====== Hero ====== */
.hero {
    padding-top: 100px;
    padding-bottom: 80px;
    overflow: clip;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-glow {
    position: absolute;
    inset: -30% -20% auto -20%;
    height: 600px;
    background:
        radial-gradient(50% 50% at 30% 50%, rgba(14, 165, 233, 0.18) 0%, transparent 70%),
        radial-gradient(40% 40% at 70% 30%, rgba(167, 139, 250, 0.12) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}
.hero-copy {
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero h1 em {
    display: block;
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(90deg, #38bdf8 20%, #a78bfa 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: var(--muted);
    max-width: 48ch;
    margin-bottom: 32px;
}
.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.hero-soon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.12);
    padding: 8px 14px;
    border-radius: 100px;
}
.hero-soon::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #a78bfa;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
.hero-stores {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-stores img {
    height: 48px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero-stores img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-phone {
    position: relative;
    z-index: 1;
}
.hero-phone::before {
    content: '';
    position: absolute;
    inset: 10% -20% -10% -20%;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
    filter: blur(30px);
    z-index: -1;
}
.hero-phone img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.4));
}

/* ====== Section headers ====== */
.section-header {
    margin-bottom: 56px;
}
.section-header--center {
    text-align: center;
}
.section-intro {
    color: var(--brand);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
}
.section-header h2 em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: #a5b4fc;
}

/* ====== Cómo funciona (Journey) ====== */
.how {
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.06), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.journey {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    position: relative;
}
.journey::before {
    content: '';
    position: absolute;
    left: 47px;
    top: 48px;
    bottom: 48px;
    width: 1px;
    background: linear-gradient(180deg, var(--brand) 0%, #a78bfa 100%);
    opacity: 0.25;
}
.journey-step {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 24px;
    padding: 32px 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--delay) * 0.12s);
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.journey-step:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.journey-number {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand), #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}
.journey-content {
    padding-top: 8px;
}
.journey-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.journey-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
    max-width: 48ch;
}

/* ====== Beneficios (Duo layout) ====== */
.benefits {
    background: transparent;
    overflow: hidden;
}
.benefits-duo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
}
.benefit-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 36px 32px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4);
}
.benefit-card--client {
    border-top-color: rgba(56, 189, 248, 0.3);
}
.benefit-card--pro {
    border-top-color: rgba(167, 139, 250, 0.3);
}
.benefit-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 28px;
}
.benefit-card--client .benefit-label {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}
.benefit-card--pro .benefit-label {
    background: rgba(167, 139, 250, 0.12);
    color: #c4b5fd;
}
.benefit-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.benefit-items li {
    position: relative;
    padding-left: 16px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease;
}
.benefit-card--client .benefit-items li:hover {
    border-left-color: var(--brand);
}
.benefit-card--pro .benefit-items li:hover {
    border-left-color: #a78bfa;
}
.benefit-items li strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.benefit-items li p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}

/* Bridge element */
.benefits-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
}
.benefits-bridge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.bridge-text {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--muted);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

/* ====== Testimonios (Voices) ====== */
.testimonials {
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.05), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.voices {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 24px;
    align-items: start;
}
.voice {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
    margin: 0;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.voice:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, 0.25);
}
.voice--featured {
    grid-row: span 2;
    padding: 36px;
    background: linear-gradient(145deg, var(--card) 0%, rgba(167, 139, 250, 0.06) 100%);
    border-color: rgba(167, 139, 250, 0.15);
}
.voice blockquote {
    margin: 0 0 24px;
}
.voice blockquote p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 12px;
}
.voice blockquote p:last-child {
    margin-bottom: 0;
}
.voice blockquote strong {
    color: var(--text);
    font-weight: 500;
}
.voice--featured blockquote p {
    font-size: 1.1rem;
}
.voice figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.voice-initial {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(167, 139, 250, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.voice-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.voice-meta cite {
    font-style: normal;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.voice-meta span {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ====== CTA ====== */
.cta {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(50% 80% at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 60%);
    pointer-events: none;
}
.cta-content {
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.cta-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
}
.cta h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
}
.cta h2 em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: #a5b4fc;
}
.cta-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 32px;
}
.cta-stores {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.cta-stores img {
    height: 52px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.cta-stores img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ====== Footer ====== */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(11, 17, 32, 0.6);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
    gap: 24px;
    padding: 48px 0 16px;
}
.foot-brand p {
    margin-top: 6px;
}
.foot-links h3,
.foot-contact h3 {
    color: #e2e8f0;
    font-size: 1rem;
    margin-bottom: 10px;
}
.foot-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.foot-links a {
    color: #cbd5e1;
    text-decoration: none;
}
.foot-links a:hover {
    color: #fff;
    text-decoration: underline;
}
.foot-contact a {
    color: #e2e8f0;
    text-decoration: none;
}
.foot-contact a:hover {
    text-decoration: underline;
}
.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 0 28px;
    text-align: center;
}
.foot-bottom p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
}

/* ====== Interacciones ====== */
:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 10px;
}

/* ====== Páginas Legales ====== */
.legal-content {
    max-width: 80ch;
}
.legal-content h2 {
    margin-bottom: 8px;
}
.legal-content h3 {
    margin-top: 22px;
}
.legal-content h4 {
    color: var(--text);
    margin: 12px 0 6px;
    font-weight: 600;
}
.legal-content p {
    color: var(--muted);
}
.legal-content ul,
.legal-content ol {
    color: var(--muted);
    padding-left: 1.25rem;
}
.legal-content li {
    margin-bottom: 8px;
}
.legal-content a {
    color: #cbd5e1;
    text-decoration: none;
}
.legal-content a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ====== Responsivo ====== */
@media (max-width: 1024px) {
    /* Hero responsive */
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero-copy {
        order: 1;
    }
    .hero-visual {
        order: 2;
    }
    .hero-cta {
        align-items: center;
    }
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    /* Benefits responsive */
    .benefits-duo {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .benefits-bridge {
        padding: 8px 0;
    }
    .bridge-text {
        writing-mode: horizontal-tb;
    }
    .benefits-bridge::before {
        width: 120px;
        height: 40px;
        border-radius: 20px;
    }
    /* Testimonials responsive */
    .voices {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .voice--featured {
        grid-row: auto;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .nav {
        position: fixed;
        inset: 64px 0 auto 0;
        background: rgba(11, 17, 32, 0.94);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }
    .nav-link,
    .nav-cta {
        display: block;
        padding: 12px 10px;
        border-radius: 10px;
    }
    .nav-toggle {
        display: inline-block;
    }
    .nav-open #nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    /* Hero mobile */
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-phone img {
        max-width: 300px;
    }
    .hero-stores {
        justify-content: center;
    }
    .hero-stores img {
        height: 44px;
    }
    /* Journey mobile */
    .journey::before {
        display: none;
    }
    .journey-step {
        grid-template-columns: 60px 1fr;
        gap: 16px;
        padding: 24px 0;
    }
    .journey-number {
        font-size: 2.5rem;
    }
    /* Benefits mobile */
    .benefit-card {
        padding: 28px 24px;
    }
    /* Voices mobile */
    .voice {
        padding: 24px;
    }
    .voice--featured {
        padding: 28px;
    }
    /* CTA mobile */
    .cta-stores img {
        height: 48px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
