/* Temporada 2027: Home compacta, páginas de Es Carbó, Amore Due y Zafarrancho.
   Complementa sitio.css, contacto.css y reservas.css sin cambiar la identidad: turquesa, azul marino,
   crema y un salmón suave. Amore Due añade su burdeos (el color de su toldo). */
.tdm-wrapper {
  --sea: #0F4A52;
  --sea-ink: #3f5658;
  --salmon-soft: #FCEDE8;
  --salmon-ink: #8a4a36;
  --gold: #F5DD78;
  --amore: #8E3B46;
}

/* ============ ESPACIADO (≈30 % menos entre secciones) ============ */
.tdm-section { padding: 40px 0; }
.tdm-section-header { margin-bottom: 22px; }
.tdm-section-header h1, .tdm-section-header h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 6px; color: var(--sea); }
.tdm-section-header p { font-size: 1rem; color: var(--sea-ink); }
@media (max-width: 600px) {
  .tdm-section { padding: 28px 0; }
  .tdm-section-header { margin-bottom: 14px; }
  .tdm-container { padding-inline: 16px; }
}

.tdm-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #1f8f8e;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tdm-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sea);
  font-weight: 700;
  text-decoration: underline 2px #7DCDC4;
  text-underline-offset: 5px;
}
.tdm-text-link:hover { text-decoration-color: var(--sea); }

.tdm-wrapper :is(.tdm-fleet-specs, .tdm-exp-prices, .tdm-specs, .tdm-promo-pct, .tdm-price-line) {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ============ PORTADA CON FOTOGRAFÍAS REALES ============ */
/* Carrusel con todas las fotos reales del sitio, que se funden lentamente una tras otra (portada.js).
   Sin JavaScript o con «reducir movimiento» solo se ve la primera. Las fotos ocultas no se descargan
   hasta que les toca aparecer. */
.tdm-hero.tdm-hero-slides {
  position: relative;
  min-height: min(80svh, 700px);
  padding: 64px 20px 44px;
  overflow: hidden;
  background: #0b3a41;
}
.tdm-hero-media { position: absolute; inset: 0; z-index: -1; }
.tdm-hero-slides::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 52%, rgb(7 34 41 / 52%), rgb(7 34 41 / 12%) 72%),
    linear-gradient(0deg, rgb(7 34 41 / 62%), rgb(7 34 41 / 6%) 55%);
}
.tdm-wrapper .tdm-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.tdm-wrapper .tdm-hero-media img:not(:first-child) { display: none; }
.tdm-wrapper .tdm-hero-media img.tdm-hero-pos-top { object-position: center 30%; }
.tdm-wrapper .tdm-hero-media img.tdm-hero-pos-low { object-position: center 70%; }
.tdm-wrapper .tdm-hero-media img.tdm-hero-pos-right { object-position: 72% 55%; }
.tdm-wrapper .tdm-hero-media.is-playing img { display: none; opacity: 0; transition: opacity 1.6s ease-in-out; }
.tdm-wrapper .tdm-hero-media.is-playing img:is(.is-next, .is-active, .is-leaving) { display: block; }
/* La foto que se va conserva la misma animación para no dar un salto de tamaño mientras se funde. */
.tdm-wrapper .tdm-hero-media.is-playing img:is(.is-active, .is-leaving) { animation: tdm-hero-drift 8s ease-out forwards; }
.tdm-wrapper .tdm-hero-media.is-playing img.is-leaving { z-index: 1; }
.tdm-wrapper .tdm-hero-media.is-playing img.is-active { z-index: 2; opacity: 1; }
@keyframes tdm-hero-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .tdm-wrapper .tdm-hero-media img { animation: none !important; transition: none !important; }
}
.tdm-hero-slides .tdm-hero-content { max-width: 960px; }
.tdm-hero-slides h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); text-wrap: balance; }

.tdm-hero-logo-frame {
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin-bottom: 14px;
  padding: 10px 14px;
}
.tdm-hero-logo-frame::before {
  --logo-halo-ivory: 255 249 240;
  content: '';
  position: absolute;
  inset: -34px -46px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse closest-side,
    rgb(var(--logo-halo-ivory) / 96%),
    rgb(var(--logo-halo-ivory) / 87%) 43%,
    rgb(var(--logo-halo-ivory) / 62%) 63%,
    rgb(var(--logo-halo-ivory) / 24%) 82%,
    rgb(var(--logo-halo-ivory) / 0%) 100%);
}
.tdm-wrapper .tdm-hero-logo-frame .tdm-hero-logo {
  width: clamp(50px, 6.5vw, 72px);
  margin: 0;
  filter: drop-shadow(0 4px 5px rgb(7 34 41 / 24%));
}

/* ============ NUESTRA FLOTA (Home) ============ */
.tdm-fleet {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.tdm-fleet-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: white;
  color: inherit;
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease;
}
.tdm-fleet-card:hover { box-shadow: var(--shadow-hover); }
.tdm-fleet-card-star { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.tdm-fleet-card-star:hover { box-shadow: 0 0 0 2px #EFD055, var(--shadow-hover); }
.tdm-fleet-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #e9efe9; }
.tdm-fleet-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tdm-fleet-photo:hover img { transform: scale(1.03); }
.tdm-fleet-photo img.tdm-fleet-photo-amore-pinos { object-position: center 45%; }
.tdm-fleet-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(15 74 82 / 86%);
  color: var(--gold);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tdm-fleet-photo .tdm-fleet-badge { position: absolute; top: 12px; left: 12px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tdm-fleet-badge-amore { background: var(--amore); color: #FDF6EE; }
.tdm-fleet-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.tdm-fleet-title { color: var(--sea); font: 700 clamp(1.6rem, 3vw, 2rem)/1.1 'Playfair Display', Georgia, serif; }
.tdm-fleet-card-star .tdm-fleet-title { font-size: clamp(1.8rem, 3.4vw, 2.35rem); }
.tdm-fleet-model { color: #5d6f71; font-style: italic; font-size: .95rem; }
.tdm-fleet-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tdm-fleet-specs > span { padding: 7px 9px; border-radius: 12px; background: var(--cream); line-height: 1.25; }
.tdm-fleet-specs strong { display: block; color: var(--sea); font-size: 1.08rem; font-weight: 700; white-space: nowrap; }
.tdm-fleet-specs small { color: #5d6f71; font-size: .76rem; font-weight: 600; }
.tdm-fleet-features { color: var(--sea-ink); font-size: .88rem; }
.tdm-fleet-cta { align-self: flex-start; margin-top: 4px; }
.tdm-fleet-card:has(.tdm-fleet-photo:hover) .tdm-btn-primary { background: var(--button-yellow-hover); }
.tdm-fleet-card:has(.tdm-fleet-photo:hover) .tdm-btn-secondary { background: #5EBDB1; }
.tdm-fleet-details-body { display: grid; gap: 8px; padding-top: 8px; }
@media (min-width: 861px) {
  /* Con la ficha cerrada, la foto de Amore Due iguala la altura de la de Es Carbó (columnas 1,35 : 1). */
  .tdm-fleet-card:not(.tdm-fleet-card-star) .tdm-fleet-photo { aspect-ratio: 1.6 / 1.35; }
}
@media (max-width: 860px) {
  .tdm-fleet { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tdm-fleet-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 420px) {
  .tdm-fleet-specs strong { font-size: .98rem; }
  .tdm-fleet-cta { align-self: stretch; }
}

/* ============ PRESENTACIONES BREVES (Zafarrancho y Clases) ============ */
.tdm-teaser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
}
.tdm-teaser-reverse .tdm-teaser-photos { order: 2; }
.tdm-wrapper .tdm-teaser-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.tdm-teaser-text h2 { margin-bottom: 4px; color: var(--sea); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tdm-teaser-text > p:not([class]) { margin-bottom: 8px; color: var(--sea-ink); }
.tdm-teaser-tagline, .tdm-boat-tagline {
  margin-bottom: 12px;
  color: var(--salmon-ink);
  font: italic 400 1.2rem/1.35 'Playfair Display', Georgia, serif;
}
.tdm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; list-style: none; }
.tdm-chips li { padding: 4px 12px; border-radius: 999px; background: var(--salmon-soft); color: #7a3f31; font-size: .85rem; font-weight: 700; }
.tdm-home-clases { background: #FFF9F0; }
@media (max-width: 760px) {
  .tdm-teaser { grid-template-columns: minmax(0, 1fr); }
  .tdm-teaser-reverse .tdm-teaser-photos { order: 0; }
  .tdm-wrapper .tdm-teaser-photos img { aspect-ratio: 16 / 9; }
}

/* ============ PROMOCIÓN DE RESERVA ANTICIPADA (Home) ============ */
.tdm-home-promo {
  border-bottom: 1px solid var(--salmon-pastel);
  background: linear-gradient(120deg, #FDF1EA, #FBE1D5);
  color: var(--sea-ink);
}
.tdm-home-promo > summary { display: block; cursor: pointer; }
.tdm-home-promo > summary::-webkit-details-marker { display: none; }
.tdm-home-promo > summary:hover { background: rgb(168 73 47 / 6%); }
.tdm-wrapper .tdm-home-promo > summary:focus-visible { outline-offset: -3px; }
.tdm-container.tdm-promo-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 18px);
  min-height: 52px;
  padding-block: 10px;
}
.tdm-wrapper .tdm-promo-pct {
  padding: 4px 9px;
  border: 1px solid var(--salmon-pastel);
  border-radius: 999px;
  background: #FFF9F5;
  color: #A8492F;
  font: 700 .9rem/1.25 'Playfair Display', Georgia, serif;
  white-space: nowrap;
}
.tdm-wrapper .tdm-promo-title {
  color: var(--sea);
  font: 700 clamp(.82rem, 1.7vw, .95rem)/1.25 'Nunito', sans-serif;
  letter-spacing: .08em;
}
.tdm-promo-chevron {
  flex: none;
  width: 8px;
  height: 8px;
  border: solid var(--sea);
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.tdm-home-promo[open] .tdm-promo-chevron { transform: translateY(2px) rotate(225deg); }
.tdm-container.tdm-promo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 22px;
  max-width: 920px;
  padding-block: 14px 18px;
  border-top: 1px solid var(--salmon-pastel);
}
.tdm-promo-lead { margin-bottom: 6px; color: #7a3f31; font: italic 600 clamp(1.1rem, 2.2vw, 1.3rem)/1.3 'Playfair Display', Georgia, serif; }
.tdm-promo-terms { font-size: .88rem; line-height: 1.5; }
.tdm-promo-note { margin-top: 4px; color: #6b5a52; font-size: .8rem; line-height: 1.45; }
.tdm-promo-cta { background: var(--sea); color: #FDF6EE; white-space: nowrap; box-shadow: 0 4px 14px rgb(15 74 82 / 25%); }
.tdm-promo-cta:hover { background: #17636b; color: white; transform: translateY(-2px); }
@media (max-width: 760px) {
  .tdm-container.tdm-promo-card { grid-template-columns: minmax(0, 1fr); }
}

/* ============ RESEÑAS ============ */
.tdm-review-link { margin-top: 6px; text-align: center; }
.tdm-review-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #a8c7c1;
  border-radius: 999px;
  color: var(--sea);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.tdm-review-link a:hover { background: #e7f4f0; }

/* ============ PÁGINAS DE CADA BARCO ============ */
.tdm-boat-hero { padding: 22px 0 30px; background: linear-gradient(180deg, #FFF9F0 0%, var(--cream) 100%); }
.tdm-boat-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
}
.tdm-wrapper .tdm-boat-hero-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.tdm-wrapper .tdm-boat-hero-photo img.tdm-boat-hero-amore-calas { object-position: center 40%; }
.tdm-boat-hero-text h1 { margin: 8px 0 4px; color: var(--sea); font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; }
.tdm-boat-page-amore .tdm-boat-hero-text h1 { color: var(--amore); }
.tdm-boat-hero-text > p:not([class]) { color: var(--sea-ink); }
.tdm-boat-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tdm-boat-hero-actions .tdm-btn-ghost { border-color: #a8c7c1; color: var(--sea); }
.tdm-boat-hero-actions .tdm-btn-ghost:hover { background: #e7f4f0; color: var(--sea); }
@media (max-width: 900px) {
  .tdm-boat-hero { padding: 12px 0 24px; }
  .tdm-boat-hero-grid { grid-template-columns: minmax(0, 1fr); }
}

.tdm-specs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}
.tdm-specs-grid.tdm-specs-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tdm-specs-grid h2 { margin-bottom: 8px; color: var(--sea); font-size: 1.4rem; }
.tdm-specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eee3d8; }
.tdm-specs dt { color: #5d6f71; font-size: .9rem; }
.tdm-specs dd { color: var(--sea); font-weight: 700; text-align: end; }
.tdm-specs dd a { color: inherit; text-underline-offset: 3px; }
.tdm-equipment { list-style: none; }
.tdm-equipment li { position: relative; padding: 5px 0 5px 22px; color: var(--sea-ink); font-size: .95rem; }
.tdm-equipment li::before { content: ''; position: absolute; top: .9em; left: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--salmon); }
.tdm-boat-page-amore .tdm-equipment li::before { background: var(--amore); }
.tdm-wrapper .tdm-specs-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
@media (max-width: 900px) {
  .tdm-specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tdm-specs-photo { grid-column: 1 / -1; }
  .tdm-wrapper .tdm-specs-photo img { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .tdm-specs-grid, .tdm-specs-grid.tdm-specs-grid-two { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* Ficha técnica desplegable (portada y páginas de barco): cerrada por defecto. */
.tdm-specs-toggle > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #d9e6e1;
  border-radius: 14px;
  background: var(--cream);
  color: var(--sea);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.tdm-specs-toggle > summary::-webkit-details-marker { display: none; }
.tdm-specs-toggle > summary::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin: -4px 4px 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.tdm-specs-toggle[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.tdm-specs-toggle > summary:hover { background: #f3eadf; }
.tdm-boat-specs-section { padding-block: 20px; }
.tdm-boat-specs-details { max-width: 1100px; margin-inline: auto; }
.tdm-boat-specs-details > summary { width: fit-content; min-width: min(100%, 260px); margin-inline: auto; background: white; }
.tdm-boat-specs-details > summary:hover { background: #fffaf3; }
.tdm-boat-specs-details[open] > summary { margin-bottom: 20px; }
@media (prefers-reduced-motion: reduce) {
  .tdm-specs-toggle > summary::after, .tdm-fleet-photo img { transition: none; }
  .tdm-fleet-photo:hover img { transform: none; }
}

/* Experiencias: una foto distinta por tarjeta, duración y precio por temporada de ese barco. */
.tdm-season-legend { color: var(--sea-ink); }
.tdm-section-header p.tdm-season-legend { font-size: .9rem; }
.tdm-boat-experiences, .tdm-zaf-rates { background: var(--booking-field); }
.tdm-exp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tdm-exp-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--booking-surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 16px;
}
.tdm-wrapper .tdm-exp-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.tdm-wrapper .tdm-exp-photo-low { object-position: center 62%; }
.tdm-wrapper .tdm-exp-photo-sunset-proa { object-position: center 45%; }
.tdm-wrapper .tdm-exp-photo-6h-grupo { object-position: center 25%; }
.tdm-wrapper .tdm-exp-photo-completa-cala { object-position: center 40%; }
.tdm-wrapper .tdm-exp-photo-manana-domino { object-position: center 30%; }
.tdm-wrapper .tdm-exp-photo-6h-comida { object-position: center 40%; }
.tdm-wrapper .tdm-exp-photo-rutas-bimini { object-position: center 55%; }
.tdm-exp-photo-none {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #F6D2C4 0%, #FCEDE8 48%, #D7EFEA 100%);
}
.tdm-exp-photo-none span { color: var(--amore); font: italic 600 1.6rem 'Playfair Display', Georgia, serif; opacity: .8; }
.tdm-exp-photo-sunset { background: linear-gradient(180deg, #F7C3A8 0%, #F2A07A 46%, #2f6f73 100%); }
.tdm-exp-photo-sunset span { color: #FDF6EE; opacity: .95; }
.tdm-exp-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.tdm-exp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tdm-exp-head h3 { color: var(--booking-ink); font-size: 1.32rem; }
.tdm-exp-body .tdm-pack-description { flex: 0; margin: 0; color: var(--sea-ink); }
.tdm-exp-body .tdm-pack-includes { margin: 0; }
.tdm-exp-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: auto; padding-top: 2px; }
.tdm-exp-prices > div { padding: 6px 4px; border-radius: 12px; text-align: center; }
.tdm-exp-prices > div:nth-child(1) { background: var(--booking-mint); }
.tdm-exp-prices > div:nth-child(2) { background: var(--booking-sand); }
.tdm-exp-prices > div:nth-child(3) { background: var(--booking-rose); }
.tdm-exp-prices dt { color: var(--booking-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tdm-exp-prices dd { color: var(--booking-accent); font: 700 1.22rem/1.2 'Nunito', sans-serif; white-space: nowrap; }
.tdm-exp-prices dd > span { display: block; font-size: .72rem; }
.tdm-exp-quote { margin-top: auto; padding: 9px 10px; border-radius: 12px; background: var(--booking-rose); color: var(--day-closed-ink); font-weight: 700; text-align: center; }
.tdm-exp-card .tdm-btn, .tdm-zaf-row .tdm-btn { width: 100%; }
.tdm-exp-notes { max-width: 780px; margin: 18px auto 0; color: var(--sea-ink); font-size: .9rem; text-align: center; }
.tdm-exp-notes p + p { margin-top: 6px; }
@media (max-width: 1100px) { .tdm-exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .tdm-exp-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tdm-wrapper .tdm-exp-photo { aspect-ratio: 2 / 1; }
  .tdm-exp-photo-none { min-height: 0; }
  .tdm-exp-prices dd { font-size: clamp(1rem, 5vw, 1.12rem); }
}

/* ============ ZAFARRANCHO ============ */
.tdm-home-zafarrancho .tdm-teaser-photos img,
.tdm-zaf-hero .tdm-boat-hero-photo img { object-position: center 60%; }
.tdm-zaf-features { margin-top: 10px; }
.tdm-zaf-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tdm-zaf-row { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--booking-surface); box-shadow: 0 2px 12px rgb(0 0 0 / 5%); }
.tdm-zaf-occasions { max-width: 780px; margin: 16px auto 0; padding: 2px 16px; border-radius: 14px; background: var(--booking-surface); }
.tdm-zaf-occasions summary { display: flex; align-items: center; min-height: 44px; color: var(--sea); font-weight: 700; cursor: pointer; }
.tdm-zaf-occasions ul { padding-bottom: 10px; list-style: none; }
.tdm-zaf-occasions li { padding: 7px 0; border-top: 1px solid var(--booking-border); color: var(--sea-ink); font-size: .92rem; }
@media (max-width: 1000px) { .tdm-zaf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tdm-zaf-list { grid-template-columns: minmax(0, 1fr); }
}

/* ============ CONTACTO COMPACTO EN LAS PÁGINAS DE BARCO ============ */
.tdm-contact-compact { padding: 30px 0; }
.tdm-contact-compact h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.tdm-contact .tdm-container > p.tdm-boat-switch { margin-top: 12px; font-size: .92rem; }
.tdm-boat-switch a { display: inline-flex; align-items: center; min-height: 44px; color: white; font-weight: 700; text-underline-offset: 3px; }

/* ============ CALENDARIO Y SOLICITUD ============ */
.tdm-calendar-choice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 10px;
  max-width: 680px;
  margin: 0 auto 10px;
  padding: 6px 14px;
  border-radius: 14px;
  background: var(--booking-sand);
  color: var(--booking-ink);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}
.tdm-calendar-choice a { display: inline-flex; align-items: center; min-height: 36px; color: inherit; font-weight: 600; text-underline-offset: 3px; }
.tdm-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--booking-border);
  border-radius: 10px;
  background: var(--booking-mint);
  color: var(--booking-ink);
  font-size: .9rem;
}
.tdm-price-line span { color: var(--booking-muted); font-weight: 700; }
.tdm-price-line strong { color: var(--booking-accent); }
.tdm-dialog-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.tdm-booking-form .tdm-dialog-actions .tdm-submit { flex: 1 1 220px; gap: 8px; margin-top: 0; }
.tdm-dialog-actions .tdm-submit img, .tdm-dialog-actions .tdm-submit svg { flex: none; }
.tdm-dialog-actions .tdm-submit img { filter: brightness(.25); }

/* Galería de cada barco */
.tdm-gallery {
  width: min(900px, calc(100% - 16px));
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #0b2f35;
}
.tdm-gallery[open] { display: flex; flex-direction: column; }
.tdm-gallery::backdrop { background: rgb(7 34 41 / 85%); }
.tdm-gallery h2 { margin: 0; color: var(--sea); font-size: clamp(1.1rem, 4vw, 1.4rem); }
.tdm-gallery-list { display: grid; gap: 10px; padding: 10px; overflow: auto; overscroll-behavior: contain; list-style: none; }
.tdm-wrapper .tdm-gallery-list img { width: 100%; height: auto; border-radius: 12px; }
.tdm-wrapper .tdm-gallery-list img.tdm-gallery-portrait { width: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; }

/* ============ PIE ============ */
.tdm-wrapper .tdm-footer-logo { width: 44px; height: auto; margin: 0 auto 8px; opacity: .85; }
.tdm-footer .tdm-footer-contact { flex-wrap: wrap; column-gap: 22px; }
.tdm-footer-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; margin-bottom: 4px; font-size: .85rem; opacity: .85; }
.tdm-footer-pages a { display: inline-flex; align-items: center; min-height: 40px; text-underline-offset: 3px; }
.tdm-footer-legal { font-size: .8rem; opacity: .7; }
@media (max-width: 680px) {
  .tdm-footer .tdm-footer-location { grid-column: 1 / -1; }
}

/* ============ BORRADOR DE CONDICIONES (no enlazado) ============ */
.tdm-conditions { max-width: 780px; }
.tdm-conditions h1 { margin-bottom: 12px; color: var(--sea); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.tdm-conditions h2 { margin: 18px 0 8px; color: var(--sea); font-size: 1.3rem; }
.tdm-conditions ul { padding-left: 1.2em; color: var(--sea-ink); }
.tdm-conditions li + li { margin-top: 6px; }
.tdm-conditions-draft { padding: 10px 14px; border: 1px solid #ecd98a; border-radius: 10px; background: #FFF7D6; font-weight: 700; }
.tdm-conditions-pending dt { margin-top: 10px; color: var(--sea); font-weight: 700; }
.tdm-conditions-pending dd { color: #6b6257; }
