/* =============================================================================
   tania-home-v2.css — estilos propios del home nuevo (000-home).
   Antes estaban en un <style> dentro del template. Se enlaza en el <head> del home,
   despues de 000-commonstyles (asi queda despues de Tania-Main y la sobrescribe).
   Al cambiar este archivo: subirlo a /arquivos/ y cambiar el ?v= del enlace en 000-home.
   ============================================================================= */

/* Banners fijos del home: a todo el ancho (antes con style= en cada imagen) */
.home-banner img { display: block; width: 100%; height: auto; }
/* Rotador a todo el ancho de la pantalla (el home vive en .container-home, de máx. 1400px).
   overflow-x: clip evita la barra horizontal por el ancho de la barra de scroll. */
html { overflow-x: clip; }
.container-home .rotador-top { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
/* Las fotos del rotador miden 1920px: en pantallas más anchas se estiran a todo el ancho
   (sin esto quedaban de 1920px y sobraba espacio a un lado). */
.container-home .rotador-top img { width: 100%; height: auto; display: block; }
/* Texto que no se ve pero leen Google y los lectores de pantalla (el h1 del home) */
.home-hidden-title { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Etiqueta sobre las pestañas (estilo en tania-shelf.css) */
.container-home .section-tabs::before { content: "Nuestros favoritos"; }

/* «Tania Tek»: 6 productos en una fila (computador); desplazamiento lateral en tablet y celular */
.shop-unlined-section { padding: 30px 0 10px; }
.shop-unlined-title {
  text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #3a2e3f; margin: 0 0 20px;
}
.shop-unlined-track {
  display: flex; gap: 20px; list-style: none;
  max-width: 1230px; margin: 0 auto; padding: 0 40px; box-sizing: border-box;
}
.sul-card { flex: 1 1 0; min-width: 0; text-align: center; }
.sul-card .sul-imgwrap {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 6px; background: #f5f1f2;
}
.sul-card .sul-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sul-card .sul-label {
  display: block; margin-top: 12px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; color: #3a2e3f;
  text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 1024px) {
  .shop-unlined-track {
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 0 12px 10px; gap: 12px; scrollbar-width: none;
  }
  .shop-unlined-track::-webkit-scrollbar { display: none; }
  .sul-card { flex: 0 0 30%; scroll-snap-align: center; }
}
@media (max-width: 768px) {
  .sul-card { flex-basis: 46vw; }
  .sul-card .sul-label { font-size: 11px; }
}

/* «Descúbrelo en video»: fila de videos con desplazamiento lateral (celular y computador).
   En el celular la tarjeta del producto va encima del video; en computador, debajo. */
.shoppable-videos { padding: 30px 0; margin-bottom: 0px; }
.shoppable-videos .svideo-title {
  text-align: center; font-size: 24px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: #3a2e3f;
  margin: 0 0 20px;
}
/* Sin barra de scroll a ningún ancho (se veía una barra gris de 10px bajo los videos):
   - computador (1024px o más): los 5 videos caben siempre (se achican un poco), sin scroll;
   - tablet (769-1023px): ~3 a la vista y se desliza con el dedo;
   - celular (768px o menos): uno a la vista y se desliza (ver abajo). */
.svideo-track {
  display: flex; justify-content: center; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  list-style: none; margin: 0; padding: 0 16px; scrollbar-width: none;
}
.svideo-track::-webkit-scrollbar { display: none; }
.video-card { flex: 1 1 0; max-width: 260px; min-width: 0; position: relative; scroll-snap-align: center; }
@media (min-width: 769px) and (max-width: 1023px) {
  .svideo-track { justify-content: flex-start; gap: 14px; }
  .video-card { max-width: none; }
}
.video-card .video-wrap {
  display: block; position: relative; width: 100%; aspect-ratio: 9 / 16;
  background: #f3eef4; overflow: hidden; border-radius: 6px;
}
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-product { display: flex; align-items: center; gap: 10px; padding: 10px 4px; text-decoration: none; }
.video-product img { width: 42px; height: 42px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.vp-info { display: flex; flex-direction: column; min-width: 0; }
.vp-name { font-size: 13px; color: #3a2e3f; line-height: 1.3; }
.vp-price { font-size: 13px; font-weight: 700; color: #3a2e3f; }
.vp-arrow { display: none; margin-left: auto; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 768px) {
  .svideo-track { justify-content: flex-start; gap: 12px; padding: 0 9vw; }
  /* Máximo 320px: en una tablet vertical (768px) el 82% daba videos de 630px de ancho */
  .video-card { flex: 0 0 min(82vw, 320px); max-width: none; }
  .video-card .video-wrap { border-radius: 14px; }
  .video-product {
    position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4;
    background: #fff; border-radius: 10px; padding: 8px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  }
  .vp-arrow { display: flex; }
}
