/*
Theme Name: Divi Child
Theme URI: https://duploweb.es
Template: Divi
Author: Duploweb
Author URI: https://duploweb.es
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 4.27.5.1771247678
Updated: 2026-02-16 14:14:38

*/
/* =====================================================
   ACCESIBILIDAD – FOCO VISIBLE (WCAG 2.1 AA)
   WooCommerce catálogo + Divi
   Compatible con header/footer oscuros y contenido blanco
   ===================================================== */

/* -----------------------------------------------------
   FOCO BASE – CONSISTENTE EN TODO EL SITIO
   ----------------------------------------------------- */
:focus-visible {
  outline: 3px solid #104bac; /* azul WCAG */
  outline-offset: 4px;
  border-radius: 4px;
  background: rgba(16, 75, 172, 0.08);
}

/* -----------------------------------------------------
   ENLACES – NO DEPENDER SOLO DEL COLOR
   ----------------------------------------------------- */
a {
  color: inherit;
  text-decoration-thickness: 2px;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* ACCESIBILIDAD Todas las imágenes dentro de enlaces */
a img {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Foco visible para teclado */
a:focus-visible img {
  outline: 2px solid #1877f2; /* color de foco */
  outline-offset: 4px;
  transform: scale(1.05); /* opcional, efecto ligero */
  box-shadow: 0 0 5px rgba(24, 119, 242, 0.7); /* opcional, resalta foco */
}

.et_pb_image_wrap {
  overflow: visible !important;
}

/* -----------------------------------------------------
   BOTONES (DIVI + HTML) - compatible con todos los navegadores
   ----------------------------------------------------- */
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
.et_pb_button:focus-visible,
.et_pb_promo_button:focus-visible {
  outline: 3px solid #104bac;
  outline-offset: 4px;
  background: rgba(16, 75, 172, 0.08);
  border-radius: 4px;
}

/* -----------------------------------------------------
   ENLACES SUBMENU ACCESIBLES junto al codigo en php
   ----------------------------------------------------- */
.menu-item-has-children.submenu-open > ul {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* -----------------------------------------------------
   WOOCOMMERCE – CATÁLOGO
   ----------------------------------------------------- */
/* Tarjeta completa del producto */
.woocommerce ul.products li.product a {
  display: block;
}

/* Foco SOLO en el enlace principal del producto */
.woocommerce ul.products li.product a:focus-visible {
  outline: 3px solid #104bac;
  outline-offset: 6px;
  border-radius: 6px;
  background: rgba(16, 75, 172, 0.08);
}

/* Evitar múltiples focos internos */
.woocommerce ul.products li.product *:focus-visible {
  outline: none;
}

/* Imagen del producto */
.woocommerce ul.products li.product img {
  display: block;
}

/* Título del producto */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
  text-decoration-thickness: 2px;
}

.woocommerce ul.products li.product a:hover h2,
.woocommerce ul.products li.product a:focus-visible h2 {
  text-decoration: underline;
}

/* -----------------------------------------------------
   SCREEN READER TEXT (WORDPRESS ESTÁNDAR)
   ----------------------------------------------------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.screen-reader-text:focus-visible {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  background: #104bac;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  z-index: 1000;
}

/* -----------------------------------------------------
   SKIP LINK (IR AL CONTENIDO)
   ----------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100000;
}

.skip-link:focus-visible {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  background: #ffc107; /* amarillo para skip link */
  color: #000;
  padding: 8px 12px;
  font-weight: bold;
  text-decoration: none;
}

/* -----------------------------------------------------
   DIVI – HEADER / LOGO / MENÚ HAMBURGUESA (fondos oscuros)
   ----------------------------------------------------- */

/* Enlaces del header */
#main-header a:focus-visible,
.et_pb_menu__menu a:focus-visible {
  outline: 3px solid #104bac;
  outline-offset: 4px;
  border-radius: 4px;
  background: rgba(16, 75, 172, 0.15); /* semi-transparente para fondo negro */
  box-shadow: 0 0 0 2px #fff; /* resalta sobre negro */
  color: #fff !important;
}

/* Logo */
.et_pb_menu__logo-wrap a:focus-visible {
  box-shadow: 0 0 0 4px #104bac;
  border-radius: 4px;
}

/* Menú hamburguesa móvil */
.mobile_menu_bar:focus,
.mobile_menu_bar:focus-visible {
  outline: 3px solid #104bac;
  outline-offset: 4px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px #104bac;
  background: rgba(16, 75, 172, 0.15);
}

/* ======================================= */
/* CONTACT FORM 7 - ESTILOS ACCESIBLES WCAG 2.2 */
/* ======================================= */

/* CONTENEDOR */
div.wpcf7 .wpcf7-form-control {
  max-width: 100%;
}

.wpcf7 form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 6px;
  font-family: Lato, Arial, sans-serif;
  font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .wpcf7 form {
    max-width: 100%;
    padding: 30px 15px;
  }
}

/* PÁRRAFOS Y LABELS */
.wpcf7 form p {
  margin-bottom: 12px;
  font-size: 17px;
  color: #000;
}

.wpcf7-form label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 600;
  line-height: 1.4;
}

small {
  font-size: 14px;
  color: #222;
  font-style: italic;
}

.wpcf7 .info-datos {
  font-size: 12px;
  color: #222;
  line-height: 1.5;
  margin-top: 5px;
}

/* CAMPOS DE FORMULARIO */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background-color: #f7f7f7;
  font-size: 16px;
  color: #222;
  transition: border 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

/* Placeholder */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #777;
  font-style: italic;
}

/* Textarea */
.wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

/* FOCUS ACCESIBLE UNIFORME */
.wpcf7 input[type="text"]:focus-visible,
.wpcf7 input[type="email"]:focus-visible,
.wpcf7 input[type="tel"]:focus-visible,
.wpcf7 input[type="number"]:focus-visible,
.wpcf7 input[type="date"]:focus-visible,
.wpcf7 textarea:focus-visible,
.wpcf7 select:focus-visible {
  outline: 3px solid #6e1414;
  outline-offset: 2px;
  border-color: #6e1414;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(110, 20, 20, 0.25);
}

/* SELECT PERSONALIZADO */
.wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23222'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

/* BOTÓN DE ENVÍO */
.wpcf7 input[type="submit"] {
  background-color: #6e1414;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-family: Lato, Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
  min-height: 48px;
}

.wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wpcf7 input[type="submit"]:focus-visible {
  outline: 3px solid #6e1414;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(110, 20, 20, 0.3);
}

/* ESTADOS DE ERROR */
.wpcf7-not-valid {
  border: 2px solid #6e1414 !important;
}

.wpcf7-not-valid:focus-visible {
  outline: 3px solid #000;
}

.wpcf7 form.invalid .wpcf7-response-output {
  color: #fff;
  background-color: #6e1414;
  padding: 15px;
  border-radius: 6px;
  border: none;
  margin-top: 20px;
  font-weight: 500;
}

/* CHECKBOX ACCESIBLE */
.wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.4;
}

.wpcf7-form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 3px;
}

.wpcf7-form input[type="checkbox"]:focus-visible {
  outline: 3px solid #6e1414;
  outline-offset: 3px;
}

/* OPTIMIZACIÓN MÓVIL */
@media (max-width: 768px) {
  .wpcf7-acceptance label {
    min-height: 48px;
    padding: 8px 0;
  }

  .wpcf7-form input[type="checkbox"],
  .wpcf7 input[type="number"],
  .wpcf7 input[type="date"] {
    min-height: 48px;
    padding: 12px 15px;
  }
}

/* Texto de la direccion del local de la pagina Finalizar compra si eliges recoger en tienda*/
.pickup-address {
    font-size: 0.85em;
    color: #4a4a4a;
    display: block;
    margin-top: 2px;
}

/* Estilo para la descripción del método de envío */
.shipping-method-description {
    font-size: 0.85em;   
    color: #4a4a4a;         
    margin-top: 2px;     
    line-height: 1.2em;  
}

/* ======================================= */
/* BOTON VOLVER ARRIBA */
/* ======================================= */
/* PERSONALIZACIÓN DEL BOTÓN DE VOLVER ARRIBA - OPTIMIZADO */

.et_pb_scroll_top.et-pb-icon {
    background-color: #6e1414;
    border-bottom-left-radius: 6px; 
	border-top-left-radius: 6px;
    border-right: 4px solid #e28b46; 
    transition: all 0.3s ease-in-out; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); 
}

.et_pb_scroll_top.et-pb-icon:before {
    font-family: 'ETMODULES';
    content: '\46'; 
    font-size: 28px;
    color: #fff;
    display: inline-block;
    line-height: 1;
    transition: color 0.3s ease-in-out;
}

/* Efecto hover para mayor interactividad */
.et_pb_scroll_top.et-pb-icon:hover {
    background-color: #470d0d;    
}

/* Foco visible accesible para Volver arriba */
.et_pb_scroll_top:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.4);
}

/* AGRANDAR EL TXT DE LA PAGINA DE COOKIES GENERADA PON COMPLIANZ */
#cmplz-document p {
	font-size: 16px !important;
}

/* ACCESIBILIDAD EN LA PAGINA DE POLITICA DE COOKIES DE Complianz */
/* Mejorar accesibilidad de checkboxes Complianz */
/* Aumentar área táctil real de checkboxes Complianz */
input.cmplz-consent-checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 10px;
}

/* Espacio mínimo entre controles */
input.cmplz-consent-checkbox + label,
input.cmplz-consent-checkbox {
  margin-bottom: 12px;
}

/* ======================================= */
/* CARTAS PREMIUM Y ACCESIBLES - PRODUCTOS RELACIONADOS */
/* ======================================= */

/* CARTA DE PRODUCTO */
body .dfw-shop-31 ul.products li.product,
.single-product .related ul.products li.product {
  background-color: #ffffff;
  border: 1px solid #e28b46 !important;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* Hover y focus premium */
body .dfw-shop-31 .woocommerce ul.products li.product:hover,
body .dfw-shop-31 .woocommerce ul.products li.product:focus-within,
.single-product .related ul.products li.product:hover,
.single-product .related ul.products li.product:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
  outline: 2px solid #104bac;
  outline-offset: 4px;
}

/* IMAGEN CON HOVER ZOOM */
body .dfw-shop-31 .woocommerce ul.products li.product .et_shop_image,
.single-product .related ul.products li.product .et_shop_image {
  margin: 10px;
  overflow: hidden;
  border-radius: 6px;
  order: 1;
}

body .dfw-shop-31 .woocommerce ul.products li.product .et_shop_image img,
.single-product .related ul.products li.product .et_shop_image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

body .dfw-shop-31 .woocommerce ul.products li.product:hover .et_shop_image img,
body .dfw-shop-31 .woocommerce ul.products li.product:focus-within .et_shop_image img,
.single-product .related ul.products li.product:hover .et_shop_image img,
.single-product .related ul.products li.product:focus-within .et_shop_image img {
  transform: scale(1.05);
}

/* TÍTULO DEL PRODUCTO */
body .dfw-shop-31 .woocommerce ul.products li.product .woocommerce-loop-product__title,
.single-product .related ul.products li.product .woocommerce-loop-product__title {
  order: 3;
  padding: 0 30px;
  margin-bottom: 8px;
}

/* PRECIO */
body .dfw-shop-31 span.price,
.single-product .related ul.products li.product span.price {
  order: 4;
  padding: 8px 20px 12px;
}

/* BOTÓN FULL-WIDTH */
body .dfw-shop-31 .woocommerce ul.products li.product .button,
.single-product .related ul.products li.product .button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  background-color: #761818 !important;
  color: #fff !important;
  border: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 12px 0;
  text-align: center;
  min-height: 44px;
  transition: background 0.3s ease, transform 0.2s ease;
}

body .dfw-shop-31 .woocommerce ul.products li.product .button:hover,
body .dfw-shop-31 .woocommerce ul.products li.product .button:focus,
.single-product .related ul.products li.product .button:hover,
.single-product .related ul.products li.product .button:focus {
  background-color: #400d0d !important;
  outline: 2px solid #761818;
  outline-offset: 2px;
  transform: translateY(-1px);
}

/* Quitar el icono de rolover en el btn de Ver producto */
body .dfw-shop-31 .woocommerce ul.products li.product .button::after,
.single-product .related ul.products li.product .button::after {
  display: none;
}

/* BADGE ON SALE MODERNO */
body .dfw-shop-31 .woocommerce ul.products li.product .onsale,
.single-product .related ul.products li.product .onsale {
  right: 20px;
  top: 30px;
  border-radius: 6px;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background-color: #6e1414;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* OCULTAR ELEMENTOS NO NECESARIOS */
.dfw-shop-31 select.orderby,
.dfw-shop-31 .woocommerce-result-count {
  display: none !important;
}

/* FLEX COLUMN PARA PRODUCTOS */
.dfw-shop-31 .woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
}

/* RESPONSIVE */
@media screen and (max-width: 767px) {
  .dfw-shop-31.et_pb_shop ul.products li.product {
    margin-bottom: 30px;
    width: 100%;
  }
}

@media screen and (max-width: 479px) {
  .et-db #et-boc .et-l .et_pb_shop ul.products.columns-2 li.product,
  .et-db #et-boc .et-l .et_pb_shop ul.products.columns-3 li.product,
  .et-db #et-boc .et-l .et_pb_shop ul.products.columns-4 li.product {
    width: 100% !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    clear: both !important;
  }
}

/* UNA SOLA COLUMNA MOVIL PRODUCTOS RELACIONADOS */
/* --- Productos Relacionados Responsive --- */
@media only screen and (max-width: 767px) {
    .single-product .related ul.products li.product {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important; /* Espacio inferior entre productos */
    }
}

/* REDUCIR MOTION PARA USUARIOS SENSIBLES */
@media (prefers-reduced-motion: reduce) {
  .dfw-shop-31 * {
    transition: none !important;
    transform: none !important;
  }
}

/* ================================================ */
/* ESTILOS BTN personalizado WhatsApp ACCESIBILIDAD */
/* ================================================ */
/* Boton con enlace a WhatsApp */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  min-height: 48px;
  background-color: #25d366;
  color: #000000 !important;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover */
.btn-whatsapp:hover {
  background-color: #2CF276;
  color: #000 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}

/* ================================================ */
/* ESTILOS MODULOS CLICKABLE EN LA PAGINA INICIO */
/* ================================================ */
/* TARJETAS PAGINA INICIO EFECTO CLICKABLE ENTERA*/
.card-tienda {
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-tienda:hover {
  transform: translateY(-5px);
}

.card-tienda img {
  transition: transform 0.4s ease;
}

.card-tienda:hover img {
  transform: scale(1.05);
}

.card-tienda .et_pb_button {
  transition: all 0.3s ease;
}

.card-tienda .et_pb_button.et_pb_promo_button {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
  padding: 10px 18px;
  transition: all 0.3s ease;
}

/* Hover desde la tarjeta */
.card-tienda:hover .et_pb_button.et_pb_promo_button {
  transform: translateY(-2px);
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

.card-tienda .et_pb_button {
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Accesiblidad tarjetas inicio junto al php*/
.card-tienda:focus-visible {
  outline: 3px solid #104bac;
  outline-offset: 6px;
}

.card-tienda:focus-within {
  outline: 3px solid #104bac;
  outline-offset: 6px;
}

.card-tienda {
  cursor: pointer;
}

/* EFECTOS BOTON CLASE EVENTO*/
.btn-evento {
  display: inline-block;
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 10px 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

/* Hover */
.btn-evento:hover {
  background-color: #000;
  color: #fff;
}