/* ══════════════════════════════════
   HERO DETALLE — imagen fija + overlay
══════════════════════════════════ */
.detail-hero {
  height: 50vh;
  min-height: 420px;
  background-size: cover;
  background-position: center 40%;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,58,74,0.90) 0%,
    rgba(26,58,74,0.35) 55%,
    rgba(0,0,0,0.1) 100%
  );
}
.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 2.5rem;
  width: 100%;
}
.breadcrumb-custom {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb-custom a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.breadcrumb-custom a:hover { color: #fff; }
.breadcrumb-custom .sep { color: rgba(255,255,255,0.3); }
.breadcrumb-custom .current { color: rgba(255,255,255,0.85); }

.detail-badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.detail-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.detail-title em { font-style: italic; color: var(--terracotta); }

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
}
.detail-meta-row i { color: var(--terracotta); margin-right: 0.3rem; }

/* ══════════════════════════════════
   GALERÍA MINIATURA
══════════════════════════════════ */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.gallery-strip .g-thumb {
  height: 90px;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.gallery-strip .g-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s, filter 0.3s;
  filter: brightness(0.82);
}
.gallery-strip .g-thumb:hover img { transform: scale(1.08); filter: brightness(1); }
.gallery-strip .g-thumb.more-overlay::after {
  content: attr(data-count);
  position: absolute;
  inset: 0;
  background: rgba(26,58,74,0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

/* ══════════════════════════════════
   STICKY NAV DE SECCIONES
══════════════════════════════════ */
.section-nav {
  position: sticky;
  top: var(--navbar-h);
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e4de;
  box-shadow: 0 2px 12px rgba(26,58,74,0.06);
}
.section-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav ul::-webkit-scrollbar { display: none; }
.section-nav ul li a {
  display: block;
  padding: 0.95rem 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.section-nav ul li a:hover,
.section-nav ul li a.active {
  color: var(--ocean);
  border-bottom-color: var(--terracotta);
}

/* ══════════════════════════════════
   LAYOUT PRINCIPAL (contenido + sidebar)
══════════════════════════════════ */
.detail-layout { padding: 3rem 0 5rem; }

/* ── CONTENIDO IZQUIERDO ── */
.content-block {
  background: #fff;
  border-radius: 4px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(26,58,74,0.05);
}

.block-title {
  font-size: 1.7rem;
  color: var(--ocean);
  margin-bottom: 1.2rem;
}
.block-title em { font-style: italic; color: var(--terracotta); }

.desc-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
}
.desc-text p { margin-bottom: 0.9rem; }

/* Highlights / íconos de resumen */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: 3px;
  border-left: 3px solid var(--terracotta);
}
.highlight-item i {
  font-size: 1.3rem;
  color: var(--terracotta);
}
.highlight-item strong {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.highlight-item span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ocean);
}

/* ── INCLUYE / NO INCLUYE ── */
.include-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.include-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #444;
}
.include-list li i.ok  { color: var(--olive);   font-size: 1rem; margin-top: 1px; }
.include-list li i.no  { color: #c0392b;         font-size: 1rem; margin-top: 1px; }

/* ── GALERÍA (lightbox) ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-grid .gitem {
  height: 140px;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
}
.gallery-grid .gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-grid .gitem:hover img { transform: scale(1.07); }
.lb-trigger { cursor: zoom-in; }

/* ── Lightbox ── */
#lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0,0,0,.88);
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1rem;
}
#lb.open { display: flex; }
.lb-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 128px);
  max-height: calc(100vh - 56px);
}
#lb-img {
  max-width: 100%;
  max-height: calc(100vh - 56px);
  object-fit: contain;
  border-radius: 4px;
  transition: opacity .15s;
}
#lb-img.lb-fade { opacity: 0; }
.lb-btn {
  background: rgba(255,255,255,.13);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.27); }
.lb-btn:disabled { opacity: .25; cursor: default; }
#lb-close { position: absolute; top: .9rem; right: .9rem; }
#lb-counter {
  position: absolute;
  bottom: .9rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  letter-spacing: .06em;
  pointer-events: none;
}

/* ── RESEÑAS ── */
.review-card {
  padding: 1.4rem 0;
  border-bottom: 1px solid #f0eee9;
}
.review-card:last-child { border-bottom: none; }
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ocean);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 500; font-size: 0.95rem; color: var(--ocean); }
.reviewer-date { font-size: 0.78rem; color: var(--muted); }
.review-text   { font-size: 0.9rem; line-height: 1.7; color: #555; }

/* ══════════════════════════════════
   SIDEBAR — STICKY COTIZADOR
══════════════════════════════════ */
.sidebar-sticky {
  position: sticky;
  top: calc(var(--navbar-h) + 56px);
}
.cotizador-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 28px rgba(26,58,74,0.12);
  overflow: hidden;
}
.cotizador-header {
  background: var(--ocean);
  padding: 1.5rem 1.6rem 1.2rem;
}
.cot-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.cotizador-body { padding: 1.5rem 1.6rem; }

.form-label-detail {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  display: block;
}
.form-ctrl-detail {
  width: 100%;
  border: 1px solid #ddd8d0;
  border-radius: 2px;
  padding: 0.6rem 0.85rem;
  font-size: 0.92rem;
  background: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
  appearance: none;
}
.form-ctrl-detail:focus { outline: none; border-color: var(--terracotta); background: #fff; }

.pax-counter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pax-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.pax-btn:hover { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.pax-count { font-size: 1.1rem; font-weight: 500; color: var(--ocean); min-width: 28px; text-align: center; }

.price-breakdown {
  border-top: 1px dashed #e0dbd3;
  border-bottom: 1px dashed #e0dbd3;
  padding: 1rem 0;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.87rem;
  color: #555;
}
.price-row.total {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ocean);
  margin-top: 0.3rem;
}
.price-row.total span:last-child { color: var(--terracotta); }

.btn-cotizar {
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 0.8rem;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-cotizar:hover { background: var(--terra-dark); transform: translateY(-1px); }

.btn-cotizar-outline {
  background: transparent;
  color: var(--ocean);
  border: 2px solid var(--ocean);
  border-radius: 2px;
  padding: 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  margin-top: 0.7rem;
  transition: all 0.2s;
}
.btn-cotizar-outline:hover { background: var(--ocean); color: #fff; }

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #f0eee9;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
}
.trust-item i { font-size: 1.2rem; color: var(--olive); }

.asesor-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(26,58,74,0.06);
  padding: 1.4rem 1.6rem;
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.asesor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--sand);
}
.asesor-name { font-weight: 600; font-size: 0.95rem; color: var(--ocean); }
.asesor-role { font-size: 0.78rem; color: var(--muted); }
.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  margin-top: 0.6rem;
  width: 100%;
  justify-content: center;
  transition: background 0.2s;
}
.btn-whatsapp:hover { background: #1db954; }

/* ══════════════════════════════════
   ANIMACIONES
══════════════════════════════════ */
.fade-in { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.25s; }
.fade-in-3 { animation-delay: 0.4s; }


/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 991px) {
  .sidebar-sticky { position: static; }
  .gallery-strip  { grid-template-columns: repeat(4, 1fr); }
  .gallery-strip .g-thumb:nth-child(5) { display: none; }
}
@media (max-width: 767px) {
  .detail-hero { height: 55vh; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery-strip .g-thumb:nth-child(4),
  .gallery-strip .g-thumb:nth-child(5) { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .content-block { padding: 1.4rem 1.2rem; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .section-nav ul li a { padding: 0.85rem 0.9rem; }
}
