:root {
  --blue: #025A83;
  --blue-2: #3B7F9F;
  --orange: #FF8907;
  --ink: #102331;
  --muted: #627582;
  --bg: #f7fafc;
  --white: #fff;
  --line: #dfe8ed;
  --radius: 22px;
  --shadow: 0 16px 50px rgba(5, 48, 72, .12);
  --display: "League Spartan", Arial, sans-serif;
  --body: "Poppins", Arial, sans-serif;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

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

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

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

button,
input {
  font: inherit
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto
}

.narrow {
  max-width: 820px
}

.section {
  padding: 78px 0
}

.section-blue {
  background: var(--blue);
  color: #fff
}

#excursiones {
  padding: 60px 0 80px;
}

.process {
  background: #063d58;
  color: #fff
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px
}

.skip-link:focus {
  left: 10px;
  z-index: 100;
  background: #fff;
  padding: 10px;
  border-radius: 8px
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line)
}

.nav {
  min-height: 80px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

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

.brand-img {
  width: auto;
  height: 96px;
  max-height: 96px;
  object-fit: contain;
  display: block
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800
}

.brand strong,
.brand small {
  display: block;
  font-family: var(--display);
  line-height: 1
}

.brand strong {
  font-size: 1.15rem
}

.brand small {
  font-size: .65rem;
  letter-spacing: .16em;
  color: var(--orange);
  margin-top: 3px
}

.nav-links {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  gap: 12px
}

.nav-links.open {
  display: flex
}

.nav-links a:not(.btn) {
  font-weight: 600;
  padding: 4px 6px
}

.menu-toggle {
  background: none;
  border: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-content: center;
  gap: 4px
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: .2s ease;
  cursor: pointer
}

.btn:hover {
  transform: translateY(-1px)
}

.btn-primary {
  background: var(--blue);
  color: #fff
}

.btn-accent {
  background: var(--orange);
  color: #fff
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .55);
  color: #fff
}

.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: #fff
}

.btn-small {
  min-height: 40px;
  padding: 8px 14px
}

.hero {
  min-height: 690px;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-position: center;
  overflow: hidden
}

.hero-compact {
  min-height: auto;
  padding: 48px 0 32px;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 25%, rgba(255, 137, 7, .35), transparent 25%), radial-gradient(circle at 70% 90%, rgba(255, 255, 255, .1), transparent 28%), linear-gradient(135deg, rgba(2, 40, 58, .82) 0%, rgba(2, 40, 58, .45) 100%), url('../img/Ballena.png');
  background-size: cover;
  background-position: center;
  z-index: 1
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 40, 58, .82) 0%, rgba(2, 40, 58, .45) 100%);
  z-index: 1
}

.hero-content {
  color: #fff;
  padding: 80px 0;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6)
}

.hero-compact .hero-content {
  padding: 0;
}

.hero-compact .hero-actions {
  margin: 16px 0 0;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--orange);
  margin-bottom: 12px
}

.eyebrow.light {
  color: #ffc275
}

.aligncenter {
  text-align: center;
}

.eyebrow.dark {
  color: var(--blue-2)
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.05;
  margin: 0 0 16px
}

h1 {
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  letter-spacing: -.045em
}

h1 span,
h2 span {
  color: var(--orange)
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -.025em
}

h3 {
  font-size: 1.45rem
}

.hero p {
  max-width: 680px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .9)
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .78)
}

.intro {
  overflow: hidden;
  padding-bottom: 60px;
}

.intro-grid {
  display: grid;
  gap: 20px;
  align-items: center
}

.intro-grid p {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0
}

.intro-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 36px;
  padding: 14px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.intro-carousel.is-dragging {
  cursor: grabbing;
}

.intro-carousel.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

.intro-carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
  user-select: none;
}

.intro-carousel-item {
  position: relative;
  flex: 0 0 270px;
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(5, 48, 72, .14);
  transition: transform .35s ease, box-shadow .35s ease;
  user-select: none;
  -webkit-user-select: none;
}

.intro-carousel.is-dragging .intro-carousel-item {
  transition: none !important;
  transform: scale(0.98);
}

@media (min-width: 768px) {
  .intro-carousel-item {
    flex: 0 0 310px;
    height: 210px;
  }
}

.intro-carousel:not(.is-dragging) .intro-carousel-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px rgba(5, 48, 72, .2);
}

.intro-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.intro-carousel:not(.is-dragging) .intro-carousel-item:hover img {
  transform: scale(1.06);
}

.intro-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 40, 58, .88) 0%, rgba(2, 40, 58, .28) 50%, rgba(0, 0, 0, .08) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
  color: #fff;
  transition: background .35s ease;
}

.intro-carousel-item:hover .intro-item-overlay {
  background: linear-gradient(to top, rgba(2, 90, 131, .92) 0%, rgba(255, 137, 7, .3) 60%, rgba(0, 0, 0, .05) 100%);
}

.intro-item-overlay span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 34px
}

.section-heading p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  max-width: 560px
}

.section:not(.section-blue) .section-heading p {
  color: var(--muted)
}

.section-heading.center {
  text-align: center;
  align-items: center
}

.tour-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px
}

.section-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 36px
}

.tour-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .65s ease-out, box-shadow .65s ease-out;
  will-change: transform;
  cursor: pointer
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(5, 48, 72, .14)
}

.tour-media {
  min-height: 180px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: background-size .9s ease-out
}

.tour-card:hover .tour-media {
  background-size: 104%
}

.tour-media .date-pill {
  background: #fff;
  color: var(--blue);
  border-radius: 12px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: .78rem
}

.tour-body {
  padding: 22px
}

.tour-body p {
  color: var(--muted);
  font-size: .92rem
}

.tour-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 18px 0
}

.price {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue)
}

.tour-link {
  font-weight: 800;
  color: var(--orange);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer
}

.offers {
  background: #fff
}

.offers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px
}

.offer-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff
}

.offer-main {
  background: linear-gradient(135deg, #025A83, #3B7F9F);
  color: #fff;
  border: 0
}

.offer-main p {
  color: rgba(255, 255, 255, .85)
}

.offer-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em
}

.offer-icon {
  font-size: 2rem
}

.offer-card a {
  font-weight: 800;
  color: var(--orange)
}

.offer-main a {
  color: #fff
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius);
  position: relative
}

.service-number {
  position: absolute;
  right: 22px;
  top: 22px;
  color: #c5d3db;
  font-family: var(--display);
  font-weight: 800
}

.service-icon {
  font-size: 2.1rem;
  margin-bottom: 18px
}

.service-card p {
  color: var(--muted)
}

.service-link {
  font-weight: 800;
  color: var(--blue)
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px
}

.step {
  text-align: center
}

.step span {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-family: var(--display);
  font-weight: 800;
  color: #ffc275
}

.step p {
  color: rgba(255, 255, 255, .72);
  font-size: .9rem
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--display);
  font-size: 1.25rem
}

.faq details p {
  color: var(--muted)
}

.footer {
  background: #062d40;
  color: #fff;
  padding: 50px 0 20px
}

.footer-grid {
  display: grid;
  gap: 30px
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, .72)
}

.footer h3 {
  font-size: 1.1rem
}

.footer-grid>div {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.footer-brand {
  align-self: flex-start
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: rgba(255, 255, 255, .55)
}

.tour-modal {
  border: 0;
  border-radius: 24px;
  width: min(760px, calc(100% - 24px));
  max-height: 90vh;
  padding: 0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .3);
  color: var(--ink)
}

.tour-modal::backdrop {
  background: rgba(2, 27, 39, .75)
}

.modal-head {
  padding: 28px 28px 12px;
  border-bottom: 1px solid var(--line);
  position: relative
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  background: #edf3f6;
  border-radius: 50%;
  font-size: 1.7rem;
  cursor: pointer
}

.modal-head p {
  color: var(--muted);
  margin: 0
}

.modal-body {
  padding: 22px 28px 28px
}

.modal-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 10px
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0
}

.detail-columns ul {
  padding-left: 20px
}

.policy-box {
  background: #fff7ed;
  border: 1px solid #ffd8ad;
  border-radius: 16px;
  padding: 18px;
}

.policy-box h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 12px;
}

.modal-policy-text p {
  margin: 0 0 10px 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}

.modal-policy-text p:last-child {
  margin-bottom: 0;
}

.modal-policy-text strong {
  color: var(--blue);
  font-weight: 700;
}

.policy-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  margin-top: 14px
}

.policy-check input {
  margin-top: 5px;
  accent-color: var(--orange)
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px
}

.disabled-link {
  opacity: .45;
  pointer-events: none
}

.modal-note {
  display: block;
  color: var(--muted);
  margin-top: 14px
}

/* ==========================================================================
   FORMULARIO DE RESERVAS (BOOKING MODAL)
   ========================================================================== */
.booking-modal {
  width: min(680px, calc(100% - 24px));
}

.booking-modal .modal-head h2 {
  font-size: 1.8rem;
  margin: 4px 0 6px;
}

.booking-step {
  transition: opacity .3s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 580px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.form-group label .req {
  color: #e53e3e;
  font-weight: 700;
}

.form-group label .opt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 90, 131, .15);
}

.form-group input[readonly] {
  background: #f1f5f9;
  color: var(--muted);
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #e53e3e;
  background-color: #fff5f5;
}

.form-error {
  font-size: 0.8rem;
  color: #e53e3e;
  font-weight: 500;
  min-height: 16px;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Opciones de método de envío */
.method-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

@media (min-width: 480px) {
  .method-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

.method-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.method-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  transition: all .25s ease;
  gap: 4px;
}

.method-card-content .method-icon {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

.method-card-content strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.method-card-content small {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.2;
}

.method-card input[type="radio"]:checked + .method-card-content {
  border-color: var(--orange);
  background: #fff9f2;
  box-shadow: 0 4px 14px rgba(255, 137, 7, .16);
}

.method-card input[type="radio"]:focus + .method-card-content {
  outline: 2px solid var(--blue);
}

.form-actions {
  margin-top: 22px;
}

.full-btn {
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
  font-size: 1.05rem;
}

/* Paso 2: Resumen */
.summary-header {
  margin-bottom: 18px;
}

.summary-header h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--blue);
  margin: 0 0 4px;
}

.summary-header p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.booking-summary-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 8px;
  gap: 3px;
}

@media (min-width: 480px) {
  .summary-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
  }
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.summary-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: left;
}

@media (min-width: 480px) {
  .summary-value {
    text-align: right;
  }
}

.summary-value.highlight {
  color: var(--blue);
  font-weight: 700;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.summary-actions .btn {
  flex: 1 1 calc(50% - 12px);
  justify-content: center;
  padding: 14px 18px;
}

@media (max-width: 480px) {
  .summary-actions .btn {
    flex: 1 1 100%;
  }
}

/* Paso 3: Éxito / Solicitud Recibida */
.success-box {
  text-align: center;
  padding: 10px 8px;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
  animation: bounceIn .6s cubic-bezier(.175,.885,.32,1.275);
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.success-box h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--blue);
  margin: 0 0 10px;
}

.status-badge {
  display: inline-block;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.success-message {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 20px;
  max-width: 500px;
}

.success-details {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px 16px;
  color: #166534;
  font-size: 0.9rem;
  margin-bottom: 24px;
  text-align: left;
  line-height: 1.5;
}

.tour-card .tour-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (min-width:700px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr
  }

  .tour-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .offers-grid {
    grid-template-columns: 1.3fr 1fr 1fr
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .steps {
    grid-template-columns: repeat(4, 1fr)
  }

  .detail-columns {
    grid-template-columns: 1fr 1fr
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr
  }

  .hero:not(.hero-compact) {
    min-height: 720px
  }

  .hero.hero-compact {
    min-height: auto;
    padding: 56px 0 36px;
  }
}

@media (min-width:900px) {
  .menu-toggle {
    display: none
  }

  .nav-links {
    display: flex;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 14px
  }

  .tour-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .section-heading {
    flex-direction: row;
    justify-content: space-between;
    align-items: end
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .btn {
    transition: none
  }

  .tour-card,
  .tour-card::after,
  .tour-media {
    transition: none
  }

  .intro-carousel-track {
    animation: none;
    overflow-x: auto
  }
}