/*
Theme Name: Tema hjo Divi
Theme URI: https://duploweb.es
Template: Divi
Author: mate
Author URI: https://duploweb.es
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 4.27.5.1769625046
Updated: 2026-01-28 19:30:46

*/
/* =====================================================
   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;
}

/* -----------------------------------------------------
   PÁGINA DE PRODUCTO (SIN COMPRA)
   ----------------------------------------------------- */
.woocommerce div.product div.images a:focus-visible {
  outline-offset: 6px;
}

/* -----------------------------------------------------
   OCULTAR FUNCIONES DE TIENDA (CATÁLOGO)
   ----------------------------------------------------- */
.woocommerce a.add_to_cart_button,
.woocommerce button.single_add_to_cart_button {
  display: none;
}

/* -----------------------------------------------------
   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);
}

/* =====================================================
   CSS PARA CATALOGO EN WOOCOMMERCE
===================================================== */
/* Ocultar icono carrito Divi */
.et-cart-info,
.et-cart {
    display: none !important;
}

/* ======================================= */
/* ESTILOS GENERALES DEL FORMULARIO CONTACT FORM 7 */
/* ======================================= */

/* Contenedor y ancho máximo */
div.wpcf7 .wpcf7-form-control {
  max-width: 100%;
}

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

/* Responsive para móviles */
@media screen and (max-width: 768px) {
  .wpcf7 form {
    max-width: 100% !important;
    padding: 30px 10px !important;
  }
}

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

.wpcf7-form label {
  display: inline-block;  /* Mantiene el label cerca del input */
  margin-bottom: 4px;     /* Pequeño espacio entre label y campo */
  font-weight: 500;
}

/* Texto obligatorio */
small {
  font-size: 14px;
  color: #222222;
  font-style: italic;
}

/* Texto informativo */
.wpcf7 .info-datos {
  font-size: 12px;
  color: #222222;
  line-height: 1.5;
  margin-top: -20px;
}

/* ======================================= */
/* CAMPOS DE TEXTO, EMAIL, TEL, TEXTAREA */
/* ======================================= */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  background-color: #f1f1f1;
  font-size: 16px;
  color: #383838;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Focus de inputs y selects */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #877f78;
  background-color: #ffffff;
  outline: none;
}

/* Ajuste textarea */
.wpcf7 textarea {
  height: 150px;
  resize: vertical;
}

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

/* ======================================= */
/* BOTÓN DE ENVIAR */
/* ======================================= */
.wpcf7 input[type="submit"] {
  background-color: #232323;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-family: Lato, Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

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

/* ======================================= */
/* MENSAJE DE ERROR */
/* ======================================= */
.wpcf7 form.invalid .wpcf7-response-output {
    color: #fff; 
    background-color: #104bac; 
    padding: 15px; 
    border-radius: 6px; 
	border: none; 
	margin-top: 20px; 
}

/* ============================= */
/* CHECKBOX ACCESIBLE - PRIVACIDAD */
/* ============================= */
.wpcf7-acceptance label {
  display: flex;
  align-items: flex-start; /* alinea checkbox con la primera línea del texto */
  gap: 10px;
  cursor: pointer;
}

.wpcf7-form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 2px; /* ajuste fino para que quede al nivel de la "A" */
}


/* ============================= */
/* OPTIMIZACIÓN SOLO EN MÓVIL */
/* ============================= */
@media (max-width: 768px) {

  .wpcf7-acceptance label {
    min-height: 48px;   /* tamaño táctil recomendado */
    padding: 8px 0;     /* área cómoda de toque */
    line-height: 1.4;
  }

  .wpcf7-form input[type="checkbox"] {
    width: 26px;
    height: 26px;
  }

}

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

.et_pb_scroll_top.et-pb-icon {
    background-color: #6b3f2a;
    border-bottom-left-radius: 6px; 
	border-top-left-radius: 6px;
    border-right: 4px solid #b08a3e; 
    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: #6b3f2a;    
}

/* 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 botón Complianz Google Maps */
.cmplz-blocked-content-notice,
.cmplz-accept-category {
  background-color: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  font-size: 16px;
  line-height: 1.4;
}

.cmplz-blocked-content-notice:hover,
.cmplz-accept-category:hover {
  background-color: #fff !important;
  color: #000 !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 PARA TIENDA */
/* ======================================= */

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

/* Hover y focus premium */
.dfw-shop-31 .woocommerce ul.products li.product:hover,
.dfw-shop-31 .woocommerce 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 */
.dfw-shop-31 .woocommerce ul.products li.product .et_shop_image {
  margin: 20px;
  overflow: hidden;
  border-radius: 12px;
  order: 1;
}

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

.dfw-shop-31 .woocommerce ul.products li.product:hover .et_shop_image img,
.dfw-shop-31 .woocommerce ul.products li.product:focus-within .et_shop_image img {
  transform: scale(1.05); /* zoom suave */
}

/* TÍTULO DEL PRODUCTO */
.dfw-shop-31 .woocommerce ul.products li.product .woocommerce-loop-product__title {
  order: 3;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111;
  padding: 0 20px;
  margin-bottom: 8px;
}

/* PRECIO */
.dfw-shop-31 span.price {
  order: 4;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  padding: 8px 20px 12px;
}

.dfw-shop-31 del { color: #666; }
.dfw-shop-31 ins { text-decoration: none; }

/* BOTÓN FULL-WIDTH */
.btn-tarjetas .woocommerce ul.products li.product .button {
  display: block; /* full-width */
  width: calc(100% - 40px); /* ancho de tarjeta menos padding */
  margin: 0 20px 20px;
  background-color: #000 !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;
}

.btn-tarjetas .woocommerce ul.products li.product .button:hover,
.btn-tarjetas .woocommerce ul.products li.product .button:focus {
  background-color: #104bac !important;
  outline: 2px solid #000;
  outline-offset: 2px;
  transform: translateY(-1px);
}

/* Quitar el icono de rolover en el btn de Ver producto */
.btn-tarjetas .woocommerce ul.products li.product .button::after {
  display: none;
}

/* BADGE ON SALE MODERNO */
.dfw-shop-31 .woocommerce ul.products li.product .onsale {
  right: 20px;
  top: 30px;
  border-radius: 6px;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background-color: #000;
  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;
  }
}

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

/* ======================================= */
/* ESTILOS BTN CATEGORIA DE PRODUCTOS */
/* ======================================= */

/* Contenedor */
.categorias-productos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

/* Botón-enlace */
.btn-categoria {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  min-height: 48px;
  background-color: #121212;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 2px solid #121212;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

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

/* Focus teclado */
.btn-categoria:focus-visible {
  outline: 3px solid #104bac;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px #121212;
}

/* Responsive */
@media (max-width: 480px) {
  .btn-categoria {
    width: 100%;
  }
}