/* =====================================================================
   Dale Sabor · Fase 1 del rediseño (dirección A, «El estante de Boltaña»)
   Se carga después del CSS adicional (dalesabor-fase1.php, wp_head 121)
   solo si ds_fase1_activo = 1, o con ?ds_fase1=1 para verlo antes.
   No toca la lógica del carrito ni del pago: solo aspecto.
   ===================================================================== */

:root{
  --ds-tinta:#14140F;
  --ds-tinta-suave:#4A443B;
  --ds-campo-maiz:#EFD38A;
  --ds-campo-aji:#E9B4A0;
  --ds-campo-hoja:#C9D8C5;
  --ds-campo-cielo:#BFD3DC;
  /* Texto corrido a tinta plena (antes gris #6B6255, 5,5:1) */
  --theme-text-color:#2B2620;
}

/* ---------- 1.1 Hero de la portada: los productos son la imagen ---------- */
/* El marco vacío con la hoja desaparece; los tres productos y el sello pasan a ser
   cuatro baldosas de color plano, sin giros ni sombras. */
.ds-col-entrada:not(:has(.wp-block-image)){
  aspect-ratio:auto!important;
  background:none!important;
  border:0!important;
  border-radius:0!important;
}
.ds-col-entrada:not(:has(.wp-block-image))::before{ content:none!important; display:none!important; }
.ds-entrada-deco{
  position:static!important;
  inset:auto!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  pointer-events:auto;
}
.ds-entrada-deco .ds-deco{
  position:static!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1;
  object-fit:contain;
  padding:12%;
  box-sizing:border-box;
  border-radius:16px;
  transform:none!important;
  filter:none!important;
  left:auto!important; right:auto!important; top:auto!important; bottom:auto!important;
}
.ds-entrada-deco .ds-deco-1{ background:var(--ds-campo-cielo); }
.ds-entrada-deco .ds-deco-2{ background:var(--ds-campo-hoja); }
.ds-entrada-deco .ds-deco-3{ background:var(--ds-campo-maiz); }
.ds-entrada-deco .ds-sello{
  position:static!important;
  width:auto!important;
  height:auto!important;
  aspect-ratio:1/1;
  border-radius:16px!important;
  box-shadow:none!important;
  transform:none!important;
  padding:0!important;
  background:var(--ds-mango)!important;
  color:var(--theme-palette-color-4)!important;
  font-size:17px!important;
  font-weight:600;
  letter-spacing:0!important;
  text-transform:none!important;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
}
.ds-entrada-deco .ds-sello b{ font-size:40px!important; line-height:1.05; font-weight:400; }

/* La frase «Tienda latina en Canillejas, Madrid» deja de ser un antetítulo:
   va debajo del titular, en tipo de frase. El subrayado dibujado se quita. */
.ds-inicio-cols > .wp-block-column:first-child{ display:flex; flex-direction:column; }
.ds-inicio-cols > .wp-block-column:first-child > *{ order:2; }
.ds-inicio-cols > .wp-block-column:first-child > .ds-hero-titulo{ order:0; }
.ds-inicio-cols > .wp-block-column:first-child > .ds-eyebrow{
  order:1;
  font-size:22px!important;
  font-weight:500!important;
  letter-spacing:0!important;
  text-transform:none!important;
  line-height:1.35;
  margin:14px 0 20px!important;
}
.ds-subrayado{ display:none!important; }

/* Botón «Ver la tienda online» legible sobre verde (antes 2,8:1) */
.ds-hero .ds-btn-linea .wp-block-button__link{
  color:#FAF4E9!important;
  border-color:rgba(250,244,233,.7)!important;
}

/* Sobre nosotros: mientras no haya fotos de Sandy y del equipo, el hueco vacío con la hoja
   pasa a ser un campo de color con productos de la tienda (en cuanto se ponga una imagen
   en esa columna deja de estar :empty y esto no se aplica). */
.ds-col-foto:empty{
  border:0!important;
  border-radius:16px!important;
  aspect-ratio:1/1!important;
  background-color:var(--ds-campo-hoja)!important;
  background-repeat:no-repeat!important;
  background-image:
    url("/wp-content/uploads/dale-sabor-2026/p-a-n-harina-de-maiz-blanco/p-a-n-harina-de-maiz-blanco-frente-600x600.webp"),
    url("/wp-content/uploads/dale-sabor-2026/inca-kola-625ml/inca-kola-625ml-frente-600x600.webp"),
    url("/wp-content/uploads/dale-sabor-2026/valentina-salsa-picante/valentina-salsa-picante-frente-600x600.webp"),
    url("/wp-content/uploads/dale-sabor-2026/rosamonte-mate/rosamonte-mate-frente-600x600.webp")!important;
  background-size:34% auto!important;
  background-position:11.4% 11.4%, 88.6% 11.4%, 11.4% 88.6%, 88.6% 88.6%!important;
}
.ds-col-foto:empty::before{ content:none!important; display:none!important; }
.ds-col-foto.ds-col-equipo:empty{
  aspect-ratio:3/1!important;
  background-color:var(--ds-campo-maiz)!important;
  background-image:
    url("/wp-content/uploads/dale-sabor-2026/cafe-aguila-roja/cafe-aguila-roja-frente-600x600.webp"),
    url("/wp-content/uploads/dale-sabor-2026/goya-frijoles-negros-bolsa/goya-frijoles-negros-frente-600x600.webp"),
    url("/wp-content/uploads/dale-sabor-2026/corona-chocolate-tradicional/corona-chocolate-tradicional-frente-600x600.webp")!important;
  background-size:auto 70%!important;
  background-position:6% 50%, 50% 50%, 94% 50%!important;
}

@media (max-width:999px){
  .ds-entrada-deco{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
  .ds-entrada-deco .ds-deco-3{ display:block!important; }
  .ds-entrada-deco .ds-deco{ padding:10%; border-radius:12px; }
  .ds-entrada-deco .ds-sello{ font-size:13px!important; border-radius:12px!important; }
  .ds-entrada-deco .ds-sello b{ font-size:20px!important; }
  .ds-inicio-cols > .wp-block-column:first-child > .ds-eyebrow{ font-size:19px!important; margin:10px 0 16px!important; }
}

/* ---------- 1.9 Sin antetítulos, versalitas ni numeración decorativa ---------- */
/* Antetítulos de sección fuera en toda la web. Los de dentro de columnas (los datos de
   país y minutos de cada receta, y la frase del hero) se quedan, en tipo de frase. */
.ds-sec > .ds-eyebrow{ display:none!important; }

/* Botón con contorno sobre fondo verde (Sobre nosotros, Contacto): legible */
.has-palette-color-4-background-color .ds-btn-linea .wp-block-button__link{
  color:#FAF4E9!important;
  border-color:rgba(250,244,233,.7)!important;
}
.ds-dato small{ color:rgba(250,244,233,.78)!important; }

/* Aviso del mapa diferido: campo plano, sin dibujo de degradados ni sombra */
.ds-mapa-diferido{ background-image:none!important; }
.ds-mapa-aviso{ box-shadow:none!important; }
.ds-eyebrow,
.ds-dato small,
.ds-cat-ver,
.ds-rm-meta,
.ds-receta-compra-titulo,
.ds-receta-pasos .ds-receta-sub,
footer.ct-footer h4,
.ct-sidebar .widget-title,
.ct-sidebar .widgettitle,
.woocommerce .woocommerce-result-count,
.woocommerce span.onsale,
.wc-block-grid__product-onsale,
.out-of-stock-badge,
ul.product-categories::before,
ul.product-categories::after,
.single-product .product_meta,
.single-product .product_meta *,
.woocommerce-tabs ul.tabs li a{
  text-transform:none!important;
  letter-spacing:0!important;
}
.ds-eyebrow{ font-size:15px!important; }
.ds-dato small{ font-size:14px!important; }
.ds-cat-ver{ font-size:14px!important; color:var(--theme-palette-color-4)!important; }
.ds-rm-meta{ font-size:14px!important; }
.ds-receta-compra-titulo,
.ds-receta-pasos .ds-receta-sub{ font-size:15px!important; font-weight:600; }
footer.ct-footer h4{ font-size:15px!important; }
.ct-sidebar .widget-title,
.ct-sidebar .widgettitle{ font-size:15px!important; }
ul.product-categories::before,
ul.product-categories::after{ font-size:15px!important; }
.woocommerce .woocommerce-result-count{ font-size:15px!important; color:var(--ds-tinta-suave)!important; }
.woocommerce span.onsale,
.wc-block-grid__product-onsale,
.out-of-stock-badge{ font-size:13px!important; font-weight:600!important; }
.single-product .product_meta{ font-size:14px!important; }
.woocommerce-tabs ul.tabs li a{ font-size:15px!important; }

/* Recetas: el antetítulo «Recetas» encima del h1 repite el título */
body:not(.home) .ds-eyebrow:has(+ h1){ display:none!important; }

/* Carrito desplegable de la cabecera: totales y botones legibles */
.ct-cart-content .woocommerce-mini-cart__total,
.ct-cart-content .woocommerce-mini-cart__total *{ font-size:14px!important; }
.ct-cart-content .woocommerce-mini-cart__buttons .button{ font-size:14px!important; }

/* Pasos de recogida: sin 01/02/03 (el orden ya lo da la posición) */
.ds-num{ display:none!important; }

/* Textos que estaban en gris o eran demasiado pequeños */
.ds-lead,
.ds-texto-largo{ color:var(--theme-text-color)!important; }
ul.product-categories li.cat-item .count{ color:var(--ds-tinta-suave)!important; font-size:14px!important; }
:is(.cart_totals,.woocommerce-checkout-review-order) #shipping_method .ds-envio-ok{ font-size:14px!important; }
.ds-form .wpforms-field-gdpr-checkbox .wpforms-field-description{ font-size:14px!important; }

/* ---------- 1.7 Nombres de producto en tipo de frase ---------- */
/* Los nombres vienen en MAYÚSCULAS del TPV. Aquí solo cambia cómo se ven
   («Pony malta botella 330ml»); los datos no se tocan. */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title,
.single-product .product_title,
.woocommerce-cart-form .product-name,
.woocommerce-checkout-review-order-table .product-name,
.ds-receta-nombre{
  text-transform:lowercase!important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title::first-letter,
.woocommerce ul.products li.product .woocommerce-loop-product__title a::first-letter,
.wc-block-grid__product-title::first-letter,
.single-product .product_title::first-letter,
.woocommerce-cart-form .product-name::first-letter,
.woocommerce-cart-form .product-name a::first-letter,
.woocommerce-checkout-review-order-table .product-name::first-letter,
.ds-receta-nombre::first-letter{
  text-transform:uppercase!important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{ font-size:15px!important; }
.woocommerce-cart-form .product-name a{ display:inline-block; }

/* Botón de la rejilla: sin partir en dos líneas */
.woocommerce ul.products li.product .button,
.wc-block-grid__product-add-to-cart a{ white-space:nowrap!important; font-size:14px!important; }
@media (max-width:999px){
  .woocommerce ul.products li.product .woocommerce-loop-product__title{ font-size:14px!important; }
  .woocommerce ul.products li.product .button,
  .wc-block-grid__product-add-to-cart a{ font-size:13px!important; padding:0 12px!important; }
}

/* ---------- 1.3 Ficha de producto: nombre, precio y botón en la primera pantalla ---------- */
@media (max-width:999px){
  .single-product .woocommerce-product-gallery .ct-media-container,
  .single-product .woocommerce-product-gallery .flexy-item img{
    max-height:44svh!important;
  }
  .single-product .woocommerce-product-gallery .flexy-item img{
    width:auto!important;
    margin:0 auto!important;
    object-fit:contain!important;
  }
  .single-product .woocommerce-product-gallery .flexy-pills,
  .single-product .woocommerce-product-gallery .flexy-view + .flexy-pills{ display:none!important; }
  .single-product .woocommerce-product-gallery{ margin-bottom:12px!important; }
  .single-product .product_title{ font-size:28px!important; }
}
@media (max-width:689px){
  .single-product .woocommerce-product-gallery .ct-media-container,
  .single-product .woocommerce-product-gallery .flexy-item img{ max-height:36svh!important; }
}

/* ---------- 1.4 Carrito: el cupón deja de parecer el botón principal ---------- */
.woocommerce-cart-form .coupon .button,
.woocommerce-cart-form button[name="update_cart"]{
  background:transparent!important;
  color:var(--theme-palette-color-4)!important;
  border:1.5px solid var(--theme-palette-color-5)!important;
  box-shadow:none!important;
}
.woocommerce-cart-form .coupon .button:hover,
.woocommerce-cart-form button[name="update_cart"]:not(:disabled):hover{
  border-color:var(--theme-palette-color-4)!important;
}
.woocommerce-cart-form button[name="update_cart"]:disabled{
  opacity:.55!important;
  background:transparent!important;
}
/* «Ver carrito» dentro del propio carrito no lleva a ningún sitio */
.woocommerce-cart .woocommerce-message .button.wc-forward{ display:none!important; }
@media (max-width:999px){
  .woocommerce-cart-form .coupon{ display:flex!important; flex-direction:row!important; gap:8px; flex-wrap:nowrap!important; }
  .woocommerce-cart-form .coupon .input-text{ flex:1 1 auto; min-width:0; }
  .woocommerce-cart-form .coupon .button{ flex:0 0 auto; width:auto!important; padding:0 18px!important; }
  .woocommerce-cart-form button[name="update_cart"]{ min-height:44px!important; }
}

/* ---------- 1.6 Paginación con números también en móvil ---------- */
.ct-pagination .next,
.ct-pagination .prev{ text-transform:none!important; letter-spacing:0!important; }
@media (max-width:689px){
  .ct-pagination[data-pagination="simple"]{ display:flex!important; flex-direction:column!important; align-items:center!important; gap:14px; }
  .ct-pagination .ct-hidden-sm{ display:flex!important; flex-wrap:nowrap; justify-content:center; gap:4px; width:100%; }
  .ct-pagination .ct-hidden-sm .page-numbers{ min-width:38px; min-height:38px; padding:0 6px; }
}

/* ---------- 1.10 Foco visible y menos movimiento ---------- */
.wc-block-grid__product:focus-within,
.woocommerce ul.products li.product:focus-within,
ul.product-categories li.cat-item:focus-within{
  outline:2px solid var(--theme-palette-color-1);
  outline-offset:3px;
}
.ds-cat:focus-visible,
.ds-rm:focus-visible,
.ds-ayuda-item:focus-visible,
.ds-receta-boton:focus-visible,
.ds-recetas-indice a:focus-visible{
  outline:2px solid var(--theme-palette-color-1)!important;
  outline-offset:3px;
}
.ds-form input[type=text]:focus-visible,
.ds-form input[type=email]:focus-visible,
.ds-form input[type=tel]:focus-visible,
.ds-form textarea:focus-visible,
.ct-sidebar .woocommerce-product-search .search-field:focus-visible{
  outline:2px solid var(--theme-palette-color-1)!important;
  outline-offset:1px!important;
}
:is(.cart_totals,.woocommerce-checkout-review-order) #shipping_method li:has(.ds-envio-elegir:focus-visible){
  outline:2px solid var(--theme-palette-color-1);
  outline-offset:2px;
}
:is(.cart_totals,.woocommerce-checkout-review-order) #shipping_method .ds-envio-elegir:focus-visible{ outline:none; }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
  .wc-block-grid__product:hover,
  .woocommerce ul.products li.product:hover,
  .ds-cat:hover, .ds-cat:hover .ds-cat-img img,
  .ds-rm:hover, .ds-ayuda-item:hover{ transform:none!important; }
}

/* ---------- 1.11 Espacio reservado para las imágenes (sin saltos al cargar) ---------- */
.ds-cat-img img{ aspect-ratio:1/1; }
.ds-rm > img{ aspect-ratio:4/3; }

/* ---------- 1.12 Títulos del pie: ahora son h2 (ver dalesabor-fase1.php) ---------- */
footer.ct-footer h2.ds-pie-titulo{
  font-family:'Plus Jakarta Sans',system-ui,sans-serif!important;
  font-size:15px!important;
  font-weight:600!important;
  line-height:1.4!important;
  letter-spacing:0!important;
  text-transform:none!important;
  color:var(--ds-mango)!important;
  margin:0 0 18px!important;
}

/* ---------- 1.2 Página «próximamente» con la marca ---------- */
.woocommerce-coming-soon-store-only h1{
  font-family:'Young Serif',Georgia,serif!important;
  color:var(--theme-palette-color-4)!important;
  font-size:clamp(34px,4.6vw,56px)!important;
  line-height:1.06!important;
  letter-spacing:-.015em!important;
}
.woocommerce-coming-soon-store-only p{
  font-family:'Plus Jakarta Sans',system-ui,sans-serif!important;
  font-size:18px!important;
  line-height:1.6!important;
  color:var(--theme-text-color)!important;
  max-width:56ch;
  margin-left:auto!important;
  margin-right:auto!important;
}
.woocommerce-coming-soon-store-only .ds-pronto-acciones{
  display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:28px;
}
.woocommerce-coming-soon-store-only .ds-pronto-acciones a{
  min-height:52px; display:inline-flex; align-items:center; justify-content:center;
  padding:0 28px; border-radius:999px; font-weight:600; font-size:15px; text-decoration:none;
}
.woocommerce-coming-soon-store-only .ds-pronto-acciones a.ds-pronto-principal{
  background:var(--theme-palette-color-1); color:#fff;
}
.woocommerce-coming-soon-store-only .ds-pronto-acciones a.ds-pronto-secundario{
  border:1.5px solid var(--theme-palette-color-5); color:var(--theme-palette-color-4);
}
@media (max-width:689px){
  .woocommerce-coming-soon-store-only .wp-block-group{ padding-left:16px; padding-right:16px; }
}
