/* --- Variables --- */
:root {
  --oro:    #C9A46A;
  --oro-pl: #F5EDD8;
  --nilo:   #1E5F78;
  --nilo-d: #0F3344;
  --nilo-l: #D4EBF5;
  --papel:  #FDFAF3;
  --tinta:  #1C1208;
  --gris:   #5A4F42;
  --gris-l: #9A8C7E;
  --ok:     #2A7A50;
  --no:     #9C2E24;
  --r:      8px;
  --sh:     0 2px 12px rgba(0,0,0,.10);
}

/* --- Reset minimal --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.72;
  color: var(--tinta);
  background: var(--papel);
  /* La única declaración overflow-x necesaria */
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--nilo); }
a:hover { text-decoration: underline; }
p { margin-bottom: 1rem; }
strong { font-weight: 700; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .35rem; }

/* --- Tipografía --- */
.sans { font-family: 'Segoe UI', system-ui, Arial, sans-serif; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.2; }
h2 { font-size: 1.45rem; color: var(--tinta); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; color: var(--nilo-d); margin: 1.4rem 0 .5rem; }

/* --- Micro-etiqueta --- */
.eyebrow {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oro);
  display: block;
  margin-bottom: .4rem;
}

/* -- NAV -- */
.nav {
  background: var(--nilo-d); padding: .75rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; position: sticky; top: 0; z-index: 100;
}
.nav-logo {
  font-family: Georgia, serif; font-size: 1.05rem;
  font-weight: 700; color: #fff; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}
.nav-logo span { color: var(--oro); }
.nav-links {
  display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end;
}
.nav-links a {
  font-family: 'Segoe UI', sans-serif; font-size: .72rem;
  font-weight: 600; color: rgba(255,255,255,.75);
  text-decoration: none; padding: .3rem .55rem;
  border-radius: 4px; white-space: nowrap;
  transition: background .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

/* ==================
   BARRA SUPERIOR
   ================== */
.topbar {
  background: var(--papel);
  color: rgba(255,255,255,.7);
  font-family: 'Segoe UI', sans-serif;
  font-size: .75rem;
  padding: .5rem 2.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar a { color: var(--oro); text-decoration: none; }
.topbar span { margin: 0 .4rem; opacity: .4; }

/* ==================
   HERO
   ================== */
.hero {
  background: linear-gradient(160deg, var(--nilo-d) 0%, #194A62 60%, #0B2535 100%);
  color: #fff;
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* ola decorativa SVG — inline, no sale del hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28'%3E%3Cpath d='M0 14 Q300 0 600 14 Q900 28 1200 14 L1200 28 L0 28Z' fill='%23FDFAF3'/%3E%3C/svg%3E") no-repeat bottom center / cover;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,164,106,.2);
  border: 1px solid rgba(201,164,106,.5);
  color: var(--oro);
  font-family: 'Segoe UI', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.55rem, 5.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: .75rem;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--oro); }
.hero-desc {
  font-family: 'Segoe UI', sans-serif;
  font-size: .95rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
/* chips de características */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.chip {
  font-family: 'Segoe UI', sans-serif;
  font-size: .72rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.88);
  padding: .28rem .75rem;
  border-radius: 2rem;
  white-space: nowrap;
}
/* precio hero */
.hero-precio {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(201,164,106,.3);
  border-radius: var(--r);
  display: inline-block;
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.precio-tachado {
  font-family: 'Segoe UI', sans-serif;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  text-decoration: line-through;
}
.precio-actual {
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
}
.precio-actual small {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  font-weight: 400;
  vertical-align: .15em;
}
.precio-desc {
  display: inline-block;
  background: #C0380A;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  padding: .18rem .6rem;
  border-radius: 3px;
  margin-top: .35rem;
}
/* botón principal hero */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: .9rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .2s;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn-oro { background: var(--oro); color: var(--tinta); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(201,164,106,.55);
  color: var(--oro);
  margin-top: .55rem;
}
.hero-btns { margin-bottom: .5rem; }
.hero-rating {
  font-family: 'Segoe UI', sans-serif;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-top: .8rem;
  padding-bottom: 1.5rem; /* espacio para la ola */
}
.stars { color: #FFD040; }

/* ==================
   WRAPPER PRINCIPAL
   ================== */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* ==================
   SECCIONES
   ================== */
.seccion {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid #E8DFCC;
}
.seccion:last-of-type { border-bottom: none; }

/* ==================
   CAJA DESTACADA
   ================== */
.caja-destacada {
  background: var(--nilo-l);
  border-left: 4px solid var(--nilo);
  padding: 1rem 1.1rem;
  border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 1.25rem;
  font-size: .97rem;
}

/* ==================
   ITINERARIO — línea de tiempo vertical
   ================== */
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--nilo), var(--oro));
  border-radius: 1px;
}
.tl-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  position: relative;
}
.tl-dot {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--nilo);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', sans-serif;
  z-index: 1;
  box-shadow: 0 0 0 3px var(--papel);
}
.tl-dot .d-label { font-size: .52rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.tl-dot .d-num   { font-size: 1.15rem; font-weight: 700; line-height: 1; }
.tl-body { flex: 1; min-width: 0; padding-top: .2rem; }
.tl-body h3 { margin-top: 0; }
/* tags de templos */
.tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.tag {
  font-family: 'Segoe UI', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  background: var(--oro-pl);
  border: 1px solid #D9C49A;
  color: var(--gris);
  padding: .18rem .55rem;
  border-radius: 3px;
}

/* ==================
   AVISO
   ================== */
.aviso {
  background: #FFF8E4;
  border-left: 4px solid var(--oro);
  padding: .85rem 1rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: .85rem;
  color: var(--gris);
  margin: 1rem 0;
}
.aviso strong { color: var(--tinta); }

/* ==================
   INCLUYE / NO INCLUYE
   — apiladas en móvil, sin grid de columnas
   ================== */
.inc-card {
  background: #fff;
  border-radius: var(--r);
  padding: 1.1rem;
  box-shadow: var(--sh);
  margin-bottom: 1rem;
}
.inc-titulo {
  font-family: 'Segoe UI', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding-bottom: .55rem;
  margin-bottom: .7rem;
  border-bottom: 2px solid;
}
.inc-titulo.si { color: var(--ok); border-color: var(--ok); }
.inc-titulo.no { color: var(--no); border-color: var(--no); }
.inc-lista { list-style: none; padding: 0; }
.inc-lista li {
  font-family: 'Segoe UI', sans-serif;
  font-size: .88rem;
  padding: .35rem 0;
  border-bottom: 1px solid #F0EAE0;
  display: flex;
  gap: .55rem;
  align-items: flex-start;
}
.inc-lista li:last-child { border-bottom: none; }
.inc-lista .ico { flex-shrink: 0; }
.ico-ok { color: var(--ok); }
.ico-no { color: var(--no); }

/* ==================
   CATEGORÍAS DE BARCO
   — tarjetas apiladas, sin tabla
   ================== */
.barco-card {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
  margin-bottom: 1rem;
}
.barco-header {
  background: var(--nilo);
  color: #fff;
  padding: .7rem 1.1rem;
  font-family: 'Segoe UI', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.barco-stars { color: #FFD040; letter-spacing: .05em; }
.barco-body { padding: 1rem 1.1rem; }
.barco-fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem 0;
  border-bottom: 1px solid #F0EAE0;
  font-family: 'Segoe UI', sans-serif;
  font-size: .86rem;
}
.barco-fila:last-child { border-bottom: none; }
.barco-fila .lbl { color: var(--gris); }
.barco-fila .val { font-weight: 600; }
.val-ok { color: var(--ok); }
.val-no { color: var(--gris-l); }
.barcos-ejemplo {
  font-family: 'Segoe UI', sans-serif;
  font-size: .78rem;
  color: var(--gris-l);
  margin-top: .5rem;
  line-height: 1.5;
}

/* ==================
   COMPARATIVA RUTAS
   — lista visual apilada
   ================== */
.ruta-item {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: .9rem 1.1rem;
  margin-bottom: .75rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.ruta-item.destacada {
  border-left: 4px solid var(--oro);
  background: #FFFDF5;
}
.ruta-ico {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.ruta-info { flex: 1; min-width: 0; }
.ruta-titulo {
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  color: var(--tinta);
  margin-bottom: .2rem;
}
.ruta-det {
  font-family: 'Segoe UI', sans-serif;
  font-size: .8rem;
  color: var(--gris);
}
.ruta-det span { margin-right: .7rem; }

/* ==================
   TESTIMONIOS
   — apilados uno a uno
   ================== */
.rating-box {
  background: var(--nilo);
  color: #fff;
  border-radius: var(--r);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1rem;
}
.rating-num {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}
.rating-sub {
  font-family: 'Segoe UI', sans-serif;
  font-size: .82rem;
  opacity: .7;
  margin-top: .3rem;
}
.testicard {
  background: #fff;
  border-radius: var(--r);
  padding: 1rem 1.1rem;
  box-shadow: var(--sh);
  border-top: 3px solid var(--oro);
  margin-bottom: .9rem;
}
.testi-nota {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nilo);
  line-height: 1;
  margin-bottom: .4rem;
}
.testi-txt {
  font-size: .88rem;
  color: var(--gris);
  font-style: italic;
  margin-bottom: .55rem;
}
.testi-autor {
  font-family: 'Segoe UI', sans-serif;
  font-size: .78rem;
  color: var(--gris-l);
  font-weight: 600;
}

/* ==================
   FAQ
   ================== */
.faq-item {
  border-bottom: 1px solid #E8DFCC;
}
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  padding: 1rem 0;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: .93rem;
  color: var(--tinta);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--nilo-l);
  color: var(--nilo);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
details[open] .faq-toggle { background: var(--nilo); color: #fff; }
.faq-resp {
  font-family: 'Segoe UI', sans-serif;
  font-size: .9rem;
  color: var(--gris);
  line-height: 1.65;
  padding-bottom: 1rem;
}

/* ==================
   CARD DE RESERVA
   — bloque completo en móvil (no sidebar)
   ================== */
.reserva-card {
  background: #fff;
  border-radius: var(--r);
  box-shadow: 0 4px 24px rgba(0,0,0,.13);
  overflow: hidden;
  margin: 1.5rem 0;
}
.reserva-header {
  background: var(--nilo);
  color: #fff;
  padding: 1rem 1.25rem;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.reserva-body { padding: 1.25rem; }
.res-precio-antes {
  font-family: 'Segoe UI', sans-serif;
  font-size: .85rem;
  color: var(--gris-l);
  text-decoration: line-through;
}
.res-precio {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--tinta);
  line-height: 1.1;
  margin: .2rem 0 .1rem;
}
.res-precio-nota {
  font-family: 'Segoe UI', sans-serif;
  font-size: .8rem;
  color: var(--gris-l);
  margin-bottom: 1rem;
}
.res-lista { list-style: none; padding: 0; margin-bottom: 1.1rem; }
.res-lista li {
  font-family: 'Segoe UI', sans-serif;
  font-size: .86rem;
  padding: .4rem 0;
  border-bottom: 1px solid #F0EAE0;
  display: flex;
  gap: .5rem;
  color: var(--gris);
}
.res-lista li:last-child { border-bottom: none; }
.res-ico { color: var(--nilo); flex-shrink: 0; }
.res-cancelacion {
  font-family: 'Segoe UI', sans-serif;
  font-size: .78rem;
  color: var(--ok);
  text-align: center;
  font-weight: 600;
  margin-top: .5rem;
}
.res-operador {
  font-family: 'Segoe UI', sans-serif;
  font-size: .78rem;
  color: var(--gris-l);
  text-align: center;
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px solid #F0EAE0;
}

/* ==================
   TIPS
   ================== */
.tips-card {
  background: var(--oro-pl);
  border: 1px solid #D9C49A;
  border-radius: var(--r);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}
.tips-card h4 {
  font-family: 'Segoe UI', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gris);
  margin-bottom: .65rem;
}
.tips-card ul { list-style: none; padding: 0; }
.tips-card li {
  font-family: 'Segoe UI', sans-serif;
  font-size: .85rem;
  color: var(--gris);
  padding: .28rem 0;
  display: flex;
  gap: .45rem;
}
.tips-card li::before { content: '⚓'; flex-shrink: 0; }

/* ==================
   ACTIVIDADES OPCIONALES
   ================== */
.opt-card {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh);
  border-left: 3px solid var(--oro);
  padding: .9rem 1rem;
  margin-bottom: .75rem;
}
.opt-card h4 {
  font-family: 'Segoe UI', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--tinta);
  margin-bottom: .3rem;
}
.opt-card p {
  font-family: 'Segoe UI', sans-serif;
  font-size: .83rem;
  color: var(--gris);
  margin: 0;
}

/* ==================
   CTA FINAL
   ================== */
.cta-final {
  background: linear-gradient(135deg, var(--nilo-d) 0%, #1A4A62 100%);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1.25rem;
}
.cta-final h2 { color: #fff; font-size: clamp(1.2rem, 4vw, 1.7rem); margin-bottom: .65rem; }
.cta-final p {
  font-family: 'Segoe UI', sans-serif;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  margin-bottom: 1.25rem;
}

/* ==================
   FOOTER
   ================== */
footer {
  background: var(--tinta);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 1.25rem 1rem;
  font-family: 'Segoe UI', sans-serif;
  font-size: .78rem;
  line-height: 1.6;
}
footer a { color: var(--oro); text-decoration: none; }

/* ==================
   DESKTOP — @min-width: 768px
   Solo añade lo que cambia, no reescribe todo
   ================== */
@media (min-width: 768px) {

  body { font-size: 17px; }  

  .wrap { padding: 0 2rem; }
  
   /* nav */
  .nav { padding: .85rem 2rem; }
  .nav-links a { font-size: .8rem; padding: .35rem .75rem; }

  /* Layout 2 columnas: artículo + sidebar */
  .pagina {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    max-width: 1060px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    align-items: start;
  }
  .art   { min-width: 0; }
  .aside { min-width: 0; }

  /* En desktop el sidebar es sticky */
  .sidebar-sticky { position: sticky; top: 1.5rem; }

  /* En desktop la card de reserva del artículo se oculta
     (ya está en el sidebar) */
  .reserva-movil { display: none; }

  /* En desktop el sidebar se muestra */
  .reserva-desktop { display: block; }

  /* Hero más espacioso */
  .hero { padding: 4rem 2rem 3rem; }
  .btn { display: inline-block; width: auto; padding: .9rem 2.2rem; }
  .hero-btns { display: flex; gap: .75rem; justify-content: center; }
  .btn-outline { margin-top: 0; }

  /* Incluye: 2 columnas en desktop */
  .inc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .inc-grid .inc-card { margin-bottom: 0; }

  /* Testimonios: 2 columnas en desktop */
  .testi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
  }
  .testi-grid .testicard { margin-bottom: 0; }

  /* Actividades: 2 columnas en desktop */
  .opt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
  }
  .opt-grid .opt-card { margin-bottom: 0; }

  /* Barcos: 2 columnas en desktop */
  .barco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .barco-grid .barco-card { margin-bottom: 0; }

  h2 { font-size: 1.65rem; }
}
