/* public/lina/landing.css
   VB Lina — Landing
   v3: FAQ editorial con filas numeradas, chevron y acordeón.
*/

:root {
    --bg-0: #05060d;
    --text: #d5dbf0;
    --text-dim: #8b97b8;
    --muted: #5a6588;

    --line: rgba(120, 160, 255, 0.08);
    --line-strong: rgba(120, 160, 255, 0.18);

    --violet: #a17bff;
    --violet-soft: rgba(161, 123, 255, 0.35);
    --cyan: #5ee8b8;
    --blue: #5468c9;
    --blue-2: #7a58b5;

    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg-0);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
}

/* ============================================================
   FONDO: orbes difusos
   ============================================================ */
.orb {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb span {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
    animation: drift 22s ease-in-out infinite;
}

.orb span:nth-child(1) {
    width: 60vmin; height: 60vmin;
    left: 15%; top: 12%;
    background: radial-gradient(circle, rgba(122, 88, 181, 0.55), transparent 70%);
}
.orb span:nth-child(2) {
    width: 45vmin; height: 45vmin;
    right: 8%; top: 32%;
    background: radial-gradient(circle, rgba(84, 104, 201, 0.5), transparent 70%);
    animation-delay: -7s;
}
.orb span:nth-child(3) {
    width: 55vmin; height: 55vmin;
    left: 35%; bottom: 4%;
    background: radial-gradient(circle, rgba(0, 170, 160, 0.32), transparent 70%);
    animation-delay: -14s;
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(4%, -3%, 0) scale(1.08); }
    66%      { transform: translate3d(-3%, 4%, 0) scale(0.95); }
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(5, 6, 13, 0.55) 80%),
        linear-gradient(180deg, rgba(5, 6, 13, 0) 60%, rgba(5, 6, 13, 0.92) 100%);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px clamp(20px, 5vw, 48px);
    padding-top: calc(22px + env(safe-area-inset-top, 0));
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    letter-spacing: 0.4px;
    color: var(--text);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}
.brand:hover { color: #fff; }

.brand-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #c9b8ff, var(--violet));
    box-shadow: 0 0 14px var(--violet-soft), 0 0 30px rgba(161, 123, 255, 0.35);
    animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(0.82); opacity: 0.7; }
}

.nav-cta {
    font-size: 13.5px;
    color: var(--text-dim);
    text-decoration: none;
    padding: 9px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-full);
    background: rgba(16, 22, 44, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.25s var(--ease);
}
.nav-cta:hover {
    color: #eaf0ff;
    border-color: rgba(161, 123, 255, 0.5);
    background: rgba(30, 26, 60, 0.6);
    transform: translateY(-1px);
}

/* ============================================================
   REVEAL POR SCROLL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(7px);
    transition:
        opacity 0.9s var(--ease) var(--reveal-delay, 0s),
        transform 0.9s var(--ease) var(--reveal-delay, 0s),
        filter 0.9s var(--ease) var(--reveal-delay, 0s);
    will-change: opacity, transform, filter;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ============================================================
   HERO
   ============================================================ */
main { position: relative; z-index: 10; }

.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px clamp(20px, 6vw, 60px) 90px;
    gap: 22px;
}

.eyebrow {
    font-size: 11.5px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(161, 123, 255, 0.78);
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid rgba(161, 123, 255, 0.25);
    border-radius: var(--radius-full);
    background: rgba(161, 123, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-block;
}

.hero h1 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(56px, 11vw, 132px);
    line-height: 0.96;
    letter-spacing: -0.02em;
    color: #f2f5ff;
    text-shadow:
        0 0 40px rgba(161, 123, 255, 0.25),
        0 0 100px rgba(84, 104, 201, 0.2);
}

.hero .eyebrow  { animation: fadeUp 1s var(--ease) both; }
.hero h1        { animation: fadeUp 1.1s var(--ease) 0.1s both; }
.hero .lede     { animation: fadeUp 1.2s var(--ease) 0.25s both; }
.hero .cta-row  { animation: fadeUp 1.3s var(--ease) 0.4s both; }

.lede {
    max-width: 620px;
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.65;
    color: var(--text-dim);
}
.lede em { color: #c9b8ff; font-style: italic; }

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
    color: #f5f7ff;
    box-shadow:
        0 12px 30px rgba(84, 104, 201, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 40px rgba(84, 104, 201, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 40px rgba(161, 123, 255, 0.25);
}

.btn.ghost {
    background: rgba(16, 22, 44, 0.5);
    border-color: var(--line-strong);
    color: var(--text);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.btn.ghost:hover {
    color: #eaf0ff;
    border-color: rgba(161, 123, 255, 0.5);
    background: rgba(30, 26, 60, 0.7);
    transform: translateY(-2px);
}

.btn.large { padding: 16px 34px; font-size: 15.5px; }
.btn[hidden] { display: none; }

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    animation: floatY 2.4s ease-in-out infinite;
}
.scroll-hint svg { opacity: 0.7; }

@keyframes floatY {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 6px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ============================================================
   SR-ONLY
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px clamp(20px, 6vw, 60px) 80px;
}

.feature {
    position: relative;
    overflow: hidden;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(22, 28, 48, 0.55), rgba(10, 13, 28, 0.4));
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    transition: all 0.35s var(--ease);
}

.feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(161, 123, 255, 0.14), transparent 50%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}

.feature:hover {
    border-color: rgba(161, 123, 255, 0.25);
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.feature:hover::before { opacity: 1; }

.feature-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: #c9b8ff;
    background: linear-gradient(180deg, rgba(161, 123, 255, 0.16), rgba(161, 123, 255, 0.04));
    border: 1px solid rgba(161, 123, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.1px;
    color: #eaf0ff;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-dim);
}

/* ============================================================
   CÓMO FUNCIONA
   ============================================================ */
.how {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px clamp(20px, 6vw, 60px) 40px;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.section-head h2 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #f0f3ff;
}

.section-sub {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dim);
    max-width: 520px;
}

.layers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
}

.layer {
    position: relative;
    padding: 34px 26px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(16, 22, 44, 0.55), rgba(8, 11, 22, 0.35));
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    transition: all 0.4s var(--ease);
    overflow: hidden;
}

.layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 100%, rgba(161, 123, 255, 0.1), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.layer:hover {
    border-color: rgba(161, 123, 255, 0.28);
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 40px rgba(161, 123, 255, 0.1);
}
.layer:hover::after { opacity: 1; }

.layer-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: 'Instrument Serif', serif;
    font-size: 46px;
    line-height: 1;
    color: rgba(161, 123, 255, 0.14);
    transition: color 0.4s var(--ease), transform 0.4s var(--ease);
    pointer-events: none;
    letter-spacing: -0.03em;
}
.layer:hover .layer-num {
    color: rgba(161, 123, 255, 0.4);
    transform: translateY(-2px);
}

.layer h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 24px;
    color: #eaf0ff;
    margin-bottom: 12px;
    letter-spacing: 0.1px;
}

.layer p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-dim);
}
.layer p em { color: #c9b8ff; font-style: italic; }

/* ---------- Bajo el capó ---------- */
.under-the-hood {
    max-width: 720px;
    margin: 40px auto 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(10, 13, 28, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: border-color 0.3s var(--ease);
}
.under-the-hood[open] {
    border-color: rgba(161, 123, 255, 0.22);
}

.under-the-hood summary {
    padding: 18px 24px;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.25s var(--ease);
    font-weight: 500;
    user-select: none;
}
.under-the-hood summary::-webkit-details-marker { display: none; }
.under-the-hood summary::after {
    content: '+';
    font-size: 20px;
    line-height: 1;
    font-family: 'Instrument Serif', serif;
    color: var(--violet);
    transition: transform 0.35s var(--ease);
    transform-origin: center;
}
.under-the-hood[open] summary::after { transform: rotate(45deg); }
.under-the-hood summary:hover { color: #eaf0ff; }
.under-the-hood summary:focus-visible {
    outline: none;
    color: #eaf0ff;
    box-shadow: inset 0 0 0 1px rgba(161, 123, 255, 0.35);
    border-radius: var(--radius-md);
}

.under-the-hood ul {
    list-style: none;
    padding: 0 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeUp 0.45s var(--ease) both;
}

.under-the-hood li {
    font-size: 14px;
    color: var(--text-dim);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}
.under-the-hood li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(161, 123, 255, 0.6);
    box-shadow: 0 0 10px rgba(161, 123, 255, 0.4);
}
.under-the-hood li em {
    color: #c9b8ff;
    font-style: normal;
    font-weight: 500;
}

/* ============================================================
   FAQ — editorial, filas numeradas
   ============================================================ */
.faq {
    max-width: 760px;
    margin: 0 auto;
    padding: 70px clamp(20px, 6vw, 60px) 60px;
}

.faq .section-head {
    margin-bottom: 48px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
    transition: border-color 0.35s var(--ease);
}

.faq-item[open] {
    border-bottom-color: rgba(161, 123, 255, 0.22);
}

/* --- summary --- */
.faq-item > summary {
    list-style: none;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 24px 4px;
    cursor: pointer;
    user-select: none;
    color: #eaf0ff;
    transition: color 0.25s var(--ease);
}

/* Matar el marker nativo en TODOS los motores */
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ''; display: none; }

.faq-item > summary:focus-visible {
    outline: none;
}
.faq-item > summary:focus-visible .faq-q {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(161, 123, 255, 0.6);
    text-decoration-thickness: 1px;
}

/* --- número --- */
.faq-num {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1;
    color: rgba(161, 123, 255, 0.45);
    letter-spacing: 0.04em;
    transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.faq-item:hover .faq-num {
    color: rgba(161, 123, 255, 0.8);
}
.faq-item[open] .faq-num {
    color: var(--violet);
    transform: translateX(-1px);
}

/* --- pregunta --- */
.faq-q {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(17px, 1.9vw, 21px);
    line-height: 1.35;
    letter-spacing: 0.1px;
    color: #eaf0ff;
    transition: color 0.25s var(--ease);
}
.faq-item:hover .faq-q {
    color: #ffffff;
}

/* --- icono chevron --- */
.faq-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--text-dim);
    flex-shrink: 0;
    transition:
        transform 0.4s var(--ease),
        background 0.3s var(--ease),
        border-color 0.3s var(--ease),
        color 0.3s var(--ease);
}
.faq-item:hover .faq-icon {
    border-color: rgba(161, 123, 255, 0.4);
    color: #c9b8ff;
}
.faq-item[open] .faq-icon {
    background: rgba(161, 123, 255, 0.12);
    border-color: rgba(161, 123, 255, 0.55);
    color: #c9b8ff;
    transform: rotate(180deg);
}

/* --- respuesta: animación con grid-template-rows --- */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease);
}
.faq-item[open] .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-inner p {
    padding: 0 4px 26px 50px;   /* alinea con el texto de la pregunta */
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 60ch;
    animation: faqFade 0.5s var(--ease) both;
}

@keyframes faqFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CIERRE
   ============================================================ */
.closing {
    text-align: center;
    padding: 80px 24px 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.closing-line {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(22px, 3.2vw, 34px);
    line-height: 1.5;
    color: #c9d2ea;
    max-width: 620px;
}
.closing-line em { color: #c9b8ff; font-style: italic; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 24px 20px calc(28px + env(safe-area-inset-bottom, 0));
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}
footer .dot { opacity: 0.4; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 800px) {
    .layers { grid-template-columns: 1fr; }
    .layer-num { font-size: 38px; }
}

@media (max-width: 560px) {
    .nav {
        padding: 16px 18px;
        padding-top: calc(16px + env(safe-area-inset-top, 0));
    }
    .hero { padding-bottom: 90px; }
    .lede br { display: none; }
    .cta-row .btn { padding: 13px 22px; font-size: 14px; }
    .features { padding-bottom: 40px; }
    .how { padding-top: 40px; }
    .closing { padding-bottom: 70px; }
    .under-the-hood summary { padding: 16px 18px; font-size: 11.5px; }
    .under-the-hood ul { padding: 0 18px 18px; }

    .faq { padding-top: 50px; padding-bottom: 50px; }

    .faq-item > summary {
        grid-template-columns: 22px 1fr auto;
        gap: 12px;
        padding: 20px 2px;
    }
    .faq-num { font-size: 13px; }
    .faq-q { font-size: 16.5px; }
    .faq-icon { width: 30px; height: 30px; }

    .faq-answer-inner p {
        padding: 0 2px 22px 36px;
        font-size: 14.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .orb span { animation: none; }
    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
