/* ============================================================================
   Chetto · portada según el Figma (archivo FZbyOgIi0kIqXDwOiRs0gI, nodo 1:2) · 2026-11-03

   Todo cuelga de .chetto-home--figma: solo se aplica cuando la portada nueva está
   activa (index.tpl) y no toca ninguna otra página. Se carga DESPUÉS de chetto.home.css
   y solo corrige lo que el diseño pide distinto: no repite lo que ya coincide.

   Medidas y colores salen del diseño (Inter; ink #2d2d2d; fondo suave #f7f6f4; borde
   #e8e6e3; texto #6b6b6b / #8b8b8b; marca #c4b5a0; contenedor 1306 px).
   ============================================================================ */

.chetto-home--figma {
  --ch-muted: #f7f6f4;
  --ch-ink: #2d2d2d;
  --ch-border: #e8e6e3;
  --ch-text-soft: #6b6b6b;
  --ch-text-mute: #8b8b8b;
}

/* ------------------------------------------------------------------ Tarjeta de producto (destacados y favoritos) */
.chetto-home--figma .ch-card__badge--discount { background: #c4b5a0; color: #fff; }
.chetto-home--figma .ch-card__title { font-size: 18px; line-height: 27px; letter-spacing: -0.0244em; }
.chetto-home--figma .ch-card__price-row { margin-top: 8px; justify-content: flex-start; }
.chetto-home--figma .ch-card__price { display: flex; align-items: baseline; gap: 8px; font-size: 16px; line-height: 24px; color: #2d2d2d; }
.chetto-home--figma .ch-card__price-old { margin: 0; font-size: 12px; line-height: 16px; color: #999; text-decoration: line-through; }
/* El corazón de favoritos aparece al pasar el ratón (en pantallas táctiles se ve siempre) */
@media (hover: hover) {
  .chetto-home--figma .ch-card__wish { opacity: 0; transition: opacity .2s ease, background-color .2s ease, color .2s ease, transform .2s ease; }
  .chetto-home--figma .ch-card:hover .ch-card__wish,
  .chetto-home--figma .ch-card__wish:focus-visible,
  .chetto-home--figma .ch-card__wish.is-active { opacity: 1; }
}

/* ------------------------------------------------------------------ Productos destacados (1:99) */
.chetto-home--figma .ch-featured { background: #fff; padding: 40px 0; }
@media (min-width: 768px) { .chetto-home--figma .ch-featured { padding: 64px 0; } }
.chetto-home--figma .ch-featured .ch-card__media { border: 0; background: #fff; }
.chetto-home--figma .ch-featured .ch-card__img { padding: 0 !important; }
@media (min-width: 1024px) {
  /* Cuatro en fila, sin carrusel: los demás productos elegidos quedan tras «Ver Todo» */
  .chetto-home--figma .ch-featured__grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
    margin-top: 0; padding: 0; overflow: visible; scroll-snap-type: none;
  }
  .chetto-home--figma .ch-featured__item { max-width: none; }
  .chetto-home--figma .ch-featured__item:nth-child(n+5) { display: none; }
}

/* «Ver Todo»: 48 px de alto como en el diseño (el CSS anterior lo dejaba en 53) */
.chetto-home--figma .ch-featured__cta--desk { align-items: center; padding: 12px 24px; }

/* ------------------------------------------------------------------ Piel natural (1:272) */
.chetto-home--figma .ch-exp--about { padding: 48px 0; }
@media (min-width: 768px) { .chetto-home--figma .ch-exp--about { padding: 56px 0; } }
@media (min-width: 1024px) {
  .chetto-home--figma .ch-exp--about .ch-exp__about { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}
.chetto-home--figma .ch-exp--about .ch-exp__media { aspect-ratio: 621 / 459; }
.chetto-home--figma .ch-exp__pill { padding: 8px 16px; }
.chetto-home--figma .ch-exp__point-icon svg { display: block; width: 24px; height: 24px; }

/* ------------------------------------------------------------------ Favoritos (1:478) */
.chetto-home--figma .ch-favs { background: #fdfcfb; padding: 40px 0; }
@media (min-width: 768px) { .chetto-home--figma .ch-favs { padding: 64px 0; } }
.chetto-home--figma .ch-favs__head-copy { max-width: none; }
.chetto-home--figma .ch-favs__nav { gap: 8px; }
.chetto-home--figma .ch-favs__arrow { box-shadow: 0 1px 1.5px rgba(0,0,0,.1), 0 1px 1px rgba(0,0,0,.1); }
/* Tarjetas de 280 px, como el diseño; se ve parte de la siguiente para invitar a deslizar */
.chetto-home--figma .ch-favs__cell { flex: 0 0 280px; width: 280px; }
@media (max-width: 639.98px) { .chetto-home--figma .ch-favs__cell { flex-basis: 72vw; width: 72vw; max-width: 280px; } }
.chetto-home--figma .ch-favs .ch-card__media { aspect-ratio: 280 / 373.33; border: 0; background: #f7f6f4; }
/* Las fotos de producto traen fondo blanco: con «multiply» ese blanco toma el color de la tarjeta (#f7f6f4) y el zapato queda sobre ella, como en el diseño */
.chetto-home--figma .ch-favs .ch-card__media-link { background: #f7f6f4; }
.chetto-home--figma .ch-favs .ch-card__img { object-fit: contain !important; padding: 0 !important; background: transparent !important; mix-blend-mode: multiply; }
.chetto-home--figma .ch-favs__cta { background: #c4b5a0; color: #fff; }

/* ------------------------------------------------------------------ Las 3 claves (1:581) */
.chetto-home--figma .ch-keys { padding: 56px 0 40px; }
@media (min-width: 768px) { .chetto-home--figma .ch-keys { padding: 80px 0 48px; } }

/* Panel apaisado: el degradado es del escenario y los puntos (carrusel) quedan debajo, fuera */
.chetto-home--figma .ch-keys__showcase { background: none; padding: 0; height: auto; }
.chetto-home--figma .ch-keys__stage {
  flex: none; min-height: 466px; padding: 32px; border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(circle at 87% 12%, rgba(196,181,160,.22), transparent 130px),
    radial-gradient(circle at 8% 84%, rgba(232,230,227,.7), transparent 110px),
    linear-gradient(to bottom, #f7f6f4, #eae7e1);
}
.chetto-home--figma .ch-keys__img { width: min(387px, 100%); height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
/* Los tres rótulos están siempre a la vista; el de la clave activa se ve entero */
.chetto-home--figma .ch-keys__hotspot { opacity: .3; pointer-events: none; transform: none; left: auto; right: auto; top: auto; bottom: auto; }
.chetto-home--figma .ch-keys__hotspot.is-active { opacity: 1; }
.chetto-home--figma .ch-keys__hotspot-dot { background: #8b8b8b; }
.chetto-home--figma .ch-keys__hotspot--p0 { left: 50%; bottom: 32px; transform: translateX(-50%); }
.chetto-home--figma .ch-keys__hotspot--p1 { right: 16px; top: 216px; }
.chetto-home--figma .ch-keys__hotspot--p2 { left: 16px; top: 155px; }
/* En pantallas estrechas el escenario se ajusta a la imagen y solo se ve el rótulo de la clave activa, arriba */
@media (max-width: 1023.98px) {
  .chetto-home--figma .ch-keys__stage { min-height: 0; padding: 24px; }
  .chetto-home--figma .ch-keys__hotspot:not(.is-active) { opacity: 0; }
  .chetto-home--figma .ch-keys__hotspot--p0,
  .chetto-home--figma .ch-keys__hotspot--p1,
  .chetto-home--figma .ch-keys__hotspot--p2 { left: 50%; right: auto; top: 16px; bottom: auto; transform: translateX(-50%); }
}
/* Línea de medida del 0 mm Drop (con un punto en cada extremo): solo cuando esa clave está activa y hay sitio */
@media (min-width: 1024px) {
  .chetto-home--figma .ch-keys__stage::before,
  .chetto-home--figma .ch-keys__stage::after { content: ""; position: absolute; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
  .chetto-home--figma .ch-keys__stage::before { left: 171px; top: 232px; width: 278px; height: 2px; background: #8b8b8b; }
  .chetto-home--figma .ch-keys__stage::after {
    left: 165px; top: 227px; width: 288px; height: 12px;
    background:
      radial-gradient(circle 5.9px at 6px 6px, #8b8b8b 97%, transparent 100%),
      radial-gradient(circle 4.1px at 284px 6px, #8b8b8b 97%, transparent 100%);
  }
  .chetto-home--figma .ch-keys__stage:has(.ch-keys__hotspot--p1.is-active)::before,
  .chetto-home--figma .ch-keys__stage:has(.ch-keys__hotspot--p1.is-active)::after { opacity: 1; }
}

/* ------------------------------------------------------------------ Las cuatro cajas, bajo las claves (1:659) */
.chetto-home--figma .ch-keys__benefits { margin-top: 40px; }
@media (min-width: 768px) { .chetto-home--figma .ch-keys__benefits { margin-top: 43px; } }
.chetto-home--figma .ch-keys__benefits .ch-exp__benefits { margin-top: 0; gap: 24px; }
@media (min-width: 1024px) { .chetto-home--figma .ch-keys__benefits .ch-exp__benefits { gap: 32px; } }
.chetto-home--figma .ch-keys__benefits .ch-exp__benefit { min-height: 256px; padding: 32px 24px; background: #f7f6f4; }
.chetto-home--figma .ch-keys__benefits .ch-exp__benefit-title { margin-top: 16px; line-height: 28px; }
.chetto-home--figma .ch-keys__benefits .ch-exp__benefit-desc { margin-top: 16px; line-height: 22.75px; }

/* ------------------------------------------------------------------ «¿Tienes dudas?» (1:318) */
.chetto-home--figma .ch-exp--cta { padding: 48px 0; }
@media (min-width: 768px) { .chetto-home--figma .ch-exp--cta { padding: 80px 0; } }
.chetto-home--figma .ch-exp--cta .ch-exp__cta { margin-top: 0; }

/* ------------------------------------------------------------------ Botones de la portada: un solo sistema (skill botones-coherentes)
   Mismo foco (anillo de 2 px de la marca, separado 2 px), mismo pulsado (escala .97, 150 ms, ease-out),
   transición solo de lo que cambia y el mismo hover en los rellenos: oscurecer un paso, nunca opacidad. */
.chetto-home--figma :is(.ch-featured__cta, .ch-favs__cta, .ch-exp__cta-link, .ch-favs__arrow, .ch-featured__empty-cta) {
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out, transform .15s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.chetto-home--figma :is(.ch-featured__cta, .ch-favs__cta, .ch-exp__cta-link, .ch-favs__arrow, .ch-featured__empty-cta):focus-visible {
  outline: 2px solid #c4b5a0; outline-offset: 2px;
}
.chetto-home--figma :is(.ch-featured__cta, .ch-favs__cta, .ch-exp__cta-link, .ch-favs__arrow, .ch-featured__empty-cta):active:not([disabled]) {
  transform: scale(.97);
}
@media (hover: hover) {
  .chetto-home--figma .ch-favs__cta:hover { opacity: 1; background: #a89584; }
  .chetto-home--figma .ch-exp__cta-link:hover { opacity: 1; background: #f1eeea; }
}
