/* ============================================================
   Móviles Laguna — ajustes propios
   Este archivo NO lo genera Mobirise: se puede editar a mano.
   Va cargado después de mbr-additional.css en todas las páginas.
   ============================================================ */

/* 1. Imágenes: mantener proporción y alinear las tarjetas */
.card-img img,
.mbr-figure img {
  height: auto;
}
.card .card-img {
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}
.card .card-img img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
}
@media (max-width: 767px) {
  .card .card-img {
    height: 220px;
  }
}

/* 2. Ficha técnica dentro de la tarjeta.
      Antes una sola tarjeta podía medir más de 4.000 px de alto
      y dejaba la página llena de espacio en blanco.
      El botón "Ver ficha completa" (assets/custom/site-fixes.js)
      permite desplegar el texto; sin JS sigue siendo desplazable. */
.card .mbr-text {
  max-height: 300px !important;
  overflow-y: auto !important;
  padding-right: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.card .mbr-text::-webkit-scrollbar {
  display: none;
}
.card .mbr-text.is-open {
  max-height: none !important;
  overflow-y: visible !important;
  padding-right: 0;
}
.card-toggle {
  display: block;
  position: sticky;
  bottom: 0;
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 6px 0;
  border: 0;
  background: #fff;
  color: #0f7699;
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}
.card-toggle:hover,
.card-toggle:focus {
  color: #149dcc;
  outline: none;
  text-decoration: none;
}

/* 2b. Contraste: la sección de Smartphones tenía los títulos en #ccc
       sobre fondo blanco (ratio 1,6:1, ilegible). */
.card .card-title {
  color: #232323 !important;
}


/* 2c. Menú de escritorio: desplegar al pasar el ratón, aunque el
       JavaScript no se haya cargado (Mobirise lo bloquea hasta que
       se aceptan las cookies). En móvil manda el menú lateral. */
@media (min-width: 992px) {
  .nav-dropdown .dropdown:hover > .dropdown-menu {
    display: block !important;
  }
}

/* 3. Enlace alternativo al mapa (si no se aceptan cookies) */
.map-fallback {
  display: inline-block;
  margin-top: .75rem;
  font-size: .95rem;
  color: #0f7699;
  text-decoration: underline;
}
.map-fallback:hover {
  color: #149dcc;
}

/* 4. Contraste (corregido tras auditoría Lighthouse)
      Blancos sobre #149dcc daban 3,12:1 y los grises #a7a7a7 solo 2,4:1. */
.btn-primary,
.btn-form {
  background-color: #0f7699 !important;
  border-color: #0f7699 !important;
  color: #ffffff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-form:hover,
.btn-form:focus {
  background-color: #0b5c78 !important;
  border-color: #0b5c78 !important;
}
.textGDPR {
  color: #5c5c5c !important;
}
.textGDPR a {
  color: #0f7699 !important;
}
section.display-7 a {
  color: #0b5c78 !important;
}

/* 6. Bloque de contacto: rejilla de 3 columnas que se apila en móvil */
.ml-contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 1.2rem 2rem;
}
.ml-contacto__bloque {
  flex: 1 1 190px;
  min-width: 0;
  line-height: 1.6;
}
.ml-contacto__bloque strong {
  display: block;
  margin-bottom: .35rem;
  font-weight: 600;
}
.ml-contacto a {
  color: inherit;
  text-decoration: underline;
}
@media (max-width: 767px) {
  .ml-contacto {
    flex-direction: column;
    gap: .9rem;
  }
  .ml-contacto__bloque {
    min-width: 0;
  }
}

/* 5. Páginas legales e informativas */
.legal-page {
  background: #fff;
  color: #232323;
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.legal-header {
  background: #0f7699;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
}
.legal-header img {
  height: 44px;
  width: auto;
  display: block;
}
.legal-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.legal-header a:hover {
  text-decoration: underline;
}
.legal-main {
  width: 100%;
  flex: 1 0 auto;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.legal-main h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 .5rem;
  color: #0f7699;
}
.legal-main .legal-sub {
  color: #667;
  margin-bottom: 2rem;
}
.legal-main h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 .75rem;
  color: #0f7699;
}
.legal-main h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 .5rem;
}
.legal-main p,
.legal-main li {
  line-height: 1.7;
  font-size: 1rem;
}
.legal-main ul {
  padding-left: 1.25rem;
}
.legal-main a {
  color: #0f7699;
}
.legal-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .95rem;
}
.legal-main th,
.legal-main td {
  border: 1px solid #dde3e6;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal-main th {
  background: #f4f7f9;
}
.legal-footer {
  background: #232323;
  color: #fff;
  text-align: center;
  padding: 28px 24px;
  font-size: .9rem;
}
.legal-footer a {
  color: #8fd6ee;
  text-decoration: none;
}
.legal-footer a:hover {
  text-decoration: underline;
}
.legal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.legal-btn {
  display: inline-block;
  background: #149dcc;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 3px;
  text-decoration: none !important;
  font-weight: 500;
}
.legal-btn:hover {
  background: #0f7699;
}
.legal-btn--ghost {
  background: transparent;
  color: #0f7699 !important;
  border: 1px solid #0f7699;
}
@media (max-width: 600px) {
  .legal-header {
    justify-content: center;
    text-align: center;
  }
  .legal-main {
    padding: 32px 18px 48px;
  }
  .legal-main h1 {
    font-size: 1.6rem;
  }
}
