/*
Theme Name: Divi Hijo
Theme URI: https://bodegassinalcohol.es
Template: Divi
Author: Mgm
Author URI: https://bodegassinalcohol.es
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 4.27.4.1760025866
Updated: 2025-10-09 18:04:26

*/
/* ==========================
   ACCESIBILIDAD: FOCOS
   ========================== */

/* Enlaces: foco visible sólido + fondo leve */
a:focus,
a:focus-visible {
  outline: 2px solid #600d30; 
  outline-offset: 3px;
  background: rgba(0, 0, 0, 0.05); /* Fondo leve para reforzar foco */
  border-radius: 2px; /* Opcional: suaviza bordes del foco */
}

/* Ajuste especial para enlaces en footer (fondo vino) */
footer a:focus,
footer a:focus-visible {
  outline: 2px solid #FFD700; /* Dorado brillante para alto contraste */
  background: rgba(255, 255, 255, 0.1); /* Fondo leve */
  border-radius: 2px;
}

/* Botones: foco visible sólido + fondo leve */
button:focus,
button:focus-visible,
input[type="button"]:focus,
input[type="button"]:focus-visible,
input[type="submit"]:focus,
input[type="submit"]:focus-visible {
  outline: 2px dotted #600d30;
  outline-offset: 3px;
  background: rgba(242, 241, 238, 0.3);
  border-radius: 2px;
}

/* ==========================
   OTROS ESTILOS
   ========================== */
/* Reseteo mínimo para enlaces */
a {
  text-decoration: none;
  color: inherit;
}

/* Texto solo visible para lectores de pantalla (accesibilidad) */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Si el texto llega a enfocarse con el teclado, que sea visible */
.screen-reader-text:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  background: #600d30 !important;
  color: #fff !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  box-shadow: 0 0 2px rgba(0,0,0,0.6) !important;
  z-index: 1000 !important;
}

/* ==========================
   TARJETAS PRODUCTOS
   ========================== */

/* ---- Espaciado general de la tarjeta ---- */
.dc-shop-v1 .product {
    padding: 15px;
    box-sizing: border-box;
}

/* ---- Enlace principal (tarjeta completa) ---- */
.dc-shop-v1 .product a {
    display: block;
    position: relative;
    padding: 9px 10px;
    text-decoration: none;
    color: inherit;
    min-height: 44px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dc-shop-v1 .product a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.dc-shop-v1 .product a:focus {
    outline: 2px solid #600d30;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Línea de separación con buen contraste ---- */
.dc-shop-v1 h2 {
    border-bottom: 1px solid #a65a74;
}

/* ---- Etiqueta "Ver producto" centrada sobre la imagen ---- */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
}

/* Pseudo-elemento con el texto */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link::before {
    content: 'Ver producto' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.95) !important;
    background-color: #600d30 !important;
    color: #fff !important;
    padding: 7px 15px !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
    opacity: 0 !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* Mostrar al hacer hover */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:hover::before {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.05) !important;
}

/* Para mostrar una carta de productos en la tienda de WooCommerce */
@media (max-width: 479px) {
  .et-db #et-boc .et-l .et_pb_shop ul.products.columns-4 li.product,
  .et-db #et-boc .et-l .et_pb_shop ul.products.columns-3 li.product {
    width: 100% !important;
    margin-right: 4% !important;
    box-sizing: border-box;
    clear: both !important;
  }
}

/* ==========================
   PLUGIN VARIANTES
   ========================== */
/* PLUGIN VARIANTES ARREGLAR FALLOS */
/* PARA PODER QUITAR LAS FLECHAS GRISES QUE SALEN EN EL PUGIN DE LAS VARIANTES EN CADA SELECCION */
.et-db #et-boc .et-l .et_pb_wc_add_to_cart form.cart .variations td.value span:after {
    display:none !important;
}

/* CAMBIAR EL COLOR DEL RECUADRO ACTIVO EN LAS VARIANTES TALLA COLOR ETC */
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected {
    box-shadow: 0 0 0 2px rgb(96 13 48 / 90%);
}

/* ======================================= */
/* 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 20px;
  background-color: #ffffff;
  border-radius: 3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  font-family: Courier Prime, Arial, sans-serif;
}

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

/* Estilo de párrafos y etiquetas */
.wpcf7 form p {
  margin-bottom: 5px;
  font-size: 17px;
  color: #000;
}

/* Estilo de campos de texto, email, tel y textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  background-color: #f8f6f5;
  font-size: 16px;
  color: #383838;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  border-color: #595959;
  background-color: #ffffff;
  outline: none;
}

/* Botón de enviar */
.wpcf7 input[type="submit"] {
  background-color: #600d30;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-family: Montserrat, 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 {
  background-color: #a65a74;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Mensaje de error */
.wpcf7 form.invalid .wpcf7-response-output {
  color: #fff;
  background-color: #600d30;
  padding: 15px;
  border-radius: 6px;
  border: none;
  margin-top: 20px;
}

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

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

/* Texto obligatorio */
small {
  font-size: 13px;
  color: #3b3b3b;
  font-style: italic;
}

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

/* ======================================= */
/* CHECKBOXES TIPO PILL (excluye aceptación) */
/* ======================================= */

/* Contenedor de pills */
.wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem; /* espacio entre pills */
  margin: 0.5rem auto;
}

/* Checkbox oculto pero accesible */
.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Label tipo pill */
.wpcf7-checkbox .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.2rem 0.8rem;
  border: 1px solid #7d7d7d;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  color: #333;
  user-select: none;
  min-height: 36px;
  position: relative;
}

/* Hover y foco */
.wpcf7-checkbox .wpcf7-list-item-label:hover,
.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:focus + .wpcf7-list-item-label {
  border-color: #555;
  outline: none;
}

/* Checkbox activo (marcado) */
.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label {
  background-color: #600d30;
  border-color: #600d30;
  color: #fff;
}

/* Icono check dentro del pill */
.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
  content: "✔";
  margin-left: 0.3rem;
  font-size: 14px;
}

/* ======================================= */
/* CHECKBOX DE POLÍTICA DE PRIVACIDAD */
/* ======================================= */
.wpcf7-acceptance {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  font-size: 14px;
}

/* Checkbox normal de aceptación */
.wpcf7-acceptance input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  cursor: pointer;
}

/* Label de aceptación */
.wpcf7-acceptance label {
  font-size: 14px;
  color: #333;
  line-height: 1.3;
}

/* Link dentro de aceptación */
.wpcf7-acceptance a {
  color: #600d30;
  text-decoration: underline;
}

/* ======================================= */
/* WooCommerce */
/* ======================================= */
/* Mostrar miniaturas de productos en carrito y checkout versión móvil */
@media (max-width: 768px) {
  .woocommerce-page table.cart .product-thumbnail {
    display: block !important;
    text-align: center; /* Opcional: centra la imagen */
    margin-bottom: 10px; /* Espaciado con el texto del producto */
  }

  .woocommerce-page table.cart .product-thumbnail:before {
    content: none; /* Mejor que '' para eliminar pseudo-elementos */
  }

  .woocommerce-page table.cart .product-thumbnail img {
    width: 120px;
    height: auto;
  }

  .woocommerce-page table.cart .product-remove {
    float: left;
    border-bottom: 0;
  }
}

/* ==========================================
   CONTENEDOR DE TARJETAS (FLEX WRAP) 
   PARA EL BLOG
========================================== */
.blogy-blog-layout-22 .et_pb_ajax_pagination_container {
  display: flex;
  flex-wrap: wrap;
  gap: 4%;
  justify-content: space-between;
}

/* ==========================================
   TARJETA CONTENEDORA ENVUELTA EN ENLACE
   (ajusta tamaño para columnas)
========================================== */
.blogy-post-wrapper-link {
  display: inline-block;
  width: 48%;
  margin-bottom: 4%;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  vertical-align: top;
}

/* ==========================================
   TARJETA DE POST
========================================== */
.blogy-blog-layout-22 .et_pb_post {
  width: 100%;
  margin: 0;
  background: #f2f1ee;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.blogy-blog-layout-22 .et_pb_post:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* ==========================================
   IMAGEN DESTACADA
========================================== */
.blogy-blog-layout-22 a.entry-featured-image-url {
  display: block;
  height: 350px;
  margin: 0;
  overflow: hidden;
}

.blogy-blog-layout-22 a.entry-featured-image-url img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blogy-blog-layout-22 .et_pb_post:hover a.entry-featured-image-url img {
  transform: scale(1.05);
}

/* ==========================================
   TÍTULO DEL POST
========================================== */
.blogy-blog-layout-22 .entry-title {
    position: static;
    background: #e5e1de;
	border-bottom: 1px solid #600d30;
    padding: 16px 20px;
    margin: 0;
}

/* ==========================================
   META INFO + CONTENIDO
========================================== */
.blogy-blog-layout-22 .post-meta {
  padding: 15px 20px;
}

.blogy-blog-layout-22 .post-content {
  padding: 7px 20px 20px;
}

/* ==========================================
   BOTÓN "LEER MÁS"
========================================== */
.blogy-blog-layout-22 a.more-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 40px;
  background-color: #600d30;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.blogy-blog-layout-22 a.more-link:hover {
  background-color: #a65a74;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   RESPONSIVE DESIGN (TABLETS Y MÓVILES)
========================================== */
@media (max-width: 980px) {
  .blogy-post-wrapper-link {
    width: 100%;
    margin: 30px auto;
  }

  .blogy-blog-layout-22 .et_pb_post {
    width: 100%;
  }

  .blogy-blog-layout-22 a.entry-featured-image-url {
    height: auto;
  }

  .blogy-blog-layout-22 a.entry-featured-image-url img {
    height: auto;
    object-fit: unset;
  }

  .blogy-blog-layout-22 .entry-title {
    padding: 12px 20px;
  }
}

@media (max-width: 576px) {
  .blogy-blog-layout-22 .entry-title {
    padding: 10px 20px;
  }

  .blogy-blog-layout-22 a.entry-featured-image-url {
    height: auto;
  }
}

/* ==========================================
   PERSONALIZACIÓN DEL BOTÓN DE VOLVER ARRIBA 
========================================== */

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

/* ==========================
   ESTILOS PLUGIN FiBOSEARCH
   ========================== */
/* Ajuste del desplegable de resultados de FiboSearch */
.dgwt-wcas-suggestions-wrapp.woocommerce.dgwt-wcas-has-img.dgwt-wcas-has-price.dgwt-wcas-has-headings.js-dgwt-wcas-initialized {
  max-height: calc(100vh - 80px) !important; /* 100vh = alto de ventana; deja 80px de margen */
  overflow-y: auto; /* Activa scroll interno si hay muchos resultados */
  -webkit-overflow-scrolling: touch; /* Desplazamiento suave en móviles */
  border-radius: 8px; /* Opcional: bordes redondeados */
}

/* Ajustes específicos para pantallas más pequeñas */
@media (max-width: 767px) {
  .dgwt-wcas-suggestions-wrapp.woocommerce.dgwt-wcas-has-img.dgwt-wcas-has-price.dgwt-wcas-has-headings.js-dgwt-wcas-initialized {
    max-height: calc(100vh - 120px) !important; /* deja más espacio para la barra superior/móvil */
    font-size: 14px; /* reduce el texto para caber mejor */
  }
}

/* Corrige el ancho forzado a 0 del buscador FiboSearch */
.dgwt-wcas-search-wrapp {
  max-width: 100% !important;  /* Sobrescribe el 0px */
  width: 100% !important;
  display: block !important;
  overflow: visible !important;
  box-sizing: border-box;
}

/* Evita scroll horizontal al abrir el desplegable */
.dgwt-wcas-suggestions-wrapp {
  max-width: 100vw !important;
  width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

/* Evita scroll horizontal global */
html, body {
  overflow-x: hidden !important;
}

/* Anular el boton de añadir al carrito o seleccionar opciones */
.dgwt-wcas-pd-addtc {
    display: none;
}

/* Anular en enlace de Ver todos los productos que lleva ala pag tienda de woocomerce*/
.dgwt-wcas-st-more {
    display: none !important;
}

