/* ============================================================
   TourGuide.do — main.css v2.0
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --tg-primary:    #0A6EBD;
  --tg-primary-dk: #085a9a;
  --tg-accent:     #FF6B2C;
  --tg-whatsapp:   #25D366;
  --tg-whatsapp-dk:#1fb355;
  --tg-text:       #1a1a2e;
  --tg-muted:      #666;
  --tg-border:     #e5e7eb;
  --tg-bg-light:   #f8fafc;
  --tg-success:    #16a34a;
  --tg-error:      #dc2626;
  --tg-radius:     10px;
  --tg-shadow:     0 4px 20px rgba(0,0,0,.12);
}

/* ── Reset básico ─────────────────────────────────────────── */
.tg-single-tour__main *,
.tg-archive__main * {
  box-sizing: border-box;
}

/* ── Botones ──────────────────────────────────────────────── */
.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--tg-radius);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  line-height: 1.2;
}
.tg-btn--primary  { background: var(--tg-primary);  color: #fff; }
.tg-btn--primary:hover { background: var(--tg-primary-dk); }
.tg-btn--outline  { background: transparent; border-color: var(--tg-primary); color: var(--tg-primary); }
.tg-btn--outline:hover { background: var(--tg-primary); color: #fff; }
.tg-btn--ghost    { background: transparent; color: var(--tg-muted); border-color: var(--tg-border); }
.tg-btn--ghost:hover { border-color: var(--tg-text); color: var(--tg-text); }
.tg-btn--whatsapp { background: var(--tg-whatsapp); color: #fff; }
.tg-btn--whatsapp:hover { background: var(--tg-whatsapp-dk); }
.tg-btn--submit   { background: var(--tg-accent); color: #fff; width: 100%; font-size: 1rem; padding: 14px; }
.tg-btn--submit:hover { filter: brightness(1.07); }

/* ── Selector de idioma ────────────────────────────────────── */
.tg-lang-switcher { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.tg-lang-btn { color: var(--tg-muted); text-decoration: none; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.tg-lang-btn.active { color: var(--tg-primary); background: rgba(10,110,189,.1); }
.tg-lang-sep { color: var(--tg-border); }

/* ── Badge ────────────────────────────────────────────────── */
.tg-badge {
  display: inline-block;
  background: var(--tg-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.tg-badge--card {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  margin: 0;
}

/* ── Trust Strip ──────────────────────────────────────────── */
.tg-trust-strip { background: var(--tg-primary); color: #fff; }
.tg-trust-strip--hero-bottom { background: var(--tg-primary-dk); }
.tg-trust-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
}
.tg-trust-strip__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 500;
  opacity: .92;
}
.tg-trust-strip__item svg { flex-shrink: 0; }

/* ── Hero ─────────────────────────────────────────────────── */
.tg-hero {
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, var(--tg-primary-dk), #1a3a6b);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.tg-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.tg-hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 24px 48px;
  color: #fff;
}
.tg-breadcrumb { font-size: .8rem; opacity: .8; margin-bottom: 12px; }
.tg-breadcrumb a { color: inherit; text-decoration: none; }
.tg-breadcrumb a:hover { text-decoration: underline; }
.tg-breadcrumb span { margin: 0 6px; }
.tg-hero__title { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; margin: 8px 0 16px; line-height: 1.2; }

/* Pills */
.tg-hero__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tg-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px; padding: 5px 12px; font-size: .8rem; color: #fff;
}

/* ── Layout 2 columnas ────────────────────────────────────── */
.tg-tour-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .tg-tour-layout { grid-template-columns: 1fr; }
}

/* ── Secciones ────────────────────────────────────────────── */
.tg-section { margin-bottom: 36px; }
.tg-section__title {
  font-size: 1.1rem; font-weight: 700; color: var(--tg-text);
  margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px; border-bottom: 2px solid var(--tg-primary);
}

/* Inc / Exc */
.tg-inc-exc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .tg-inc-exc__grid { grid-template-columns: 1fr; } }

.tg-checklist { list-style: none; margin: 0; padding: 0; }
.tg-checklist__item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0; font-size: .9rem; border-bottom: 1px solid var(--tg-border);
  color: var(--tg-text);
}
.tg-checklist__item:last-child { border-bottom: none; }
.tg-checklist__item--inc::before { content: "✓"; color: var(--tg-success); font-weight: 700; flex-shrink: 0; }
.tg-checklist__item--exc::before { content: "✗"; color: var(--tg-error);   font-weight: 700; flex-shrink: 0; }
.tg-checklist__item:not(.tg-checklist__item--inc):not(.tg-checklist__item--exc)::before { content: "•"; color: var(--tg-primary); flex-shrink: 0; }

/* Logistics */
.tg-logistics__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .tg-logistics__grid { grid-template-columns: 1fr; } }
.tg-logistics__item {
  background: var(--tg-bg-light); border-radius: 8px;
  padding: 12px 16px; display: flex; flex-direction: column; gap: 4px;
}
.tg-logistics__label { font-size: .75rem; color: var(--tg-muted); text-transform: uppercase; letter-spacing: .04em; }
.tg-logistics__value { font-size: .9rem; font-weight: 600; color: var(--tg-text); }

/* Zones */
.tg-zones__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-zone-tag {
  background: var(--tg-bg-light); border: 1px solid var(--tg-border);
  border-radius: 20px; padding: 5px 14px; font-size: .82rem; color: var(--tg-text);
}

/* FAQ */
.tg-faq__item { border-bottom: 1px solid var(--tg-border); }
.tg-faq__question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 14px 0; font-size: .95rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--tg-text);
}
.tg-faq__question:hover { color: var(--tg-primary); }
.tg-faq__icon { font-size: 1.2rem; color: var(--tg-primary); transition: transform .2s; }
.tg-faq__question[aria-expanded="true"] .tg-faq__icon { transform: rotate(45deg); }
.tg-faq__answer { padding: 0 0 14px; }
.tg-faq__answer p { margin: 0; font-size: .9rem; color: var(--tg-muted); line-height: 1.6; }

/* Cancelación */
.tg-cancel__box {
  background: var(--tg-bg-light); border-radius: var(--tg-radius);
  border-left: 4px solid var(--tg-primary); padding: 16px 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.tg-cancel__box svg { flex-shrink: 0; color: var(--tg-primary); margin-top: 2px; }
.tg-cancel__box strong { display: block; margin-bottom: 4px; }
.tg-cancel__box p { margin: 0; font-size: .88rem; color: var(--tg-muted); line-height: 1.5; }

/* ── Sidebar / Booking widget ────────────────────────────── */
.tg-tour-sidebar { position: sticky; top: 24px; }
.tg-booking-box {
  background: #fff; border-radius: var(--tg-radius);
  box-shadow: var(--tg-shadow); padding: 24px; border: 1px solid var(--tg-border);
}

/* Precio */
.tg-price-block { margin-bottom: 20px; }
.tg-price-block__from { font-size: .8rem; color: var(--tg-muted); display: block; }
.tg-price__original { font-size: 1rem; color: var(--tg-muted); text-decoration: line-through; margin-right: 8px; }
.tg-price__amount { font-size: 2rem; font-weight: 800; color: var(--tg-primary); }
.tg-price__note, .tg-price-block__per { font-size: .8rem; color: var(--tg-muted); display: block; margin-top: 2px; }

/* Pasos */
.tg-steps {
  display: flex; align-items: center; margin-bottom: 24px;
  justify-content: center; gap: 0;
}
.tg-step {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--tg-border); color: var(--tg-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; transition: all .3s; flex-shrink: 0;
}
.tg-step--active { background: var(--tg-primary); color: #fff; }
.tg-step--done   { background: var(--tg-success);  color: #fff; }
.tg-step__line   { flex: 1; height: 2px; background: var(--tg-border); }

/* Pasos del formulario */
.tg-form-step { border: none; margin: 0; padding: 0; }
.tg-form-step__title { font-size: .95rem; font-weight: 700; margin: 0 0 16px; color: var(--tg-text); display: block; }

/* Grupos de campos */
.tg-form-group { margin-bottom: 14px; }
.tg-form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: var(--tg-text); }
.tg-form-group input,
.tg-form-group select {
  width: 100%; border: 1.5px solid var(--tg-border); border-radius: 8px;
  padding: 10px 12px; font-size: .9rem; color: var(--tg-text);
  background: #fff; transition: border-color .2s;
}
.tg-form-group input:focus,
.tg-form-group select:focus { outline: none; border-color: var(--tg-primary); }
.tg-input--error { border-color: var(--tg-error) !important; }
.tg-field-error { font-size: .78rem; color: var(--tg-error); display: block; margin-top: 4px; }

/* Contador */
.tg-counter { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--tg-border); border-radius: 8px; overflow: hidden; }
.tg-counter__btn {
  background: var(--tg-bg-light); border: none; width: 38px; height: 38px;
  font-size: 1.2rem; cursor: pointer; color: var(--tg-primary); font-weight: 700;
  transition: background .2s;
}
.tg-counter__btn:hover { background: var(--tg-primary); color: #fff; }
.tg-counter input {
  flex: 1; border: none; text-align: center; font-size: 1rem; font-weight: 700;
  padding: 0; width: 0; min-width: 40px; color: var(--tg-text);
}

/* Navegación de pasos */
.tg-step-nav { display: flex; gap: 10px; margin-top: 16px; }
.tg-step-nav .tg-btn { flex: 1; }

/* Resumen */
.tg-summary__list { margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .88rem; }
.tg-summary__list dt { color: var(--tg-muted); font-weight: 600; white-space: nowrap; }
.tg-summary__list dd { color: var(--tg-text); margin: 0; }
.tg-summary__total-label,
.tg-summary__total { font-size: 1rem; font-weight: 800; color: var(--tg-primary); border-top: 2px solid var(--tg-border); padding-top: 8px; margin-top: 4px; }

/* Estados del formulario */
.tg-form-loading,
.tg-form-success,
.tg-form-error {
  text-align: center; padding: 30px 20px;
}
.tg-spinner {
  width: 40px; height: 40px; border: 4px solid var(--tg-border);
  border-top-color: var(--tg-primary); border-radius: 50%;
  animation: spin .7s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tg-form-success svg { display: block; margin: 0 auto 12px; }
.tg-form-error p { color: var(--tg-error); }

/* Mini trust strip */
.tg-mini-trust {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--tg-border);
  display: flex; flex-direction: column; gap: 5px;
}
.tg-mini-trust span { font-size: .78rem; color: var(--tg-success); }

/* WhatsApp directo */
.tg-wa-direct { width: 100%; margin-top: 12px; justify-content: center; }

/* ── Tours relacionados ───────────────────────────────────── */
.tg-related { background: var(--tg-bg-light); padding: 60px 24px; margin-top: 20px; }
.tg-related__inner { max-width: 1200px; margin: 0 auto; }
.tg-related__title { font-size: 1.4rem; font-weight: 800; margin-bottom: 28px; color: var(--tg-text); }

/* ── Tour cards grid ─────────────────────────────────────── */
.tg-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.tg-card {
  background: #fff; border-radius: var(--tg-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.08); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.tg-card:hover { transform: translateY(-4px); box-shadow: var(--tg-shadow); }
.tg-card__img-wrap { display: block; position: relative; overflow: hidden; aspect-ratio: 4/3; }
.tg-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tg-card__img-wrap:hover .tg-card__img { transform: scale(1.04); }
.tg-card__body { padding: 18px; }
.tg-card__dest { font-size: .75rem; text-transform: uppercase; color: var(--tg-primary); font-weight: 700; letter-spacing: .04em; }
.tg-card__title { font-size: 1rem; font-weight: 700; margin: 6px 0 8px; line-height: 1.3; }
.tg-card__title a { color: var(--tg-text); text-decoration: none; }
.tg-card__title a:hover { color: var(--tg-primary); }
.tg-card__excerpt { font-size: .85rem; color: var(--tg-muted); margin: 0 0 10px; line-height: 1.5; }
.tg-card__meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tg-card__meta { font-size: .8rem; color: var(--tg-muted); display: flex; align-items: center; gap: 4px; }
.tg-card__price { font-size: .9rem; color: var(--tg-text); margin: 0 0 14px; }
.tg-card__price strong { color: var(--tg-primary); font-size: 1.1rem; }
.tg-card__per-person { font-size: .78rem; color: var(--tg-muted); }
.tg-card .tg-btn--outline { width: 100%; justify-content: center; }

/* ── Archive ──────────────────────────────────────────────── */
.tg-archive-hero {
  background: linear-gradient(135deg, var(--tg-primary-dk), #1a3a6b);
  color: #fff; padding: 60px 24px; text-align: center;
}
.tg-archive-hero__inner { max-width: 700px; margin: 0 auto; }
.tg-archive-hero__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin: 0 0 10px; }
.tg-archive-hero__sub { font-size: 1rem; opacity: .85; margin: 0; }

.tg-filter-bar { background: #fff; border-bottom: 1px solid var(--tg-border); padding: 14px 24px; }
.tg-filter-bar__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.tg-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tg-filter-group__label { font-size: .8rem; font-weight: 700; color: var(--tg-muted); }
.tg-filter-tag {
  font-size: .82rem; padding: 5px 14px; border-radius: 20px;
  background: var(--tg-bg-light); border: 1px solid var(--tg-border);
  color: var(--tg-text); text-decoration: none; transition: all .2s;
}
.tg-filter-tag:hover,
.tg-filter-tag.active { background: var(--tg-primary); border-color: var(--tg-primary); color: #fff; }

.tg-archive-grid__wrapper { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.tg-no-tours { text-align: center; color: var(--tg-muted); padding: 40px; }

/* Paginación */
.tg-pagination { margin-top: 40px; display: flex; justify-content: center; }
.tg-pagination .page-numbers {
  display: inline-flex; align-items: center; gap: 8px;
  list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center;
}
.tg-pagination .page-numbers li a,
.tg-pagination .page-numbers li span {
  padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--tg-border);
  color: var(--tg-text); text-decoration: none; font-size: .88rem; transition: all .2s;
}
.tg-pagination .page-numbers li .current,
.tg-pagination .page-numbers li a:hover { background: var(--tg-primary); border-color: var(--tg-primary); color: #fff; }

/* WhatsApp CTA archivoo */
.tg-archive-wa-cta {
  background: linear-gradient(135deg, #1a4a2e, #25D366);
  color: #fff; text-align: center; padding: 50px 24px;
}
.tg-archive-wa-cta p { font-size: 1.1rem; font-weight: 600; margin: 0 0 20px; }
.tg-archive-wa-cta .tg-btn--whatsapp { background: #fff; color: var(--tg-whatsapp); }
.tg-archive-wa-cta .tg-btn--whatsapp:hover { background: rgba(255,255,255,.9); }

/* ── Sticky Mobile CTA ────────────────────────────────────── */
.tg-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 2px solid var(--tg-border);
  padding: 12px 16px; z-index: 999;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(100%); transition: transform .3s;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
}
.tg-sticky-cta--visible { transform: translateY(0); }
.tg-sticky-cta__price { font-size: .85rem; }
.tg-sticky-cta__price strong { display: block; font-size: 1.1rem; color: var(--tg-primary); }
.tg-sticky-cta__actions { display: flex; gap: 8px; flex-shrink: 0; }
.tg-sticky-cta .tg-btn { padding: 10px 16px; font-size: .85rem; }
@media (min-width: 900px) { .tg-sticky-cta { display: none; } }
