/*
Theme Name: Enfold Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating will be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/

/* =========================
   1. TIPOGRAFÍA GLOBAL
   ========================= */

body {
  font: 16px / 1.65em "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #0072d6;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: none !important;
}

h2 {
  font-family: 'pacifico', Helvetica, Arial, sans-serif;
  text-transform: none;
  font-size: 28px;
  line-height: 1.3;
}

h3 {
  font-family: 'open sans', Helvetica, Arial, sans-serif;
  font-weight: 600;
}

/* Enfold / Avia Builder h2 */
.main_color h2,
.avia_textblock h2,
.avia-section h2,
.avia-builder-el h2 {
  font-size: 28px;
  line-height: 1.3;
}

/* Tipografía en móviles */
@media only screen and (max-width: 767px) {

  /* Texto base */
  body,
  p,
  li,
  .avia_textblock,
  .avia_textblock p {
    font-size: 16px !important;
    line-height: 1.6;
  }

  /* H2 (home + páginas) */
  h2 {
    font-size: 38px !important;
    line-height: 1.3;
  }

  h3 {
    font-size: 18px !important;
    line-height: 1.3;
  }

  /* Meta / textos pequeños (fechas, comentarios, etc.) */
  .post-meta-infos,
  .minor-meta,
  #top .meta-color,
  #top .meta-color a {
    font-size: 13px !important;
  }
}

/* =========================
   2. ENLACES E IMÁGENES
   ========================= */

/* enlaces */
a:where(:not(.wp-element-button)) {
  text-decoration: none;
}
a:where(:not(.wp-element-button)):hover {
  text-decoration: none;
}

/* Imágenes blog / sliders */
.html_elegant-blog .avia_image,
.avia-content-slider .avia-image-container-inner,
.avia-content-slider .av-image-caption-overlay {
  width: 100%;
}

/* Márgenes imágenes slider / avia image */
.avia-content-slider .slide-image {
  margin: 20px 0;
}

/* =========================
   3. HEADINGS ESPECIALES
   ========================= */

#top .custom-color-heading a {
  text-align: center;
  font-size: 30px;
  text-transform: none;
  padding: 0 0 15px;
  letter-spacing: 2px;
  line-height: 1.3em;
  margin-bottom: 10px;
  text-decoration: none !important;
  font-weight: 500;
}

.modern-quote .av-special-heading-tag {
  font-weight: 600;
}

#top .av-special-heading.av-8kj1f-723a321b2fc324bf6898d68c1de4a833 p {
  color: #0072d6;
  font-size: 16px;
}

/* Título general de página (barra gris superior) */
.title_container .main-title {
  margin: 50px 0 0 0;
}

/* =========================
   4. CONTENIDO PÁGINA
   ========================= */

/* H2 en páginas (se fuerza sin transform) */
.template-page .entry-content-wrapper h2 {
  text-transform: none;
}

/* Slideshow caption */
div .slideshow_caption h2 {
  text-transform: none;
}

/* =========================
   5. TEXTOS, ENLACES Y COMPARTIR
   ========================= */

.av-share-box .av-share-link-description {
  margin-bottom: 20px;
  display: block;
  text-align: center;
  font-size: 16px;
  line-height: 1.1em;
  font-family: 'open sans', Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: #212121;
}

.main_color h2 {
  color: #212121;
}

/* =========================
   6. MENÚ PRINCIPAL / HEADER
   ========================= */

.header_color .main_menu ul:first-child > li > a {
  font-size: 16px !important;
}

/* Iconos sociales en header y global */
#top .avia-font-entypo-fontello,
body .avia-font-entypo-fontello,
html body [data-av_iconfont='entypo-fontello']:before {
  font-size: xx-large;
  text-decoration: none;
}

#top .social_bookmarks li {
  padding: 0 25px 0 25px;
  color: #0072d6 !important;
  border-right-style: none;
  border-right-width: 1px;
}

.social_bookmarks li a {
  color: #0072d6 !important;
}

#top #wrap_all .social_bookmarks a {
  text-decoration: none;
}

.html_bottom_nav_header #top .av-logo-container .social_bookmarks {
  left: 0;
}

/* Teléfono genérico en header */
.phone-info {
  float: left;
  font-weight: normal;
  line-height: 20px;
  font-size: 16px;
  padding: 10px 0;
  cursor: pointer;
}

/* Menú más compacto entre 1100px y 990px SOLO en header alternativo */
@media only screen and (max-width: 1100px) and (min-width: 990px) {
  #header_main_alternate .main_menu .av-main-nav > li > a {
    font-size: 14px !important;
  }
}
@media (min-width: 990px) {
  .menu-item-phone-mobile {
    display: none !important;
  }
}
/* =========================
   7. MENÚ HAMBURGUESA / BURGER
   ========================= */

.avia-menu.av_menu_icon_beside {
  padding-right: 0;
  margin-right: 0;
  border-right-width: 0;
  border-right-style: none;
  -webkit-transition: border-color 0.2s ease-in-out;
  transition: border-color 0.2s ease-in-out;
}

#av-burger-menu-ul li,
.html_elegant-blog #top .minor-meta {
  font-family: Helvetica, Arial, sans-serif;
}

/* Mostrar menú hamburguesa antes (desde 1100px) */
@media only screen and (max-width: 1100px) {

  /* Ocultar TODOS los ítems normales del menú */
  #header_main_alternate .menu .av-main-nav > li {
    display: none !important;
  }

  /* Mostrar solo el botón hamburguesa */
  #header_main_alternate .menu .av-main-nav > li.av-burger-menu-main {
    display: inline-block !important;
  }

  /* Menú algo más pequeño también aquí */
  .header_color .main_menu ul:first-child > li > a {
    font-size: 14px !important;
  }
}

/************************************
 * MENÚ BURGER – ICONOS REDES (MÓVIL)
 ************************************/

/* Ocultar en escritorio */
@media (min-width: 990px) {
  .social-mobile-fb,
  .social-mobile-ig {
    display: none !important;
  }
}

@media (max-width: 989px) {

  /* Ocultar texto Facebook / Instagram */
  #av-burger-menu-ul > li.social-mobile-fb .avia-menu-text,
  #av-burger-menu-ul > li.social-mobile-ig .avia-menu-text {
    display: none !important;
  }

  /* FACEBOOK */
  #av-burger-menu-ul > li.social-mobile-fb.av-active-burger-items {
    background-image: url("https://dev.miprimercole.es/wp-content/uploads/2026/01/facebook.png");
  }

  /* INSTAGRAM */
  #av-burger-menu-ul > li.social-mobile-ig.av-active-burger-items {
    background-image: url("https://dev.miprimercole.es/wp-content/uploads/2026/01/instagram.png");
  }

  /* Estilo común iconos */
  #av-burger-menu-ul > li.social-mobile-fb.av-active-burger-items,
  #av-burger-menu-ul > li.social-mobile-ig.av-active-burger-items {
    display: inline-block !important;
    width: 45px;
    height: 45px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-right: 15px;
    text-align: left !important;
    margin-top: 12px;
    border-bottom: none !important;
  }

  /* Ajuste del enlace interno */
  #av-burger-menu-ul > li.social-mobile-fb.av-active-burger-items > a,
  #av-burger-menu-ul > li.social-mobile-ig.av-active-burger-items > a {
    padding: 15px 50px;
    justify-content: flex-start;
    width: 100%;
  }

  /* Hover: sin fondo gris + oscurecer icono */
  #av-burger-menu-ul > li.social-mobile-fb.av-active-burger-items:hover,
  #av-burger-menu-ul > li.social-mobile-ig.av-active-burger-items:hover {
    background-color: transparent !important;
    filter: brightness(0.8);
  }

  #av-burger-menu-ul > li.social-mobile-fb.av-active-burger-items > a:hover,
  #av-burger-menu-ul > li.social-mobile-ig.av-active-burger-items > a:hover {
    background-color: transparent !important;
  }
}

/* eliminar línea final del último elemento del menú burger */
.html_av-overlay-side-classic #top #wrap_all .av-burger-overlay
#av-burger-menu-ul > li:last-of-type > a {
  border-bottom: none !important;
  border-color: #ebebeb00 !important;
}

#av-burger-menu-ul > li.social-mobile-fb.menu-item-1226.av-active-burger-items > a,
#av-burger-menu-ul > li.social-mobile-ig.menu-item-1227.av-active-burger-items > a {
  border-bottom: none !important;
}

/* =========================
   8. HEADER META – TOP BAR
   ========================= */

#header_meta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header_meta ul.social_bookmarks {
  display: flex;
  gap: 10px;
  margin: 0;
}

#header_meta ul.social_bookmarks a {
  font-size: 18px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

#header_meta ul.social_bookmarks a:hover {
  opacity: 0.75;
}

/* Botón teléfono top bar */
#header_meta .phone-info a {
  background-color: #0072d6;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-block;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

#header_meta .phone-info a:hover,
#header_meta .phone-info a:focus {
  background-color: #005bb0;
  opacity: 1;
  text-decoration: none !important;
}

/* Desktop: teléfono pegado a la derecha */
#header_meta .phone-info {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

/* Ocultar barra superior y elementos en header móvil */
@media (max-width: 989px) {
  #header_meta {
    display: none !important;
  }

  #top #header .social_bookmarks,
  #top #header .phone-info {
    display: none !important;
  }
}

/* =========================
   9. SLIDERS / BLOG GLOBAL
   ========================= */

.avia-content-slider .slide-entry-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  margin: 1%;
  color: #212121;
  text-align: center;
}

/* Blog elegante – listado */
.html_elegant-blog .avia-content-slider .slide-entry-title {
  font-size: 16px;
  text-transform: none;
  letter-spacing: 2px;
  line-height: 1.3em;
  font-weight: 400;
  color: #212121;
}

.html_elegant-blog #top .minor-meta {
  font-family: Helvetica, Arial, sans-serif;
}

.html_elegant-blog #top .main_color .blog-categories a,
.html_elegant-blog #top .main_color .blog-categories a:hover {
  text-decoration: none;
  font-weight: 400;
}

.html_elegant-blog .more-link {
  border-radius: 30px;
  text-decoration: none;
}

/* Blog: igualar altura de imágenes en listado */
.html_elegant-blog #top .slide-entry .slide-image {
  height: 170px !important;
  overflow: hidden;
}

.html_elegant-blog #top .slide-entry .slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Blog móvil: todas las entradas en una sola columna */
@media (max-width: 767px) {
  .html_elegant-blog #top .avia-content-slider-inner .slide-entry {
    width: 100% !important;
    float: none !important;
    clear: both;
    margin-bottom: 20px;
  }
}

/* flechas de navegación Blog */
#top .avia-post-nav:hover {
  background: #0072d6b5;
}

/* =========================
   10. SINGLE POST (ENTRADAS)
   ========================= */

/* Dar estilo al título de la entrada (barra gris) */
#top.single-post .title_container .container {
  padding-top: 40px;
  padding-bottom: 10px;
  max-width: 800px;
  text-align: center;
}

/* SINGLE POST – CATEGORÍA EN MAYÚSCULAS */
.av-post-metadata-content .av-post-metadata-category {
  text-transform: uppercase;
  font-weight: 600;
}

/* Ocultar el texto "in" antes de la categoría */
.av-post-metadata-container-inner .av-metadata-before {
  padding: 0 5px 0 0;
  display: none;
}

/* =========================
   11. SECCIÓN CONCILIACIÓN (4→2→1 columnas)
   ========================= */

/* TABLET: 2 columnas con espacio entre “cajas” */
@media (max-width: 989px) and (min-width: 768px) {

  #av_section_1.mpc-4cols
  .flex_column_table.av-equal-height-column-flextable {
    display: flex !important;
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 30px;
  }

  #av_section_1.mpc-4cols
  .flex_column_table.av-equal-height-column-flextable
  .flex_column.av_one_fourth.flex_column_table_cell {
    flex: 0 0 calc(50% - 15px) !important;
    max-width: calc(50% - 15px) !important;
    float: none !important;
    clear: none !important;
    box-sizing: border-box;
  }

  #av_section_1.mpc-4cols
  .flex_column_table.av-equal-height-column-flextable
  .av-flex-placeholder {
    display: none !important;
  }
}

/* MÓVIL: 1 columna */
@media (max-width: 767px) {

  #av_section_1.mpc-4cols
  .flex_column_table.av-equal-height-column-flextable {
    display: block !important;
  }

  #av_section_1.mpc-4cols
  .flex_column_table.av-equal-height-column-flextable
  .flex_column.av_one_fourth.flex_column_table_cell {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box;
    margin-bottom: 30px;
  }

  #av_section_1.mpc-4cols
  .flex_column_table.av-equal-height-column-flextable
  .av-flex-placeholder {
    display: none !important;
  }
}

/* ===============================
   12. ICONOS SERVICIOS – tamaño fijo
   =============================== */

#nuestrosservicios .img-servicios,
#nuestrosservicios .img-servicios .avia-image-container-inner,
#nuestrosservicios .img-servicios .avia-image-overlay-wrap,
#nuestrosservicios .img-servicios img.avia_image {
  width: 120px !important;
  max-width: 120px !important;
}

#nuestrosservicios .img-servicios img.avia_image {
  height: auto !important;
  display: block;
}

#nuestrosservicios .img-servicios {
  margin: 0 auto 15px;  /* centrado + aire bajo el icono */
}

/* Fallback global específico para ese icono */
#top #nuestrosservicios img.wp-image-925.avia_image {
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;
  display: block;
  margin: 0 auto 15px;
}

/* =========================
   13. BOTONES GENERALES
   ========================= */

#top .avia-button {
  font-size: 12px !important;
}

/* Botón Actividades MPC (texto más grande) */
.avia-builder-el-last .boton-mpc span {
  font-size: 17px;
}

/* =========================
   14. FOOTER SOCKET
   ========================= */

#socket {
  font-size: 14px;
}

/* Ocultar texto "powered by Enfold..." y mostrar solo texto custom */
span.copyright {
  font-size: 0;
}

span.copyright .mpc-copy {
  font-size: 14px;
  color: #0072d6;
}

/* Contenedor principal */
#socket .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
}

/* Izquierda: Copyright */
#socket .copyright {
  order: 1;
  font-size: 0;
  margin: 0;
  white-space: nowrap;
}

#socket .copyright .mpc-copy {
  font-size: 14px;
  line-height: 1.4;
  display: inline-block;
}

/* Centro: menú legal (actualmente oculto desde el Theme Options) */
/* (Si algún día lo activas, aquí se pueden reactivar estilos) */

/* Derecha: redes sociales */
#socket ul.social_bookmarks {
  order: 3;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

/*#socket ul.social_bookmarks a {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}*/

/* Altura base y centrado vertical */
#socket .copyright,
#socket .sub_menu_socket,
#socket ul.social_bookmarks {
  min-height: 32px;
  display: flex;
  align-items: center;
}

#socket .sub_menu_socket ul.menu {
  align-items: center;
}

#socket ul.social_bookmarks a {
  height: 32px;
  width: 32px;
}

/* =========================
   15. FOOTER – WIDGET CONTACTO RÁPIDO
   ========================= */

.footer-contact-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Textos */
#footer .footer-contact-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

#footer .footer-contact-text a {
  color: inherit;
  text-decoration: none;
  font-size: 16px;
}

/* Botones */
#footer .footer-btn {
  text-align: left;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  width: fit-content;
}

/* Botón teléfono */
#footer .footer-btn-phone {
  border: 1px solid #fff;
  font-size: 16px;
  font-weight: 400;
}

#footer .footer-btn-phone:hover {
  background-color: #005bb0;
}

/* Botón contacto */
#footer .footer-btn-contact {
  border: 1px solid #fff;
  font-size: 16px;
  font-weight: 400;
}

#footer .footer-btn-contact:hover {
  background-color: rgba(0,114,214,0.08);
}

/* =========================
   16. COOKIES / RGPD
   ========================= */

/* Título container ya lo hemos tocado arriba */
.custom-cookies-option input[type="radio"]:checked + label {
  background-color: #0072d6;
  color: white;
}

.cookies-eu-accept,
.cookies-eu-reject {
  background-color: #0072d6;
  color: #fff;
}

/* Ocultar botón "Más información" del banner de cookies */
#cookies-eu-settings,
#cookies-eu-buttons form {
  display: none !important;
}

/* Wrapper: barra fija abajo, ancho completo */
#cookies-eu-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: transparent;
}

/* Banner principal */
#cookies-eu-banner {
  margin: 0 auto;
  padding: 12px 20px;
  background-color: #ffffffbd;
  border-top: 1px solid #ebebeb;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #212121;
  box-sizing: border-box;
}

/* Texto del banner */
#cookies-eu-label {
  flex: 1 1 auto;
  margin: 0;
}

/* Contenedor de botones */
#cookies-eu-buttons {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Botones generales */
#cookies-eu-buttons button {
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

/* Botón Aceptar – principal */
#cookies-eu-accept {
  background-color: #0072d6;
  color: #ffffff;
}

#cookies-eu-accept:hover {
  background-color: #005bb0;
}

/* Botón Rechazar – más discreto */
#cookies-eu-reject {
  background-color: #f4f4f4;
  color: #333333;
}

#cookies-eu-reject:hover {
  background-color: #e2e2e2;
}

/* =========================
   17. COOKIES – RESPONSIVE
   ========================= */

@media (max-width: 767px) {

  #cookies-eu-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #cookies-eu-buttons {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    display: block;
  }

  #cookies-eu-buttons button {
    padding: 8px 14px;
  }
}
#cookies-eu-banner-closed {
  display: none !important;
}
/* =========================
   18. GOOGLE REVIEWS
   ========================= */

.ti-widget.ti-goog .ti-profile-details {
  text-align: center !important;
}

/* =========================
   19. AJUSTES GENERALES VARIOS
   ========================= */

/* Quitar borde superior por defecto en los container_wrap */
.container_wrap {
  border-top-style: none;
}
/* FOOTER – Redes sociales */
#footer .footer-social {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

/* =========================
   20. REDES SOCIALES FOOTER
   ========================= */
#footer .footer-social a {
  font-size: 22px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: inline-flex;
}

#footer .footer-social a:hover {
  opacity: 0.7;
}
#text-14{
  margin: 0px 0 30px 0 !important;
}