/* =====================================================================
   Dale Sabor · Fase 2 del rediseño (dirección A): paleta y sistema
   Se carga después de fase1.css (dalesabor-fase2.php, wp_head 122)
   solo si ds_fase2_activo = 1, o con ?ds_fase2=1 para verlo antes.
   Paleta: fondo hueso, tinta, selva para lo estructural y mango como
   ÚNICO acento (acción principal, ofertas y contador del carrito).
   ===================================================================== */

:root{
  /* Paleta global de Blocksy (sustituye a crema + terracota) */
  --theme-palette-color-1:#12311F;   /* antes #BD4A17 terracota: botones, enlaces, foco → selva */
  --theme-palette-color-2:#21563A;   /* antes #9C3B10: hover → selva más clara, se nota al pasar */
  --theme-palette-color-3:#3D372F;   /* antes #6B6255: texto secundario, 10:1 sobre el fondo */
  --theme-palette-color-4:#12311F;   /* selva (títulos, bandas, pie) */
  --theme-palette-color-5:#D6D3CC;   /* antes #E0D3BE: bordes, sin amarillo */
  --theme-palette-color-6:#E5E3DD;   /* antes #F1E6D3: superficie un paso más oscura */
  --theme-palette-color-7:#EFEEEA;   /* antes #FAF4E9 crema: fondo piedra clara, casi neutro */
  --theme-palette-color-8:#FFFFFF;

  --ds-mango:#E8A02C;
  --ds-mango-hover:#D58F1E;
  --ds-campo:#FAF9F6;
  --theme-form-field-background-initial-color:#FAF9F6;
  --theme-text-color:#24201B;

  /* Un solo radio: botones en píldora; tarjetas y campos a 16 px */
  --theme-form-field-border-radius:16px;
}

/* ---------- Acción principal en mango con texto selva (5,8:1) ---------- */
.ds-hero .wp-block-button.is-style-fill .wp-block-button__link,
.single-product .single_add_to_cart_button,
.woocommerce .wc-proceed-to-checkout .checkout-button,
.woocommerce-checkout #place_order,
.woocommerce-coming-soon-store-only .ds-pronto-acciones a.ds-pronto-principal,
.ds-receta-boton{
  background:var(--ds-mango)!important;
  color:var(--theme-palette-color-4)!important;
  border-color:var(--ds-mango)!important;
}
.ds-hero .wp-block-button.is-style-fill .wp-block-button__link:hover,
.single-product .single_add_to_cart_button:hover,
.woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-checkout #place_order:hover,
.woocommerce-coming-soon-store-only .ds-pronto-acciones a.ds-pronto-principal:hover,
.ds-receta-boton:hover{
  background:var(--ds-mango-hover)!important;
  color:var(--theme-palette-color-4)!important;
}
/* Sobre bandas verdes un botón relleno en selva desaparecería: ahí va en mango */
.has-palette-color-4-background-color .wp-block-button:not(.is-style-outline):not(.ds-btn-linea) .wp-block-button__link,
footer.ct-footer .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.ds-visita-datos .wp-block-button:not(.is-style-outline) .wp-block-button__link{
  background:var(--ds-mango)!important;
  color:var(--theme-palette-color-4)!important;
}
.has-palette-color-4-background-color .wp-block-button:not(.is-style-outline):not(.ds-btn-linea) .wp-block-button__link:hover,
footer.ct-footer .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover{
  background:var(--ds-mango-hover)!important;
}
.has-palette-color-4-background-color a:not(.wp-block-button__link):hover,
footer.ct-footer a:not(.wp-block-button__link):hover{ color:var(--ds-mango)!important; }

[data-id="button"]{
  --theme-button-background-initial-color:var(--ds-mango);
  --theme-button-background-hover-color:var(--ds-mango-hover);
  --theme-button-text-initial-color:var(--theme-palette-color-4);
  --theme-button-text-hover-color:var(--theme-palette-color-4);
}
.ct-header [data-id="button"]{
  --theme-button-background-initial-color:var(--ds-mango);
  --theme-button-background-hover-color:var(--ds-mango-hover);
  --theme-button-text-initial-color:var(--theme-palette-color-4);
  --theme-button-text-hover-color:var(--theme-palette-color-4);
}
.ct-header [data-id="button"] .ct-button{
  background-color:var(--ds-mango)!important;
  color:var(--theme-palette-color-4)!important;
}

/* Botones de la rejilla: secundarios (contorno selva), para que el acento no se repita 24 veces */
.woocommerce ul.products li.product .button,
.wc-block-grid__product-add-to-cart a.wp-block-button__link{
  background:transparent!important;
  color:var(--theme-palette-color-4)!important;
  border:1.5px solid var(--theme-palette-color-4)!important;
}
.woocommerce ul.products li.product .button:hover,
.wc-block-grid__product-add-to-cart a.wp-block-button__link:hover{
  background:var(--theme-palette-color-4)!important;
  color:#FFFFFF!important;
}
.woocommerce ul.products li.product .button.added,
.wc-block-grid__product-add-to-cart a.added{
  background:var(--theme-palette-color-4)!important;
  color:#FFFFFF!important;
}

/* ---------- Ofertas y contador del carrito en mango ---------- */
.woocommerce span.onsale,
.wc-block-grid__product-onsale{
  background:var(--ds-mango)!important;
  color:var(--theme-palette-color-4)!important;
  border:0!important;
}
.ct-dynamic-count-cart{
  background:var(--ds-mango)!important;
  color:var(--theme-palette-color-4)!important;
}
ul.product-categories li.cat-item:not(.current-cat) a{ color:var(--theme-palette-color-4)!important; }
ul.product-categories li.cat-item.current-cat a,
ul.product-categories li.cat-item.current-cat .count{ color:#FFFFFF!important; }

/* Asterisco de campo obligatorio: rojo legible sobre el fondo (antes #FF0000, 3,4:1) */
.woocommerce form .form-row .required,
abbr.required{ color:#B3261E!important; }

/* ---------- Enlaces dentro del texto: subrayados (el color ya no los distingue) ---------- */
.entry-content p a:not(.wp-block-button__link):not(.button),
.ds-legal li a:not(.wp-block-button__link):not(.button):not(.ds-ayuda-item),
.woocommerce-privacy-policy-text a,
.woocommerce-terms-and-conditions-checkbox-text a,
.ds-recogida-oferta a,
.ds-envio-cambiar{
  text-decoration:underline!important;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}

/* ---------- Foco visible también sobre fondo verde ---------- */
.ds-hero :focus-visible,
footer.ct-footer :focus-visible,
.has-palette-color-4-background-color :focus-visible,
.ds-visita-datos :focus-visible{
  outline-color:var(--ds-mango)!important;
}
.ds-hero .wp-block-button__link:focus-visible,
footer.ct-footer a:focus-visible{
  outline:2px solid var(--ds-mango)!important;
  outline-offset:3px!important;
}

/* ---------- Restos de la paleta anterior escritos a mano en el CSS adicional ---------- */
ul.product-categories li.cat-item-51 a,
ul.product-categories li.cat-item a[href*="en-oferta"]{ color:var(--theme-palette-color-4)!important; }
ul.product-categories li.cat-item:not(.current-cat) .count,
ul.product-categories::before,
ul.product-categories::after{ color:#4A443B!important; }
.ct-sidebar .price_slider_wrapper .ui-slider .ui-slider-handle:hover,
.ct-sidebar .price_slider_wrapper .ui-slider .ui-slider-handle:focus-visible,
.ct-sidebar .price_slider_wrapper .ui-slider .ui-slider-handle.ui-state-active{
  box-shadow:0 0 0 5px rgba(18,49,31,.18)!important;
}

/* ---------- Texto claro sobre verde: blanco neutro en lugar de crema ---------- */
.ds-hero-texto{ color:rgba(255,255,255,.88)!important; }
.ds-lead-claro,
.ds-hero-dato span{ color:rgba(255,255,255,.84)!important; }
.ds-conf,
.ds-hero-chips span{ color:rgba(255,255,255,.88)!important; }
.ds-paso p{ color:rgba(255,255,255,.82)!important; }
.ds-dato small{ color:rgba(255,255,255,.8)!important; }
footer.ct-footer p,
footer.ct-footer li,
footer.ct-footer .widget,
footer.ct-footer a{ color:rgba(255,255,255,.8)!important; }
footer.ct-footer .ct-footer-copyright,
footer.ct-footer .ct-footer-copyright a{ color:rgba(255,255,255,.66)!important; }
.ds-hero .wp-block-heading,
.has-palette-color-7-color{ color:#FFFFFF!important; }

/* ---------- Radio único en tarjetas (16 px) ---------- */
.ds-cat,
.ds-rm,
.ds-fact,
.ds-visita-datos,
.ds-mapa{ border-radius:16px!important; }
.ds-form input[type=text],
.ds-form input[type=email],
.ds-form input[type=tel],
.ds-form textarea,
.woocommerce form .input-text,
.woocommerce form select,
.ct-sidebar .woocommerce-product-search .search-field{ border-radius:16px!important; }
