/* ============================================================
         DESIGN SYSTEM TOKENS — Bastidas v0.2
      ============================================================ */
:root {
  /* Marca */
  --brand-700: #2f5d50;
  --brand-600: #3b7263;
  --brand-500: #4e8c7a;
  --brand-100: #dceae4;
  --brand-050: #f1f7f4;

  /* Tierra / cálido */
  --warm-600: #b8754c;
  --warm-700: #a05a31;
  --warm-300: #e8c9b0;
  --warm-100: #f6ede4;

  /* Acento confianza */
  --accent-500: #9f7e1b;

  /* Neutros */
  --ink-900: #1c2623;
  --ink-700: #3a4641;
  --ink-500: #616d69;
  --line-200: #e2e8e4;
  --ground: #ffffff;
  --ground-alt: #f7faf8;

  /* Semánticos */
  --success-600: #1f6b42;
  --warning-600: #8a6420;
  --danger-600: #b4453a;
  --info-600: #3b7263;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.25rem, 5vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-normal: 1.6;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --section-y: clamp(3rem, 8vw, 6rem);

  /* Radios */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm:
    0 1px 2px rgba(28, 38, 35, 0.06), 0 1px 3px rgba(28, 38, 35, 0.08);
  --shadow-md:
    0 4px 12px rgba(28, 38, 35, 0.08), 0 2px 4px rgba(28, 38, 35, 0.06);
  --shadow-lg:
    0 12px 32px rgba(28, 38, 35, 0.12), 0 4px 8px rgba(28, 38, 35, 0.06);

  --maxw-content: 1200px;
  --maxw-prose: 68ch;
}

/* ============================================================
         RESET + BASE
      ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink-900);
  background: var(--ground);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
         UTILS
      ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw-content);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
         BOTONES
      ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  min-height: 44px;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--brand-700);
  color: #fff;
  border-color: var(--brand-700);
}

.btn-primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--brand-700);
}

.btn-secondary:hover {
  background: var(--brand-050);
}

.btn-light {
  background: #fff;
  color: var(--brand-700);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--brand-100);
  border-color: var(--brand-100);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--ink-900); /* AA 7.84:1 — blanco sobre el verde WA daba 1.98 */
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: var(--fs-caption);
  min-height: 36px;
}

/* ============================================================
         SECTION HEADINGS
      ============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--ink-900);
  font-optical-sizing: auto;
}

.section-lead {
  font-size: var(--fs-lead);
  color: var(--ink-700);
  line-height: var(--lh-normal);
  max-width: 56ch;
}

/* ============================================================
         HEADER / NAV
      ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ground);
  border-bottom: 1px solid var(--line-200);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.logo__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--fw-semibold);
  color: var(--brand-700);
  letter-spacing: -0.01em;
}

.logo__tagline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: var(--fw-medium);
  color: var(--ink-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  transition:
    color 0.15s,
    background 0.15s;
  white-space: nowrap;
}

.site-nav__link:hover {
  color: var(--brand-700);
  background: var(--brand-050);
}

.site-nav__link:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

/* Active nav link */
.site-nav__link[aria-current="page"] {
  color: var(--brand-700);
  font-weight: var(--fw-semibold);
  background: var(--brand-050);
}

.site-header__cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 38, 35, 0.55);
  backdrop-filter: blur(2px);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 90vw);
  background: var(--ground);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  gap: var(--space-4);
  overflow-y: auto;
}

.mobile-nav__close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--ink-700);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__close:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.mobile-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav__list a {
  display: block;
  padding: 0.875rem var(--space-4);
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--ink-700);
  border-radius: var(--radius-md);
  transition:
    background 0.15s,
    color 0.15s;
}

.mobile-nav__list a:hover {
  background: var(--brand-050);
  color: var(--brand-700);
}

.mobile-nav__list a[aria-current="page"] {
  background: var(--brand-050);
  color: var(--brand-700);
  font-weight: var(--fw-semibold);
}

.mobile-nav__cta {
  margin-top: var(--space-4);
}

.mobile-nav__cta .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
         HERO DE CONTACTO (corto)
      ============================================================ */
.contact-hero {
  background: var(--ground-alt);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line-200);
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 80% 50%,
    rgba(78, 140, 122, 0.07) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 760px;
}

.contact-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-caption);
  color: var(--ink-500);
}

.contact-hero__breadcrumb a {
  color: var(--brand-600);
  font-weight: var(--fw-medium);
  transition: color 0.15s;
}

.contact-hero__breadcrumb a:hover {
  color: var(--brand-700);
}

.contact-hero__breadcrumb span {
  color: var(--line-200);
}

.contact-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--ground);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.875rem;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
  max-width: fit-content;
}

.contact-hero__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  flex-shrink: 0;
}

.contact-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--ink-900);
  font-optical-sizing: auto;
}

.contact-hero__title em {
  color: var(--brand-700);
  font-style: italic;
}

.contact-hero__lead {
  font-size: var(--fs-lead);
  color: var(--ink-700);
  line-height: var(--lh-normal);
  max-width: 52ch;
}

.contact-hero__trust {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--ground);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: fit-content;
}

.contact-hero__trust-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.contact-hero__trust-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.contact-hero__trust-name {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
}

/* ============================================================
   HERO CON IMAGEN — chica a la izquierda, texto a la DERECHA.
   Overlay invertido: oscuro a la derecha (texto legible),
   transparente a la izquierda (se ve la persona).
============================================================ */
.contact-hero--image {
  background: var(--brand-700);
  min-height: 460px;
  display: flex;
  align-items: center;
}
.contact-hero--image::before {
  display: none;
}
.contact-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.contact-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(47, 93, 80, 0.12) 0%,
    rgba(47, 93, 80, 0.5) 30%,
    rgba(26, 36, 32, 0.95) 58%,
    rgba(26, 36, 32, 0.97) 100%
  );
}
.contact-hero--image .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
/* Texto a la derecha para no taparle la cara a la persona. Bloque acotado y
   empujado a la derecha (sobre la zona oscura del overlay) para legibilidad. */
.contact-hero--image .contact-hero__inner {
  margin-left: auto;
  max-width: 540px;
  text-align: left;
}
.contact-hero--image .contact-hero__lead {
  max-width: none;
}
.contact-hero--image .contact-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}
.contact-hero--image .contact-hero__breadcrumb a:hover {
  color: #fff;
}
.contact-hero--image .contact-hero__breadcrumb span {
  color: rgba(255, 255, 255, 0.45);
}
.contact-hero--image .contact-hero__title {
  color: #fff;
}
.contact-hero--image .contact-hero__title em {
  color: var(--brand-100);
}
.contact-hero--image .contact-hero__lead {
  color: rgba(255, 255, 255, 0.9);
}

.contact-hero__trust-colegiado {
  font-size: var(--fs-caption);
  color: var(--warm-700);
  font-weight: var(--fw-medium);
}

/* ============================================================
         MAIN CONTACT LAYOUT
      ============================================================ */
.contact-main {
  padding-block: var(--section-y);
  background: var(--ground);
}

.contact-main__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-16);
  align-items: start;
}

/* ============================================================
         FORM COLUMN
      ============================================================ */
.contact-form-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-form-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  /* Aire generoso entre campos para que el formulario respire. */
  gap: var(--space-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-field {
  display: flex;
  flex-direction: column;
  /* Separación clara etiqueta ↔ campo. */
  gap: var(--space-3);
}

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

.form-label {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.form-label__required {
  color: var(--danger-600);
  font-size: 0.8rem;
  line-height: 1;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink-900);
  background: var(--ground);
  border: 1.5px solid var(--line-200);
  border-radius: var(--radius-md);
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-500);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--brand-500);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(59, 114, 99, 0.14);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: var(--lh-normal);
}

/* Select con flecha personalizada */
.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--ink-500);
  pointer-events: none;
}

.form-select {
  cursor: pointer;
  padding-right: 2.5rem;
}

/* Checkbox RGPD */
.form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-md);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-checkbox__input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid var(--line-200);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--ground);
  cursor: pointer;
  margin-top: 1px;
  transition:
    background 0.15s,
    border-color 0.15s;
  position: relative;
}

.form-checkbox__input:checked {
  background: var(--brand-700);
  border-color: var(--brand-700);
}

.form-checkbox__input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 8px;
  height: 11px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-checkbox__input:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.form-checkbox__label {
  font-size: var(--fs-small);
  color: var(--ink-700);
  line-height: var(--lh-normal);
}

.form-checkbox__label a {
  color: var(--brand-700);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-checkbox__label a:hover {
  color: var(--brand-600);
}

/* Hint de privacidad */
.form-privacy-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-caption);
  color: var(--ink-500);
}

/* Submit */
.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: var(--fs-body);
  min-height: 54px;
}

.form-alt-contact {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--ink-500);
}

.form-alt-contact a {
  color: var(--brand-700);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
         INFO COLUMN
      ============================================================ */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* WhatsApp CTA card */
.whatsapp-card {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.whatsapp-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: #25d366;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.whatsapp-card__title {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: #166534;
}

.whatsapp-card__desc {
  font-size: var(--fs-caption);
  color: #15803d;
  line-height: var(--lh-normal);
}

/* Contact data card */
.contact-data-card {
  background: var(--ground);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-data-card__title {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-200);
}

.contact-data-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line-200);
}

.contact-data-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-data-item__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-700);
  margin-top: 1px;
}

.contact-data-item__content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-data-item__label {
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--ink-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-data-item__value {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--ink-900);
  line-height: var(--lh-snug);
}

.contact-data-item__value a {
  color: var(--brand-700);
  transition: color 0.15s;
}

.contact-data-item__value a:hover {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-data-item__value--schedule {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ============================================================
         MAP PLACEHOLDER
      ============================================================ */
/* Mapa real de Google Maps embebido + footer con "Cómo llegar" */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-200);
  box-shadow: var(--shadow-sm);
  background: var(--brand-050);
  display: flex;
  flex-direction: column;
  position: relative;
}

.map-embed__frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.map-embed__footer {
  padding: var(--space-4) var(--space-6);
  background: var(--ground);
  border-top: 1px solid var(--line-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.map-embed__footer-info {
  font-size: var(--fs-caption);
  color: var(--ink-500);
}

.map-embed__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: #fff;
  background: var(--brand-700);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill, 999px);
  transition: background 0.15s;
  white-space: nowrap;
}

.map-embed__link:hover {
  background: var(--brand-600);
}

.map-embed__link:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

/* ============================================================
         CTA BAND
      ============================================================ */
.cta-band {
  background: var(--brand-700);
  padding-block: var(--space-16);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 50%,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-band__inner {
  text-align: center;
  position: relative;
}

.cta-band__label {
  display: inline-block;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-100);
  margin-bottom: var(--space-4);
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: var(--lh-snug);
  margin-bottom: var(--space-6);
  font-optical-sizing: auto;
}

.cta-band__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}

/* ============================================================
         FOOTER
      ============================================================ */
.site-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.65);
  padding-block: var(--space-12) var(--space-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-col__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-col__logo-icon {
  width: 34px;
  height: 34px;
}

.footer-col__logo-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: #fff;
  font-optical-sizing: auto;
}

.footer-col__desc {
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-4);
}

.footer-col__colegiado {
  font-size: var(--fs-caption);
  color: var(--warm-300);
  font-weight: var(--fw-medium);
}

.footer-col__title {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: #fff;
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
}

.footer-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col__list a {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
}

.footer-col__list a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-3);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-500);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s;
}

.footer-contact-item a:hover {
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.site-footer__copyright {
  font-size: var(--fs-caption);
}

.site-footer__legal {
  display: flex;
  gap: var(--space-4);
}

.site-footer__legal a {
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s;
}

.site-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
         WHATSAPP FLOAT
      ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 300;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.4),
    var(--shadow-md);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  color: #fff;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.5),
    var(--shadow-lg);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #128c7e;
  outline-offset: 3px;
}

/* ============================================================
         RESPONSIVE — TABLET (max 900px)
      ============================================================ */
@media (max-width: 900px) {
  .contact-main__grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .contact-info-col {
    order: -1;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
         RESPONSIVE — MOBILE (max 600px)
      ============================================================ */
@media (max-width: 600px) {
  .container {
    padding-inline: var(--space-4);
  }
  /* SEM-202: consistencia con SEM-201 — ocultar el CTA del header en
           móvil (se cortaba junto al logo). Reserva accesible vía menú móvil. */
  .site-header__cta {
    display: none;
  }

  .whatsapp-card {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-card .btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band__buttons {
    flex-direction: column;
  }

  .cta-band__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .map-embed__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* ============================================================
   FACADE RGPD DEL MAPA — placeholder pre-consentimiento
   (el iframe de Google solo se inyecta tras el clic del usuario)
============================================================ */
.map-embed__consent {
  flex: 1;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-8);
  text-align: center;
  background: var(--brand-050);
  color: var(--brand-700);
}
.map-embed__consent-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4, 1.15rem);
  color: var(--ink-900);
}
.map-embed__consent-note {
  font-size: var(--fs-small);
  color: var(--ink-700);
  line-height: var(--lh-normal);
  max-width: 44ch;
}

/* ============================================================
   FORMULARIO — aviso de resultado (PRG) y honeypot
============================================================ */
.form-notice {
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-normal);
}
.form-notice--ok {
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
}
.form-notice--error {
  background: #fdecea;
  border: 1px solid #f5c6c0;
  color: #a3271a;
}
/* Honeypot: fuera del flujo visual, presente para bots. */
.form-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
