/* Notas "versus" (guias/*-vs-*.html). Base: guias.css + marcas/marcas.css (tarjetas de producto). */

/* Héroe: los modelos enfrentados, con las fotos de la tienda */
.vs-fig{position:relative;aspect-ratio:16/9;container-type:inline-size;display:grid;place-items:center;overflow:hidden;
  background:radial-gradient(120% 90% at 50% 40%,#0c2522 0%,#07110f 55%,#040605 100%);border:1px solid var(--line)}
.vs-fig::before{content:"";position:absolute;inset:-20%;background:
  radial-gradient(40% 50% at 22% 55%,rgba(31,191,174,.35),transparent 70%),
  radial-gradient(35% 45% at 80% 45%,rgba(233,207,29,.18),transparent 70%);animation:vs-luz 12s ease-in-out infinite alternate;pointer-events:none}
@keyframes vs-luz{to{transform:translate3d(3%,-2%,0) scale(1.06)}}
.vs-marca{position:absolute;top:5cqw;left:50%;transform:translateX(-50%);font:700 2.2cqw/1 "Barlow Condensed",sans-serif;letter-spacing:.4em;color:#7fe3d6;text-transform:uppercase}
.vs-fila{position:relative;display:flex;align-items:center;justify-content:center;gap:2.2cqw;padding:0 4cqw;width:100%}
.vs-item{display:flex;flex-direction:column;align-items:center;gap:1.6cqw;min-width:0;animation:vs-sube .9s cubic-bezier(.2,.8,.2,1) both}
.vs-item:nth-of-type(2){animation-delay:.08s}.vs-item:nth-of-type(3){animation-delay:.16s}.vs-item:nth-of-type(4){animation-delay:.24s}
@keyframes vs-sube{from{opacity:0;transform:translateY(4cqw)}}
.vs-foto{width:30cqw;aspect-ratio:1;border-radius:2.4cqw;background:var(--foto-fondo,#e3e9e7);display:grid;place-items:center;overflow:hidden;
  box-shadow:0 2cqw 5cqw rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.08)}
.vs-foto{position:relative} /* 12/11: la foto queda dentro del cuadro (las verticales, como el V8, se salían y se cortaban) */
.vs-foto img{position:absolute;inset:7%;width:86%;height:86%;object-fit:contain;mix-blend-mode:multiply;transform:none;will-change:auto;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.vs-fig:hover .vs-foto img{transform:scale(1.04)}
.vs-sin{font:400 4.4cqw/1 Anton,Impact,sans-serif;color:#1d2a28;text-align:center;padding:0 1cqw}
.vs-item b{font:400 3.2cqw/1 Anton,Impact,sans-serif;letter-spacing:.02em;color:#fff;text-transform:uppercase;white-space:nowrap}
.vs-item.sin-foto b{visibility:hidden}
.vs-vs{font:400 5cqw/1 Anton,Impact,sans-serif;font-style:normal;color:var(--teal-hi,#3fe0cc);text-shadow:0 0 3cqw rgba(31,191,174,.6);margin-bottom:5cqw}
.vs-fig.n3 .vs-foto{width:23cqw}.vs-fig.n3 .vs-item b{font-size:2.8cqw}.vs-fig.n3 .vs-vs{font-size:4cqw}
.vs-fig.n4 .vs-foto{width:18cqw}.vs-fig.n4 .vs-item b{font-size:2.3cqw}.vs-fig.n4 .vs-vs{font-size:3.2cqw}.vs-fig.n4 .vs-fila{gap:1.4cqw}
@media (prefers-reduced-motion:reduce){.vs-fig::before,.vs-item{animation:none}}

/* 12/11: recortes sin fondo, grandes y flotando (estilo del hero de Cristian) */
.vs-item.recorte .vs-foto{background:none;box-shadow:none;overflow:visible;border-radius:0}
.vs-item.recorte .vs-foto::before{content:"";position:absolute;left:50%;top:48%;width:115%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(closest-side,rgba(31,191,174,.30),rgba(31,191,174,.08) 55%,transparent);pointer-events:none}
.vs-item.recorte .vs-foto::after{content:"";position:absolute;left:18%;right:18%;bottom:-3%;height:7%;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.75),transparent);filter:blur(.6cqw);animation:vs-sombra 5s ease-in-out infinite alternate}
.vs-item.recorte .vs-foto img{inset:0;width:100%;height:100%;mix-blend-mode:normal;object-position:50% 100%;
  filter:drop-shadow(0 1.6cqw 1.8cqw rgba(0,0,0,.6)) drop-shadow(0 0 2.4cqw rgba(31,191,174,.22));animation:vs-flota 5s ease-in-out infinite alternate}
.vs-item.recorte:nth-of-type(2) .vs-foto img,.vs-item.recorte:nth-of-type(2) .vs-foto::after{animation-delay:-2.5s}
.vs-item.recorte:nth-of-type(3) .vs-foto img,.vs-item.recorte:nth-of-type(3) .vs-foto::after{animation-delay:-1.2s}
.vs-item.recorte:nth-of-type(4) .vs-foto img,.vs-item.recorte:nth-of-type(4) .vs-foto::after{animation-delay:-3.7s}
@keyframes vs-flota{to{translate:0 -1.4cqw}}
@keyframes vs-sombra{to{transform:scaleX(.82);opacity:.7}}
.vs-fig:hover .vs-item.recorte .vs-foto img{transform:scale(1.05)}
.vs-fig.n2 .vs-item.recorte .vs-foto{width:36cqw}
.vs-fig.n3 .vs-item.recorte .vs-foto{width:26cqw}
.vs-fig.n4 .vs-item.recorte .vs-foto{width:20cqw}
/* Sin foto (modelo que no está en la tienda): tarjeta oscura en vez del cuadro claro */
.vs-item.sin-foto .vs-foto{background:linear-gradient(135deg,rgba(31,191,174,.14),rgba(5,9,8,.6));box-shadow:inset 0 0 0 1px rgba(127,227,214,.25)}
.vs-item.sin-foto .vs-sin{color:#e9f6f3}
@media (prefers-reduced-motion:reduce){.vs-item.recorte .vs-foto img,.vs-item.recorte .vs-foto::after{animation:none}}


/* Respuesta corta */
.vs-corta{margin:22px 0 6px;padding:20px 22px;border-radius:18px;border:1px solid rgba(233,207,29,.35);background:linear-gradient(135deg,rgba(233,207,29,.08),transparent 70%)}
.vs-corta b{display:block;font:700 .82rem/1 var(--cond);letter-spacing:.16em;text-transform:uppercase;color:var(--yellow,#e9cf1d);margin-bottom:8px}
:root[data-theme="light"] .vs-corta b{color:#7a6500}
.vs-corta p{margin:0}

/* Tabla: primera columna fija al deslizar en celular */
.vs-tbl td:first-child{font-weight:600;color:var(--muted);white-space:nowrap}
.vs-tbl th{white-space:nowrap}
@media (max-width:700px){
  .vs-tbl table{min-width:560px;font-size:.88rem}
  .vs-tbl th,.vs-tbl td{padding:11px 12px}
  .vs-tbl td:first-child,.vs-tbl th:first-child{position:sticky;left:0;background:var(--surface);z-index:1;white-space:normal;min-width:110px}
  .vs-tbl th:first-child{background:var(--deep)}
}
.vs-nota{color:var(--muted);font-size:.84rem;margin-top:10px}

/* Cuál elegir */
.vs-elegi{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:14px}
.vs-elegi>div{padding:18px 20px;border-radius:18px;border:1px solid var(--line);background:var(--surface);transition:border-color .25s,transform .25s var(--ease)}
.vs-elegi>div:hover{border-color:rgba(31,191,174,.5);transform:translateY(-3px)}
.vs-elegi b{display:block;font-family:var(--head);font-weight:800;margin-bottom:8px}
.vs-elegi ul{margin:0;padding-left:18px}
.vs-elegi li{margin:4px 0}

/* En stock */
.vs-grid{margin-top:14px}
.vs-grid:not(:empty) + .m-sinjs{display:none}
.vs-fuentes{font-size:.92rem}
.vs-fuentes a{word-break:break-word}

/* Las tarjetas de producto van dentro del texto: que no hereden el estilo de los links */
.prose a.mh-bs-card{color:var(--ink);font-weight:400;text-decoration:none}
.prose a.mh-bs-card *{text-decoration:none}

/* Tablas de 4 o 5 modelos: más compactas en escritorio */
.vs-tbl table{font-size:.9rem}
.vs-tbl th,.vs-tbl td{padding:12px 12px}
.vs-tbl td:first-child,.vs-tbl th:first-child{padding-left:16px;width:1%;min-width:120px;white-space:normal}

/* Celular: fotos más grandes; con 4 modelos, grilla de 2 × 2 */
@media (max-width:640px){
  .vs-fig{aspect-ratio:auto;padding:14cqw 0 8cqw}
  .vs-marca{top:5cqw;font-size:3.4cqw}
  .vs-fila{gap:3cqw;padding:0 4cqw}
  .vs-fig.n2 .vs-foto{width:36cqw}.vs-fig.n2 .vs-item b{font-size:5cqw}.vs-fig.n2 .vs-vs{font-size:8cqw}
  .vs-fig.n3 .vs-fila{gap:1.6cqw;padding:0 3cqw}
  .vs-fig.n3 .vs-foto{width:23cqw}.vs-fig.n3 .vs-item b{font-size:4cqw}.vs-fig.n3 .vs-vs{font-size:5cqw;margin-bottom:7cqw}
  .vs-fig.n4 .vs-fila{flex-wrap:wrap;row-gap:5cqw;column-gap:8cqw}
  .vs-fig.n4 .vs-item{flex:0 0 38cqw}
  .vs-fig.n4 .vs-foto{width:38cqw}.vs-fig.n4 .vs-item b{font-size:4.4cqw}
  .vs-fig.n4 .vs-vs{display:none}
  .vs-sin{font-size:7cqw}
  .vs-fig.n2 .vs-item.recorte .vs-foto{width:40cqw}
  .vs-fig.n3 .vs-item.recorte .vs-foto{width:27cqw}
  .vs-fig.n4 .vs-item.recorte .vs-foto{width:38cqw}
}
