/* ── Variables ─────────────────────────────── */
:root {
  --navy:    #1F3A4A;
  --ivory:   #F5F1E8;
  --sand:    #D8C7A6;
  --teal:    #6F8F8B;
  --teal-dark: #4a6b68;
  --white:   #FFFFFF;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
  --pad:     clamp(64px, 9vw, 120px);
  --max:     1100px;
  --ease:    cubic-bezier(.25,.46,.45,.94);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--ivory); color: var(--navy); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utilities ─────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 4px;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--outline { background: transparent; color: var(--ivory); border: 1.5px solid rgba(245,241,232,.5); }
.btn--outline:hover { background: rgba(245,241,232,.1); }
.btn--dark { background: var(--navy); color: var(--ivory); }
.btn--dark:hover { background: #162d3b; }
.section-label {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px; display: block;
}
.section-title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500; line-height: 1.15; color: var(--navy);
}
.section-title--light { color: var(--ivory); }
.divider { width: 48px; height: 1.5px; background: var(--sand); margin: 20px 0; }

/* ── Animate on scroll ─────────────────────── */
[data-animate] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-animate].is-visible { opacity: 1; transform: none; }
[data-animate][data-delay="1"] { transition-delay: .1s; }
[data-animate][data-delay="2"] { transition-delay: .2s; }
[data-animate][data-delay="3"] { transition-delay: .3s; }
[data-animate][data-delay="4"] { transition-delay: .4s; }

/* ── Header ────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0; transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.header--scrolled { background: var(--navy); padding: 14px 0; box-shadow: 0 2px 20px rgba(0,0,0,.2); }
.logo { display: inline-flex; align-items: center; }
.logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(0.96);
  transition: opacity .3s var(--ease);
}
.logo:hover .logo-img {
  opacity: 0.85;
}
.nav-cta { font-size: .78rem; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-selector { display: flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: .8rem; font-weight: 500; }
.lang-link { color: var(--ivory); opacity: .5; text-decoration: none; transition: opacity .3s var(--ease), color .3s var(--ease); cursor: pointer; }
.lang-link:hover, .lang-link.active { opacity: 1; color: var(--sand); }
.lang-separator { color: var(--ivory); opacity: .25; font-size: .75rem; user-select: none; }

/* ── Hero ──────────────────────────────────── */
#hero {
  position: relative; height: 100svh; min-height: 600px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('../img/hero.jpg') center/cover no-repeat;
  will-change: transform;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,38,50,.85) 0%, rgba(20,38,50,.35) 55%, rgba(20,38,50,.15) 100%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(48px, 7vw, 96px); width: 100%; }
.hero__eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--sand);
  margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before { content:''; display:inline-block; width:32px; height:1px; background:var(--sand); }
.hero__title {
  font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500; color: var(--ivory); line-height: 1.1;
  margin-bottom: 20px; max-width: 700px;
}
.hero__sub {
  font-size: 1rem; color: rgba(245,241,232,.8); max-width: 480px;
  margin-bottom: 36px; line-height: 1.7;
}
.hero__cta-group { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(245,241,232,.6); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
}
.hero__scroll svg { width: 16px; height: 16px; stroke: rgba(245,241,232,.6); }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ── Valores ───────────────────────────────── */
#valores { padding: var(--pad) 0; background: var(--ivory); }
.valores-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top: 56px; }
.valor-card {
  padding: 36px 28px; border-top: 1.5px solid var(--sand);
  transition: transform .3s var(--ease);
}
.valor-card:hover { transform: translateY(-4px); }
.valor-icon { font-size: 2rem; margin-bottom: 20px; }
.valor-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; margin-bottom: 12px; }
.valor-card p { font-size: .9rem; color: #4a5e6b; line-height: 1.7; }

/* ── Barco ─────────────────────────────────── */
#barco { padding: var(--pad) 0; background: var(--white); }
.barco-header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(216,199,166,.3);
  padding-bottom: 8px;
}
.barco-header-brand .section-label {
  margin-bottom: 0;
}
.barco-brand-seal {
  height: 36px;
  width: auto;
  opacity: 0.25;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.barco-info:hover .barco-brand-seal {
  opacity: 0.45;
}
.barco-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 56px; }
.barco-img { position: relative; }
.barco-img img { width: 100%; height: 520px; object-fit: cover; border-radius: 2px; }
.barco-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--navy); color: var(--ivory); padding: 20px 24px;
  font-family: var(--serif); font-size: .95rem; line-height: 1.5;
  border-radius: 2px; box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.barco-badge strong { display: block; font-size: 1.4rem; }
.barco-info h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; margin: 32px 0 16px; }
.includes-list { display: flex; flex-direction: column; gap: 8px; }
.includes-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: #3a4f5c;
}
.includes-list li::before { content:'✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.excludes-list { display: flex; flex-direction: column; gap: 6px; }
.excludes-list li { font-size: .85rem; color: #7a8f9a; display: flex; align-items: center; gap: 10px; }
.excludes-list li::before { content:'–'; color: var(--sand); font-weight: 700; flex-shrink: 0; }
.comfort-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill {
  font-size: .78rem; padding: 6px 14px; border-radius: 20px;
  background: var(--ivory); border: 1px solid var(--sand); color: var(--navy);
  letter-spacing: .02em;
}

/* ── Precios ───────────────────────────────── */
#precios { padding: var(--pad) 0; background: var(--ivory); }
.precios-header { text-align: center; margin-bottom: 48px; }
.season-tabs { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
#precios-tabs { scroll-margin-top: 110px; }
.season-btn {
  padding: 10px 24px; border-radius: 24px; border: 1.5px solid var(--sand);
  background: transparent; color: var(--navy); font-family: var(--sans);
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; cursor: pointer;
  transition: all .25s;
}
.season-btn.active { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.season-btn:hover:not(.active) { border-color: var(--navy); }
.precio-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.precio-card {
  background: var(--white); border: 1.5px solid #e8e0d0;
  border-radius: 4px; padding: 40px 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden;
}
.precio-card:hover { transform: translateY(-10px); box-shadow: 0 24px 56px rgba(31,58,74,.18); }
.precio-card--featured { border-color: var(--teal); }
.precio-card--featured::before {
  content: 'Más popular'; position: absolute; top: 0; right: 0;
  background: var(--teal); color: var(--white);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px;
}
.card--hidden { display: none !important; }

@media (min-width: 901px) {
  .precio-cards--has-hidden {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin: 0 auto;
  }
}

.load-turitop {
  margin-top: 24px;
  width: 100%;
}
/* Force Turitop buttons to strictly mimic our custom buttons */
.btn--primary,
.load-turitop button,
.load-turitop a,
.load-turitop .tt-button,
.load-turitop [class*="btn"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 16px 32px !important;
  border-radius: 4px !important;
  font-family: var(--sans) !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  height: 52px !important; /* Uniform height with outline buttons */
  box-sizing: border-box !important;
  line-height: 1 !important;
  border: 1.5px solid transparent !important; /* Pixel-perfect vertical alignment */
  background: var(--teal) !important;
  color: var(--white) !important;
  cursor: pointer !important;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s !important;
}
/* Hover styles for primary/reserva buttons */
.btn--primary:hover,
.load-turitop button:hover,
.load-turitop a:hover,
.load-turitop .tt-button:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}
/* Specific overrides for Hero buttons layout */
.hero__cta-group .load-turitop {
  margin: 0 !important;
  width: auto !important;
  display: inline-block !important;
}
.hero__cta-group .btn--primary,
.hero__cta-group .load-turitop button,
.hero__cta-group .load-turitop a,
.hero__cta-group .load-turitop .tt-button {
  width: auto !important;
  margin: 0 !important;
}
/* Specific overrides for Pricing card buttons layout */
.precio-card .load-turitop {
  width: 100% !important;
  margin-top: 20px !important;
  display: block !important;
}
.precio-card .btn--primary,
.precio-card .load-turitop button,
.precio-card .load-turitop a {
  width: 100% !important;
}
.sunset-badge {
  display: inline-block; background: #f0a830; color: var(--white);
  font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 10px; margin-bottom: 16px;
}
.precio-card__icon { font-size: 1.8rem; margin-bottom: 16px; }
.precio-card__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 6px; }
.precio-card__duration { font-size: .82rem; color: var(--teal); font-weight: 600; margin-bottom: 20px; letter-spacing: .04em; }
.precio-card__amount {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 600;
  color: var(--navy); line-height: 1; margin: 20px 0 6px;
}
.precio-card__note { font-size: .78rem; color: #7a8f9a; margin-bottom: 24px; line-height: 1.6; }
.precio-card__desc { font-size: .88rem; color: #4a5e6b; line-height: 1.7; border-top: 1px solid #e8e0d0; padding-top: 20px; }
.precios-footer { text-align: center; margin-top: 40px; }
.precios-footer p { font-size: .88rem; color: #5a7080; margin-bottom: 24px; }

/* ── Rutas ─────────────────────────────────── */
#rutas {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background: url('../img/menorca-costa.jpg') center/cover no-repeat;
}
#rutas::before {
  content:''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,38,50,.88) 0%, rgba(20,38,50,.55) 100%);
}
.rutas-content { position: relative; z-index: 2; max-width: 580px; }
.rutas-content .section-label { color: var(--sand); }
.rutas-content .section-title { color: var(--ivory); }
.rutas-content p { color: rgba(245,241,232,.85); font-size: 1rem; line-height: 1.8; margin: 20px 0; }
.rutas-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.rutas-pill {
  padding: 8px 18px; border: 1.5px solid rgba(245,241,232,.35);
  border-radius: 20px; color: var(--ivory); font-size: .8rem; font-weight: 500;
}

/* ── Para quién ────────────────────────────── */
#para-quien { background: var(--navy); padding: var(--pad) 0; }
.para-quien-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.para-quien-inner .section-label { color: var(--sand); }
.stanzas { margin: 48px 0; display: flex; flex-direction: column; gap: 0; }
.stanza {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 400; color: var(--ivory); line-height: 1.4;
  padding: 20px 0; border-bottom: 1px solid rgba(216,199,166,.15);
  opacity: .5; transition: opacity .4s;
}
.stanza:last-child { border-bottom: none; }
.stanza:hover { opacity: 1; }
.stanza.is-visible { opacity: 1; }
.para-quien-note {
  color: rgba(245,241,232,.55); font-size: .9rem; line-height: 1.8;
  max-width: 500px; margin: 32px auto 40px;
}

/* ── Confianza ─────────────────────────────── */
#confianza { padding: var(--pad) 0; background: var(--white); }
.confianza-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 56px; }
.trust-items { display: flex; flex-direction: column; gap: 32px; }
.trust-item { display: flex; gap: 20px; align-items: flex-start; }
.trust-item__icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ivory);
  border: 1.5px solid var(--sand); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.trust-item__text h4 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.trust-item__text p { font-size: .88rem; color: #4a5e6b; line-height: 1.7; }
.cancel-box {
  background: var(--ivory); border: 1.5px solid var(--sand);
  border-radius: 4px; padding: 36px; margin-top: 0;
}
.cancel-box h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; margin-bottom: 24px; }
.cancel-rule { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(216,199,166,.5); }
.cancel-rule:last-of-type { border-bottom: none; }
.cancel-rule span:first-child { font-size: .88rem; color: #4a5e6b; }
.cancel-rule span:last-child { font-weight: 700; color: var(--teal); font-size: .9rem; }
.weather-note {
  margin-top: 24px; padding: 16px; background: rgba(111,143,139,.1);
  border-left: 3px solid var(--teal); border-radius: 0 4px 4px 0;
  font-size: .85rem; color: #3a5058; line-height: 1.7;
}

/* ── CTA Final ─────────────────────────────── */
#contacto {
  position: relative; min-height: 480px; display: flex; align-items: center;
  background: url('../img/sunset.jpg') center/cover no-repeat;
}
#contacto::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,28,38,.92) 0%, rgba(15,28,38,.7) 100%);
}
.contacto-content { position: relative; z-index: 2; text-align: center; max-width: 640px; margin: 0 auto; }
.contacto-content .section-title { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 20px; }
.contacto-content p { color: rgba(245,241,232,.8); font-size: 1rem; line-height: 1.8; margin-bottom: 40px; }
.cta-group { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.friction-note { font-size: .78rem; color: rgba(245,241,232,.5); letter-spacing: .06em; }

/* ── Footer ────────────────────────────────── */
.site-footer { background: #111f28; color: rgba(245,241,232,.5); padding: 48px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(0.96);
  opacity: 0.6;
  transition: opacity .3s var(--ease);
}
.footer-logo-img:hover {
  opacity: 0.95;
}
.footer-info { font-size: .82rem; line-height: 1.8; }
.footer-links { display: flex; gap: 24px; font-size: .78rem; }
.footer-links a:hover { color: var(--sand); }
.footer-copy { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: .75rem; }

/* ── WhatsApp Float ────────────────────────── */
#whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.4);
  transform: scale(0) translateY(10px); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s, box-shadow .2s;
}
#whatsapp-float.whatsapp-float--visible { transform: scale(1) translateY(0); opacity: 1; }
#whatsapp-float:hover { box-shadow: 0 8px 32px rgba(37,211,102,.5); transform: scale(1.08) translateY(0); }
#whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* Tooltip for WhatsApp Float */
#whatsapp-float::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--navy);
  color: var(--ivory);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  box-shadow: 0 4px 16px rgba(31,58,74,.15);
}
#whatsapp-float::after {
  content: '';
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--navy);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
#whatsapp-float:hover::before,
#whatsapp-float:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 600px) {
  #whatsapp-float::before,
  #whatsapp-float::after {
    display: none !important;
  }
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .barco-layout, .confianza-grid { grid-template-columns: 1fr; gap: 40px; }
  .barco-img img { height: 340px; }
  .barco-badge { right: 0; bottom: -16px; }
  .valores-grid { grid-template-columns: 1fr; gap: 0; }
  .valor-card { border-top: none; border-bottom: 1px solid var(--sand); padding: 28px 0; }
  .precio-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hero__cta-group { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .nav-cta { display: none; }
  #whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .rutas-pills { display: none; }
}

/* ── Legal Pages ───────────────────────────── */
.legal-page { padding-top: 140px; padding-bottom: 80px; background: var(--ivory); }
.legal-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.legal-container h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; color: var(--navy); margin-bottom: 32px; }
.legal-container h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--navy); margin-top: 40px; margin-bottom: 16px; border-bottom: 1px solid rgba(31,58,74,0.1); padding-bottom: 8px; }
.legal-container h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-top: 24px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.legal-container p { font-size: .95rem; color: #3a5058; line-height: 1.8; margin-bottom: 20px; }
.legal-container ul { list-style: disc; padding-left: 20px; margin-bottom: 24px; color: #3a5058; font-size: .95rem; }
.legal-container li { margin-bottom: 8px; line-height: 1.7; }
.legal-container a { color: var(--teal); text-decoration: underline; }
.legal-container a:hover { color: var(--teal-dark); }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin-bottom: 24px; }
.legal-back:hover { color: var(--teal-dark); }

