/* ==================================================
   1. COLORES Y VARIABLES
   ================================================== */

:root {
  --petroleo: #063f47;
  --petroleo-claro: #0d6972;

  --arena: #f5eddd;
  --arena-clara: #fffaf0;

  --coral: #e46650;
  --tinta: #143e43;
  --linea: #c8d0c8;

  --sombra: 0 18px 50px rgb(0 31 36 / 22%);
}

/* ==================================================
   2. ESTILOS GENERALES
   ================================================== */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--petroleo);
  color: var(--tinta);
  font-family: Inter, Arial, sans-serif;
}

button,
select {
  font: inherit;
}

button,
select,
summary {
  touch-action: manipulation;
}

button {
  min-width: 48px;
  min-height: 48px;
  padding: 12px 20px;

  border: 0;
  border-radius: 999px;

  background: var(--coral);
  color: #fff;

  font-weight: 800;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.94);
}

button:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 4px;
}

.explorador {
  min-height: 100dvh;
}

/* ==================================================
   3. CABECERA COMPACTA
   ================================================== */

.cabecera {
  position: fixed;
  z-index: 1300;

  top: 18px;
  right: 18px;
  left: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  min-height: 0;
  padding: 10px 24px;

  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 18px;

  background: rgb(245 237 221 / 94%);
  box-shadow: var(--sombra);
  backdrop-filter: blur(12px);
}

.cabecera > p {
  margin: 0;
  color: #365b5e;
  font-size: 16px;
}

.marca {
  color: var(--tinta);
  text-decoration: none;
  line-height: 1.1;
}

.marca-lugar {
  display: block;

  font-family: Georgia, serif;
  font-size: 28px;
  letter-spacing: 0.14em;
}

.marca-tema {
  display: block;
  margin-top: 4px;

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 3px;
}

/* ==================================================
   4. MAPA Y TEXTO DE PRESENTACIÓN
   ================================================== */

.mapa-panel {
  position: fixed;
  inset: 0;

  background: var(--petroleo);
}

#mapa {
  position: absolute;
  inset: 0;

  background: #195b63;
}

.mapa-panel::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(90deg, rgb(4 50 56 / 45%), transparent 50%);

  pointer-events: none;
}

.mapa-intro {
  position: absolute;
  z-index: 900;

  left: clamp(18px, 4vw, 60px);
  bottom: clamp(30px, 7vw, 80px);

  width: min(520px, calc(100% - 36px));

  color: #fff;
  text-shadow: 0 2px 18px rgb(0 20 25 / 65%);

  pointer-events: none;
}

.mapa-intro h1 {
  max-width: 11ch;
  margin: 8px 0 16px;

  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.98;
}

.mapa-intro > p:last-child {
  max-width: 38ch;
  margin: 0;

  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
}

.sobrelinea {
  margin: 0;

  color: var(--coral);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mapa-intro .sobrelinea {
  color: #ffd3c8;
}

.estado {
  position: absolute;
  z-index: 1000;

  right: 22px;
  bottom: 24px;

  max-width: 300px;
  margin: 0;
  padding: 12px 16px;

  border-radius: 12px;

  background: var(--arena);
  box-shadow: var(--sombra);

  font-size: 13px;
}

/* ==================================================
   5. MARCADORES Y CONTROLES DEL MAPA
   ================================================== */

.marcador-cala {
  border: 0;
  background: transparent;
}

.marcador-cala span {
  position: relative;

  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  border: 4px solid var(--arena-clara);
  border-radius: 50%;

  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 25px rgb(0 0 0 / 40%);

  font-weight: 900;
}

.marcador-cala span::after {
  content: "";

  position: absolute;
  inset: -11px;

  border: 2px solid rgb(255 255 255 / 72%);
  border-radius: 50%;

  animation: pulso 2s infinite;
}

@keyframes pulso {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.leaflet-control-zoom a {
  width: 48px !important;
  height: 48px !important;
  line-height: 48px !important;
}

.leaflet-bottom.leaflet-right {
  bottom: 22px;
}

/* ==================================================
   6. ESTRUCTURA DE LA FICHA
   ================================================== */

.ficha {
  min-height: 100dvh;
  margin-left: 42%;
  padding: 126px clamp(26px, 4vw, 64px) 70px;

  background: var(--arena);
}

.explorador.con-ficha .mapa-panel {
  width: 42%;
}

.explorador.con-ficha .mapa-intro,
.explorador.con-ficha .estado {
  display: none;
}

.ficha-cabecera {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 54px;
}

.boton-regreso {
  background: var(--petroleo);
}

/* ==================================================
   7. SELECTOR DE CALIDAD
   ================================================== */

.calidad {
  display: grid;
  gap: 6px;

  color: #476266;

  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calidad select {
  min-height: 48px;
  padding: 8px 36px 8px 12px;

  border: 1px solid #879b97;
  border-radius: 12px;

  background: var(--arena-clara);
  color: var(--tinta);

  font-weight: 800;
}

/* ==================================================
   8. TÍTULO Y RESUMEN DE LA RUTA
   ================================================== */

.ficha > h1 {
  max-width: 12ch;
  margin: 10px 0 18px;

  font-family: Georgia, serif;
  font-size: clamp(46px, 6vw, 86px);
  font-weight: 400;
  line-height: 0.95;
}

.entradilla {
  max-width: 700px;
  margin: 0 0 38px;

  color: #38595c;

  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.48;
}

/* ==================================================
   9. DATOS CLAVE
   ================================================== */

.datos-clave {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  margin: 0 0 64px;

  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}

.datos-clave div {
  padding: 20px 14px;
  border-right: 1px solid var(--linea);
}

.datos-clave div:last-child {
  border-right: 0;
}

.datos-clave dt {
  margin-bottom: 7px;

  color: #607477;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.datos-clave dd {
  margin: 0;

  font-family: Georgia, serif;
  font-size: 20px;
}

/* ==================================================
   10. SECCIONES DE INFORMACIÓN
   ================================================== */

.ficha > section:not(.buenas-practicas) {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 24px;

  max-width: 850px;
  margin: 0 0 54px;
}

.numero {
  margin: 7px 0 0;

  color: var(--coral);

  font-size: 12px;
  font-weight: 900;
}

.ficha h2,
#aviso h2 {
  margin: 0 0 13px;

  font-family: Georgia, serif;
  font-size: clamp(29px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.08;
}

.ficha section p:not(.sobrelinea):not(.numero) {
  margin: 0;

  font-size: 18px;
  line-height: 1.7;
}

/* ==================================================
   11. CABECERAS DE FOTOS Y VÍDEOS
   ================================================== */

.ficha > section.multimedia {
  display: block;

  max-width: none;
  margin-top: 90px;
}

.seccion-titulo {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 26px;
}

.seccion-titulo > p {
  max-width: 260px;

  color: #617477;

  font-size: 13px !important;
  text-align: right;
}

/* ==================================================
   12. GALERÍA DE FOTOGRAFÍAS
   ================================================== */

.galeria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tarjeta-foto {
  margin: 0;
}

.boton-foto {
  display: block;

  width: 100%;
  padding: 0;
  overflow: hidden;

  border-radius: 16px;
  background: var(--petroleo);
}

.boton-foto img {
  display: block;

  width: 100%;
  aspect-ratio: 4 / 3;

  object-fit: cover;
  transition: transform 0.35s ease;
}

.boton-foto:hover img {
  transform: scale(1.025);
}

.tarjeta-foto figcaption {
  margin: 8px 4px 0;

  color: #5e7375;
  font-size: 13px;
}

/* ==================================================
   13. VÍDEOS
   ================================================== */

.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
}

.tarjeta-video h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.tarjeta-video video {
  display: block;

  width: 100%;
  aspect-ratio: 16 / 9;

  border-radius: 16px;
  background: #022f35;

  object-fit: contain;
}

.ayuda-video {
  margin: 7px 0 0 !important;

  color: #607477;
  font-size: 12px !important;
}

/* ==================================================
   14. BUENAS PRÁCTICAS
   ================================================== */

.buenas-practicas {
  max-width: none;
  margin-top: 100px !important;
  padding: clamp(28px, 5vw, 60px);

  border-radius: 28px;

  background: var(--petroleo);
  color: #fff;
}

.buenas-practicas h2 {
  color: #fff;
}

.buenas-practicas ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;

  margin: 30px 0 0;
  padding: 0;

  list-style: none;
}

.buenas-practicas li {
  position: relative;

  padding: 15px 0 15px 32px;
  border-top: 1px solid rgb(255 255 255 / 18%);

  line-height: 1.5;
}

.buenas-practicas li::before {
  content: "•";

  position: absolute;
  left: 5px;

  color: var(--coral);
  font-size: 25px;
}

/* ==================================================
   15. FUENTES Y LÍMITES DE PRECISIÓN
   ================================================== */

.fuentes {
  margin-top: 30px;
  padding: 20px 0;

  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);

  color: #536a6d;
}

.fuentes summary {
  min-height: 48px;
  padding: 13px 0;

  color: var(--tinta);
  font-weight: 900;

  cursor: pointer;
}

.fuentes p {
  max-width: 900px;

  font-size: 14px;
  line-height: 1.6;
}

/* ==================================================
   16. VENTANAS MODALES
   ================================================== */

dialog {
  border: 0;
}

dialog::backdrop {
  background: rgb(0 27 32 / 88%);
}

/* ==================================================
   17. VISOR DE FOTOGRAFÍAS
   ================================================== */

#visor {
  width: min(1200px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 16px;

  border-radius: 22px;

  background: #032e34;
  color: #fff;
}

.barra-visor {
  display: flex;
  justify-content: flex-end;

  margin-bottom: 12px;
}

#foto-ampliada {
  display: block;

  width: 100%;
  height: min(70vh, 800px);

  object-fit: contain;
}

.navegacion-fotos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  margin-top: 12px;
}

.navegacion-fotos p {
  min-width: 80px;
  margin: 0;

  text-align: center;
}

/* ==================================================
   18. AVISO DE INACTIVIDAD
   ================================================== */

#aviso {
  width: min(540px, calc(100% - 30px));
  padding: clamp(26px, 5vw, 46px);

  border-radius: 25px;

  background: var(--arena);
  color: var(--tinta);
}

#aviso > p {
  font-size: 17px;
  line-height: 1.55;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 24px;
}

.secundario {
  border: 2px solid var(--petroleo);

  background: transparent;
  color: var(--petroleo);
}

/* ==================================================
   19. AVISO SIN JAVASCRIPT
   ================================================== */

noscript {
  position: fixed;
  z-index: 3000;
  inset: 20px 20px auto;

  padding: 20px;
  background: var(--arena);
}

/* ==================================================
   20. TABLETS Y PANTALLAS VERTICALES
   ================================================== */

@media (max-width: 1000px), (orientation: portrait) {
  .cabecera {
    top: 10px;
    right: 10px;
    left: 10px;

    padding: 10px 16px;
  }

  .marca-lugar {
    font-size: 21px;
  }

  .cabecera > p {
    max-width: 120px;

    font-size: 12px;
    text-align: right;
  }

  .explorador.con-ficha {
    display: flex;
    flex-direction: column;
  }

  .explorador.con-ficha .mapa-panel {
    position: relative;
    order: 2;

    width: 100%;
    min-height: 48dvh;
  }

  .ficha {
    order: 1;

    min-height: auto;
    margin-left: 0;
    padding: 104px 18px 50px;
  }

  .ficha-cabecera {
    margin-bottom: 42px;
  }

  .datos-clave {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .datos-clave div:nth-child(2) {
    border-right: 0;
  }

  .datos-clave div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--linea);
  }

  .mapa-intro h1 {
    font-size: clamp(38px, 10vw, 64px);
  }
}

/* ==================================================
   21. MÓVILES
   ================================================== */

@media (max-width: 650px) {
  .ficha-cabecera {
    align-items: stretch;
    flex-direction: column;
  }

  .calidad {
    width: 100%;
  }

  .ficha > section:not(.buenas-practicas) {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .galeria,
  .videos,
  .buenas-practicas ul {
    grid-template-columns: 1fr;
  }

  .seccion-titulo {
    align-items: flex-start;
    flex-direction: column;
  }

  .seccion-titulo > p {
    text-align: left;
  }
}

/* ==================================================
   22. REDUCIR ANIMACIONES POR ACCESIBILIDAD
   ================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
/* ==================================================
   23. CARRUSELES DE FOTOGRAFÍAS Y VÍDEOS
   ================================================== */

.galeria,
.videos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tarjeta-foto,
.tarjeta-video {
  min-width: 0;
}

.controles-carrusel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: 20px;
}

.controles-carrusel .contador-carrusel {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

.controles-carrusel button {
  flex-shrink: 0;
}

.controles-carrusel button:disabled {
  opacity: 0.4;
  cursor: default;
}

.reproducir-video {
  width: 100%;
  margin-top: 10px;

  background: var(--petroleo);
}

@media (max-width: 1000px) {
  .galeria,
  .videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .galeria,
  .videos {
    grid-template-columns: 1fr;
  }

  .controles-carrusel {
    gap: 8px;
  }

  .controles-carrusel button {
    padding: 10px 14px;
  }
}
/* ==================================================
   24. FICHA MARINA · PORTADA Y COMPOSICIÓN
   ================================================== */

.ficha.ficha-mar {
  min-width: 0;
  padding: 0;
  background: #fcfaf5;
}

.ficha-mar .ruta-portada {
  position: relative;
  isolation: isolate;

  display: flex;
  align-items: flex-end;

  min-height: 540px;
  min-height: clamp(540px, 78dvh, 820px);
  overflow: hidden;

  background: #075563;
}

.ficha-mar .ruta-portada-imagen {
  position: absolute;
  z-index: -2;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.ficha-mar .ruta-portada-sombra {
  position: absolute;
  z-index: -1;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgb(2 30 39 / 12%) 20%,
    rgb(2 30 39 / 38%) 55%,
    rgb(2 30 39 / 88%) 100%
  );

  pointer-events: none;
}

.ficha-mar .boton-regreso {
  position: absolute;
  top: 112px;
  left: clamp(24px, 4vw, 64px);

  padding: 12px 18px;

  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 4px;

  background: #fcfaf5;
  color: #123f49;

  font-size: 14px;
  font-weight: 600;
}

.ficha-mar .ruta-portada-texto {
  width: 100%;
  padding: 190px clamp(24px, 4vw, 64px) 48px;

  color: #fff;
}

.ficha-mar .ruta-kicker {
  margin: 0 0 32px;

  color: #e1f2ee;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ficha-mar .ruta-portada .sobrelinea {
  margin-bottom: 12px;
  color: #d0eee7;
}

.ficha-mar .ruta-portada h1 {
  max-width: 12ch;
  margin: 0;

  color: #fff;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.3vw, 88px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;

  overflow-wrap: break-word;
}

.ficha-mar .ruta-contenido {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px clamp(24px, 4vw, 64px) 24px;
}

/* ==================================================
   25. TEXTO Y DATOS DE LA RUTA
   ================================================== */

.ficha-mar .entradilla {
  max-width: 40ch;
  margin: 0 0 36px;

  color: #234e56;

  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.6;
}

.ficha-mar .sobrelinea {
  color: #246d70;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.ficha-mar h2 {
  margin: 12px 0 20px;

  color: #123f49;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.ficha-mar section p:not(.sobrelinea):not(.numero) {
  margin: 0;

  color: #38575c;

  font-size: 17px;
  line-height: 1.8;
}

.ficha-mar .datos-clave {
  grid-template-columns: repeat(2, minmax(0, 1fr));

  margin: 0 0 64px;
  border-color: #d4ded8;
}

.ficha-mar .datos-clave div {
  min-width: 0;
  padding: 20px 16px;

  border-right: 0;
}

.ficha-mar .datos-clave div:nth-child(odd) {
  border-right: 1px solid #d4ded8;
}

.ficha-mar .datos-clave div:nth-child(-n + 2) {
  border-bottom: 1px solid #d4ded8;
}

.ficha-mar .datos-clave dt {
  color: #526b6d;
  font-size: 10px;
}

.ficha-mar .datos-clave dd {
  color: #153f48;

  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;

  overflow-wrap: anywhere;
}

.ficha-mar .ruta-descubrir {
  max-width: 65ch;
  margin-bottom: 64px;
}

.ficha-mar .ruta-informacion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;

  margin: 64px 0;
  padding: 36px 0;

  border-top: 1px solid #d4ded8;
  border-bottom: 1px solid #d4ded8;
}

.ficha-mar .ruta-informacion section {
  min-width: 0;
}

.ficha-mar .ruta-informacion h2 {
  font-size: clamp(26px, 2.2vw, 34px);
}

/* ==================================================
   26. FOTOS, VÍDEOS Y CONTROLES
   ================================================== */

.ficha-mar .multimedia {
  margin: 0 0 64px;
}

.ficha-mar .seccion-titulo {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;

  margin-bottom: 24px;
}

.ficha-mar .seccion-titulo h2 {
  margin-bottom: 0;
}

.ficha-mar .seccion-titulo > p {
  max-width: 24ch;
  font-size: 13px !important;
}

.ficha-mar .boton-foto {
  border-radius: 3px;
}

.ficha-mar .boton-foto img {
  aspect-ratio: 3 / 4;
}

.ficha-mar .tarjeta-foto figcaption {
  margin: 10px 0 0;

  color: #47676b;
  font-size: 12px;
}

.ficha-mar .tarjeta-video h3 {
  margin-bottom: 10px;

  color: #244e56;

  font-size: 13px;
  font-weight: 600;
}

.ficha-mar .tarjeta-video video {
  border-radius: 3px;
  background: #083b45;
}

.ficha-mar .controles-carrusel {
  padding-top: 16px;
  border-top: 1px solid #d4ded8;
}

.ficha-mar .controles-carrusel button {
  width: 48px;
  padding: 0;

  border: 1px solid #a6bcb7;
  border-radius: 50%;

  background: transparent;
  color: #123f49;

  font-size: 22px;
  font-weight: 400;
}

.ficha-mar .controles-carrusel button:hover:not(:disabled) {
  background: #e5efea;
}

.ficha-mar .controles-carrusel .contador-carrusel {
  color: #38575c;
  font-size: 13px;
}

.ficha-mar .calidad {
  color: #38575c;
  font-size: 10px;
}

.ficha-mar .calidad select {
  border-color: #a6bcb7;
  border-radius: 4px;

  background: transparent;

  font-size: 14px;
  font-weight: 500;
}

/* ==================================================
   27. CUIDADO DEL MAR Y PIE
   ================================================== */

.ficha-mar .buenas-practicas {
  margin: 72px 0 32px !important;
  padding: clamp(24px, 3vw, 40px);

  border-top: 3px solid #287b7c;
  border-radius: 0;

  background: #e8f0e9;
  color: #224e54;
}

.ficha-mar .buenas-practicas h2 {
  max-width: 18ch;
  color: #123f49;
}

.ficha-mar .buenas-practicas ul {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.ficha-mar .buenas-practicas li {
  padding: 15px 0 15px 20px;

  border-top: 1px solid #c8d8cf;

  font-size: 15px;
  line-height: 1.7;
}

.ficha-mar .buenas-practicas li::before {
  left: 0;
  color: #287b7c;
  font-size: 20px;
}

.ficha-mar .fuentes {
  margin-top: 0;
  border-color: #d4ded8;
}

.ficha-mar .fuentes summary {
  font-size: 14px;
  font-weight: 600;
}

.ficha-mar .fuentes p {
  overflow-wrap: anywhere;
}

.ficha-mar .ruta-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;

  padding-top: 36px;
}

.ficha-mar .ruta-pie span {
  color: #234e56;

  font-family: Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.12em;
}

.ficha-mar .ruta-pie p {
  margin: 0;
  color: #526b6d;
  font-size: 12px;
}

/* ==================================================
   28. ADAPTACIÓN DE LA NUEVA FICHA
   ================================================== */

@media (max-width: 1200px) {
  .ficha-mar .ruta-informacion {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px), (orientation: portrait) {
  .ficha-mar .ruta-portada {
    min-height: 580px;
    min-height: 70dvh;
  }

  .ficha-mar .boton-regreso {
    top: 100px;
    left: 24px;
  }

  .ficha-mar .ruta-portada-texto {
    padding: 190px 24px 36px;
  }

  .ficha-mar .ruta-portada h1 {
    font-size: clamp(48px, 8vw, 76px);
  }

  .ficha-mar .ruta-contenido {
    padding: 32px 24px 24px;
  }
}

@media (max-width: 650px) {
  .ficha-mar .ruta-portada {
    min-height: 500px;
  }

  .ficha-mar .ruta-portada h1 {
    font-size: clamp(44px, 12vw, 64px);
  }

  .ficha-mar .ruta-contenido {
    padding-right: 20px;
    padding-left: 20px;
  }

  .ficha-mar .datos-clave div {
    padding: 16px 10px;
  }

  .ficha-mar .datos-clave dd {
    font-size: 14px;
  }

  .ficha-mar .seccion-titulo {
    align-items: flex-start;
  }

  .ficha-mar .seccion-titulo > p {
    max-width: none;
    text-align: left;
  }

  .ficha-mar .boton-foto img {
    aspect-ratio: 4 / 3;
  }
}
/* Portada: fotografía protagonista y título más contenido */

.ficha-mar .ruta-portada {
  min-height: clamp(460px, 68dvh, 680px);
}

.ficha-mar .ruta-portada-imagen {
  object-position: center 45%;
}

.ficha-mar .ruta-portada-sombra {
  background: linear-gradient(
    to bottom,
    rgb(2 30 39 / 3%) 25%,
    rgb(2 30 39 / 15%) 50%,
    rgb(2 30 39 / 78%) 100%
  );
}

.ficha-mar .ruta-portada-texto {
  padding-bottom: 36px;
}

.ficha-mar .ruta-portada h1 {
  max-width: 16ch;
  font-size: clamp(42px, 4.3vw, 70px);
  line-height: 1.06;
}

.ficha-mar .ruta-kicker {
  margin-bottom: 20px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.ficha-mar .boton-regreso {
  min-height: 44px;
  padding: 10px 16px;

  border: 0;
  background: rgb(252 250 245 / 95%);

  font-size: 13px;
}

/* Mostrar más paisaje en las fotografías del carrusel */

.ficha-mar .boton-foto img {
  aspect-ratio: 4 / 3;
}

@media (max-width: 650px) {
  .ficha-mar .ruta-portada {
    min-height: 480px;
  }

  .ficha-mar .ruta-portada h1 {
    font-size: clamp(40px, 10vw, 58px);
  }
}
/* ==================================================
   PORTADA · TEXTO A LA IZQUIERDA, MAPA A LA DERECHA
   ================================================== */

.explorador:not(.con-ficha) .mapa-panel {
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);

  padding-top: 110px;

  background: #e0f0e9;
}

/* El mapa ocupa su propia columna. */
.explorador:not(.con-ficha) #mapa {
  position: relative;
  inset: auto;

  grid-column: 2;
  grid-row: 1;

  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

/* Retirar la sombra que oscurecía el satélite. */
.mapa-panel::after {
  display: none;
}

.explorador:not(.con-ficha) .mapa-intro {
  position: relative;
  inset: auto;
  z-index: auto;

  grid-column: 1;
  grid-row: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;

  width: 100%;
  min-width: 0;
  padding: clamp(24px, 3.5vw, 64px);
  overflow-y: auto;

  background: #e0f0e9;
  color: #123f49;

  text-shadow: none;
  pointer-events: auto;
}

.explorador:not(.con-ficha) .mapa-intro .sobrelinea {
  margin: 0 0 26px;

  color: #246c68;

  font-size: 12px;
  letter-spacing: 0.16em;
}

.explorador:not(.con-ficha) .mapa-intro h1 {
  max-width: none;
  margin: 0 0 28px;

  color: #123f49;

  font-family: Georgia, serif;
  font-size: clamp(40px, 4.5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.explorador:not(.con-ficha) .mapa-intro h1 em {
  color: #087c83;
  font-weight: 400;
}

.explorador:not(.con-ficha) .intro-descripcion {
  max-width: 30ch;
  margin: 0 0 34px;

  color: #365e60;

  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.7;
}

.explorador:not(.con-ficha) .intro-instruccion {
  display: flex;
  align-items: center;
  gap: 12px;

  max-width: 31ch;
  margin: 0;
  padding-top: 24px;

  border-top: 1px solid #aacdc1;

  color: #123f49;

  font-size: 15px;
  line-height: 1.6;
}

.intro-instruccion span {
  display: grid;
  place-items: center;
  flex-shrink: 0;

  width: 40px;
  height: 40px;

  border-radius: 50%;
  background: #ffd166;
  color: #123f49;

  font-size: 24px;
}

.explorador:not(.con-ficha) .mapa-intro .intro-pie {
  max-width: none;
  margin: 32px 0 0;

  color: #476b66;

  font-size: 12px;
  line-height: 1.6;
}

/* Cabecera más luminosa. */
.cabecera {
  background: #fffaf0;
  border-color: #e5e4d5;
  box-shadow: 0 5px 20px rgb(0 45 45 / 8%);
}

/* Marcadores pequeños, en amarillo de verano.
   Conservamos una superficie táctil de 48 × 48 px. */
.marcador-cala {
  display: grid;
  place-items: center;
}

.marcador-cala span {
  width: 36px;
  height: 36px;

  border: 2px solid #fffaf0;
  border-radius: 50%;

  background: #ffd166;
  color: #123f49;

  font-size: 13px;
  font-weight: 800;

  box-shadow: 0 3px 10px rgb(0 30 40 / 25%);
}

.marcador-cala span::after {
  display: none;
}

/* En móvil: texto arriba y mapa debajo. */
@media (max-width: 760px) {
  .explorador:not(.con-ficha) .mapa-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(300px, 1fr);

    padding-top: 90px;
    overflow-y: auto;
  }

  .explorador:not(.con-ficha) .mapa-intro {
    grid-column: 1;
    grid-row: 1;

    padding: 22px 24px;
    overflow: visible;
  }

  .explorador:not(.con-ficha) #mapa {
    grid-column: 1;
    grid-row: 2;
  }

  .explorador:not(.con-ficha) .mapa-intro .sobrelinea {
    margin-bottom: 12px;
  }

  .explorador:not(.con-ficha) .mapa-intro h1 {
    margin-bottom: 14px;
    font-size: 42px;
  }

  .explorador:not(.con-ficha) .intro-descripcion {
    max-width: 42ch;
    margin-bottom: 16px;
    font-size: 15px;
  }

  .explorador:not(.con-ficha) .intro-instruccion {
    max-width: none;
    padding-top: 14px;
    font-size: 14px;
  }

  .explorador:not(.con-ficha) .mapa-intro .intro-pie {
    display: none;
  }
}
