/* Landing de demos.vezz.ws — lookbook editorial.
   Fondo claro (papel cálido), tinta violeta propia de vezz, y cada tarjeta
   con la franja del color REAL de su demo → la grilla es un muestrario del
   rango del estudio. Deliberadamente NO es dark-mode genérico. */

:root {
    --papel:   #f4f1ea;   /* fondo, papel cálido (ni blanco ni crema-terracota) */
    --tarjeta: #fbfaf6;   /* tarjetas, casi blanco cálido */
    --tinta:   #1b1a26;   /* texto principal, casi-negro con tinte violeta */
    --tenue:   #6a6676;   /* texto secundario (accesible sobre papel y tarjeta) */
    --vezz:    #5b46e0;   /* violeta de marca — evoluciona el logo actual */
    --vezz-2:  #7a5bff;
    --linea:   #e5e1d6;   /* hairlines cálidas */

    --display: 'Instrument Serif', Georgia, serif;
    --texto:   'Manrope', system-ui, sans-serif;
    --datos:   'JetBrains Mono', ui-monospace, monospace;

    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--texto);
    color: var(--tinta);
    background: var(--papel);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0; }

.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
:focus-visible { outline: 3px solid var(--vezz); outline-offset: 3px; }

.saltar { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--tinta); color: var(--papel); padding: .8rem 1.2rem; }
.saltar:focus { left: 0; }

.mono { font-family: var(--datos); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* ===================== Cabecera ===================== */
.cabecera {
    position: sticky; top: 0; z-index: 30;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(244, 241, 234, .78);
    border-bottom: 1px solid var(--linea);
}
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; width: 150px; height: auto; }
.cabecera__nav { display: flex; align-items: center; gap: 1.2rem; }
.enlace-sitio { color: var(--tenue); font-weight: 600; font-size: .9rem; transition: color 160ms ease; }
.enlace-sitio:hover { color: var(--tinta); }
.enlace-sitio span { color: var(--vezz); }

.wa {
    display: inline-flex; align-items: center; gap: 8px;
    padding: .6rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .88rem;
    color: #04110c; background: #25d366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
    transition: transform 160ms var(--ease-out), box-shadow 160ms ease;
}
.wa:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37, 211, 102, .45); }
.wa:active { transform: scale(.97); }
.wa svg { width: 18px; height: 18px; fill: currentColor; }

/* ===================== Hero ===================== */
.hero { padding: 5.5rem 0 3rem; }
.hero__badge { display: inline-block; margin-bottom: 1.4rem; color: var(--vezz); }
.hero__badge::before { content: '● '; color: var(--vezz); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--vezz); }
.hero__intro { margin: 1.4rem 0 0; max-width: 40rem; color: var(--tenue); font-size: 1.12rem; }

/* Fila de confianza: refuerza el intro con checks concretos, no relleno */
.confianza {
    margin: 1.8rem 0 0; padding: 0; list-style: none;
    display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center;
    font-size: .88rem; font-weight: 600; color: var(--tinta);
}
.confianza li { display: inline-flex; align-items: center; gap: .5rem; }
.confianza__icono {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%; flex: none;
    background: color-mix(in srgb, var(--vezz) 14%, transparent);
    color: var(--vezz);
}
.confianza__icono svg { width: 12px; height: 12px; }

/* ===================== Grilla de demos (muestrario) ===================== */
.grilla {
    display: grid; gap: 20px; padding: 2.5rem 0 5rem;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}

.tarjeta {
    --ac: var(--vezz);
    position: relative;
    border-radius: 4px;
    background: var(--tarjeta); border: 1px solid var(--linea);
    overflow: hidden;
    transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms ease;
}
.tarjeta__enlace {
    display: flex; flex-direction: column; gap: 12px;
    padding: 26px 24px 22px; color: inherit;
}
/* La franja superior es el color REAL del demo — la firma de la página.
   Reservada a los demos "destacado": el resto lleva solo una línea neutra,
   para que el color siga marcando jerarquía en vez de repetirse en todas. */
.tarjeta::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--linea);
    transition: height 240ms var(--ease-out), background 240ms ease;
}
.tarjeta--destacado::before { background: var(--ac); }
@media (hover: hover) and (pointer: fine) {
    .tarjeta:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(27, 26, 38, .14); border-color: var(--ac); }
    .tarjeta--destacado:hover::before { height: 6px; }
}
.tarjeta:active { transform: translateY(-2px); }

/* Copiar enlace — visible al hover/focus, no compite con el resto de la card */
.tarjeta__copiar {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 32px; height: 32px; border: 0; border-radius: 50%; padding: 0;
    display: grid; place-items: center; cursor: pointer;
    color: var(--tenue); background: color-mix(in srgb, var(--tarjeta) 60%, #fff);
    backdrop-filter: blur(6px);
    opacity: 0; transform: translateY(-4px);
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), color 160ms ease, background 160ms ease;
}
.tarjeta__copiar svg { width: 15px; height: 15px; }
.tarjeta__copiar:hover { color: var(--ac); background: #fff; }
.tarjeta:hover .tarjeta__copiar, .tarjeta:focus-within .tarjeta__copiar {
    opacity: 1; transform: none;
}
@media (hover: none) {
    .tarjeta__copiar { opacity: 1; transform: none; }
}

.tarjeta__rubro { display: flex; align-items: center; gap: .5rem; color: var(--tenue); }
.tarjeta__chip { width: 9px; height: 9px; border-radius: 2px; background: var(--ac); flex: none; }
.tarjeta__titulo { font-size: 1.9rem; }
.tarjeta__nivel { color: var(--tenue); font-size: .68rem; }
.tarjeta__desc { color: var(--tenue); font-size: .96rem; margin: .2rem 0 auto; flex: 1; }

.tarjeta__preview {
    display: block; aspect-ratio: 16 / 9; overflow: hidden;
    margin: -10px -8px 4px; border-radius: 2px;
    background: color-mix(in srgb, var(--ac) 16%, var(--papel));
}
.tarjeta__preview img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    transition: transform 400ms var(--ease-out), filter 240ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .tarjeta:hover .tarjeta__preview img { transform: scale(1.035); filter: saturate(1.06); }
}

.tarjeta__ver {
    display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
    font-weight: 700; font-size: .95rem; color: var(--tinta);
}
.tarjeta__ver .flecha { transition: transform 200ms var(--ease-out); color: var(--ac); font-weight: 700; }
.tarjeta:hover .flecha { transform: translate(3px, -3px); }

/* ===================== Pie ===================== */
.pie { border-top: 1px solid var(--linea); padding: 2.2rem 0; }
.pie__fila { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--tenue); font-size: .88rem; }
.pie__marca { display: inline-flex; align-items: center; }
.pie__marca img { display: block; width: 92px; height: auto; }
.pie a:hover { color: var(--tinta); }
.pie a span { color: var(--vezz); }

/* ===================== WhatsApp flotante (como los demos) ===================== */
.fab-wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 100;
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; background: #25d366;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
    transition: transform 160ms var(--ease-out), box-shadow 160ms ease;
}
.fab-wa:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37, 211, 102, .55); }
.fab-wa:active { transform: translateY(-1px); }
.fab-wa svg { width: 28px; height: 28px; fill: currentColor; }

/* ===================== Toast (confirmación de copiar enlace) ===================== */
.toast {
    position: fixed; right: 20px; bottom: 90px; z-index: 101;
    padding: .7rem 1rem; border-radius: 999px;
    background: var(--tinta); color: var(--papel);
    box-shadow: 0 12px 26px rgba(27, 26, 38, .28);
    opacity: 0; transform: translateY(12px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.toast--visible { opacity: 1; transform: none; }

/* ===================== Animaciones de entrada (PURO CSS, sin JS) =====================
   Corre sola al cargar. El contenido NUNCA queda oculto: la animación siempre
   termina en opacity:1, aunque el JS falle o tarde. Nada de reveal por módulo
   en la página insignia. */
@keyframes entrar { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

.hero-entrada { animation: entrar .6s var(--ease-out) both; }
.hero-entrada:nth-child(2) { animation-delay: 70ms; }
.hero-entrada:nth-child(3) { animation-delay: 140ms; }
.hero-entrada:nth-child(4) { animation-delay: 210ms; }

.grilla > * { animation: entrar .55s var(--ease-out) both; }
.grilla > *:nth-child(2) { animation-delay: 60ms; }
.grilla > *:nth-child(3) { animation-delay: 120ms; }
.grilla > *:nth-child(4) { animation-delay: 180ms; }
.grilla > *:nth-child(5) { animation-delay: 240ms; }
.grilla > *:nth-child(6) { animation-delay: 300ms; }
.grilla > *:nth-child(7) { animation-delay: 360ms; }
.grilla > *:nth-child(n+8) { animation-delay: 420ms; }

@media (max-width: 720px) {
    .cabecera__fila { height: 50px; }
    .wa { display: none; }
    .enlace-herramientas { display: none; }
    .hero { padding: 3.5rem 0 2rem; }
    .grilla { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * , *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .tarjeta:hover, .wa:hover, .fab-wa:hover, .tarjeta__copiar:hover { transform: none; }
}
