:root {
  --deep: #04202e;
  --deep-2: #062b3c;
  --card: #0a2f42;
  --ink: #eaf6fb;
  --ink-soft: #cfe8f2;
  --ink-mute: #a8cad9;
  --ink-faint: #9fc6d6;
  --cyan: #33c7e8;
  --cyan-soft: #7fe0f5;
  --amber: #ffb02e;
  --orange: #ff7a18;
  --wa: #25d366;
  --hair: rgba(255, 255, 255, 0.09);
  --hair-2: rgba(255, 255, 255, 0.16);
  --shell: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--deep);
}

body {
  font-family: Archivo, Helvetica, Arial, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
}

img, video { display: block; }
input, select, button, textarea { font-family: inherit; }
::selection { background: var(--orange); color: #fff; }

a { color: var(--amber); text-decoration: none; }
a:hover { color: #ffd479; }

h1, h2, h3, .display {
  font-family: "Archivo Black", Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
}

@keyframes slowzoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.16); }
}
@keyframes floatup {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(4, 32, 46, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.brand-mark--lg { width: 76px; height: 76px; }

.brand-fallback {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(92deg, var(--orange), var(--amber));
  color: #22160a;
  font-family: "Archivo Black", Helvetica, Arial, sans-serif;
  font-size: 19px;
  flex: none;
}
.brand-fallback--lg { width: 76px; height: 76px; font-size: 27px; }

.brand-text {
  font-family: "Archivo Black", Helvetica, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.brand-text span {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink); font-size: 14px; font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px;
}
.toggle--hero {
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 3px 3px 3px 12px;
}
.toggle-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-faint);
}
.toggle button {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  color: var(--ink-soft);
}
.toggle button[aria-pressed="true"] {
  background: var(--amber);
  color: #22160a;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}
.btn--primary {
  background: linear-gradient(92deg, var(--orange), var(--amber));
  color: #22160a;
}
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--wa { background: var(--wa); color: var(--deep); }
.btn--wa:hover { color: var(--deep); filter: brightness(1.06); }
.btn--block { width: 100%; border-radius: 12px; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 17px; }

.site-header .btn--wa {
  min-height: 44px;
  padding: 12px 18px;
  font-size: 14px;
  gap: 8px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row--center { justify-content: center; }

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

.hero { position: relative; }

.hero--a {
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero--a .hero-video {
  animation: slowzoom 24s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,32,46,0.55) 0%, rgba(4,32,46,0.3) 40%, rgba(4,32,46,0.92) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  padding: 90px 24px 60px;
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-copy { animation: floatup 0.9s ease both; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--cyan {
  background: rgba(51, 199, 232, 0.14);
  border-color: rgba(51, 199, 232, 0.4);
  color: var(--cyan-soft);
}

.hero--a h1 {
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.94;
  margin: 18px 0 0;
  text-wrap: balance;
}
.grad {
  background: linear-gradient(92deg, #ffd23f, var(--orange) 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent { color: var(--orange); }

.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 22px 0 0;
  text-wrap: pretty;
}

/* Hero B */
.hero--b { background: var(--deep); padding: 0; }
.hero-b-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(340px, 1.05fr);
  min-height: 90vh;
}
.hero-b-copy {
  padding: clamp(40px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}
.hero-b-copy .badge { align-self: flex-start; }
.hero--b h1 {
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: 0.95;
  margin: 0;
}
.hero--b .hero-sub { max-width: 42ch; margin: 0; }
.hero--b .cta-row { margin-top: 0; }

.hero-points { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
}
.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

.hero-b-media { position: relative; overflow: hidden; min-height: 60vh; }
.hero-b-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(4,32,46,0) 40%, rgba(4,32,46,0.9) 100%);
}

/* ---------- Booking card ---------- */

.booking-card {
  background: rgba(4, 32, 46, 0.72);
  border: 1px solid var(--hair-2);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  animation: floatup 1.1s ease both;
}
.booking-card--compact {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(4, 32, 46, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: none;
}

.booking-title {
  font-family: "Archivo Black", Helvetica, Arial, sans-serif;
  font-size: 22px;
  margin-bottom: 4px;
}
.booking-card--compact .booking-title { font-size: 20px; margin-bottom: 14px; }
.booking-sub { font-size: 13px; color: var(--ink-faint); margin-bottom: 18px; }
.booking-note { font-size: 12px; color: var(--ink-faint); margin-top: 14px; line-height: 1.5; }

.booking-fields { display: grid; gap: 12px; }
.booking-fields--grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field { display: block; min-width: 0; }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.booking-fields input,
.booking-fields select {
  /* appearance:none es lo que impide que iOS imponga su propio alto, su fondo
     y su tipografía en los campos de fecha y en el select. */
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  /* 16px exactos: por debajo de eso iOS hace zoom al enfocar el campo. */
  font-size: 16px;
  line-height: 1.25;
}
.booking-fields input:focus,
.booking-fields select:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}
.booking-fields select option { background: var(--deep); color: var(--ink); }
.booking-fields input::placeholder { color: var(--ink-faint); }

/* Con appearance:none desaparece la flecha nativa del select: la repongo. */
.booking-fields select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239fc6d6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}

/* Safari en iOS centra el valor de las fechas y lo recorta si el campo es
   angosto. Esto lo alinea a la izquierda y evita que se salga de la caja. */
.booking-fields input[type="date"] { text-align: left; }
.booking-fields input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
  min-height: 22px;
}
.booking-fields input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.55;
  margin: 0;
}
/* iOS pinta los spinners del campo numérico encima del valor. */
.booking-fields input[type="number"]::-webkit-outer-spin-button,
.booking-fields input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.booking-fields input[type="number"] { -moz-appearance: textfield; }
.booking-fields--grid .btn--block { min-height: 48px; font-size: 15px; align-self: end; }

/* ---------- Strip ---------- */

.strip { background: linear-gradient(92deg, var(--orange), var(--amber)); color: #22160a; }
.strip-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.strip-item { display: flex; align-items: baseline; gap: 12px; }
.strip-n {
  font-family: "Archivo Black", Helvetica, Arial, sans-serif;
  font-size: 15px;
  opacity: 0.5;
}
.strip-title {
  font-family: "Archivo Black", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
}
.strip-body { font-size: 14px; line-height: 1.4; opacity: 0.78; }

/* ---------- Sections ---------- */

.section { max-width: var(--shell); margin: 0 auto; padding: clamp(48px, 7vw, 96px) 24px; }
#tours { padding-bottom: 40px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
}
.section-head h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1; margin: 0; }
.section-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 44ch;
  margin: 0;
}
.kicker {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Tours */

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.tour-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tour-card:hover {
  border-color: rgba(255, 176, 46, 0.6);
  transform: translateY(-4px);
}
.tour-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; }
.tour-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(4, 32, 46, 0.82);
  color: var(--cyan-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 999px;
}
.tour-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tour-body h3 { font-size: 22px; line-height: 1.1; margin: 0; }
.tour-blurb {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0;
  flex: 1;
  text-wrap: pretty;
}
.tour-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}
.tour-meta { font-size: 13px; color: var(--cyan-soft); font-weight: 600; }
.tour-ask {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.tour-ask:hover { color: #fff; background: rgba(255, 255, 255, 0.18); }

/* Why */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.why-grid h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.02; margin: 0 0 20px; }
.pitch {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
  white-space: pre-line;
  text-wrap: pretty;
}
.why-list { display: grid; gap: 16px; }
.why-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--hair);
}
.why-n {
  font-family: "Archivo Black", Helvetica, Arial, sans-serif;
  font-size: 20px;
  color: var(--amber);
}
.why-title {
  font-family: "Archivo Black", Helvetica, Arial, sans-serif;
  font-size: 18px;
  margin-bottom: 6px;
}
.why-body { font-size: 15px; line-height: 1.55; color: var(--ink-mute); }

/* Gallery */

.gallery-section {
  background: var(--deep-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.section-inner { max-width: var(--shell); margin: 0 auto; padding: clamp(56px, 8vw, 100px) 24px; }
.gallery-section .section-head h2 { font-size: clamp(32px, 4.2vw, 58px); }
.gallery-section .section-lede { max-width: 40ch; }

/* Rejilla de galería.
   Las celdas anchas solo caben si sobran columnas en la fila; cuando no caben
   saltan a la siguiente y dejan un hueco. Por eso:
   1) el número de columnas es fijo por breakpoint (no auto-fill), para que el
      total de celdas sea múltiplo exacto de las columnas — 11 piezas:
      2 cols → 4+10 = 14 (7 filas) · 3 cols → 4+2+9 = 15 (5 filas) · 4 cols → 4+2+2+8 = 16 (4 filas);
   2) grid-auto-flow: dense rellena cualquier hueco con la pieza siguiente que quepa. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 12px;
}
.gal-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--card);
}
.gal-item img, .gal-item video { width: 100%; height: 100%; object-fit: cover; }
.gal-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; gap: 14px; }
  .gal-item:nth-child(5) { grid-column: span 2; }
}

@media (min-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
  .gal-item:nth-child(8) { grid-column: span 2; }
}

.gal-item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(4, 32, 46, 0.78);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
}

/* Book */

.book { position: relative; overflow: hidden; }
.book-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,32,46,0.86), rgba(4,32,46,0.94));
}
.book-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 24px;
  text-align: center;
}
.book-inner h2 { font-size: clamp(34px, 5vw, 68px); line-height: 1; margin: 0 0 18px; }
.book-inner p {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 auto 32px;
  max-width: 52ch;
}
.book-inner .book-email {
  font-size: 16px;
  margin: 24px auto 0;
}
.book-inner .book-email a {
  color: var(--cyan-soft);
  border-bottom: 1px solid rgba(127, 224, 245, 0.35);
  padding-bottom: 2px;
  word-break: break-word;
}
.book-inner .book-email a:hover { color: #fff; border-bottom-color: #fff; }

/* Footer */

.site-footer { background: var(--deep); padding: 48px 24px 40px; }
.footer-grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: "Archivo Black", Helvetica, Arial, sans-serif; font-size: 18px; }
.footer-place { font-size: 14px; color: var(--cyan-soft); }
.footer-col { font-size: 15px; line-height: 1.8; color: var(--ink-mute); }
.footer-col a { color: var(--ink-mute); }
.footer-email { word-break: break-word; }
.footer-head {
  font-family: "Archivo Black", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-bottom {
  max-width: var(--shell);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #6d97a8;
}

/* Floating WhatsApp */

.float-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: var(--deep);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  min-height: 52px;
}
.float-wa.is-visible { display: flex; }
.float-wa:hover { color: var(--deep); }

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

@media (max-width: 1000px) {
  .site-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 64px; }
  .hero-b-grid { grid-template-columns: 1fr; }
  .hero-b-media { min-height: 70vh; }
}

@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .toggle--hero { display: none; }
  .hero-sub { max-width: none; }
  .booking-card--compact { position: static; margin: 16px; }
  .hero-b-media { min-height: auto; }
  .hero-b-media .hero-video { position: relative; height: 56vw; }
  .hero-b-scrim { display: none; }
  .booking-fields--grid { grid-template-columns: 1fr; }
  .gal-item figcaption { font-size: 11px; padding: 5px 8px; left: 8px; bottom: 8px; max-width: calc(100% - 16px); }
  .float-wa { right: 12px; bottom: 12px; padding: 13px 18px; font-size: 14px; }
}
