/* ===== Design tokens (paleta basada en el logo) ===== */
:root {
  --navy: #0a3d91;          /* azul profundo del logo */
  --blue: #1877d1;          /* azul medio */
  --sky: #3fb6f2;           /* azul cielo claro */
  --sky-soft: #e6f4fd;      /* fondo suave */
  --ink: #0c2440;           /* texto principal */
  --muted: #5b7290;         /* texto secundario */
  --white: #ffffff;
  --sand: #f7fbff;          /* fondo alterno */
  --shadow: 0 10px 30px rgba(10, 61, 145, 0.15);
  --radius: 16px;
  --max: 1160px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--white); }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

section {margin-top: 48px;}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow); width: 200px;}
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: var(--white); border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); }

.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
  margin-bottom: 24px;
  margin-top: 24px;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .08);
}
.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: var(--sand);
  overflow: hidden;
}
.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}
.card-image--empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--sky-soft), var(--sky));
  color: var(--white);
  font-size: 3rem;
  font-weight: 700;
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.card-body h3 {
  margin: 0;
  font-size: 1.2rem;
}
.card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.card-image {
  position: relative;
  cursor: pointer;
}
.gallery-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.gallery-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gallery-popup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 20, 44, 0.8);
  backdrop-filter: blur(4px);
}
.gallery-popup__content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-popup__close {
  align-self: flex-end;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.4rem;
  cursor: pointer;
}
.gallery-popup__viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.gallery-popup__image {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
}
.gallery-popup__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 1.4rem;
  cursor: pointer;
}
.gallery-popup__nav.prev-btn { left: 12px; }
.gallery-popup__nav.next-btn { right: 12px; }
.gallery-popup__count {
  text-align: center;
  color: #fff;
  font-weight: 600;
}
.price {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
}
.card-action {
  align-self: flex-start;
}
@media (max-width: 760px) {
  .card-image {
    min-height: 160px;
  }
}
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10,61,145,.08);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(10,61,145,.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 44px; width: auto; }
.brand-name {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.3rem;
  color: var(--navy); letter-spacing: -.5px;
}
.brand-accent { color: var(--sky); }

.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-list a {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem;
  color: var(--ink); padding: 10px 16px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-list a:hover { color: var(--blue); background: var(--sky-soft); }
.nav-list a.active {
  color: var(--sky);
  background: rgba(63, 182, 242, 0.16);
}
.nav-cta { background: var(--navy); color: var(--white) !important; }
.nav-cta:hover { background: var(--blue) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  background: url('../img/antigua-harbour.webp') center/cover no-repeat;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,61,145,.82) 0%, rgba(24,119,209,.55) 55%, rgba(63,182,242,.35) 100%);
}
.hero-content { position: relative; color: var(--white); max-width: 720px; padding-top: 40px; padding-bottom: 40px; }
.hero-eyebrow {
  font-family: 'Poppins', sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; font-size: .8rem; color: var(--sky-soft); margin-bottom: 14px;
}
.hero-title { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 18px; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.92); margin-bottom: 30px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 999px; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--white); border-radius: 4px; animation: scroll 1.6s infinite; }
@keyframes scroll { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--sand); }
.tag {
  display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: .75rem;
  color: var(--blue); background: var(--sky-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.section-text { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-list { margin-bottom: 26px; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--sky); box-shadow: inset 0 0 0 4px var(--sky-soft);
}

/* ===== Experiences (videos) ===== */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .section-text { margin-bottom: 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.video-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: grid; grid-template-rows: auto auto;
  min-height: 0;
  align-items: start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,61,145,.22); }
.video-preview {
  position: relative;
  display: grid;
  background: var(--ink);
  min-height: 340px;
  overflow: hidden;
}
.video-caption {
  display: block;
}
.video-caption-detail {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
  opacity: 1;
}
.section-footer {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.video-preview-image,
.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card video {
  display: block;
  width: 100%;
}
.video-card figcaption {
  display: block;
}
.video-preview.video-active .video-player {
  display: block;
}
.video-preview.video-active .video-preview-image,
.video-preview.video-active .video-preview-empty,
.video-preview.video-active .video-play-button {
  display: none;
}
.video-preview-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sky-soft), var(--sky));
  color: var(--white);
  font-size: 3rem;
  font-weight: 700;
}
.video-play-button {
  position: absolute;
  inset: auto 0 0 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: rgba(24, 119, 209, 0.88);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
}
.video-caption {
  padding: 22px;
  display: grid;
  gap: 10px;
  min-height: 140px;
}
.video-caption-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.video-caption h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--navy); margin: 0; }
.video-meta { font-size: .95rem; color: var(--blue); font-weight: 700; }
.video-caption-text { color: var(--muted); font-size: .95rem; line-height: 1.65; margin: 0; }
@media (max-width: 980px) {
  .video-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ===== Cards grid used by Flights / Tours / Hotels / Cruises ===== */
.card-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-top: 12px;
}

@media (min-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===== Contact ===== */
.contact { background: linear-gradient(160deg, var(--sky-soft), var(--white)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { display: grid; gap: 12px; margin-top: 8px; }
.contact-list li { color: var(--muted); }
.contact-list strong { color: var(--navy); font-weight: 600; }

.contact-form { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #d6e4f2;
  border-radius: 10px; background: var(--sand); color: var(--ink); transition: border .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,119,209,.15); background: var(--white);
}
.field .error { color: #d9534f; font-size: .82rem; min-height: 1em; }
.field.invalid input, .field.invalid textarea { border-color: #d9534f; }
.form-success { color: #1a8a5a; font-weight: 600; text-align: center; }

/* ===== Auth ===== */
.auth-section { padding: 90px 0; background: var(--sand); }
.auth-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin-bottom: 20px; }
.auth-form { display: grid; gap: 18px; }
.auth-form .field { display: grid; gap: 8px; }
.auth-form .field input { width: 100%; border: 1.5px solid #d6e4f2; border-radius: 14px; padding: 14px 16px; background: var(--sand); color: var(--ink); }
.auth-form .field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,119,209,.15); background: var(--white); }
.auth-footer { margin-top: 18px; color: var(--muted); }
.auth-footer a { color: var(--blue); font-weight: 700; }
.profile-section { padding: 90px 0; background: var(--sand); }
.profile-card { max-width: 820px; margin: 0 auto; background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.profile-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.profile-photo { display: grid; gap: 18px; justify-items: center; }
.profile-photo img,
.profile-avatar { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: linear-gradient(145deg, var(--sky), var(--navy)); color: var(--white); font-size: 4rem; font-weight: 700; text-transform: uppercase; }
.profile-avatar { background: linear-gradient(145deg, var(--sky), var(--navy)); }
.profile-details .field input[readonly] { background: var(--sand); }
.profile-form .field { margin-bottom: 18px; }
.profile-form .file-field { display: grid; gap: 8px; width: 100%; }
.profile-form .file-field span { font-weight: 700; color: var(--ink); }
.profile-form .file-field input { border: none; background: transparent; color: var(--ink); }
.profile-actions { display: flex; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.profile-password-form { margin-top: 32px; }
.profile-password-form .field { margin-bottom: 18px; }
.profile-password-form .section-subtitle { margin-bottom: 18px; font-size: 1.1rem; color: var(--navy); }
.form-error { color: #d9534f; font-weight: 600; margin-bottom: 18px; }
.form-success { color: #1a8a5a; font-weight: 600; margin-bottom: 18px; }
.profile-card .field.error { color: #d9534f; font-size: .92rem; }
.nav-user { display: inline-flex; align-items: center; padding: 10px 16px; color: var(--navy); font-weight: 600; border-radius: 999px; background: rgba(24,119,209,.08); }
@media (max-width: 860px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-actions { justify-content: center; }
}
/* ===== Footer ===== */
.site-footer { background: var(--navy); color: var(--white); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-accent { color: var(--sky); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer-nav a { color: rgba(255,255,255,.85); font-weight: 500; transition: color .2s; }
.footer-nav a:hover { color: var(--sky); }
.footer-copy { color: rgba(255,255,255,.6); font-size: .88rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; background: var(--white);
    max-height: 0; overflow: hidden; transition: max-height .35s ease; box-shadow: var(--shadow);
  }
  .nav.open { max-height: 400px; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 12px 20px 24px; gap: 16px; }
  .nav-list a { padding: 14px 16px; }

  .split, .split.reverse, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: -1; }
  .split-media img { height: 300px; }
  .section { padding: 64px 0; }
  .hero { min-height: 80vh; }
  .video-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

.social-media-container {
  display: flex;
  align-items: center;
  gap: 12px; /* Espacio entre iconos */
  margin-top: 8px;
}

/* Enlace del icono */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px); /* Efecto hover opcional */
}

/* Tamaño de las imágenes/iconos */
.social-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}