/* ============================================================
   Visible Studio — evolve.css
   Cursor, botones 21st, hero showcase, stats, extra split,
   testimonios estilo Google, shaders, parallax.
   ============================================================ */

/* ---------- Lenis (smooth scroll) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Cursor personalizado ---------- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .magnetic, body.has-cursor .work, body.has-cursor .testimonio { cursor: none; }
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
    width: 38px; height: 38px; border: 1.5px solid var(--persimmon); border-radius: 50%;
    transform: translate3d(-100px, -100px, 0);
    transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  }
  .cursor-dot {
    display: block; position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
    width: 6px; height: 6px; background: var(--persimmon); border-radius: 50%;
    transform: translate3d(-100px, -100px, 0);
  }
  .cursor.is-hover { width: 64px; height: 64px; background: rgba(217, 85, 46, .12); border-color: transparent; }
  .cursor.is-down { width: 26px; height: 26px; }
}

/* ---------- Botón shine (estilo 21st.dev) ---------- */
.btn--shine {
  position: relative; overflow: hidden;
  background: var(--persimmon); color: var(--bone);
  box-shadow: 0 14px 32px -12px rgba(217, 85, 46, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--shine::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); animation: shine 3.6s var(--ease) infinite;
}
.btn--shine:hover {
  background: var(--persimmon-dark);
  box-shadow: 0 20px 44px -14px rgba(217, 85, 46, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
@keyframes shine { 0% { left: -120%; } 55%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .btn--shine::before { display: none; } }

.magnetic { transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .35s var(--ease); will-change: transform; }

/* ============================================================
   HERO — dos columnas + showcase de navegadores
   ============================================================ */
.hero__inner { max-width: var(--maxw); }
.hero__text { position: relative; z-index: 2; }

/* Móvil: un solo navegador en flujo, compacto (imagen "al inicio" sin peso extra) */
.hero__showcase { position: relative; z-index: 2; display: block; margin-top: 2.4rem; height: auto; }
.hero__showcase .browser--a, .hero__showcase .browser--c, .hero__showcase .showcase__pill { display: none; }
.hero__showcase .browser--b { position: relative; width: 100%; top: auto; right: auto; }
.browser {
  position: absolute; border-radius: 14px; overflow: hidden; background: var(--white);
  border: 1px solid var(--sand-dark); box-shadow: var(--shadow-card); will-change: transform;
}
.browser__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; background: var(--sand); border-bottom: 1px solid var(--sand-dark); }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--sand-dark); }
.browser__bar i:first-child { background: var(--persimmon); }
.browser img { display: block; width: 100%; height: auto; }
.browser--a { width: 70%; top: 2%; left: 0; z-index: 1; }
.browser--b { width: 64%; top: 30%; right: 0; z-index: 3; }
.browser--c { width: 52%; bottom: 0; left: 8%; z-index: 2; }
.showcase__pill {
  position: absolute; top: 6%; right: 2%; z-index: 5;
  background: var(--ink); color: var(--bone); font-family: var(--font-display); font-weight: 500;
  font-size: .78rem; letter-spacing: .03em; padding: .45rem .9rem; border-radius: 100px;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 960px) {
  .hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; padding-block: 8rem 5rem; }
  .hero__showcase { height: 470px; margin-top: 0; }
  .hero__showcase .browser--a, .hero__showcase .browser--c, .hero__showcase .showcase__pill { display: block; }
  .hero__showcase .browser--b { position: absolute; width: 64%; top: 30%; right: 0; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--ink); color: var(--bone); padding-block: clamp(2.6rem, 6vw, 4rem); }
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; color: var(--bone); display: inline-flex; align-items: baseline; justify-content: center; }
.stat__num .stat__sup { color: var(--persimmon); font-size: .5em; }
.stat__label { display: block; margin-top: .6rem; font-size: .92rem; color: var(--sand-dark); }
@media (min-width: 760px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   EXTRA — split con imagen + shader
   ============================================================ */
.extra__inner { position: relative; overflow: hidden; display: grid; gap: 2rem; text-align: left; }
.extra__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.extra__content { position: relative; z-index: 2; }
.extra__content .kicker { color: #FCE9DF; }
.extra__content .kicker::before { background: var(--bone); }
.extra__title { text-align: left; }
.extra__media { position: relative; z-index: 2; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.extra__media img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; }
.extra__qr { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: .7rem; background: rgba(241, 236, 226, .94); backdrop-filter: blur(6px); padding: .55rem .8rem .55rem .55rem; border-radius: 14px; box-shadow: var(--shadow-soft); }
.extra__qr-box { display: grid; place-items: center; background: var(--white); border-radius: 8px; padding: 4px; }
.extra__qr-text { font-family: var(--font-display); font-weight: 500; font-size: .82rem; color: var(--ink); max-width: 9ch; line-height: 1.15; }
/* badge tipo Google Maps */
.extra__map { position: absolute; right: 16px; top: 16px; display: flex; align-items: center; gap: .55rem; background: rgba(241,236,226,.94); backdrop-filter: blur(6px); padding: .5rem .8rem .5rem .55rem; border-radius: 100px; box-shadow: var(--shadow-soft); }
.extra__pin { display: grid; place-items: center; flex: none; filter: drop-shadow(0 3px 4px rgba(35,32,26,.25)); }
.extra__map-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-display); font-size: .72rem; color: var(--khaki-dark); }
.extra__map-text strong { font-weight: 600; font-size: .86rem; color: var(--ink); }
@media (min-width: 860px) { .extra__inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; } }

/* ============================================================
   TESTIMONIOS — tarjetas estilo Google
   ============================================================ */
.testimonio { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.testimonio__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.testimonio__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.testimonio:hover .testimonio__media img { transform: scale(1.05); }
.testimonio__chip { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: .35rem; background: rgba(35, 32, 26, .78); color: var(--bone); font-family: var(--font-display); font-size: .72rem; font-weight: 500; letter-spacing: .04em; padding: .3rem .6rem; border-radius: 100px; backdrop-filter: blur(4px); }
/* velo para que el logo blanco resalte sobre cualquier foto */
.testimonio__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 60% at 50% 50%, rgba(35,32,26,.28), rgba(35,32,26,.10)); }
/* tile de logo del negocio, centrado sobre la foto */
.testimonio__logo { position: absolute; inset: 0; margin: auto; z-index: 2; width: 47%; max-width: 152px; aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--white); border-radius: 18px; padding: 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); transition: transform .5s var(--ease); }
.testimonio:hover .testimonio__logo { transform: scale(1.04); }
.testimonio__logo img { width: 100%; height: 100%; object-fit: contain; }
.testimonio__body { padding: 1.5rem 1.5rem .6rem; }
.stars { display: flex; gap: 3px; margin-bottom: .9rem; color: var(--persimmon); font-size: 1.05rem; line-height: 1; }
.testimonio blockquote { font-family: var(--font-body); font-weight: 400; font-size: 1.02rem; line-height: 1.6; color: var(--ink-2); margin: 0; }
.testimonio__by { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.5rem 1.6rem; margin-top: auto; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--persimmon); color: var(--bone); font-family: var(--font-display); font-weight: 500; font-size: .85rem; flex: none; }
.avatar--logo { width: 48px; height: 48px; background: var(--white); object-fit: contain; padding: 4px; border: 1px solid var(--sand-dark); box-shadow: var(--shadow-soft); }
.testimonio__who { display: flex; flex-direction: column; }
.testimonio__name { font-family: var(--font-display); font-weight: 500; color: var(--ink); transition: color .2s var(--ease); }
.testimonio__name:hover { color: var(--persimmon); }
.testimonios__note { margin-top: 1.6rem; font-size: .85rem; color: var(--khaki-dark); text-align: center; }

/* ============================================================
   CONTACTO — shader aurora
   ============================================================ */
.contacto__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .85; }
.contacto__inner > *:not(.contacto__canvas) { position: relative; z-index: 1; }
.contacto__inner::after { z-index: 0; }

/* ---------- Parallax ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-parallax] img, .browser { transform: none !important; }
}

/* ============================================================
   FAQ (home) + ajustes de sección blog
   ============================================================ */
.blog-section .post-grid { padding-block: 2.4rem 1.4rem; }
.blog-section__all { margin-top: .6rem; }

.faq { background: var(--sand); }
.faq-list { margin-top: 2.4rem; max-width: 820px; }
.faq-q { border-bottom: 1px solid var(--sand-dark); }
.faq-q summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.4rem 1.3rem 0; position: relative;
  font-family: var(--font-display); font-weight: 500; font-size: 1.18rem; color: var(--ink);
  transition: color .2s var(--ease);
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 300; font-size: 1.7rem; color: var(--persimmon);
  transition: transform .3s var(--ease);
}
.faq-q[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-q summary:hover { color: var(--persimmon-dark); }
.faq-a { padding: 0 2.4rem 1.4rem 0; }
.faq-a p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.faq-a a { color: var(--persimmon-dark); text-decoration: underline; text-underline-offset: 3px; }
