
/* ==========================================================
   PREHEADER: CONTACTO RÁPIDO
   ========================================================== */

/* Contenedor principal */
.preheader {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Región y bloque Drupal */
.preheader .region-preheader,
.preheader .block-block-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Franja de contacto */
.preheader-contacts {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 0;
  background: var(--color-preheader-bg);
  color: #fff;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Dirección semántica */
.preheader-contacts address {
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 0 auto;
  font-style: normal;
  box-sizing: border-box;
}

/* Pantallas muy grandes */
@media (min-width: 1441px) {
  .preheader-contacts address {
    max-width: 1320px;
  }
}

/* Lista horizontal */
.preheader-contacts .contact-list {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Cada contacto */
.preheader-contacts .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* Iconos SVG */
.preheader-contacts .contact-icon {
  display: block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  color: currentColor;
}

/* Enlaces */
.preheader-contacts .contact-item a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Hover y foco */
.preheader-contacts .contact-item a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.preheader-contacts .contact-item a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Tablet y móvil */
@media (max-width: 900px) {
  .preheader-contacts address {
    width: 100%;
    max-width: none;
  }

  .preheader-contacts {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* =========================================
   Móviles estrechos: contactos centrados
========================================= */

@media (max-width: 420px) {
  .preheader-contacts {
    padding: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .preheader-contacts .contact-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 20px;
  }

  .preheader-contacts .contact-item {
    gap: 8px;
  }

  .preheader-contacts .contact-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  /* Mantener solo el icono del correo */
  .preheader-contacts .contact-item.email a {
    font-size: 0;
  }

  .preheader-contacts .contact-item.email .contact-icon {
    flex: 0 0 21px;
  }
}

/* Correo: alinear icono y texto */
.preheader-contacts .contact-item.email > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

/* Icono del correo */
.preheader-contacts .contact-item.email .contact-icon {
  display: block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

/* Texto del correo */
.preheader-contacts .contact-item.email .mail-txt {
  display: inline-block;
  line-height: inherit;
}

/* Hover del correo: recuperar el subrayado */
.preheader-contacts .contact-item.email > a:hover .mail-txt {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .preheader-contacts .contact-item a {
    transition: none;
  }
}
