*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #111714; color: #fff; min-height: 100vh; overflow-x: hidden; }

/* ── BG VIDEO ── */
.bg-wrap { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-video { width: 100%; height: 100%; object-fit: cover; filter: blur(5px) brightness(0.45); transform: scale(1.06); }
.bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(4,12,16,.65) 0%, rgba(4,12,16,.50) 45%, rgba(4,12,16,.82) 100%);
}

/* ── NAV ── */
.viajes-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 44px;
  background: rgba(4, 12, 16, 0.40);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-logo {
  display: flex; flex-direction: column; line-height: 1;
  text-decoration: none;
}
.logo-text {
  font-family: 'Archivo Black', sans-serif; font-size: 1.05rem;
  letter-spacing: .08em; color: #fff;
}
.logo-sub {
  font-size: .58rem; letter-spacing: .22em; color: #C9922A;
  font-weight: 600; text-transform: uppercase; margin-top: 3px;
}
.nav-back {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.6); text-decoration: none; font-size: .88rem; font-weight: 500; letter-spacing: .03em;
  transition: color .2s;
}
.nav-back:hover { color: #fff; }

/* ── HERO ── */
.viajes-hero {
  position: relative; z-index: 1;
  min-height: 52vh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding: 120px 24px 64px;
}
.hero-tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #C9922A; background: rgba(201,146,42,.12); border: 1px solid rgba(201,146,42,.3);
  border-radius: 50px; padding: 6px 18px; margin-bottom: 20px;
}
.hero-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3rem, 7.5vw, 6.2rem);
  line-height: 1.05; letter-spacing: -.02em; color: #fff; margin-bottom: 20px;
}
.hero-title em { font-family: 'Playfair Display', serif; font-style: italic; color: #e0a83a; }
.hero-subtitle { font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,.55); max-width: 440px; line-height: 1.7; }

/* ── TRIPS SECTION ── */
.trips-section { position: relative; z-index: 1; padding: 32px 0 100px; }
.trips-container { max-width: 1240px; margin: 0 auto; padding: 0 36px; }

.trips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* ── CARD ── */
.trip-card {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3/4; cursor: pointer;
  background: #1c2420;
  transition: transform .38s cubic-bezier(.25,.46,.45,.94), box-shadow .38s;
}
.trip-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 28px 70px rgba(0,0,0,.55); }
.trip-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.trip-card:hover .trip-card-img { transform: scale(1.06); }
.trip-card-no-img {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1B4D4A 0%, #0f3330 100%);
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.trip-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,12,16,.95) 0%, rgba(4,12,16,.48) 48%, rgba(4,12,16,.06) 100%);
}
.trip-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 22px 24px; }
.trip-card-date { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #C9922A; margin-bottom: 7px; }
.trip-card-title { font-family: 'Archivo Black', sans-serif; font-size: 1.3rem; line-height: 1.2; color: #fff; margin-bottom: 6px; }
.trip-card-location { font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.trip-card-footer { display: flex; align-items: center; justify-content: space-between; }
.trip-card-people { font-size: .76rem; font-weight: 500; color: rgba(255,255,255,.45); }
.trip-card-btn {
  font-size: .73rem; font-weight: 600; letter-spacing: .06em; color: #C9922A;
  border: 1px solid rgba(201,146,42,.5); border-radius: 50px; padding: 5px 15px;
  background: rgba(201,146,42,.1); cursor: pointer; transition: all .2s;
}
.trip-card:hover .trip-card-btn { background: #C9922A; color: #fff; border-color: #C9922A; }

/* ── EMPTY ── */
.empty-state { text-align: center; padding: 80px 20px; color: rgba(255,255,255,.35); }
.empty-state .empty-icon { font-size: 3.5rem; display: block; margin-bottom: 18px; }
.empty-state p { font-size: 1rem; font-weight: 300; }

/* ── MODAL ── */
.modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(4, 10, 14, 0.93);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal-inner {
  position: relative; width: 100%; max-width: 940px;
  background: #1c2420; border-radius: 22px; border: 1px solid rgba(255,255,255,.07);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  background: rgba(255,255,255,.1); border: none; border-radius: 50%;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: background .2s; backdrop-filter: blur(8px);
}
.modal-close:hover { background: rgba(255,255,255,.22); }

/* Gallery */
.modal-gallery { position: relative; background: #111714; min-height: 400px; overflow: hidden; }
.gallery-main { width: 100%; height: 100%; min-height: 400px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-placeholder { width: 100%; height: 100%; min-height: 400px; background: linear-gradient(135deg,#1B4D4A,#0f3330); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.13); border: none; color: #fff; font-size: 1.8rem;
  width: 40px; height: 58px; cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; backdrop-filter: blur(4px);
}
.gallery-nav:hover { background: rgba(255,255,255,.28); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.3); cursor: pointer; border: none; padding: 0;
  transition: background .2s, transform .2s;
}
.gallery-dot.active { background: #fff; transform: scale(1.4); }

/* Info */
.modal-info { padding: 38px 34px 38px; overflow-y: auto; max-height: 600px; }
.modal-info-date { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #C9922A; margin-bottom: 10px; }
.modal-info-title { font-family: 'Archivo Black', sans-serif; font-size: 1.75rem; line-height: 1.15; color: #fff; margin-bottom: 8px; }
.modal-info-location { font-size: .88rem; color: rgba(255,255,255,.48); margin-bottom: 22px; }
.modal-info-desc { font-size: .92rem; line-height: 1.75; color: rgba(255,255,255,.7); margin-bottom: 28px; white-space: pre-line; }
.modal-people-label { font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 12px; }
.participants-list { display: flex; flex-wrap: wrap; gap: 8px; }
.participant-pill {
  background: rgba(201,146,42,.1); border: 1px solid rgba(201,146,42,.28);
  color: #C9922A; border-radius: 50px; padding: 5px 15px; font-size: .8rem; font-weight: 500;
}

/* ── PRICE BLOCK ── */
.trip-price-block { margin: 20px 0 10px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
.trip-price-main { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.trip-price-num { font-family: 'Archivo Black', sans-serif; font-size: 2rem; color: #C9922A; }
.trip-price-dur { font-size: .8rem; color: rgba(255,255,255,.4); }
.trip-klarna {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 14px;
}
.klarna-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: #ffb3c7;
  color: #000; font-family: 'Archivo Black', sans-serif; font-size: .7rem; flex-shrink: 0;
}
.trip-dates-label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 10px; }
.trip-dates-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.trip-date-opt { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .88rem; color: rgba(255,255,255,.7); }
.trip-date-opt input[type="radio"] { accent-color: #C9922A; width: 16px; height: 16px; flex-shrink: 0; }
.trip-reserve-btn, .trip-whatsapp-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 13px; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: .92rem; letter-spacing: .03em; transition: all .2s;
}
.trip-reserve-btn { background: #25D366; color: #fff; margin-top: 4px; }
.trip-reserve-btn:hover { background: #1ebe59; }
.trip-whatsapp-btn { background: rgba(37,211,102,.15); color: #25D366; border: 1px solid rgba(37,211,102,.3); margin-top: 16px; }
.trip-whatsapp-btn:hover { background: rgba(37,211,102,.25); }

/* ── ACCORDIONS ── */
.trip-accordion { border-top: 1px solid rgba(255,255,255,.08); margin-top: 4px; }
.trip-acc-toggle, .itin-day-toggle, .faq-q-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; background: none; border: none; color: rgba(255,255,255,.75);
  font-size: .9rem; font-weight: 600; cursor: pointer; text-align: left; gap: 8px;
  transition: color .2s;
}
.trip-acc-toggle:hover, .itin-day-toggle:hover, .faq-q-toggle:hover { color: #fff; }
.acc-arrow { flex-shrink: 0; transition: transform .25s; }
.acc-open .acc-arrow { transform: rotate(180deg); }
.trip-acc-body { display: none; padding-bottom: 10px; }
.trip-acc-body.open { display: block; }

/* Not included */
.not-included-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.not-included-list li { font-size: .87rem; color: rgba(255,255,255,.6); padding-left: 4px; }
.not-included-list li::before { content: '✗ '; color: #e05555; font-weight: 700; }

/* Itinerary */
.itin-day-view { border: 1px solid rgba(255,255,255,.07); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.itin-day-toggle { padding: 12px 14px; font-size: .85rem; color: rgba(255,255,255,.7); }
.itin-day-view .trip-acc-body { padding: 0 14px 12px; }
.itin-slot-view { margin-bottom: 10px; }
.itin-slot-time-view { font-size: .73rem; font-weight: 600; letter-spacing: .1em; color: #C9922A; margin-bottom: 3px; }
.itin-slot-desc-view { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.55; }

/* FAQ */
.faq-item-view { border-bottom: 1px solid rgba(255,255,255,.06); }
.faq-q-toggle { font-size: .87rem; color: rgba(255,255,255,.7); padding: 12px 0; }
.faq-a-body { padding: 0 0 12px; }
.faq-a-body p { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.6; }

/* ── ADMIN: itinerary & faq builders ── */
.itin-day { border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: rgba(255,255,255,.02); }
.itin-day-header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.itin-day-title { flex: 1; }
.itin-slots { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.itin-slot { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; align-items: start; }
.itin-slot-time, .itin-slot-desc { width: 100%; }
.itin-slot-desc { resize: vertical; min-height: 52px; }
.btn-add-slot { font-size: .78rem; color: rgba(255,255,255,.4); background: none; border: 1px dashed rgba(255,255,255,.2); border-radius: 6px; padding: 6px 12px; cursor: pointer; transition: all .2s; }
.btn-add-slot:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.faq-item-admin { border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: rgba(255,255,255,.02); position: relative; }
.faq-item-admin .btn-remove-include { position: absolute; top: 10px; right: 10px; }
.faq-q { width: 100%; margin-bottom: 8px; }
.faq-a { width: 100%; resize: vertical; min-height: 60px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .modal-inner { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .modal-gallery { min-height: 280px; }
  .gallery-main { min-height: 280px; }
  .gallery-placeholder { min-height: 280px; }
  .modal-info { max-height: none; padding: 28px 24px; }
}
@media (max-width: 820px) {
  .trips-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .trips-container { padding: 0 20px; }
  .viajes-nav { padding: 15px 20px; }
}
@media (max-width: 500px) {
  .trips-grid { grid-template-columns: 1fr; }
  .trip-card { aspect-ratio: 4/3; }
}
