/*
Theme Name: Divi Child
Theme URI: http://www.duploweb.es
Template: Divi
Author: Maite
Author URI: http://www.duploweb.es
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 4.27.4.1763105470
Updated: 2025-11-14 08:31:10

*/
/* ==========================
   ACCESIBILIDAD Y FOCOS
   ========================== */

/* Enlaces: foco visible sólido + fondo leve */
a:focus,
a:focus-visible {
  outline: 2px solid #235312;
  outline-offset: 3px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}

/* Ajuste especial para enlaces en footer */
footer a:focus,
footer a:focus-visible {
  outline: 2px solid #C7FF06;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Botones universales: 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,
.et_pb_button:focus,
.et_pb_button:focus-visible,
.et_pb_promo_button:focus,
.et_pb_promo_button:focus-visible,
a.et_pb_button:focus,
a.et_pb_button:focus-visible,
a.et_pb_promo_button:focus,
a.et_pb_promo_button:focus-visible {
  outline: 2px dotted #235312;
  outline-offset: 3px;
  background: rgba(242, 241, 238, 0.3);
  border-radius: 2px;
}

/* ==========================
   OTROS ESTILOS GENERALES
   ========================== */

/* 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,
.screen-reader-text:focus-visible {
  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;
}
/* Foco para las imagenes */
a:focus img {
    outline: 2px solid #C7FF06; 
    outline-offset: 4px;
}

/* ======================================= */
/* 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: Montserrat, 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: #f0f3f0;
  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: #235312;
  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: #235312;
  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 {
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

/* ======================================= */
/* CHECKBOX Y RADIO */
/* ======================================= */
/* Casillas grandes para accesibilidad */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  cursor: pointer;
}

/* Espacio entre campos y grupos */
.wpcf7-form p,
.wpcf7-form fieldset {
  margin-bottom: 20px;
}

/* Espacio dentro de los fieldset (radios, checkboxes) */
.wpcf7-form fieldset {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

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

.wpcf7-acceptance label {
  font-size: 14px;
  color: #222;
  line-height: 1.3;
}

.wpcf7-acceptance a {
  text-decoration: underline;
}

/* ======================================= */
/* SELECT / MENÚ DESPLEGABLE */
/* ======================================= */
.wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f8f6f5;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 16px;
  color: #383838;
  transition: all 0.3s ease;
  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='%23383838'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

.wpcf7 select:focus {
  border-color: #595959;
  background-color: #ffffff;
  outline: none;
}

.wpcf7 select option {
  padding: 10px;
  background-color: #fff;
  color: #383838;
}

/* ======================================= */
/*  ESTILOS PARA LA GALERIA DE LOS 
CIRCUITOS Y ESCAPADAS */
/* ======================================= */
.masonry-gallery .et_pb_image_wrap {
	position: relative;
    overflow: hidden;
    margin: 2px;
}

.masonry-gallery .et_pb_image_wrap img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, filter 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

/* Hover effects */
.masonry-gallery .et_pb_image_wrap:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Overlay background */
.masonry-gallery .et_pb_image_wrap::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Overlay text */
.masonry-gallery .et_pb_image_wrap::after {
    content: "Ampliar imagen";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 16px;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.4s ease;
    pointer-events: none;
    padding: 15px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Show overlay on hover */
.masonry-gallery .et_pb_image_wrap:hover::before,
.masonry-gallery .et_pb_image_wrap:hover::after {
    opacity: 1;
}

@media (max-width: 980px) {
.masonry-gallery .et_pb_image_wrap {
    width: 100% !important;
    margin: 2px 0 !important;
  }

.masonry-gallery .et_pb_image_wrap img {
    width: 100% !important;
    height: auto !important;
  }
}

/* Evita la manita (pointer) sobre las imágenes en las tarjetas CTDQB */
.ctdqb-item img,
.ctdqb-item .wp-post-image,
.ctdqb-link-btn-wrapper img {
  cursor: default !important;
}

/* CODIGO IMPORTANTE PARA LOS txt DE LA WEB */
 p {
	 margin-bottom: 15px;
}

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

.et_pb_scroll_top.et-pb-icon {
    background-color: #0D0D0D;
    border-bottom-left-radius: 6px; 
	border-top-left-radius: 6px;
    border-right: 4px solid #f26835; 
    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: #64D23C;
    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: #000; 
    border-right-color: #56574e; 
}