/* Teatro Braulio Castillo — tema moderno
   Paleta basada en la identidad original (teal #288790, azul #467EC2)
   sobre un fondo oscuro tipo "telón de teatro". */

:root {
  --bg: #0d0e10;
  --bg-alt: #16181b;
  --bg-card: #1b1d21;
  --bg-card-hover: #222429;
  --teal: #2aa1ab;
  --teal-dark: #1d747c;
  --gold: #cda449;
  --blue: #5b8fd6;
  --text: #f3f1ec;
  --text-muted: #b7b2a8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --max-width: 1180px;
  --font-heading: "Roboto Slab", "Georgia", serif;
  --font-body: "Roboto", "Montserrat", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 .5em;
  color: #fff;
}

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .75em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(42, 161, 171, .35);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 26px rgba(42, 161, 171, .45); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a9822f);
  color: #1a1400;
  box-shadow: 0 8px 20px rgba(205, 164, 73, .3);
}
.btn-gold:hover { transform: translateY(-2px); color: #1a1400; }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(rgba(8,9,10,.88), rgba(8,9,10,.88)), url("../images/header-bg.jpg") center/cover;
  border-bottom: 1px solid var(--border);
}
.header-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex-shrink: 1; }
.brand img { width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; }
.brand-text { line-height: 1.1; min-width: 0; }
.brand-text strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { display: block; font-size: .68rem; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--text);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 9px 11px;
  border-radius: 8px;
  display: block;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(42, 161, 171, .18); }

.header-right { display: flex; align-items: center; gap: 16px; }

/* Selector de idioma — fuera del <ul> del menú a propósito, para que no se
   confunda con las secciones del sitio */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-switch:hover { background: rgba(205, 164, 73, .14); color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0c0d0f;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 24px 20px; gap: 2px; }
  .main-nav a { padding: 12px 8px; }
}

@media (max-width: 520px) {
  .lang-switch { padding: 7px 10px; font-size: 0; gap: 0; }
  .lang-switch::after { content: attr(data-short); font-size: .68rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 120px;
  background:
    linear-gradient(180deg, rgba(9,10,11,.6) 0%, rgba(9,10,11,.88) 65%, var(--bg) 100%),
    url("../images/hero-frente.jpg") center/cover fixed;
  text-align: center;
  overflow: hidden;
}
.hero-logo {
  width: clamp(220px, 26vw, 380px);
  height: clamp(220px, 26vw, 380px);
  border-radius: 50%;
  margin: 0 auto 30px;
  background: #0d0e10;
  border: 5px solid rgba(205, 164, 73, .55);
  box-shadow: 0 0 0 14px rgba(255,255,255,.04), 0 35px 80px rgba(0,0,0,.6);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: .3em;
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 2em;
  color: #ece7dc;
  font-size: 1.1rem;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 50% 100%, 0 40%);
}
@media (max-width: 600px) {
  .hero-logo { width: 190px; height: 190px; }
}

.page-hero {
  padding: 70px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(42,161,171,.12), transparent);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { max-width: 620px; margin: 0 auto; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
section[id] { scroll-margin-top: 90px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }

/* Quick links grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--bg-card-hover); }
button.quick-card { font: inherit; color: inherit; width: 100%; appearance: none; -webkit-appearance: none; margin: 0; }
.quick-card figure { margin: 0; aspect-ratio: 396/280; overflow: hidden; background: #000; }
.quick-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.quick-card:hover img { transform: scale(1.06); }
.quick-card-body { padding: 20px 22px 24px; }
.quick-card-body h3 { font-size: 1.05rem; margin-bottom: .35em; color: #fff; }
.quick-card-body p { margin: 0; font-size: .9rem; }

/* Cartelera — banda destacada justo debajo del hero */
.cartelera-band {
  padding: 64px 0;
  background:
    linear-gradient(120deg, rgba(205,164,73,.10), rgba(42,161,171,.10)),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.cartelera-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .cartelera-grid { grid-template-columns: 1fr; } }
.cartelera-copy { border-left: 3px solid var(--gold); padding-left: 26px; }
.cartelera-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cartelera-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  justify-content: center;
  box-shadow: var(--shadow);
}
.cartelera-wrap iframe { width: 100%; max-width: 500px; border-radius: 10px; }

/* Feature banner (40 años) */
.anniversary {
  background: linear-gradient(120deg, rgba(205,164,73,.14), rgba(42,161,171,.14));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.anniversary h2 { color: var(--gold); font-size: 1.8rem; }

/* ---------- Cards / content pages ---------- */
.doc-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.doc-wrap iframe {
  width: 100%;
  height: 82vh;
  min-height: 520px;
  border: 0;
  border-radius: 10px;
  background: #fff;
}
.doc-actions { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
}
.image-gallery figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.image-gallery img { width: 100%; cursor: zoom-in; transition: transform .3s ease; }
.image-gallery img:hover { transform: scale(1.02); }
.image-gallery figcaption { padding: 14px 18px; font-size: .88rem; color: var(--text-muted); border-top: 1px solid var(--border); }

/* Estadísticas destacadas (Mapas de Sala) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .35em;
}
.stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* Chips de especificaciones (Mapas / Servicios Técnicos) */
.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}
.spec-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: .85rem;
  color: var(--text-muted);
}
.spec-chip strong { color: var(--gold); }

/* Tarjetas de equipo (Servicios Técnicos) */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.equip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.equip-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.equip-card-head .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(205,164,73,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.equip-card-head h4 { margin: 0; font-size: 1.05rem; color: #fff; }
.equip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.equip-list li {
  font-size: .9rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.equip-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* Tarjetas de documentos técnicos (fondo blanco, tipo hoja escaneada) */
.doc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}
.doc-card {
  margin: 0;
  background: #fdfcf9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.doc-card-head {
  background: var(--bg-card);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.doc-card-head span { font-size: .82rem; font-weight: 700; color: var(--gold); letter-spacing: .05em; text-transform: uppercase; }
.doc-card img { width: 100%; display: block; cursor: zoom-in; transition: transform .3s ease; }
.doc-card img:hover { transform: scale(1.015); }
.doc-card-foot {
  padding: 12px 20px;
  font-size: .78rem;
  color: #7a7364;
  background: #f3f0e7;
  border-top: 1px solid #e6e1d2;
}

/* Tarjetas de vista previa (Mapas / Servicios Técnicos) — no muestran el
   documento real hasta que la persona pulsa el botón */
.doc-preview-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.doc-preview-art { width: 100%; display: block; }
.doc-preview-body { padding: 20px 22px 24px; text-align: center; }
.doc-preview-body p { font-size: .85rem; margin-bottom: 16px; }

/* Tabs (Servicios Técnicos) */
.tabs-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.tabs-nav button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s ease;
}
.tabs-nav button.active,
.tabs-nav button:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,6,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- Form (Solicitud) ---------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.modal-body .form-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
.form-section-title {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.1rem;
  margin: 34px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.form-section-title:first-child { margin-top: 0; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
}
.field .hint { font-size: .76rem; color: var(--text-muted); font-weight: 400; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field input[type="time"],
.field select,
.field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  color-scheme: dark;
}
.field select { appearance: auto; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 161, 171, .2);
}
.field textarea { resize: vertical; min-height: 90px; }

/* Fechas y horas dinámicas por función */
.funciones-fechas-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.funcion-fecha-row {
  display: grid;
  grid-template-columns: 84px 1fr 1fr;
  gap: 14px;
  align-items: end;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.funcion-fecha-num { font-weight: 700; color: var(--gold); font-size: .85rem; padding-bottom: 12px; }
@media (max-width: 600px) {
  .funcion-fecha-row { grid-template-columns: 1fr; }
  .funcion-fecha-num { padding-bottom: 0; }
}

.radio-group { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 4px; }
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: .92rem;
  color: var(--text);
  cursor: pointer;
}
.radio-group input { accent-color: var(--teal); width: 18px; height: 18px; }

/* Toggles tipo "pill" (Sí/No, Con fines / Sin fines de lucro) */
.pill-group { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 2px; }
.pill-option { position: relative; }
.pill-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.pill-option span {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 600;
  transition: all .18s ease;
}
.pill-option input:checked + span {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-color: var(--teal);
  color: #fff;
}
.pill-option input:focus-visible + span { box-shadow: 0 0 0 3px rgba(42, 161, 171, .3); }

/* Campos incompletos (validación propia del formulario de Solicitud) */
.field.invalid label { color: #ff9b9b; }
.field.invalid input[type="text"],
.field.invalid input[type="email"],
.field.invalid input[type="tel"],
.field.invalid input[type="number"],
.field.invalid input[type="date"],
.field.invalid input[type="time"],
.field.invalid select,
.field.invalid textarea {
  border-color: #c84646;
  box-shadow: 0 0 0 3px rgba(200, 70, 70, .15);
}
.field.invalid .pill-option span { border-color: #c84646; }

.form-footer {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.form-note { font-size: .82rem; color: var(--text-muted); margin: 0; }

/* Resumen de la solicitud (paso de revisión) */
.resumen-list {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px 20px;
  margin: 24px 0;
  padding: 22px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.resumen-list dt { font-size: .82rem; font-weight: 700; color: var(--text-muted); }
.resumen-list dd { margin: 0; font-size: .92rem; color: #fff; white-space: pre-line; }
@media (max-width: 620px) {
  .resumen-list { grid-template-columns: 1fr; }
  .resumen-list dt { margin-top: 10px; }
  .resumen-list dt:first-of-type { margin-top: 0; }
}

/* Paso de éxito */
.success-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(42, 161, 171, .4);
}

/* Botón flotante — Solicitud de Arrendamiento (visible en toda la página) */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #a9822f);
  color: #1a1400;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(205, 164, 73, .45);
  animation: floating-cta-pulse 2.6s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 38px rgba(205, 164, 73, .55);
  color: #1a1400;
}
.floating-cta-icon { font-size: 1.25rem; line-height: 1; }
.floating-cta-text { white-space: nowrap; }

@keyframes floating-cta-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(205, 164, 73, .45), 0 0 0 0 rgba(205, 164, 73, .45); }
  50% { box-shadow: 0 10px 30px rgba(205, 164, 73, .45), 0 0 0 16px rgba(205, 164, 73, 0); }
}

@media (max-width: 600px) {
  .floating-cta { right: 16px; bottom: 16px; padding: 14px 18px; }
  .floating-cta-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-cta { animation: none; }
}

/* honeypot */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-weight: 600;
  font-size: .95rem;
}
.alert-success { background: rgba(42,161,171,.15); border: 1px solid var(--teal); color: #cdeff2; }
.alert-error { background: rgba(200,70,70,.15); border: 1px solid #c84646; color: #ffd9d9; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-item .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(42,161,171,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); flex-shrink: 0; font-size: 1.2rem;
}
.contact-item h4 { margin: 0 0 4px; font-size: .95rem; color: #fff; }
.contact-item p, .contact-item a { margin: 0; font-size: .92rem; color: var(--text-muted); }
.map-frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 380px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Modales (popups de Canon, Documentación, Solicitud) ---------- */
body.modal-open { overflow: hidden; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 6, .86);
  backdrop-filter: blur(3px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 700;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 920px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: modal-in .22s ease;
}
.modal-box.modal-narrow { max-width: 640px; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 2;
}
.modal-header h3 { margin: 0; font-size: 1.2rem; }
.modal-close {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease;
}
.modal-close:hover { background: rgba(200,70,70,.25); border-color: #c84646; }
.modal-body { padding: 28px; }
.modal-body-pdf iframe {
  width: 100%;
  height: 70vh;
  min-height: 420px;
  border: 0;
  border-radius: 10px;
  background: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0b0c;
  border-top: 1px solid var(--border);
  padding: 50px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 34px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a, .footer-grid p { color: var(--text-muted); font-size: .9rem; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
}

/* misc */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
