/* ========================================================================
   USAQUEANDO — styles.css (COMPLETO + CORREGIDO)
   Fuentes: Cinzel (títulos) / Raleway (texto)
   Paleta: negro + dorado + verde colonial
   ======================================================================== */

/* =========================
   0) TOKENS / BASE
========================= */
:root{
  --bg:#000;
  --bg-2:#0b0b0c;
  --bg-card:#111216;

  --text:#f7f7f8;
  --muted:#b8bdc7;

  --gold:#c9a646;
  --gold-600:#d6b65a;
  --gold-700:#b9963a;

  --accent:#014d40;
  --accent-600:#016d5a;

  --border:rgba(255,255,255,.09);
  --shadow:0 14px 40px rgba(0,0,0,.50);
  --radius:18px;

  --ivory:#f4f1e8;

  /* glass */
  --glass-bd: rgba(255,255,255,.10);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body.theme-dark{
  margin:0;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(201,166,70,.10), transparent 55%),
    radial-gradient(1000px 600px at 80% 10%, rgba(1,77,64,.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color:var(--text);
  font-family:"Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

h1,h2,h3,.section-title,.hero-title{
  font-family:"Cinzel", serif;
  letter-spacing:.02em;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.container-xl{ position:relative; }

.muted, .card-desc, .ally-muted{ color:var(--muted); }
strong, b{ font-weight:700; }

/* =========================
   1) TOPBAR + NAV (FIXED)
========================= */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  background: rgba(0,0,0,.75);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topbar .container-xl{ min-height: 44px; }

.social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  margin-left:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  color: var(--gold) !important;
  background: rgba(255,255,255,.04);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.social-link i{ font-size:20px; line-height:1; color: inherit; }
.social-link:hover{
  transform: translateY(-1px);
  background: rgba(201,166,70,.12);
  border-color: rgba(201,166,70,.55);
  color: var(--gold-600) !important;
}

.navd{
  position: fixed;
  top: 44px; left: 0; right: 0;
  z-index: 1100;
  background: rgba(0,0,0,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s ease, box-shadow .3s ease;
}

main{ padding-top: 130px; } /* 44 + ~86 */

.brand-logo{ height:28px; width:auto; }
.navbar-dark .navbar-nav .nav-link{
  color: rgba(247,247,248,.85);
  font-weight: 600;
  letter-spacing: .03em;
  padding: .65rem .6rem;
}
.navbar-dark .navbar-nav .nav-link:hover{ color: var(--gold); }

/* =========================
   2) BOTONES (global)
========================= */
.btn-hero{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 18px;
  border-radius:999px;
  font-weight:700;
  letter-spacing:.02em;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, filter .15s ease;
  border:1px solid transparent;
}

.btn-hero-gold{
  background:var(--gold);
  color:#0b0b0c;
  box-shadow:0 10px 26px rgba(201,166,70,.18);
}
.btn-hero-gold:hover{ background:var(--gold-600); transform:translateY(-1px); }

.btn-hero-outline{
  background:transparent;
  border-color:rgba(201,166,70,.55);
  color:var(--gold);
}
.btn-hero-outline:hover{ background:rgba(201,166,70,.10); transform:translateY(-1px); }

/* Botón verde (primario) */
.btn-accent{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:14px;
  font-weight:800;
  background:rgba(1,77,64,.95);
  color:#f7f7f8;
  border:1px solid rgba(255,255,255,.10);
  transition:transform .15s ease, background .15s ease, border-color .15s ease, filter .15s ease;
}
.btn-accent:hover{
  transform:translateY(-1px);
  background:rgba(1,109,90,.95);
  border-color:rgba(255,255,255,.16);
}

/* Botón verde outline */
.btn-outline-accent{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:14px;
  font-weight:800;
  background:transparent;
  color:var(--text);
  border:1px solid rgba(1,77,64,.70);
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-outline-accent:hover{
  transform:translateY(-1px);
  background:rgba(1,77,64,.18);
  border-color:rgba(1,109,90,.90);
}

/* Botón dorado (secundario premium) */
.btn-gold{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:14px;
  font-weight:900;
  background: var(--gold);
  color:#101012;
  border:1px solid rgba(0,0,0,.25);
  box-shadow:0 10px 26px rgba(201,166,70,.14);
  transition:transform .15s ease, filter .15s ease;
}
.btn-gold:hover{ transform:translateY(-1px); filter: brightness(1.05); }

/* =========================
   3) SECCIONES / LAYOUT (global)
========================= */
.section-pad{ padding:64px 0; }
.section-dark{ background:transparent; }

.section-head{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:end;
  gap:16px;
  margin-bottom:20px;
}
.section-head .section-actions{ justify-self:end; }
@media (max-width: 840px){
  .section-head{ grid-template-columns:1fr; }
  .section-head .section-actions{ justify-self:start; }
}

.compact-head{
  margin-bottom:14px;
  align-items:center;
}
.compact-head .section-title{
  font-size: clamp(22px, 2.4vw, 32px);
  margin:0;
}
.compact-head .card-desc{
  margin:6px 0 0;
  max-width: 620px;
  font-size: .98rem;
  line-height: 1.5;
}
@media (max-width: 840px){
  .compact-head{ gap:10px; }
  .compact-head .section-actions{ justify-self:start; }
}

.section-compact{ padding: 2rem 0; }

/* =========================
   4) HOME — HERO
========================= */
.hero-viewport {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -130px;
}
.hero-media{ position:absolute; inset:0; }
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.05) contrast(1.05);
  transform:scale(1.02);
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(800px 500px at 20% 30%, rgba(0,0,0,.35), transparent 60%),
    radial-gradient(900px 600px at 70% 40%, rgba(0,0,0,.45), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.40), rgba(0,0,0,.72));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem 5rem;
  max-width: 780px;
  width: 100%;
}
.hero-title{
  margin:0 0 10px;
  font-size:clamp(44px, 5.6vw, 84px);
  text-transform:uppercase;
  line-height:1.02;
  color:rgba(247,247,248,.96);
  text-shadow:0 10px 30px rgba(0,0,0,.55);
}
.hero-subtitle{
  margin:0 0 10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:rgba(247,247,248,.88);
  line-height:1.4;
}
.hero-kicker{
  margin:0 0 22px;
  color:rgba(247,247,248,.72);
  font-weight:600;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* =========================
   HOME — SECCIÓN POR QUÉ (split)
========================= */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items:center;
}
@media (max-width: 900px){ .split{ grid-template-columns:1fr; } }

.split-text h2{ font-size: 2.2rem; margin:0 0 12px; }
.split-text p{
  color: #b8bdc7;
  line-height: 1.6;
  max-width: 520px;
  margin:0;
}
.split-media{
  position:relative;
  max-height: 420px;
  overflow:hidden;
  border-radius: 16px;
}
.split-media img{ width:100%; height:100%; object-fit:cover; }

/* =========================
   5) HOME — EXPERIENCIAS (GRID)
========================= */
.events-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 320px));
  gap:24px;
  align-items:start;
  margin-top:20px;
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}

.event-card{
  width: 100%;
  max-width: 320px;
  background:rgba(17,18,22,.85);
  border:1px solid var(--border);
  border-radius: 20px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.30);
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.event-card:hover{
  transform:translateY(-2px);
  border-color:rgba(154, 146, 122, 0.3);
  box-shadow:0 18px 48px rgba(0,0,0,.45);
}

.event-cover{
  position:relative;
  aspect-ratio: 16 / 9;
  background:#0e0f13;
  overflow:hidden;
}
.event-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1.02);
  transition:transform .25s ease;
}
.event-card:hover .event-cover img{ transform:scale(1.06); }
.event-cover::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%);
  pointer-events:none;
  opacity:.9;
}

.events-actions{
  display: flex;
  justify-content: left;
  margin-top: 24px;
}
.events-actions .btn-hero{
  padding: 8px 18px;
  font-size: 14px;
  line-height: 1;
  border-radius: 999px;
  width: auto;
}

.event-body{ padding:12px 14px 14px; }

.event-meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  color:rgba(247,247,248,.82);
  font-weight:600;
  font-size:.95rem;
  margin-bottom:10px;
}

.event-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 12px;
  border-radius:999px;
  border:1px solid rgba(238, 236, 230, 0.35);
  background:rgba(250, 249, 248, 0.1);
  color:var(--gold);
  font-weight:700;
}

.event-title{ margin:0 0 6px; font-size:1.2rem; line-height:1.2; }
.event-desc{
  margin:0 0 12px;
  font-size:.9rem;
  line-height:1.4;
  color:rgba(247,247,248,.76);
}
.event-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.event-cupos{ font-weight:800; }
.event-category{ color: var(--ivory); }

/* =========================
   6) CARDS BASE (global)
========================= */
.benefit-card{
  background:rgba(17,18,22,.70);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.benefit-card h3{ margin:0 0 8px; font-size:1.6rem; }
.benefit-card p{
  margin:0 0 14px;
  color:rgba(247,247,248,.74);
  line-height:1.6;
}

/* =========================
   7) HOME — LOGOS (scroll)
========================= */
.ally-logos{
  display:flex;
  gap:20px;
  overflow-x:auto;
  padding:12px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  margin:12px 0 20px;

  scrollbar-width: none;
}
.ally-logos::-webkit-scrollbar{ display:none; }

.ally-logos img{
  flex:0 0 auto;
  width:160px;
  height:80px;
  padding:10px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  object-fit:contain;
  scroll-snap-align:start;
  transition: transform .2s ease;
}
.ally-logos img:hover{ transform: translateY(-2px); }

/* =========================
   8) AMBIENTAL — GRID lugares (home)
========================= */
.lugares-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  margin:10px 0 14px;
}
@media (max-width: 992px){ .lugares-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px){ .lugares-grid{ grid-template-columns:1fr; } }

.lugar-card{
  background:rgba(17,18,22,.85);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  padding:14px;
}
.lugar-card img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:14px;
  margin-bottom:10px;
}
.lugar-card h4{
  margin:0 0 6px;
  font-family:"Cinzel", serif;
  font-size:1.25rem;
}
.lugar-card p{
  margin:0 0 10px;
  color:rgba(247,247,248,.74);
  line-height:1.55;
}
.lugar-meta{ display:flex; gap:10px; flex-wrap:wrap; margin:0 0 12px; }
.lugar-tipo, .lugar-dificultad{
  display:inline-flex;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(247,247,248,.80);
  font-weight:800;
  font-size:.85rem;
}

/* =========================
   9) FOOTER
========================= */
.site-footer{
  margin-top:60px;
  padding:20px 0;
  border-top:1px solid rgba(255,255,255,.06);
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}
.site-footer p{ color:rgba(247,247,248,.75); }
.footer-links{
  list-style:none;
  display:flex;
  gap:14px;
  padding:0;
  margin:0;
}
.footer-links a{ color:rgba(247,247,248,.70); font-weight:700; }
.footer-links a:hover{ color:var(--gold); }

/* =========================
   10) Leaflet (mapa)
========================= */
.leaflet-container{ border-radius:16px; }
.leaflet-popup-content-wrapper{
  background:#111216;
  color:#f7f7f8;
  border-radius:14px;
}
.leaflet-popup-tip{ background:#111216; }

/* =======================================================================
   QUIERO SER ALIADO — HERO + BENEFICIOS + FORM
   ======================================================================= */
.aliado-hero{ padding: 46px 0 18px; }
.aliado-hero-box{
  background: rgba(17,18,22,.55);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.aliado-hero-title{
  margin: 0 0 10px;
  font-size: clamp(30px, 3.2vw, 44px);
  text-transform: uppercase;
}
.aliado-hero-sub{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.6;
}
.aliado-hero-actions{ display:flex; gap: 12px; flex-wrap: wrap; }

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 768px){ .grid-3{ grid-template-columns: 1fr; } }

.form-wrapper{
  background: rgba(17,18,22,.70);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-bd);
  box-shadow: var(--shadow);
}

.aliado-form-head{ margin-bottom: 18px; }
.aliado-form-head .section-title{ margin: 0 0 8px; }

.uqa-grid p{
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}
.uqa-grid p:last-child{ margin-bottom: 0; }

.aliado-form label{
  display:block;
  margin-bottom: 0;
  font-weight: 800;
  color: rgba(247,247,248,.92);
  letter-spacing: .01em;
}

/* FORM — CAMPOS */
.aliado-form input,
.aliado-form textarea{
  width:100%;
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: var(--text);
  font-size: 1rem;
}
.aliado-form textarea{ min-height: 120px; resize: vertical; }

/* Select diferenciado */
.aliado-form select{
  width:100%;
  min-height: 52px;
  padding: 12px 44px 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.75) 50%),
    linear-gradient(135deg, rgba(255,255,255,.75) 50%, transparent 50%),
    linear-gradient(to right, rgba(255,255,255,.10), rgba(255,255,255,.10));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 44px) 50%;
  background-size:
    6px 6px,
    6px 6px,
    1px 22px;
  background-repeat: no-repeat;
}

/* Focus premium */
.aliado-form input:focus,
.aliado-form textarea:focus,
.aliado-form select:focus{
  outline:none;
  border-color: rgba(201,166,70,.60);
  box-shadow: 0 0 0 3px rgba(201,166,70,.14);
}

/* Separación extra: Categoría vs Subcategoría */
.uqa-grid p:has(select[name="categoria"]){ margin-bottom: 26px; }

/* Checkbox */
.uqa-grid input[type="checkbox"]{ width:auto; margin: 3px 10px 0 0; }
.uqa-grid p:has(input[type="checkbox"]){
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size: .95rem;
  color: var(--muted);
}
.uqa-grid p:has(input[type="checkbox"]) label{
  margin: 0;
  font-weight: 800;
}

/* Acciones */
.uqa-actions{ margin-top: 10px; display:grid; gap:10px; }
.uqa-submit{
  width:100%;
  justify-content:center;
  padding: 14px 18px;
  border-radius: 14px;
  border:1px solid rgba(0,0,0,.25);
  background: var(--gold);
  color:#101012;
  font-weight: 900;
  letter-spacing: .3px;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.uqa-submit:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.uqa-note{
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  line-height: 1.35;
}

/* Errores */
.uqa-alert{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(231,154,154,.35);
  background: rgba(231,154,154,.10);
  margin-bottom: 14px;
}

/* CTA WhatsApp */
.wa-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 18px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.wa-cta-title{ margin:0; }
.wa-cta-sub{ margin: 6px 0 0; color: rgba(255,255,255,.70); }
.wa-cta-btn{ white-space: nowrap; padding: 12px 16px; border-radius: 14px; }
@media (max-width: 768px){
  .wa-cta{ flex-direction: column; align-items: stretch; text-align: left; }
  .wa-cta-btn{ width: 100%; text-align: center; }
}

/* =======================================================================
   ALIADOS — DETAIL PAGE
   ======================================================================= */
.ally-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.ally-top-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.ally-hero{ margin-top: 6px; }
.ally-description-card{ margin-top: 18px; }

.ally-tags{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 0;
}
.ally-tag{
  display:inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--ivory);
  font-weight: 800;
  font-size: .85rem;
}

/* filas con ícono + texto */
.ally-detail-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0 0 12px;
  color:rgba(247,247,248,.82);
  line-height:1.5;
}
.ally-detail-row:last-child{ margin-bottom:0; }

.ally-detail-icon{
  flex-shrink:0;
  font-size:15px;
  color:var(--gold);
  margin-top:3px;
}
.ally-detail-icon--wa{ color:#25D366; }

.ally-detail-link{
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:3px;
}
.ally-detail-link:hover{ color:var(--gold); }

/* íconos redes — tamaño dentro de .social-icon */
.social-icon i{ font-size:22px; }

.ally-highlight{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--ivory);
  font-weight: 800;
}

.ally-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
  margin-top: 16px;
}
@media (max-width: 992px){ .ally-grid{ grid-template-columns: 1fr; } }

.ally-socials{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top: 6px;
}
.social-icon{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--gold);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.social-icon:hover{
  transform: translateY(-1px);
  background: rgba(201,166,70,.12);
  border-color: rgba(201,166,70,.55);
}

/* =========================
   ALIADO — GALERÍA (ARREGLADA)
   - Antes: overflow:hidden => se veía como “grid” gigante
   - Ahora: carrusel real con scroll horizontal
========================= */
.ally-gallery{ margin-top:22px; }

.ally-gallery-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.gallery-carousel{
  --h: 210px;
  display:flex;
  gap:14px;

  overflow-x:auto;        /* ✅ clave */
  overflow-y:hidden;      /* ✅ clave */
  padding: 10px 6px 14px;

  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);

  position:relative;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none; /* Firefox */
}
.gallery-carousel{
  max-width: 980px;
  margin: 0 auto;
}


.gallery-carousel::-webkit-scrollbar{ display:none; } /* Chrome */

/* Fade en bordes (suave) */
.gallery-carousel::before,
.gallery-carousel::after{
  content:"";
  position:absolute; top:0; bottom:0;
  width: 30px;
  pointer-events:none;
  z-index:2;
}
.gallery-carousel::before{
  left:0;
  background: linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.gallery-carousel::after{
  right:0;
  background: linear-gradient(to left, rgba(0,0,0,.55), rgba(0,0,0,0));
}

.gallery-card{
  flex: 0 0 auto;
  width: 25%;          /* ✅ tamaño consistente */
  height: 25%(--h);
  scroll-snap-align: start;

  border-radius: 16px;
  overflow:hidden;

  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  transform: translateZ(0);
}

/* Botón “invisible” clickeable */
.gallery-open{
  all: unset;
  display:block;
  width:100%;
  height:100%;
  cursor: zoom-in;
}
.gallery-open:focus-visible{
  outline: 3px solid rgba(201,166,70,.45);
  outline-offset: 3px;
  border-radius: 16px;
}

.gallery-img{
  width:100%;
  height:100%;
  object-fit: contain !important;
  object-position: center 45%;
  display:block;

  transform: scale(1.02);
  filter: saturate(1.12) contrast(1.06) brightness(1.05);
  transition: transform .35s ease, filter .35s ease;
}
.gallery-card:hover .gallery-img{
  transform: scale(1.05);
  filter: saturate(1.18) contrast(1.08) brightness(1.08);
}

@media (max-width: 992px){
  .gallery-carousel{ --h: 195px; }
  .gallery-card{ width: 280px; }
}
@media (max-width: 576px){
  .gallery-carousel{ --h: 185px; }
  .gallery-card{ width: 240px; }
}

/* =========================
   RESPONSIVE GENERAL
========================= */
@media (max-width: 768px){
  .section-pad{ padding: 50px 0 !important; }
  .form-wrapper{ padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}

/* =========================
   SELECT DROPDOWN — CATEGORÍAS
========================= */
.aliado-form select{
  background-color: #0f1014 !important;
  color: var(--text) !important;
}
.aliado-form select option{
  background-color: #111216 !important;
  color: #f7f7f8 !important;
  font-weight: 600;
}
.aliado-form select option:checked,
.aliado-form select option:hover{
  background-color: #014d40 !important;
  color: #ffffff !important;
}
.aliado-form select option[value=""]{
  color: rgba(255,255,255,.55) !important;
}

/* =========================
   LIGHTBOX (FLOTANTE + NAV VISIBLE)
========================= */
.lightbox{ position:fixed; inset:0; z-index:3000; display:none; }
.lightbox.is-open{ display:block; }

.lightbox-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-panel{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 22px;
}

/* imagen flotante */
.lightbox-img{
  width: min(860px, 90vw);
  max-height: 78vh;
  object-fit: contain;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  box-shadow: 0 24px 70px rgba(0,0,0,.60);
}

.lightbox-close{
  position:absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(17,18,22,.75);
  color: #fff;
  font-weight: 900;
  cursor:pointer;
  z-index: 9999;
}
.lightbox-close:hover{ border-color: rgba(201,166,70,.55); }

/* NAV visible */
.lightbox-panel{ position:relative; }
.lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);

  width:52px;
  height:52px;
  border-radius:999px;

  display:flex;
  align-items:center;
  justify-content:center;

  z-index: 9999;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.65);
  color: #fff;

  font-size: 34px;
  line-height: 1;
  cursor:pointer;

  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.lightbox-nav.prev{ left: 18px; }
.lightbox-nav.next{ right: 18px; }
.lightbox-nav:hover{
  border-color: rgba(201,166,70,.65);
  background: rgba(0,0,0,.78);
}

/* =========================
   LISTA SIMPLE ALIADOS (si aplica)
========================= */
.page-head-simple{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px;
  gap:16px;
}
@media (max-width:640px){
  .page-head-simple{
    flex-direction:column;
    align-items:flex-start;
  }
}

.ally-simple-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  max-width:720px;
}

.ally-simple-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
}

.ally-left{
  display:flex;
  align-items:center;
  gap:14px;
}

.ally-logo{
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius:50%;
  background:#111;
  padding:6px;
  border:1px solid var(--border);
}

.ally-simple-name{
  font-size:18px;
  color:var(--ivory);
}

.btn-sm{
  padding:8px 14px;
  font-size:14px;
}

.form-legal{
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.checkbox-legal{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.checkbox-legal a{
  color: var(--gold);
  text-decoration: underline;
}

.checkbox-legal input[type="checkbox"]{
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gold);
}

/* =========================
   ALIADOS — MENU CTA BANNER
========================= */
.menu-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 24px;
  margin-top:16px;
  border-radius:var(--radius);
  background:rgba(201,166,70,.07);
  border:1px solid rgba(201,166,70,.30);
}
.menu-cta-title{
  margin:0 0 4px;
  font-size:1.1rem;
  color:var(--gold);
}
.menu-cta-sub{
  margin:0;
  color:var(--muted);
  font-size:.9rem;
}
@media (max-width:640px){
  .menu-cta{ flex-direction:column; align-items:stretch; }
  .menu-cta .btn-gold{ text-align:center; justify-content:center; }
}

/* =========================
   ALIADOS — ITEM ACTIONS (lista)
========================= */
.ally-item-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

/* =========================
   RESERVAS / EVENTOS — UI
========================= */
:root{
  --card-bg: rgba(17,18,22,.78);
  --card-bd: rgba(255,255,255,.10);
  --blur: 16px;
}

/* ---- cards ---- */
.uq-card{
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(var(--blur));
}

.uq-card-pad{ padding: 18px; }

.uq-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
@media (max-width: 1100px){ .uq-grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .uq-grid{ grid-template-columns: 1fr;} }

/* ---- event card ---- */
.ev-cover{
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-2);
}
.ev-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: saturate(1.05) contrast(1.05);
}
.ev-cover::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.0) 35%, rgba(0,0,0,.65) 100%);
}

.ev-badges{
  position:absolute;
  top: 12px; left: 12px;
  display:flex; gap:8px; flex-wrap:wrap;
  z-index:2;
}
.ev-badge{
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: var(--text);
}
.ev-badge--sold{ border-color: rgba(201,166,70,.6); color: var(--gold); }
.ev-badge--aliado{ border-color: rgba(1,77,64,.7); color: #bff3ea; }

.ev-title{
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.ev-meta{
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.ev-actions{
  display:flex;
  gap:10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ---- detail hero ---- */
.ev-hero{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 18px;
  margin-top: 16px;
}
@media (max-width: 900px){ .ev-hero{ grid-template-columns: 1fr; } }

.ev-hero-img{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--card-bd);
  background: var(--bg-2);
}
.ev-hero-img img{
  width:100%;
  max-height: 420px;
  object-fit: cover;
  display:block;
}

.ev-side .uq-card + .uq-card{ margin-top: 14px; }

/* ---- form ---- */
.uq-form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 14px;
}
@media (max-width: 720px){ .uq-form{ grid-template-columns: 1fr; } }

.uq-field{ display:flex; flex-direction:column; gap:8px; }
.uq-field label{
  color: var(--text);
  font-size: 14px;
  opacity: .95;
}
.uq-input, .uq-select, .uq-textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  color: var(--text);
  outline: none;
}
.uq-input:focus, .uq-select:focus, .uq-textarea:focus{
  border-color: rgba(201,166,70,.55);
  box-shadow: 0 0 0 4px rgba(201,166,70,.12);
}
.uq-textarea{ min-height: 110px; resize: vertical; }

.uq-form .full{ grid-column: 1 / -1; }

.uq-note{
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

/* ---- calendar ---- */
.cal-day{
  margin-top: 16px;
}
.cal-title{
  margin:0 0 10px 0;
  font-size: 18px;
  color: var(--ivory);
}
.cal-list{
  margin:0;
  padding-left: 18px;
  color: var(--text);
}
.cal-list a{ color: var(--gold-600); text-decoration: none; }
.cal-list a:hover{ text-decoration: underline; }

/* =========================
   RESERVA — FORMULARIO
========================= */
.form-card{
  background: rgba(17,18,22,.88);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
}

/* GRID */
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

@media (max-width: 720px){
  .form-grid{
    grid-template-columns: 1fr;
  }
}

/* FIELD */
.form-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* LABEL */
.form-label{
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--text);
  opacity: .9;
}

/* INPUTS / SELECTS */
.form-field input,
.form-field select{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.form-field input::placeholder{
  color: rgba(255,255,255,.45);
}

.form-field input:focus,
.form-field select:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,166,70,.18);
}

/* HELP TEXT */
.form-help{
  font-size: 12px;
  color: var(--muted);
}

/* ERRORES */
.form-error{
  font-size: 12px;
  color: #ff6b6b;
}

/* BOTÓN */
.form-submit{
  margin-top: 18px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  align-self: flex-start;
}

/* HEADER */
.section-head.compact-head{
  margin-bottom: 14px;
}

/* ===== MAPA AMBIENTAL REFINADO ===== */
.map-container-refined {
    height: 380px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

#am-map {
    height: 100%;
    width: 100%;
    background: #1a1a1a;
}

.leaflet-control-zoom {
    border: 1px solid var(--border) !important;
    margin-top: 15px !important;
}

.leaflet-popup-content-wrapper {
    background: #fff !important;
    color: #333 !important;
    border-radius: 10px;
}

.leaflet-popup-tip {
    background: #fff !important;
}

@media (max-width: 768px) {
    .map-container-refined { height: 300px; }
    .compact-head { flex-direction: column; align-items: flex-start; gap: 15px; }
}

.home-fotos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.home-foto-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
}
.home-foto-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.88);
}
.home-foto-item:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}
.home-foto-pie {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
  font-size: 0.82rem;
  margin: 0;
}
.home-pauta {
  margin-top: 0;
  padding: 2rem;
  text-align: center;
}
.home-pauta img {
  max-width: 960px;
  width: 100%;
  border-radius: 12px;
  margin: 0 auto;
}
.eyebrow-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

/* =====================
   SECCIONES CULTURALES
   ===================== */
.cultura-section {
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}
.cultura-cafe {
  background: linear-gradient(135deg, #1a0f00 0%, #0d0800 50%, #1a0f00 100%);
  border-top: 1px solid rgba(201,166,70,0.15);
}
.cultura-cerveza {
  background: linear-gradient(135deg, #000810 0%, #000510 50%, #000810 100%);
  border-top: 1px solid rgba(1,77,64,0.2);
}
.cultura-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.cultura-inner--reverse {
  direction: rtl;
}
.cultura-inner--reverse .cultura-texto {
  direction: ltr;
}
.cultura-inner--reverse .cultura-media {
  direction: ltr;
}
.cultura-titulo {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 1.5rem;
}
.cultura-parrafo {
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.cultura-datos {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cultura-dato {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cultura-dato-num {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.cultura-dato-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cultura-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: var(--gold);
  color: #0b0b0c;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: filter 0.2s, transform 0.2s;
}
.cultura-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cultura-btn--dark {
  background: transparent;
  color: #6ecfb8;
  border: 1px solid rgba(1,77,64,0.6);
}
.cultura-btn--dark:hover {
  background: rgba(1,77,64,0.2);
  filter: none;
}
.cultura-media {
  position: relative;
  height: 500px;
  border-radius: 4px;
  overflow: hidden;
}
.cultura-media-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.cultura-media:hover .cultura-media-inner {
  transform: scale(1.03);
}
.cultura-media-cafe {
  background-image: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=800');
  filter: brightness(0.85) saturate(1.1);
}
.cultura-media-cerveza {
  background-image: url('/static/img/aliados/hanna-hops/grupo.jpg');
  filter: brightness(0.75) saturate(0.9);
}
.cultura-media::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,166,70,0.15);
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 900px) {
  .cultura-inner, .cultura-inner--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2.5rem;
  }
  .cultura-media { height: 280px; }
  .cultura-section { padding: 4rem 1.25rem; }
  .cultura-datos { gap: 1.25rem; }
}


/* ===== FOOTER ===== */
.site-footer {
  background: #050505;
  border-top: 1px solid rgba(201,166,70,0.15);
  padding-top: 4rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}
.footer-tagline {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.footer-redes {
  display: flex;
  gap: 0.75rem;
}
.footer-red {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
  transition: all 0.2s;
}
.footer-red:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,166,70,0.08);
}
.footer-col-titulo {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links-list a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links-list a:hover {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  margin: 0;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-col--brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
