/* ==========================================================================================
   TIENDA — VERSIÓN DE COMPUTADOR (paquete "REDISEÑO WEB ESCRITORIO" de Gabriela, 24-nov-2026)
   Previews: HERO (3 láminas), HOME y SECCION 1/2/3 (unidad, kit x2, suscripción). Lienzo de
   1920 de ancho: cada medida se escribe calc(N * var(--d)) con N = la medida en el PDF, así se
   lee directo contra él (igual que el celular con --m y su lienzo de 550).

   - Aplica desde 601 px (Jeison, 24-nov-2026: la TABLET usa el diseño de computador ajustado a
     su ancho). El celular (<= 600) no cambia: sus reglas están en tienda-2026.css.
   - Textos chicos: en pantallas angostas (tablet) el tamaño proporcional quedaría ilegible, así
     que usan --t = max(--d, 0.62px): desde 1229 px de ancho son EXACTOS al mockup; por debajo
     no bajan de ese piso.
   - Carga DESPUÉS del CSS histórico de ecommerce.ejs y de tienda-2026.css: aquí se reescriben
     franja, encabezado, educación, "Declara tu actitud" y pie solo en la tienda y sus páginas de
     producto (el resto del sitio no carga este archivo).
   ========================================================================================== */
@media (min-width: 601px) {
  :root { --d: calc(100vw / 1920); --t: max(var(--d), 0.62px); }

  /* ------------------------------ qué se ve en computador ------------------------------ */
  /* El rediseño (t26-nuevo) en todas las pantallas; la tienda de antes (t26-clasico) ya no.
     La píldora flotante no está en el mockup. */
  body .sticky-bar { display: none !important; }

  /* ===================================== FRANJA ===================================== */
  .announcement-bar {
    height: calc(41.2 * var(--d)); padding: 0;
    border-bottom: 0.75px solid #0C0C0D;
  }
  .announcement-bar .t26-solo-cel span {
    font-size: calc(25.98 * var(--d)); font-weight: 600; letter-spacing: 0.1em;
    color: #0C0C0D; line-height: 1;
  }
  /* Páginas de producto: sin franja (SECCION 1/2/3 arrancan con el encabezado). */
  body.vista-producto .announcement-bar { display: none !important; }

  /* =================================== ENCABEZADO =================================== */
  /* 24-nov-2026 (Jeison): la barra del encabezado con el MISMO alto que la franja de "Envío
     gratis" (41.2 en el lienzo 1920; el mockup traía 83.1), el logo casi del mismo tamaño. */
  body .navbar {
    height: calc(41.2 * var(--d)); min-height: 30px; padding: 0 calc(54 * var(--d)) 0 calc(80 * var(--d));
    background: #ECEEEF; border-bottom: 0;
  }
  body .navbar__hamburger { display: none; }
  /* El CSS de antes ocultaba la cuenta en tablet (allí iba en el menú hamburguesa, que ya no se usa). */
  body .navbar .navbar__account { display: flex !important; }
  body .navbar__left { display: flex; gap: calc(137.4 * var(--d)); transform: none; }
  body .navbar__link { font-size: max(calc(17 * var(--d)), 10px); font-weight: 600; letter-spacing: 0.1em; color: #0C0C0D; }
  body .navbar__logo { height: calc(23 * var(--d)); min-height: 14px; }
  body .navbar__right { gap: calc(15 * var(--d)); }
  body .navbar__right .navbar__icon, body .navbar__right .ub-ico { width: max(calc(26 * var(--d)), 17px); height: max(calc(26 * var(--d)), 17px); }

  /* ============================== CARRUSEL PRINCIPAL ============================== */
  .t26-hero { background: #0E0E0E; }
  .t26-hero__lamina { display: block; height: auto; min-height: 0; }
  .t26-hero__img { aspect-ratio: 1920 / 815; height: auto; width: 100%; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
  .t26-hero__texto { position: absolute; left: calc(111.4 * var(--d)); right: auto; top: calc(509.7 * var(--d)); bottom: auto; padding: 0; }
  .t26-hero__titulo { font-size: max(calc(30.62 * var(--d)), 10px); font-weight: 500; line-height: 1.2; letter-spacing: 0.1em; }
  .t26-hero__desc { font-size: max(calc(28.06 * var(--d)), 9px); line-height: 1.172; letter-spacing: 0.12em; margin: calc(23.4 * var(--d)) 0 0; }
  .t26-hero__btn {
    height: max(calc(38.4 * var(--d)), 24px); padding: 0; width: max(calc(208.1 * var(--d)), 112px); margin-top: calc(28.7 * var(--d));
    font-size: max(calc(17.4 * var(--d)), 9px); font-weight: 600; letter-spacing: 0.1em;
  }
  .t26-hero__btn:hover { filter: brightness(1.08); }
  .t26-hero > .t26-puntos { bottom: calc(51.4 * var(--d)); gap: calc(15 * var(--d)); }
  .t26-hero .t26-puntos button { width: calc(7.4 * var(--d)); height: calc(7.4 * var(--d)); min-width: 5px; min-height: 5px; }

  /* Cinta bajo el carrusel "PROTECT YOUR PRIME • LIVE YOUR WAY". 25-nov-2026 (Jeison): del mismo
     alto y letra que la franja de "Envío gratis" (41.2 / SemiBold 25.98; el mockup traía 81.3 / 50). */
  .ticker-bar.t26-ticker { height: calc(41.2 * var(--d)); }
  .ticker-bar.t26-ticker .ticker-bar__track { transform: none; }
  .ticker-bar.t26-ticker .ticker-bar__track span { font-size: calc(25.98 * var(--d)); font-weight: 600; letter-spacing: 0.1em; color: #0C0C0D; line-height: 1; }

  /* ================================ TARJETAS PRODUCTO ================================ */
  /* 24-nov-2026 (Jeison): tarjetas y sellos un poco más pequeños (x0.8) para que las fotos de
     producto y los sellos quepan en la misma pantalla. El título se queda del tamaño del resto. */
  .t26-productos__pista, .t26-sellos:not(.t26-sellos--pdp) { --d: calc(100vw / 1920 * 0.8); }
  .t26-productos { padding: calc(60 * var(--d)) 0 0; }
  .t26-productos__titulo { font-size: calc(41 * var(--d)); letter-spacing: 0.1em; text-align: center; margin: 0; padding: 0; max-width: none; }
  .t26-productos__pista {
    justify-content: center; gap: calc(106 * var(--d)); padding: calc(69.7 * var(--d)) 0 0; max-width: none; margin: 0;
    overflow: visible; scroll-padding-left: 0;
  }
  .t26-tarjeta { flex: 0 0 calc(378 * var(--d)); }
  .t26-tarjeta__img { aspect-ratio: 378 / 483; }
  .t26-tarjeta:hover .t26-tarjeta__img { transform: none; }
  .t26-tarjeta__nombre { margin-top: calc(23.4 * var(--d)); font-size: max(calc(20.94 * var(--d)), 9px); line-height: 1.055; letter-spacing: 0.1em; }
  .t26-tarjeta__precio { margin-top: calc(12.2 * var(--d)); font-size: max(calc(19.19 * var(--d)), 11px); line-height: 1.17; letter-spacing: 0.094em; }

  /* ===================================== SELLOS ===================================== */
  .t26-sellos { gap: 0; padding: calc(30 * var(--d)) 0 calc(70 * var(--d)); }
  .t26-sellos img { flex: 0 0 calc(248.4 * var(--d)); width: calc(248.4 * var(--d)); height: calc(200 * var(--d)); object-fit: contain; }

  /* ====================================== FOTO ====================================== */
  .t26-foto img { aspect-ratio: 1920 / 960; max-height: none; }

  /* ================================ NUESTROS CLIENTES ================================ */
  .t26-banda { height: calc(81.7 * var(--d)); }
  /* Home: después de las reseñas viene directo la sección del video (sin la franja de abajo). */
  .t26-clientes.t26-nuevo > .t26-banda:last-child { display: none; }
  /* 24-nov-2026 (Jeison): la sección más compacta, que no ocupe toda la pantalla. Las tres
     columnas conservan su ancho; lo de adentro (estrellas, nombre, textos) va a x0.75 con --r. */
  .t26-clientes { --r: calc(var(--d) * 0.75); --tr: max(var(--r), 0.62px); }
  .t26-clientes__cuerpo { padding: calc(64 * var(--d)) 0 calc(70 * var(--d)); max-width: none; margin: 0; }
  .t26-clientes__titulo { font-size: calc(41 * var(--d)); line-height: 1.17; letter-spacing: 0.1em; }
  .t26-clientes__titulo br { display: none; }
  .t26-clientes__sub {
    font-size: max(calc(18 * var(--d)), 9px); line-height: 1.17; letter-spacing: 0.087em; text-transform: uppercase;
    margin: calc(16.4 * var(--d)) auto 0; max-width: none;
  }
  .t26-clientes__pista { margin-top: calc(56 * var(--d)); justify-content: flex-start; gap: 0; padding: 0 calc(79.35 * var(--d)); scroll-padding-left: calc(79.35 * var(--d)); }
  .t26-resena { flex: 0 0 calc(587.1 * var(--d)); padding: 0 calc(100 * var(--d)); }
  .t26-estrellas { gap: calc(20 * var(--r)); }
  .t26-estrellas svg { width: calc(40 * var(--r)); height: calc(38.1 * var(--r)); }
  .t26-resena__nombre { font-size: max(calc(29.1 * var(--r)), 10px); font-weight: 500; line-height: 1.2; letter-spacing: 0.1em; margin: calc(22 * var(--r)) 0 0; }
  .t26-resena__nombre::after { content: " " var(--nota, ""); font-weight: 300; }
  /* Home: la reseña va recortada con "Leer completa", igual que en el celular (Jeison 24-nov-2026);
     en las páginas de producto sale completa (allí no se recorta). */
  .t26-resena__verificada { font-size: max(calc(14.77 * var(--r)), 9px); font-weight: 400; letter-spacing: 0.1em; color: #79797A; margin: calc(23.2 * var(--r)) 0 0; }
  .t26-resena__texto { font-size: calc(18.18 * var(--tr)); line-height: 1.249; letter-spacing: 0.111em; margin: calc(16.9 * var(--r)) 0 0; }

  /* ================================ PÁGINA DE PRODUCTO ================================ */
  .t26-pdp {
    display: grid; grid-template-columns: calc(777.5 * var(--d)) calc(808 * var(--d)); grid-template-rows: auto 1fr; column-gap: calc(113.7 * var(--d));
    max-width: none; margin: 0; padding: calc(110 * var(--d)) 0 0 calc(110.9 * var(--d)); align-items: start;
  }
  .t26-pdp__cabeza { grid-column: 2; grid-row: 1; padding: 0; margin-top: calc(-15.2 * var(--d)); }
  .t26-pdp__titulo { font-size: calc(39 * var(--d)); line-height: 1.17; letter-spacing: 0.1em; }
  .t26-pdp__titulo br { display: none; }
  .t26-pdp__galeria { grid-column: 1; grid-row: 1 / span 2; margin: 0; position: static; }
  .t26-galeria { padding: 0; gap: 0; scroll-padding: 0; }
  .t26-galeria > * { scroll-snap-align: start; }
  .t26-galeria__foto { flex: 0 0 100%; }
  .t26-galeria__foto img { aspect-ratio: 777.5 / 806.8; max-height: none; object-fit: cover; }
  .t26-pdp__galeria > .t26-puntos { display: none; }
  .t26-minis { display: flex; gap: calc(20.75 * var(--d)); margin-top: calc(46 * var(--d)); }
  .t26-minis button {
    flex: 0 0 calc(245.3 * var(--d)); height: calc(245.8 * var(--d)); padding: 0; border: 0; cursor: pointer;
    background: #111; line-height: 0;
  }
  .t26-minis button[hidden] { display: none; }
  .t26-minis img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .t26-minis button:focus-visible { outline: 2px solid var(--cian, #6CCCEB); outline-offset: 3px; }

  .t26-pdp__info { grid-column: 2; grid-row: 2; padding: calc(24.3 * var(--d)) 0 0; max-width: none; margin: 0; }
  /* 24-nov-2026 (Jeison): el precio vigente DEBAJO del tachado (kit y suscripción), no al lado. */
  .t26-pdp__precio { padding: 0; font-size: max(calc(15.61 * var(--d)), 11px); letter-spacing: 0.094em; line-height: 1.17; flex-direction: column; align-items: flex-start; }
  .t26-pdp__precio-et { font-size: max(calc(17.02 * var(--d)), 10px); margin-bottom: calc(4 * var(--d)); }
  .t26-pdp__desc { padding: 0; font-size: max(calc(25.33 * var(--d)), 10px); line-height: 1.299; letter-spacing: 0.109em; margin: calc(40.6 * var(--d)) 0 0; }
  .t26-acordeon { margin-top: calc(48.6 * var(--d)); width: calc(804.7 * var(--d)); }
  .t26-acordeon__cabeza { min-height: calc(74.5 * var(--d)); padding: 0 calc(28 * var(--d)) 0 calc(27 * var(--d)); font-size: max(calc(15.65 * var(--d)), 10px); letter-spacing: 0.1em; }
  .t26-acordeon__cabeza i { width: calc(7 * var(--d)); height: calc(7 * var(--d)); min-width: 6px; min-height: 6px; }
  .t26-acordeon__cuerpo { padding: calc(17.4 * var(--d)) calc(40 * var(--d)) calc(36.2 * var(--d)) calc(27 * var(--d)); font-size: calc(14 * var(--t)); line-height: 1.143; letter-spacing: 0.09em; }
  .t26-sellos--pdp { justify-content: flex-start; gap: 0; padding: calc(32.9 * var(--d)) 0 0 calc(86.6 * var(--d)); }
  .t26-sellos--pdp img { flex: 0 0 calc(158.3 * var(--d)); width: calc(158.3 * var(--d)); height: calc(128 * var(--d)); }
  .t26-pdp__envio { text-align: center; width: calc(804.3 * var(--d)); font-size: max(calc(12 * var(--d)), 9px); letter-spacing: 0.24em; margin: calc(37.6 * var(--d)) 0 0; }
  .t26-pdp__aviso { width: calc(804.3 * var(--d)); box-sizing: border-box; margin: calc(10 * var(--d)) 0 0; font-size: max(calc(14 * var(--d)), 11px); }
  .t26-pdp__botones { padding: calc(11.4 * var(--d)) 0 0; gap: calc(10 * var(--d)); width: calc(804.3 * var(--d)); }
  .t26-btn { height: calc(57.1 * var(--d)); min-height: 34px; font-size: max(calc(18.62 * var(--d)), 11px); }
  .t26-pdp__estado { text-align: center; font-size: max(calc(14 * var(--d)), 11px); }
  /* 24-nov-2026 (Jeison, "alineado con la línea como en el PDF"): el bloque de compra (envío +
     botones) termina A RAS de la base de las miniaturas. La columna se estira al alto de la galería
     y el bloque baja con margin-top:auto; el padding-top del envío es el aire mínimo si no sobra
     espacio (un acordeón largo abierto). El aviso de estado va debajo, fuera del flujo, para que al
     aparecer ("Lo agregaste…") no suba los botones. */
  .t26-pdp__info { align-self: stretch; display: flex; flex-direction: column; }
  .t26-pdp__info > * { flex: none; }
  .t26-pdp__envio { margin-top: auto; padding-top: calc(37.6 * var(--d)); }
  .t26-pdp__botones { position: relative; }
  .t26-pdp__estado { position: absolute; top: 100%; left: 0; right: 0; margin: 8px 0 0; }

  .t26-ingredientes {
    display: grid; grid-template-columns: repeat(3, calc(573.9 * var(--d))); column-gap: 0; row-gap: calc(42.1 * var(--d));
    max-width: none; margin: 0; padding: calc(88.1 * var(--d)) 0 calc(104 * var(--d)) calc(110.9 * var(--d));
  }
  .t26-ingredientes__titulo { grid-column: 1 / -1; text-align: center; margin: 0 0 calc(60.1 * var(--d)) calc(-110.9 * var(--d)); font-size: calc(41 * var(--d)); letter-spacing: 0.1em; line-height: 1.17; }
  .t26-ingrediente { grid-template-columns: calc(151.3 * var(--d)) calc(390 * var(--d)); column-gap: calc(18.9 * var(--d)); align-items: center; }
  .t26-ingrediente img, .t26-ingrediente > span { width: 100%; }
  /* 24-nov-2026 (Jeison): letra de los ingredientes del MISMO tamaño que los acordeones de
     arriba (títulos = "INSTRUCCIONES DE USO…", texto = el de adentro del acordeón). */
  .t26-ingrediente__titulo { font-size: max(calc(15.65 * var(--d)), 10px); letter-spacing: 0.1em; line-height: 1.39; }
  .t26-ingrediente__texto { font-size: calc(14 * var(--t)); line-height: 1.3; letter-spacing: 0.09em; margin: calc(6.5 * var(--d)) 0 0; }

  /* ==================== EDUCACIÓN ("EL ERROR QUE LA MAYORÍA...") ==================== */
  body .section-education { display: grid; grid-template-columns: calc(959.8 * var(--d)) 1fr; min-height: calc(865 * var(--d)); height: auto; }
  body .section-education__img-col { height: auto; border-right: 0; }
  body .section-education__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
  body .section-education__text-col { padding: calc(131.4 * var(--d)) calc(40 * var(--d)) 0 calc(100.7 * var(--d)); justify-content: flex-start; }
  body .section-education__title { font-size: calc(40 * var(--d)); line-height: 1.246; letter-spacing: 0.12em; margin: 0; }
  body .section-education__body { font-size: calc(15 * var(--t)); line-height: 1.424; letter-spacing: 0.105em; margin: calc(44 * var(--d)) 0 0; max-width: calc(745 * var(--d)); }
  body .section-education .btn-outline {
    width: auto; min-width: calc(185.8 * var(--d)); height: calc(37.7 * var(--d)); min-height: 26px; margin-top: calc(57 * var(--d)); padding: 0 max(calc(13 * var(--d)), 8px);
    white-space: nowrap; gap: max(calc(10 * var(--d)), 6px); align-self: flex-start;
    justify-content: space-between; border: 0.75px solid #0C0C0D; background: #ECEEEF;
    font-size: max(calc(18 * var(--d)), 10px); font-weight: 600; letter-spacing: 0.1em;
  }
  body .section-education .btn-outline svg { width: calc(18 * var(--d)); height: auto; min-width: 10px; }

  /* ============================== "( DECLARA TU ACTITUD )" ============================== */
  body .section-subscribe { background: #ECEEEF; padding: calc(98 * var(--d)) 0 calc(70 * var(--d)); height: auto; }
  body .section-subscribe__title { margin: 0; }
  body .section-subscribe .ub-txt--declara { display: inline-block; width: calc(716.6 * var(--d)); max-width: none; }
  body .subscribe-title-resp { display: none; }
  body .section-subscribe__desc {
    font-size: calc(15 * var(--t)); line-height: 1.424; letter-spacing: 0.11em; text-align: left;
    width: fit-content; max-width: calc(1062 * var(--d)); margin: calc(29 * var(--d)) auto 0;
  }
  body .subscribe-form {
    width: calc(734.6 * var(--d)); max-width: none; height: calc(32.3 * var(--d)); min-height: 26px; margin: calc(27.5 * var(--d)) auto 0;
    border: 0.75px solid #0C0C0D; border-radius: 999px; flex-direction: row;
  }
  body .subscribe-form input { padding: 0 calc(20 * var(--d)); font-size: max(calc(15 * var(--d)), 11px); flex: 1 1 auto; min-width: 0; }
  body .subscribe-form button {
    width: auto; flex: none; min-width: calc(203.3 * var(--d)); padding: 0 max(calc(12 * var(--d)), 8px); white-space: nowrap; border-radius: 999px; border-left: 0.75px solid #0C0C0D;
    font-size: max(calc(18 * var(--d)), 10px); font-weight: 600; letter-spacing: 0.1em;
  }
  body .subscribe-legal { font-size: max(calc(11 * var(--d)), 9px); max-width: calc(734.6 * var(--d)); margin-top: calc(12 * var(--d)); }

  /* ======================================= PIE ======================================= */
  body .footer { padding: calc(89.7 * var(--d)) 0 calc(90 * var(--d)); }
  body .footer__logo { margin: 0; }
  body .footer .ub-txt--logo {
    width: calc(1260.2 * var(--d)); max-width: none;
    aspect-ratio: 1260.2 / 101.3;
    -webkit-mask: url('/RENDER/icons/logo-unbound-2400.png') left center / auto 100% no-repeat, url('/RENDER/icons/registrado.svg') right top / auto 31% no-repeat;
    mask: url('/RENDER/icons/logo-unbound-2400.png') left center / auto 100% no-repeat, url('/RENDER/icons/registrado.svg') right top / auto 31% no-repeat;
  }
  body .footer__links { margin-top: calc(97 * var(--d)); gap: max(calc(10 * var(--d)), 8px) calc(40.4 * var(--d)); flex-wrap: wrap; padding: 0 16px; }
  body .footer__link { font-size: max(calc(13.5 * var(--d)), 8px); font-weight: 600; letter-spacing: 0.1em; color: #EDEEEF; opacity: 1; white-space: nowrap; }

  /* WhatsApp: 78.5 a 15.5 del borde derecho (mockup HOME), lo bastante alto para no tapar los
     enlaces del pie al llegar al final de la página. */
  body .whatsapp-float { width: max(calc(78.5 * var(--d)), 44px); height: max(calc(78.5 * var(--d)), 44px); right: calc(15.5 * var(--d)); bottom: max(calc(150 * var(--d)), 64px); }
}

/* Tablet (601-1023): con tres enlaces (CONTACTO, BLOG, FAQS) el encabezado no cabe a la escala del
   lienzo; menos aire entre enlaces y letra/logo en su mínimo para que FAQS no toque el logo. */
@media (min-width: 601px) and (max-width: 1023px) {
  body .navbar__left { gap: calc(60 * var(--d)); }
  body .navbar__link { font-size: 9px; }
  body .navbar__logo { min-height: 12px; }
  body .navbar__right { gap: 12px; }
}

/* CUATRO enlaces (24-nov-2026): quien llega por el enlace de Instagram ve además "MENÚ" (cookie
   ub_menu) y con la separación del lienzo FAQS se montaba sobre el logo en todos los anchos.
   Con 4 o más enlaces se acerca la separación; en tablet angosta también la letra y el margen. */
/* Sin "max-width: 1023px": con zoom el ancho puede quedar en 1023,5 y no caer en ningún rango. */
@media (min-width: 601px) {
  body .navbar__left:has(> :nth-child(4)) { gap: calc(30 * var(--d)); }
}
@media (min-width: 1024px) {
  body .navbar__left:has(> :nth-child(4)) { gap: calc(90 * var(--d)); }
}
@media (min-width: 601px) and (max-width: 767px) {
  body .navbar:has(.navbar__left > :nth-child(4)) { padding-left: calc(40 * var(--d)); }
  body .navbar__left:has(> :nth-child(4)) .navbar__link { font-size: 8px; }
}

/* 25-nov-2026 (revisión de dispositivos): en tablet angosta (601-800) el botón del hero, los nombres
   de las tarjetas, los nombres de las reseñas y la descripción del producto bajaban a 5-8 px. Esas
   reglas llevan ahora un mínimo con max(): en computador (desde ~1100 px) no cambia nada. */
/* Mismo día: en tablet el bloque educativo tenía alto FIJO (865 del lienzo) y su texto se salía por
   debajo, encima de "( DECLARA TU ACTITUD )"; ahora ese alto es el mínimo y crece si hace falta. El
   botón SUSCRIBIRSE se encogía y el texto se le salía (flex: none). Íconos de cuenta y carrito con
   12 px de aire en tablet (sus zonas táctiles se pisaban). */
