/* ==========================================================
   layout.css – Estilos base y estructura global AMID
   (variables, body, contenedor, main-content, footer,
    map card, botón WhatsApp flotante)
   ========================================================== */

/* ── Variables globales ─────────────────────────────────── */
:root {
  --amid-primary:       #2563eb;
  --amid-primary-dark:  #1d4ed8;
  --amid-secondary:     #06b6d4;
  --amid-accent:        #22c55e;
  --amid-ink:           #0f172a;
  --amid-muted:         #64748b;
  --amid-bg:            #f8fafc;
  --amid-card:          #ffffff;
  --amid-line:          #e2e8f0;
  --header-height:      150px;
  --site-max-width:     1900px;
  --site-pad-x:         22px;
}

/* ── Base ───────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 36%, #f1f5f9 100%);
  color: var(--amid-ink);
  overflow-x: hidden;
}

select:focus,
.form-select:focus {
  border-color: #047857 !important;
  box-shadow: 0 0 0 .25rem rgba(4, 120, 87, .18) !important;
  outline: none;
}

/* ── Contenedor principal ───────────────────────────────── */
.site-container {
  width: min(100% - (var(--site-pad-x) * 2), var(--site-max-width));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .site-container {
    padding-left:  1.25rem;
    padding-right: 1.25rem;
  }
}

/* ── Offset del contenido (compensa el header fijo) ─────── */
.main-content {
  padding-top:    calc(var(--header-height) + 18px);
  padding-bottom: 2rem;
}

@media (max-width: 767.98px) {
  :root {
    --header-height: 84px;
  }

  .main-content {
    padding-top: calc(var(--header-height) + 14px);
  }
}

/* ── Map card ───────────────────────────────────────────── */
.map-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--amid-line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.map-card-head {
  padding: 1rem 1rem .75rem;
  border-bottom: 1px solid #eef2f7;
}

.map-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--amid-ink);
}

.map-card-sub {
  margin: .2rem 0 0;
  color: var(--amid-muted);
  font-size: .94rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 14% 8%, rgba(125, 211, 252, .20), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(20, 184, 166, .16), transparent 32%),
    linear-gradient(
      115deg,
      rgba(12, 59, 130, .98) 0%,
      rgba(29, 78, 216, .96) 50%,
      rgba(14, 116, 144, .94) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 -12px 30px rgba(15, 23, 42, .06);
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: .85rem;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  opacity: .94;
}

.footer-link:hover {
  color: #d1fae5;
  text-decoration: underline;
  opacity: 1;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  text-decoration: none;
  padding: .45rem 0;
  opacity: .95;
}

.footer-social:hover {
  color: #d1fae5;
}

/* ── WhatsApp float button ──────────────────────────────── */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: #22c55e;
  color: #06240f;
  text-decoration: none;
  font-weight: 900;
  padding: .9rem 1rem;
  border-radius: 999px;
  box-shadow: 0 18px 32px rgba(34, 197, 94, .28);
  transition: transform .18s ease, filter .18s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  filter: brightness(.98);
  color: #06240f;
}

.whatsapp-float .label {
  display: none;
}

@media (min-width: 768px) {
  .whatsapp-float .label {
    display: inline;
  }
}
