/*
 Theme Name: Divi Acuabit
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme, enriquezido por Acuabit
 Author: Acuabit
 Author URI: https://www.acuabit.es 
 Template: Divi
 Version: 1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */



/*--GENERAL--*/
:root {
  --primario: #fcfaf6;
  --azul-claro: #c8d9e6;
  --azul: #193e79;
  --azul-oscuro: #004D88;
  --encabezado: #161b20;
  --principal: #575d61;
  --naranja-claro: #f3d6bd;
  --enlaces-footer: #d6dae1;
  --textos-footer: #7389AB;
  --naranja: #CF6E37;
}

/* Breadcrumbs */
.rank-math-breadcrumb {
  font-size: 12px !important;
  color: #555555 !important;
}



.titular-h1 .et_pb_main_blurb_image {
  width: 0px;
  display: block;
}

.titular-h1 .et_pb_blurb_content {
  display: flex;
  flex-direction: row;
  gap: 0px;
  align-items: center !important;
  margin: 0px !important;
}

.titular-h1 .et_pb_blurb_content .et_pb_module_header {
  padding-bottom: 0px;
}

.texto-color {
  color: var(--naranja);
}

#menu-principal li {
  align-items: center;
  padding-right: 0;
}

#menu-principal a {
  height: fit-content;
  padding: 15px;
}

#menu-principal .menu-item-72 a {
  background-color: var(--azul-oscuro);
  color: var(--primario) !important;
  font-weight: bold;
  border-radius: 25px;
}

.texto-size {
  font-family: "Instrument Serif", sans-serif;
  font-size: 72px !important;
  color: #000;
}

h3 {
  padding-bottom: 0;
}

.nowrap {
  display: none !important;
}

.texto-form {
  font-family: "Geist", sans-serif;
  font-size: 12px;
  line-height: 18.6px;
}


/*************** TEST ******************/
.test {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.test:hover {
  transform: translateY(-5px);
  border-color: var(--naranja);
  box-shadow: 0 5px 10px 0 #f3d6bd;
}

/* ZOOM IMAGENES EQUIPO AL HACER HOVER */
#equipo .et_pb_image_wrap {
  display: block;
  overflow: hidden;
}

#equipo .et_pb_image_wrap img {
  display: block;
  width: 100%;
  transition: transform 0.45s ease;
  transform-origin: center center;
}

#equipo .et_pb_group_carousel_slide:hover .et_pb_image_wrap img {
  transform: scale(1.06);
}


.acu-tests-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  margin-top: 28px;
}

.acu-test-card {
  min-height: 260px;
  border: 1px solid #d9d3ca;
  border-radius: 8px;
  background: #F6F3EE;
  transition: all 0.25s ease;
}

.acu-test-card:hover {
  border-color: #c75d2c;
  box-shadow: 0 14px 28px rgba(199, 93, 44, 0.12);
  transform: translateY(-2px);
}

.acu-test-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px 32px;
  color: inherit;
  text-decoration: none;
}

.acu-test-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.acu-test-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #3f4754;
  font-family: monospace;
}

.acu-test-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #f6dfd1;
  color: var(--naranja);
  font-size: 11px;
  line-height: 1;
}

.acu-test-title {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.15;
  color: #111111;
}

.acu-test-excerpt {
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.6;
  color: #646464;
}

.acu-test-excerpt p {
  margin: 0;
}

.acu-test-button {
  margin-top: auto;
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #AC5929;
}

.acu-test-card:hover .acu-test-button {
  color: #8f3e14;
}

@media (max-width: 980px) {
  .acu-tests-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .acu-tests-grid {
    grid-template-columns: 1fr;
  }

  .acu-test-card-link {
    padding: 30px 26px;
  }

  .acu-test-title {
    font-size: 24px;
  }
}

/****************************** BLOG ******************************/
.et_pb_image_container {
  margin: 0;
}

.et_pb_image_container .entry-featured-image-url {
  margin-bottom: 0;
}

/* Necesario para colocar la categoría sobre la imagen */
#blog-home article.et_pb_post {
  position: relative;
}

/* Etiqueta de categoría sobre la imagen */
#blog-home article.et_pb_post .entry-categories {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;

}

/* Estilo de la pastilla blanca */
#blog-home article.et_pb_post .entry-categories a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: #494949;
  text-decoration: none;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.50);
}

/* Circulito dentro de la etiqueta de categoría del blog */
#blog-home article.et_pb_post .entry-categories a::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: #a9d6e5;
}

/* Oculta el separador suelto que queda al mover la categoría */
#blog-home article.et_pb_post .post-meta {
  font-size: 0;
}

#blog-home article.et_pb_post .post-meta .published {
  font-size: 13px;
}

#blog-home article.et_pb_post .entry-categories,
#blog-home article.et_pb_post .entry-categories a {
  font-size: 11px;
}

/* Orden del contenido del blog en #blog-home */
#blog-home article.et_pb_post {
  display: flex;
  flex-direction: column;
}

/* Imagen */
#blog-home article.et_pb_post .et_pb_image_container {
  order: 1;
}

/* Fecha / meta */
#blog-home article.et_pb_post .post-meta {
  order: 2;
  margin-top: 18px;
  margin-bottom: 14px;
}

/* Titular */
#blog-home article.et_pb_post .entry-title {
  order: 3;
  margin-bottom: 16px;
}

/* Texto + leer más */
#blog-home article.et_pb_post .post-content {
  order: 4;
}

/* Enlace leer más */
#blog-home article.et_pb_post .post-content .more-link {
  display: inline-block;
  margin-top: 18px;
}

/* Cambiar visualmente "Leer más" por "Leer artículo →" */
#blog-home article.et_pb_post .more-link {
  font-size: 0 !important;
  text-decoration: none;
}

/* Nuevo texto */
#blog-home article.et_pb_post .more-link::before {
  content: "Leer artículo";
  font-size: 14px;
}

/* Flechita */
#blog-home article.et_pb_post .more-link::after {
  content: " →";
  font-size: 15px;
  transition: transform 0.25s ease;
}

#blog-home article {
  padding: 0;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#blog-home article:hover {
  transform: translateY(-10px);
}


.wp-caption{
  background-color: transparent !important;
  border: none !important;
}

/*************************  PESTAÑAS TRATAMIENTOS *********************************/

/* Contenedor de pestañas izquierda */
.tabs-tratamientos .et_pb_tabs_controls {
  width: 27%;
  float: left;
  background: transparent;
  border: none;
}

/* Cada pestaña */
.tabs-tratamientos .et_pb_tabs_controls li {
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent !important;
}

.tabs-tratamientos .et_pb_tabs_controls li:first-of-type {
  border-top: 1px solid #ddd;
}

/* Enlace de cada pestaña */
.tabs-tratamientos .et_pb_tabs_controls li a {
  display: block !important;
  position: relative;
  height: auto !important;
  min-height: 0 !important;
  padding: 20px 0px 20px 0 !important;
  line-height: 1.2;
  color: #27313f;
  transition: all 0.25s ease;
}

/* Pestaña activa */
.tabs-tratamientos .et_pb_tabs_controls li.et_pb_tab_active a {
  font-size: 28px;
  font-weight: 500;
  margin-left: 10px;
  margin-right: 35px;
}

/* Bolita / icono */
.tabs-tratamientos .et_pb_tabs_controls li::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #dbeaf1;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.25s ease;
  pointer-events: none;
}

/* Colores asignados a cada pestaña */
.tabs-tratamientos .et_pb_tabs_controls li:nth-child(1) {
  --color-tab: #C8D9E6;
  --color-tab-rgb: 200 217 230;
}

.tabs-tratamientos .et_pb_tabs_controls li:nth-child(2) {
  --color-tab: #CFE2D0;
  --color-tab-rgb: 207 226 208;
}

.tabs-tratamientos .et_pb_tabs_controls li:nth-child(3) {
  --color-tab: #E9CDD9;
  --color-tab-rgb: 233 205 217;
}

.tabs-tratamientos .et_pb_tabs_controls li:nth-child(4) {
  --color-tab: #F3D6BD;
  --color-tab-rgb: 243 214 189;
}

.tabs-tratamientos .et_pb_tabs_controls li:nth-child(5) {
  --color-tab: #D6B8DD;
  --color-tab-rgb: 214 184 221;
}

.tabs-tratamientos .et_pb_tabs_controls li:nth-child(6) {
  --color-tab: #D2CCA7;
  --color-tab-rgb: 210 204 167;
}

.tabs-tratamientos .et_pb_tabs_controls li:nth-child(7) {
  --color-tab: #92C2C4;
  --color-tab-rgb: 146 194 196;
}

/* Bolita con el color de cada pestaña */
.tabs-tratamientos .et_pb_tabs_controls li::after {
  background-color: var(--color-tab);
}

.tabs-tratamientos .et_pb_tabs_controls li.et_pb_tab_active::after {
  width: 22px;
  height: 22px;
}

/* Contenedor derecho */
.tabs-tratamientos .et_pb_all_tabs {
  width: 70%;
  float: right;
  border: 1px solid #ddd;
  padding: 40px;
  background: #f9f7f2;
}

.tabs-tratamientos .et_pb_tab {
  padding: 0;
}

/* Limpieza de floats */
.tabs-tratamientos::after {
  content: "";
  display: block;
  clear: both;
}

/*************************  CONTENIDO INTERIOR DE CADA PESTAÑA *********************************/

.contenido-tratamiento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.tratamiento-info h2 {
  font-size: 56px;
  margin-bottom: 20px;
}

.tratamiento-info p {
  font-size: 16px;
  line-height: 1.6;
}

.tratamiento-info a {
  display: inline-block;
  font-size: 13px;
  margin-top: 20px;
  border-bottom: 1px solid var(--naranja);
  color: #B25C2B;
  text-decoration: none;
}

.mini-label {
  font-family: "DejaVu Sans Mono", sans-serif;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 17px;
  color: #737373;
}

.tratamiento-listado strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 5px;
  color: black;
}

.tratamiento-listado li {
  border-top: 1px solid #ddd;
  padding: 10px 0;
  font-size: 13px;
}

.tratamiento-listado li:last-of-type {
  border-bottom: 1px solid #ddd;
}

.tratamiento-listado p {
  font-family: "Geist", sans-serif;
  font-size: 11px;
  font-weight: 500;
  margin-left: 1.2em;
  margin-bottom: 10px;
  letter-spacing: 0.2em;
}

.tabs-tratamientos .entry-content ul,
.tabs-tratamientos ul {
  line-height: 20px;
}

/*************************  COLORES DEL LISTADO DERECHO SEGÚN PESTAÑA *********************************/

/* Color asignado a cada contenido de pestaña */
.tabs-tratamientos .et_pb_all_tabs .et_pb_tab_0 {
  --color-tratamiento: #C8D9E6;
}

.tabs-tratamientos .et_pb_all_tabs .et_pb_tab_1 {
  --color-tratamiento: #CFE2D0;
}

.tabs-tratamientos .et_pb_all_tabs .et_pb_tab_2 {
  --color-tratamiento: #E9CDD9;
}

.tabs-tratamientos .et_pb_all_tabs .et_pb_tab_3 {
  --color-tratamiento: #F3D6BD;
}

.tabs-tratamientos .et_pb_all_tabs .et_pb_tab_4 {
  --color-tratamiento: #D6B8DD;
}

.tabs-tratamientos .et_pb_all_tabs .et_pb_tab_5 {
  --color-tratamiento: #D2CCA7;
}

.tabs-tratamientos .et_pb_all_tabs .et_pb_tab_6 {
  --color-tratamiento: #92C2C4;
}

/* Quitamos la viñeta nativa */
.tabs-tratamientos .tratamiento-listado ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Cada elemento del listado */
.tabs-tratamientos .tratamiento-listado li {
  position: relative;
  padding: 10px 0 10px 18px;
}

/* Círculo personalizado del listado derecho */
.tabs-tratamientos .tratamiento-listado li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-tratamiento);
  position: absolute;
  left: 0;
  top: 18px;
}

/*************************  SOMBRA DEL BLOQUE DERECHO SEGÚN PESTAÑA ACTIVA *********************************/

/* Transición suave del bloque derecho */
.tabs-tratamientos .et_pb_all_tabs {
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ansiedad */
.tabs-tratamientos:has(.et_pb_tabs_controls li:nth-child(1).et_pb_tab_active) .et_pb_all_tabs {
  border-color: #C8D9E6;
  box-shadow:
    0 0 0 1px rgba(200, 217, 230, 0.75),
    0 0 38px rgba(200, 217, 230, 0.55);
}

/* Depresión */
.tabs-tratamientos:has(.et_pb_tabs_controls li:nth-child(2).et_pb_tab_active) .et_pb_all_tabs {
  border-color: #CFE2D0;
  box-shadow:
    0 0 0 1px rgba(207, 226, 208, 0.75),
    0 0 38px rgba(207, 226, 208, 0.55);
}

/* Trauma */
.tabs-tratamientos:has(.et_pb_tabs_controls li:nth-child(3).et_pb_tab_active) .et_pb_all_tabs {
  border-color: #E9CDD9;
  box-shadow:
    0 0 0 1px rgba(233, 205, 217, 0.75),
    0 0 38px rgba(233, 205, 217, 0.55);
}

/* Relaciones */
.tabs-tratamientos:has(.et_pb_tabs_controls li:nth-child(4).et_pb_tab_active) .et_pb_all_tabs {
  border-color: #F3D6BD;
  box-shadow:
    0 0 0 1px rgba(243, 214, 189, 0.75),
    0 0 38px rgba(243, 214, 189, 0.55);
}

/* Trastornos de alimentación */
.tabs-tratamientos:has(.et_pb_tabs_controls li:nth-child(5).et_pb_tab_active) .et_pb_all_tabs {
  border-color: #D6B8DD;
  box-shadow:
    0 0 0 1px rgba(214, 184, 221, 0.75),
    0 0 38px rgba(214, 184, 221, 0.55);
}

/* Crecimiento personal */
.tabs-tratamientos:has(.et_pb_tabs_controls li:nth-child(6).et_pb_tab_active) .et_pb_all_tabs {
  border-color: #D2CCA7;
  box-shadow:
    0 0 0 1px rgba(210, 204, 167, 0.75),
    0 0 38px rgba(210, 204, 167, 0.55);
}

/* Otros */
.tabs-tratamientos:has(.et_pb_tabs_controls li:nth-child(7).et_pb_tab_active) .et_pb_all_tabs {
  border-color: #92C2C4;
  box-shadow:
    0 0 0 1px rgba(146, 194, 196, 0.75),
    0 0 38px rgba(146, 194, 196, 0.55);
}

.tratamiento-listado ul {
  height: auto;
  max-height: 370px;
  overflow-y: auto;
  padding-right: 16px;
  scrollbar-gutter: stable;
}

/*************************  SCROLL COLUMNA *********************************/
.sobre-mi-sticky {
  overflow: visible !important;
}

.sobre-mi-sticky .et_pb_row,
.sobre-mi-sticky .et_pb_column {
  overflow: visible !important;
}

.col-imagen-sticky {
  position: sticky;
  top: 75px;
  align-self: flex-start;
  height: fit-content;
}

/* ************************* EQUIPO ************************************* */
.prof-card {
  cursor: pointer;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, outline 0.25s ease;
}

.prof-card:hover {
  transform: translateY(-4px);
}

.prof-card.prof-activo {
  outline: 2px solid #005b94;
  outline-offset: -2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.prof-detalle {
  display: none;
}

.prof-detalle.prof-activo {
  display: flex !important;
  flex-wrap: wrap;
  animation: aparecerPerfil 0.25s ease;
}

@keyframes aparecerPerfil {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ***************** GOOGLE REVIEW ****************** */
#section-google-review .row-google-review .google-review-module .ti-inner {
  background-color: #F6F3EE !important;
  border: 0.5px solid rgba(223, 220, 215, 1) !important;

  .ti-review-content {
    font-size: 14px !important;
    height: 140px !important;
  }
}

/* Trustindex Google Reviews - forzar 3 columnas */

@media (min-width: 1280px) {

  .google-review-module .ti-widget.ti-goog .ti-reviews-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .google-review-module .ti-widget.ti-goog .ti-reviews-container-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
  }

  /* Anular el ti-col-4 de Trustindex */
  .google-review-module .ti-widget.ti-goog.ti-col-4 .ti-review-item,
  .google-review-module .ti-widget.ti-goog .ti-review-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  /* Que la tarjeta rellene su columna */
  .google-review-module .ti-widget.ti-goog .ti-review-item .ti-inner {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mostrar solo 6 reseñas: 2 filas x 3 columnas */
  .google-review-module .ti-widget.ti-goog .ti-reviews-container-wrapper>.ti-review-item:nth-child(n+7) {
    display: none !important;
  }
}




/* FOOTER */
#menu-principal-1 {
  display: flex !important;
  flex-direction: column !important;
}



/* FORMULARIO DE CONTACTO*/
.cf7-custom-css {
  --blanco: #ffffff;
  --texto: #0f2940;
  --borde: rgba(0, 51, 91, 0.14);
  --fondo-input: #f7fafc;
  --sombra: 0 18px 45px rgba(0, 51, 91, 0.12);

  background: var(--primario) !important;
  max-width: 100%;
  padding: 34px;
  box-shadow: var(--sombra);
}

.cf7-custom-css .fields,
select {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.cf7-custom-css .fields.fields-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cf7-custom-css .field-item {
  width: 100%;
}

.cf7-custom-css .field-item input[type="text"],
.cf7-custom-css .field-item input[type="email"],
.cf7-custom-css .field-item input[type="tel"],
.cf7-custom-css .field-item textarea,
.cf7-custom-css .field-item select {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid var(--borde);
  border-radius: 4px !important;
  background: #F6F3EE;
  color: var(--texto);
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.25s ease;
  box-sizing: border-box;
  outline: none;
}

.cf7-custom-css .field-item select {
  color: #4E4E4E !important;
}

.cf7-custom-css .field-item select option {
  font-size: 16px !important;
  font-family: 'Geist', sans-serif;
}

.cf7-custom-css .field-item textarea {
  min-height: 150px;
  resize: vertical;
}

.cf7-custom-css .field-item input::placeholder,
.cf7-custom-css .field-item textarea::placeholder {
  color: rgba(0, 51, 91, 0.55);
}

/* Radios */
.cf7-custom-css .field-item .wpcf7-form-control-wrap {
  display: block;
}

.cf7-custom-css .field-item .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cf7-custom-css .field-item .wpcf7-list-item {
  margin: 0;
}

/* Aceptación */
.cf7-custom-css .conditions {
  margin-top: 6px;
  margin-bottom: 24px;
}

.cf7-custom-css .conditions p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 51, 91, 0.9);
}

.cf7-custom-css .conditions .wpcf7-list-item {
  margin: 0;
}

.cf7-custom-css .conditions label {
  display: inline;
}

/* Botón */
.cf7-custom-css .submit {
  margin-top: 6px;
}

.wpcf7-spinner,
.wpcf7-spinner::before {
  display: none !important;
}

.cf7-custom-css .submit .wpcf7-submit,
.cf7-custom-css .submit .et_pb_button,
.cf7-custom-css .submit input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 16px 30px;
  min-height: 56px;
  background: #004d88;
  color: #f1f2f1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

/* Mensajes CF7 */
.cf7-custom-css .wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: 13px;
  color: #c0392b;
}

.cf7-custom-css .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.cf7-custom-css form.invalid .wpcf7-response-output,
.cf7-custom-css form.unaccepted .wpcf7-response-output,
.cf7-custom-css form.failed .wpcf7-response-output {
  border: 1px solid rgba(192, 57, 43, 0.2);
  background: rgba(192, 57, 43, 0.06);
  color: #8e2c20;
}

.cf7-custom-css form.sent .wpcf7-response-output {
  border: 1px solid rgba(49, 133, 155, 0.25);
  background: rgba(49, 133, 155, 0.08);
  color: var(--azul-oscuro);
}

.cf7-custom-css input::placeholder,
.cf7-custom-css textarea::placeholder {
  color: #7D7F7E !important;
}

textarea {
  grid-row: 2 !important;
}

.cf7-custom-css .submit .wpcf7-submit,
.cf7-custom-css .submit .et_pb_button,
.cf7-custom-css .submit input[type="submit"] {
  font-size: 14px !important;
  font-weight: 400 !important;
  width: 100% !important;
}

.cf7-custom-css .respuesta {
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 400px !important;
  margin-top: 16px !important;
}

/* Responsive */
@media (max-width: 767px) {
  .cf7-custom-css {
    padding: 22px;
    border-radius: 18px;
  }

  .cf7-custom-css .fields.fields-cols {
    grid-template-columns: 1fr;
  }

  .cf7-custom-css .field-item .wpcf7-radio {
    flex-direction: column;
  }

  .cf7-custom-css .field-item .wpcf7-list-item label {
    width: 100%;
    justify-content: flex-start;
  }

  .cf7-custom-css .submit .wpcf7-submit,
  .cf7-custom-css .submit .et_pb_button,
  .cf7-custom-css .submit input[type="submit"] {
    width: 100%;
  }
}

html.show--consent .btnpref,
html.show--preferences .btnpref {
  display: none;
}


/*----- BANNER COOKIES -----*/
html.show--consent .btnpref,
html.show--preferences .btnpref {
  display: none;
}

.btnpref {
  position: fixed;
  z-index: 99999999999;
  bottom: 15px;
  left: 15px;
  max-width: 72px;
  font-size: 14px;
  padding: 5px;
  border-radius: 8px;
  background-color: white;
  box-shadow: 1px -1px 1px 0px rgba(0, 0, 0, 0.3);
  border: 1px solid black;
}

.btnpref img {
  max-width: 40px;
  transition: transform 0.3s ease-in-out;
}

.btnpref img:hover {
  transform: scale(1.1);
  animation: bounce 0.5s ease;
}

/*animacion efecto rebote*/
@keyframes bounce {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(1);
  }

  70% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.btnpref:hover {
  cursor: pointer;
}

#firma {
  text-align: center;
  font-size: 10px;
  background-color: #004D88;
  border-top: solid 1px white;
  color: var(--primario);
}

#firma a {
  color: var(--primario);
  font-weight: bold;
}



/* MEDIA QUERIES */

@media (min-width: 982px) and (max-width: 1100px) {
  .acu-test-meta {
    gap: 4px;
  }
}

@media (min-width: 981px) {

  /* Reducir padding de las filas */
  #main-header.header-nicolas.et-fixed-header .et_pb_row {
    padding-bottom: 8px !important;
  }

  #main-header.header-nicolas.et-fixed-header .et_pb_row {
    margin-top: 0 !important;
  }

  /* Reducir logo */
  #main-header.header-nicolas.et-fixed-header img {
    max-height: 70px !important;
    width: auto !important;
  }

  /* Reducir menú */
  #main-header.header-nicolas.et-fixed-header .et_pb_menu ul li a {
    font-size: 14px !important;
  }

  /* Reducir botón Pedir cita */
  #main-header.header-nicolas.et-fixed-header .et_pb_button,
  #main-header.header-nicolas.et-fixed-header a.et_pb_button {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .tabs-tratamientos .tabs-scroll-arrow {
    display: none;
  }

}

@media(max-width: 980px) {

  /* Transparencia del menu mobile */
  body #page-container #et-boc .et-l--header #main-header.et_pb_sticky,
  body #page-container #et-boc .et-l--header #main-header.et-fixed-header {
    background-color: rgba(252, 250, 246, 0.82) !important;
    background-image: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body #page-container #et-boc .et-l--header #main-header.et_pb_sticky #menu-mobile,
  body #page-container #et-boc .et-l--header #main-header.et_pb_sticky .et_pb_row,
  body #page-container #et-boc .et-l--header #main-header.et_pb_sticky .et_pb_column,
  body #page-container #et-boc .et-l--header #main-header.et_pb_sticky .et_pb_menu,
  body #page-container #et-boc .et-l--header #main-header.et_pb_sticky .et_pb_menu_inner_container,
  body #page-container #et-boc .et-l--header #main-header.et_pb_sticky .et_pb_menu__wrap,
  body #page-container #et-boc .et-l--header #main-header.et_pb_sticky .et_mobile_nav_menu {
    background-color: transparent !important;
    background-image: none !important;
  }

  /* FIN Transparencia del menu mobile */

  /* Banner cookies */
  .btnpref {
    bottom: 50px !important;
    left: 0px;
    max-width: 180px;
    border: none !important;
    border-radius: 0px 8px 0px 0px !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
  }

  .btnpref img {
    max-width: 14px !important;
  }

  /* FIN Banner cookies */


  .tabs-tratamientos .et_pb_tabs_controls,
  .tabs-tratamientos .et_pb_all_tabs {
    width: 100%;
    float: none;
  }

  .tabs-tratamientos .et_pb_all_tabs {
    margin-top: 30px;
    padding: 25px;
  }

  .contenido-tratamiento {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tabs-tratamientos .et_pb_tabs_controls li a {
    padding-right: 45px !important;
  }

  /* La barra pasa de columna a fila con scroll lateral */
  .tabs-tratamientos .et_pb_tabs_controls,
  .tabs-tratamientos.et_pb_tabs_vertically_stacked .et_pb_tabs_controls {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Edge/IE */
  }

  .tabs-tratamientos .et_pb_tabs_controls::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  /* Cada pestaña deja de ser bloque al 100% y no se parte */
  .tabs-tratamientos .et_pb_tabs_controls li,
  .tabs-tratamientos.et_pb_tabs_vertically_stacked .et_pb_tabs_controls li {
    flex: 0 0 auto !important;
    width: auto !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    margin: 0 !important;
    border-bottom: 0 !important;
    /* quita las líneas separadoras verticales */
    scroll-snap-align: start;
  }

  /* Normaliza el texto: la pestaña activa ya no se agranda a 28px */
  .tabs-tratamientos .et_pb_tabs_controls li a,
  .tabs-tratamientos .et_pb_tabs_controls li.et_pb_tab_active a {
    font-size: 18px !important;
    /* ajusta al tamaño base que uses */
    line-height: 1.2 !important;
    margin: 0 28px 0 0 !important;
    /* separación entre pestañas */
    padding: 12px 0 !important;
    white-space: nowrap !important;
  }

  .tabs-tratamientos .tabs-scroll-wrap {
    position: relative;
  }

  .tabs-tratamientos .et_pb_tabs_controls li.et_pb_tab_active::after {
    width: 16px;
    height: 16px;
  }

  .tabs-tratamientos .tabs-scroll-wrap {
    position: relative;
    padding-top: 12px;
    /* hueco para la barra */
  }

  /* Pista (track) por encima de las pestañas */
  .tabs-tratamientos .tabs-scroll-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d0e5f0;
    /* track tenue */
    border-radius: 3px;
    overflow: hidden;
  }

  /* Indicador que se desplaza */
  .tabs-tratamientos .tabs-scroll-bar span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 29% !important;
    /* lo recalcula el JS */
    background: #3c71b6;
    /* color de marca */
    border-radius: 3px;
  }

  .header-nicolas .mobile_menu_bar {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    flex-direction: row-reverse !important;
    width: auto !important;
    border: #888c8f 1px solid;
    border-radius: 500px;
    padding: 8px;
  }

  .et_pb_menu_0_tb_header .mobile_nav .mobile_menu_bar::before {
    color: #888c8f !important;
    font-size: 20px !important;
  }


  #mobile_menu1 {
    position: fixed;
    top: 70px !important;
    border-top: 1px solid var(--azul);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.29);
    -webkit-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.29);
  }

  #menu .et_mobile_nav_menu #mobile_menu1 li a {
    font-weight: 400 !important;
  }

  #menu .et_mobile_nav_menu #mobile_menu1 .et_pb_menu_page_id-66 {
    background-color: var(--azul) !important;
    border-radius: 24px !important;

    a {
      color: white !important;
      text-align: center !important;
    }
  }

  .et_pb_section_0.et_pb_section {
    margin-top: 0px !important;
  }

  .fila-cards-test {
    display: flex;
    gap: 24px;
    flex-direction: column;
  }

  .joinchat__button {
    display: none !important;
  }

  #firma {
    padding-bottom: 60px !important;
  }

  .et_pb_section_1_tb_footer.et_pb_section {
    margin-bottom: 0px !important;
  }

  .menu-footer .et_pb_menu__menu,
  .menu-legal-footer .et_pb_menu__menu {
    display: flex !important;
    width: 100%;
  }

  .menu-footer .et_mobile_nav_menu,
  .menu-legal-footer .et_mobile_nav_menu {
    display: none !important;
  }

  .menu-footer .et_pb_menu__wrap,
  .menu-legal-footer .et_pb_menu__wrap {
    justify-content: center !important;
    width: 100%;
  }

  .menu-footer .et-menu-nav,
  .menu-legal-footer .et-menu-nav {
    width: 100%;
  }

  .menu-footer #menu-principal-1 {
    gap: 6px;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .menu-legal-footer #menu-legal {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    align-items: center;
  }

  .menu-legal-footer .et-menu-nav {
    justify-content: center;
    align-items: center;
  }

}

@media (min-width: 768px) and (max-width: 980px) {

  .sobre-mi-sticky .et_pb_row {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
  }

  .sobre-mi-sticky .et_pb_column {
    float: none !important;
  }

  .sobre-mi-sticky .et_pb_row:after {
    display: none !important;
  }

  .col-imagen-sticky {
    position: sticky !important;
    top: 75px;
    align-self: flex-start;
    height: fit-content;
  }
}

@media (max-width: 767px) {
  .col-imagen-sticky {
    position: relative !important;
    top: auto !important;
  }

  .imagen-hero {
    height: 535px;
  }

  #mobile_menu1 {
    top: 55px;
  }

  .texto-size {
    font-size: 50px !important;
  }

  .et_pb_menu_0_tb_header.et_pb_menu ul li a {
    font-size: 14px !important;
  }

}


/* ******************************************************************************* */