/* ============================================
   EL GALEÓN TOURS — hoja de estilos
   Paleta y tipografía provisionales, pensadas
   para adaptarse cuando llegue el logo oficial
   y los diseños de referencia.
   ============================================ */

:root {
  --navy: #0F2438;
  --navy-light: #17324A;
  --red: #7C2430;
  --red-dark: #5E1B24;
  --parchment: #F3ECDD;
  --cream: #FBF8F1;
  --brass: #C1974C;
  --teal: #1B5E63;
  --teal-dark: #123F43;
  --ink: #1A1A1A;
  --ink-soft: #55524B;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius: 6px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--navy);
}

p { margin: 0; }

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--red);
  color: var(--cream);
}
.btn--primary:hover { background: var(--red-dark); }

.btn--outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn--outline:hover { background: var(--teal-dark); color: var(--cream); }

.btn--whatsapp {
  background: var(--brass);
  color: var(--navy);
  padding: 0.6em 1.3em;
}
.btn--whatsapp:hover { background: #d4ac66; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(193, 151, 76, 0.35);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
}

.wordmark__icon { width: 30px; height: 30px; color: var(--brass); flex-shrink: 0; }

.wordmark__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  color: var(--cream);
}

.wordmark__text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--brass);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a:not(.btn) {
  color: var(--cream);
  font-size: 0.95rem;
  opacity: 0.9;
}
.site-nav a:not(.btn):hover { opacity: 1; color: var(--brass); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--cream);
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy); /* respaldo mientras carga la foto */
  padding: 6rem 1.5rem 9.5rem;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%; /* prioriza mantener el velamen visible */
  transform: scale(1);
  animation: heroZoom 26s ease-in-out infinite alternate;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 36, 56, 0.93) 0%,
    rgba(15, 36, 56, 0.8) 28%,
    rgba(15, 36, 56, 0.45) 55%,
    rgba(15, 36, 56, 0.22) 100%
  );
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.09); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg img { animation: none; }
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero__video.is-visible { opacity: 1; }

.hero__inner {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero__text { max-width: 460px; }

.hero__eyebrow {
  color: var(--brass);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.hero__title {
  color: var(--cream);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero__subtitle {
  color: rgba(251, 248, 241, 0.9);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1;
}
.hero__wave path { fill: var(--parchment); }

/* ---------- Signature (Deep Sea Fishing) ---------- */

.signature {
  position: relative;
  max-width: var(--max-width);
  margin: -64px auto 0;
  padding: 0 1.5rem;
  z-index: 3;
}

.signature__compass {
  position: absolute;
  top: -30px;
  right: 6px;
  width: 150px;
  height: 150px;
  color: var(--brass);
  opacity: 0.1;
  pointer-events: none;
}

.signature__inner {
  background: var(--cream);
  border: 1.5px solid var(--brass);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  box-shadow: 0 24px 48px -24px rgba(15, 36, 56, 0.4);
}

.signature__text { flex: 1.1; }
.signature__visual {
  flex: 0.9;
  color: var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: stretch;
  min-height: 220px;
}
.signature__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.signature__eyebrow {
  color: var(--teal-dark);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  display: block;
}

.signature__title { font-size: 2.3rem; margin-bottom: 0.75rem; }

.signature__desc {
  display: block;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.4rem;
}

/* ---------- Excursions ---------- */

.excursions {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.section-title { font-size: 2rem; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--ink-soft); }

.excursions-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.excursion-row {
  display: grid;
  grid-template-columns: 260px 1px 1fr;
  gap: 2rem;
  align-items: stretch;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 36, 56, 0.06);
}

.excursion-row--reverse { grid-template-columns: 1fr 1px 260px; }
.excursion-row--reverse .excursion-row__visual { order: 3; }
.excursion-row--reverse .excursion-row__divider { order: 2; }
.excursion-row--reverse .excursion-row__content { order: 1; }

.excursion-row__visual {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.excursion-row__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.excursion-row__visual svg { width: 56px; height: 56px; }

.visual--a { background: linear-gradient(150deg, var(--teal) 0%, var(--navy) 100%); }
.visual--b { background: linear-gradient(150deg, var(--brass) 0%, var(--red-dark) 100%); }
.visual--c { background: linear-gradient(150deg, var(--navy-light) 0%, var(--teal-dark) 100%); }

.excursion-row__divider {
  background-image: repeating-linear-gradient(to bottom, var(--parchment) 0 8px, transparent 8px 16px);
  width: 1px;
}

.excursion-row__content {
  padding: 1.75rem 1.75rem 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: center;
}

.excursion-row--reverse .excursion-row__content { padding: 1.75rem 0 1.75rem 1.75rem; }

.excursion-row__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.2rem; }

.tag {
  font-size: 0.75rem;
  color: var(--teal-dark);
  background: rgba(27, 94, 99, 0.1);
  padding: 0.2em 0.7em;
  border-radius: 100px;
}

.excursion-row__title { font-size: 1.5rem; }

.excursion-row__desc { color: var(--ink-soft); max-width: 46ch; }

.excursion-row__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 0.4rem;
}
.excursion-row__title a:hover { color: var(--red); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem 1.5rem 1.5rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(193, 151, 76, 0.3);
}

.wordmark__text--light { color: var(--cream); }

.footer-brand p { margin-top: 0.75rem; color: rgba(251, 248, 241, 0.75); font-size: 0.9rem; }

.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.footer-contact a { color: rgba(251, 248, 241, 0.85); }
.footer-contact a:hover { color: var(--brass); }

.footer-note {
  text-align: center;
  max-width: var(--max-width);
  margin: 1.25rem auto 0;
  font-size: 0.8rem;
  color: rgba(251, 248, 241, 0.55);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__text { max-width: 100%; text-align: center; }
  .hero__inner { display: flex; justify-content: center; }

  .signature__inner { flex-direction: column; text-align: center; padding: 2rem; }
  .signature__visual { max-width: 200px; }
}

@media (max-width: 860px) {
  .excursion-row,
  .excursion-row--reverse {
    grid-template-columns: 1fr;
  }
  .excursion-row__divider { display: none; }
  .excursion-row--reverse .excursion-row__visual,
  .excursion-row--reverse .excursion-row__content { order: initial; }
  .excursion-row__content,
  .excursion-row--reverse .excursion-row__content { padding: 1.5rem; }
  .excursion-row__visual { min-height: 160px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    display: none;
    border-bottom: 1px solid rgba(193, 151, 76, 0.35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .btn--whatsapp { align-self: flex-start; }

  .signature { margin-top: -40px; }
}

/* ---------- Booking modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 56, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1.5px solid var(--brass);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 60px -20px rgba(15, 36, 56, 0.5);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.25rem;
}
.modal__close:hover { color: var(--red); }

.modal__eyebrow { color: var(--teal-dark); font-size: 0.9rem; margin-bottom: 0.2rem; }
.modal__title { font-size: 1.7rem; margin-bottom: 1.25rem; }

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.field input,
.field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.6em 0.75em;
  border: 1.5px solid rgba(15, 36, 56, 0.2);
  border-radius: var(--radius);
  background: var(--parchment);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal-dark);
}

#booking-time-field.is-hidden { display: none; }

.booking-form__submit { margin-top: 0.4rem; }

.booking-form__note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ============================================
   Páginas de detalle de excursión (/tours/*.html)
   ============================================ */

.page-banner {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 3rem 1.5rem 2.5rem;
}
.page-banner__inner { max-width: var(--max-width); margin: 0 auto; }
.page-banner__crumb {
  font-size: 0.85rem;
  color: rgba(251, 248, 241, 0.65);
  margin-bottom: 0.6rem;
}
.page-banner__crumb a { color: var(--brass); }
.page-banner__crumb a:hover { text-decoration: underline; }
.page-banner__title { font-size: clamp(2rem, 4vw, 2.7rem); color: var(--cream); }

.tour-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.tour-detail__main { min-width: 0; }

.tour-detail__desc { color: var(--ink-soft); max-width: 68ch; margin-bottom: 2rem; }

.tour-detail__subhead {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.gallery__main {
  grid-row: span 2;
  min-height: 320px;
  border-radius: var(--radius);
}
.gallery__thumb { min-height: 152px; border-radius: var(--radius); }
.gallery__main, .gallery__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.gallery__main svg { width: 25%; }
.gallery__thumb svg { width: 32%; }
.gallery__main img, .gallery__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Variante con fotos reales: la columna de miniaturas admite más de 2
   fotos, apilándolas y repartiendo el alto disponible entre ellas. */
.gallery--photos { grid-template-rows: none; }
.gallery--photos .gallery__thumbs {
  grid-row: span 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
}
.gallery--photos .gallery__thumbs .gallery__thumb { flex: 1; min-height: 100px; }

/* Trust points */
.trust-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
}
.trust-points li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.trust-points svg {
  width: 19px;
  height: 19px;
  color: var(--teal-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Itinerary accordion */
.itinerary__item { border-bottom: 1px solid rgba(15, 36, 56, 0.12); }
.itinerary__item:first-child { border-top: 1px solid rgba(15, 36, 56, 0.12); }

.itinerary__trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.itinerary__trigger .step-no {
  color: var(--brass);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.7rem;
}

.itinerary__trigger .chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--ink-soft);
}

.itinerary__item.is-open .chevron { transform: rotate(180deg); }

.itinerary__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.itinerary__item.is-open .itinerary__panel { max-height: 220px; }
.itinerary__panel p { color: var(--ink-soft); padding: 0 0 1.1rem; max-width: 60ch; }

/* Map */
.tour-map { margin-top: 0.75rem; }
.tour-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--radius);
  display: block;
}
.tour-map__note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* Sidebar booking card */
.tour-detail__aside { position: sticky; top: 90px; }

.booking-card {
  background: var(--cream);
  border: 1.5px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.booking-card h3 { font-size: 1.4rem; margin-bottom: 1.1rem; }

.booking-card__facts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.booking-card__facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed rgba(15, 36, 56, 0.15);
  padding-bottom: 0.55rem;
}
.booking-card__facts li span:last-child { color: var(--navy); font-weight: 600; text-align: right; }

.booking-card .btn { width: 100%; }

/* Related tours */
.related-tours {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}
.related-tours__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.related-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 36, 56, 0.06);
}
.related-card__visual {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.related-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card__visual svg { width: 34px; height: 34px; }
.related-card__body { padding: 1rem 1.25rem 1.25rem; }
.related-card__body h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.related-card__body a { color: var(--teal-dark); font-size: 0.85rem; }
.related-card__body a:hover { text-decoration: underline; }

/* Link discreto para "ver detalles" en las tarjetas del landing */
.link-quiet { color: var(--teal-dark); font-size: 0.88rem; align-self: flex-start; }
.link-quiet:hover { text-decoration: underline; }

/* ---------- Responsive: páginas de detalle ---------- */

@media (max-width: 960px) {
  .tour-detail { grid-template-columns: 1fr; }
  .tour-detail__aside { position: static; }
  .related-tours__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery__main { grid-row: auto; min-height: 220px; }
  .trust-points { grid-template-columns: 1fr; }
  .related-tours__grid { grid-template-columns: 1fr; }
}

/* ---------- Selector de idioma ---------- */

[hidden] { display: none !important; }

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(193, 151, 76, 0.5);
  border-radius: 100px;
  padding: 2px;
  gap: 2px;
}
.lang-toggle__btn {
  background: none;
  border: none;
  color: rgba(251, 248, 241, 0.7);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3em 0.7em;
  border-radius: 100px;
  cursor: pointer;
}
.lang-toggle__btn.is-active {
  background: var(--brass);
  color: var(--navy);
}
