/* ==========================================================================
   CHUBUT EXPLORERS · global.css
   Estilos compartidos por TODAS las páginas:
   - Variables de marca (paleta + tipografías)
   - Reset básico
   - Header / navegación
   - Footer
   - Botones reutilizables
   - Widget del asistente de consultas (WhatsApp)
   Cada sección del sitio tiene además su propio archivo CSS:
   home.css · secciones.css · detalle.css · admin.css
   ========================================================================== */

/* ----------  VARIABLES DE MARCA  ---------- */
:root {
  /* Paleta extraída del logo Chubut Explorers */
  --verde-bosque:        #1d3c22;  /* verde principal (header, footer-cta, titulos) */
  --verde-bosque-claro:  #2f5d36;  /* verde secundario / acentos */
  --azul-noche:          #15233f;  /* azul astroturismo / footer */
  --azul-noche-profundo: #11203c;  /* fondos nocturnos */
  --ambar:               #c2873f;  /* color de acento / detalles (montañas del logo) */
  --ambar-claro:         #d99a4e;  /* acento sobre fondos oscuros */
  --naranja:             #ef6f1f;  /* naranja vivo para botones de acción (Consultar, CTA) */
  --naranja-osc:         #d65f12;  /* naranja vivo en hover */
  --crema:               #f6f3ec;  /* fondo general del sitio */
  --crema-2:             #efeae0;  /* fondo de bandas alternas */
  --texto:               #1b241d;  /* texto principal */
  --texto-suave:         #5a6159;  /* texto secundario */
  --blanco:              #ffffff;
  --verde-whatsapp:      #25a35a;
  --rojo-error:          #b03a2e;

  /* Tipografías (Google Fonts) */
  --fuente-titulos: 'Archivo', system-ui, sans-serif;
  --fuente-texto:   'Source Sans 3', system-ui, sans-serif;

  /* Medidas */
  --ancho-max: 1280px;
  --alto-header: 78px;
  --radio: 14px;
  --sombra-card: 0 8px 30px rgba(20, 40, 25, 0.10);
}

/* ----------  RESET  ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--fuente-texto);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
input, select, textarea, button { font-family: inherit; }
::selection { background: var(--ambar); color: #fff; }

h1, h2, h3 { font-family: var(--fuente-titulos); }

/* ----------  CONTENEDOR  ---------- */
.contenedor {
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

/* ----------  BOTONES REUTILIZABLES  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 9px;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--ambar      { background: var(--naranja); color: #fff; }
.btn--ambar:hover{ background: var(--naranja-osc); }
.btn--verde      { background: var(--verde-bosque); color: #fff; }
.btn--verde:hover{ background: #16301b; }
.btn--whatsapp   { background: var(--verde-whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #1f8e4e; }
.btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(6px);
}
.btn--outline {
  background: #fff;
  color: var(--verde-bosque);
  border: 1.5px solid var(--verde-bosque);
}
.btn--bloque { width: 100%; }

/* ----------  HEADER / NAVEGACIÓN  ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--verde-bosque);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-header__nav {
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--alto-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.site-header__logo {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #fff;
}
.site-header__brand-text { display: flex; flex-direction: column; line-height: 1; }
.site-header__brand-name {
  font-family: var(--fuente-titulos);
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}
.site-header__brand-tag {
  font-size: 9.5px;
  letter-spacing: 3px;
  color: var(--ambar);
  font-weight: 600;
  margin-top: 3px;
}
.site-header__menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-header__link {
  text-decoration: none;
  color: #eef2ec;
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 13px;
  border-radius: 7px;
  white-space: nowrap;
  transition: background .2s ease;
}
.site-header__link:hover { background: rgba(255,255,255,.08); }
.site-header__link--muted { color: #a9c0a6; font-size: 13px; }
.site-header__link.is-active { background: rgba(255,255,255,.12); color: #fff; }

/* Botón hamburguesa (mobile) */
.site-header__burger {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
}
.site-header__burger span {
  display: block;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
}
.site-header__burger span:last-child { background: var(--ambar); }

/* Menú desplegable mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--verde-bosque);
  display: none;
  flex-direction: column;
  padding: 24px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.mobile-menu__title {
  font-family: var(--fuente-titulos);
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  font-size: 17px;
}
.mobile-menu__close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}
.mobile-menu__link {
  text-decoration: none;
  color: #fff;
  font-family: var(--fuente-titulos);
  font-weight: 700;
  font-size: 26px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-menu__link--muted {
  color: #a9c0a6;
  font-family: var(--fuente-texto);
  font-weight: 600;
  font-size: 18px;
  border-bottom: none;
}

/* ----------  FOOTER  ---------- */
.site-footer {
  background: var(--azul-noche);
  color: #c2cee2;
  padding: clamp(44px, 6vw, 64px) 24px 30px;
}
.site-footer__grid {
  max-width: var(--ancho-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.site-footer__logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.site-footer__brand-name {
  font-family: var(--fuente-titulos);
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
  font-size: 16px;
}
.site-footer p { font-size: 14px; line-height: 1.6; margin: 0; max-width: 34ch; }
.site-footer h3 {
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  margin: 0 0 14px;
}
.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}
.site-footer__list a { text-decoration: none; color: #c2cee2; }
.site-footer__list a:hover { color: #fff; }
.site-footer__list a.is-wa { color: var(--ambar-claro); font-weight: 600; }
.site-footer__list a.is-admin { color: #8294b3; font-size: 13px; }
.site-footer__copy {
  max-width: var(--ancho-max);
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px;
  color: #7e8eaa;
}

/* ==========================================================================
   ASISTENTE DE CONSULTAS  (botón flotante + panel → WhatsApp)
   Lógica en js/global.js
   ========================================================================== */
.asistente-fab {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 80;
  border: none;
  cursor: pointer;
  background: var(--verde-whatsapp);
  color: #fff;
  border-radius: 30px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  gap: 9px;
}
.asistente-fab__icono { font-size: 19px; }

.asistente-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15,25,18,.55);
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
}
.asistente-overlay.is-open { display: flex; }
.asistente-panel {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.3);
  max-height: 92vh;
  overflow: auto;
}
.asistente-panel__head {
  background: var(--verde-bosque);
  color: #fff;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 18px 18px 0 0;
  position: sticky;
  top: 0;
}
.asistente-panel__head-info { display: flex; align-items: center; gap: 10px; }
.asistente-panel__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--verde-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.asistente-panel__head strong { font-size: 15px; display: block; }
.asistente-panel__head span.sub { font-size: 12px; color: #a9c0a6; }
.asistente-panel__close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}
.asistente-panel__body { padding: 22px; }
.asistente-panel__intro { margin: 0 0 16px; color: #3c443a; font-size: 15.5px; line-height: 1.5; }
.asistente-opciones { display: flex; flex-direction: column; gap: 10px; }
.asistente-opcion {
  text-align: left;
  cursor: pointer;
  background: var(--crema);
  border: 1.5px solid #e7e1d4;
  border-radius: 11px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--verde-bosque);
}
.asistente-opcion:hover { border-color: var(--ambar); }
.asistente-paso { display: none; }
.asistente-paso.is-active { display: block; }
.asistente-eyebrow {
  margin: 0 0 6px;
  color: var(--ambar);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ----------  CAMPOS DE FORMULARIO (compartido)  ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--texto-suave); font-weight: 600; margin-bottom: 13px; }
.campo input, .campo select, .campo textarea {
  padding: 11px 13px;
  border: 1px solid #d8d2c4;
  border-radius: 9px;
  font-size: 15px;
  color: var(--texto);
  background: #fff;
}
.campo textarea { resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: 2px solid var(--ambar);
  outline-offset: 1px;
  border-color: transparent;
}
.form-error { color: var(--rojo-error); font-size: 13.5px; margin: 6px 0 0; }
.form-ok { color: var(--verde-bosque-claro); font-size: 13.5px; font-weight: 600; margin: 6px 0 0; }

/* ----------  UTILIDADES  ---------- */
.eyebrow {
  color: var(--ambar);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 12.5px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   LIGHTBOX  (visor ampliado de galería · lógica en js/galeria.js)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 14, 10, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__fig {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 16px 60px rgba(0,0,0,.5);
  transition: opacity .2s ease;
  object-fit: contain;
}
.lightbox__cap {
  color: #e4e9e1;
  font-size: 14.5px;
  text-align: center;
  max-width: 60ch;
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 46px; height: 46px;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__nav {
  flex: none;
  width: 54px; height: 54px;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 10px;
  transition: background .2s ease;
}
.lightbox__nav:hover { background: var(--ambar); }
.lightbox__count {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  color: #c9cfc6;
  font-size: 13px;
  letter-spacing: 1px;
  background: rgba(255,255,255,.08);
  padding: 6px 14px;
  border-radius: 20px;
}
@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lightbox__nav {
    position: absolute;
    bottom: 18px;
    width: 48px; height: 48px;
    font-size: 30px;
  }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .lightbox__count { bottom: auto; top: 18px; left: 18px; transform: none; }
  .lightbox__close { top: 14px; right: 14px; }
}

/* ----------  RESPONSIVE: header  ---------- */
@media (max-width: 880px) {
  .site-header__menu { display: none; }
  .site-header__burger { display: flex; }
}
