/* ============================================
   M&B PROPERTY MANAGEMENT — STYLES
   ============================================ */

:root {
  --navy:       #1B2A4A;
  --navy-dark:  #111d35;
  --navy-light: #243558;
  --gold:       #C9A96E;
  --gold-dark:  #b8924d;
  --cream:      #F8F7F4;
  --cream-dark: #EFEDE8;
  --white:      #FFFFFF;
  --text:       #2D2D2D;
  --text-light: #6B7280;
  --border:     #E5E0D8;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== CONTAINER ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SECTION ===== */
.section { padding: 96px 0; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title--left { text-align: left; }

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

.text-accent { color: var(--gold); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}
.btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,169,110,.35); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn--full { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: transparent;
  box-shadow: none;
  transition: background .35s ease, padding .3s ease, box-shadow .35s ease;
}

.navbar:hover,
.navbar.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 16px rgba(0,0,0,.07);
}

.navbar.scrolled {
  padding: 10px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__logo-img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: height .3s ease, filter .35s ease;
}

.navbar:hover .navbar__logo-img,
.navbar.scrolled .navbar__logo-img {
  filter: none;
  height: 52px;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar__link {
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--white);
  transition: color var(--transition);
  position: relative;
}

.navbar:hover .navbar__link,
.navbar.scrolled .navbar__link {
  color: var(--navy);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.navbar__link:hover { color: var(--gold); }
.navbar__link:hover::after { width: 100%; }

.navbar__link--cta {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,.6);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition);
}

.navbar:hover .navbar__link--cta,
.navbar.scrolled .navbar__link--cta {
  background: var(--gold);
  color: var(--navy) !important;
  border-color: var(--gold);
}
.navbar__link--cta::after { display: none; }
.navbar__link--cta:hover { background: var(--gold-dark); transform: translateY(-1px); }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.navbar:hover .navbar__hamburger span,
.navbar.scrolled .navbar__hamburger span {
  background: var(--navy);
}
.navbar__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.active span:nth-child(2) { opacity: 0; }
.navbar__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,18,35,.55) 0%,
    rgba(10,18,35,.3) 50%,
    rgba(10,18,35,.65) 100%
  );
  z-index: 1;
}

.hero__content-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero__accent { color: var(--gold); }

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-indicator span {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: .3; }
}

/* ===== STATS ===== */
.stats {
  background: var(--navy);
  padding: 40px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  background: var(--navy);
  text-align: center;
  gap: 6px;
  transition: background var(--transition);
}

.stat-item:hover { background: var(--navy-light); }

.stat-item__number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-item__label {
  font-size: .8125rem;
  color: rgba(255,255,255,.65);
  font-weight: 400;
}

/* ===== SERVICIOS ===== */
.servicios { background: var(--cream); }

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition:
    transform .4s cubic-bezier(.34,1.2,.64,1),
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  will-change: transform;
}

/* Línea dorada inferior */
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(201,169,110,.4));
  transition: width .4s ease;
  z-index: 2;
}

/* Brillo superior (glass highlight) */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}

/* Hover en la card */
.service-card:hover {
  background: var(--navy);
  border-color: rgba(201,169,110,.55);
  box-shadow: 0 12px 40px rgba(27,42,74,.16);
  transform: translateY(-6px) scale(1.02);
}
.service-card:hover .service-card__title { color: var(--gold); }
.service-card:hover .service-card__text  { color: rgba(255,255,255,.7); }
.service-card:hover .service-card__icon  { background: rgba(201,169,110,.22); box-shadow: 0 0 0 4px rgba(201,169,110,.1); }
.service-card:hover::before { width: 100%; }
.service-card:hover::after  { opacity: 1; }



.service-card--featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fff 0%, #fdf9f4 100%);
}

.service-card__icon {
  width: 48px; height: 48px;
  background: rgba(201,169,110,.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background .35s ease, box-shadow .35s ease;
}

.service-card__icon svg {
  width: 24px; height: 24px;
  color: var(--gold);
  stroke: var(--gold);
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color .35s ease;
}

.service-card__text {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.65;
  transition: color .35s ease;
}

/* ===== NOSOTROS ===== */
.nosotros { background: var(--white); position: relative; overflow: hidden; }

.nosotros__bg-logo {
  position: absolute;
  left: -120px;
  bottom: -80px;
  width: 500px;
  height: 500px;
  object-fit: contain;
  opacity: .04;
  pointer-events: none;
  user-select: none;
}

.nosotros__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.nosotros__text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 36px;
}

.nosotros__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature__icon {
  width: 28px; height: 28px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature__title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.feature__text {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.6;
}

.nosotros__visual {
  display: flex;
  justify-content: center;
}

.nosotros__card-stack {
  position: relative;
  width: 340px;
  height: 280px;
}

.nosotros__card {
  position: absolute;
  width: 100%;
  border-radius: var(--radius-lg);
}

.nosotros__card--back {
  height: 260px;
  background: var(--cream-dark);
  top: 20px;
  left: 20px;
  border: 1px solid var(--border);
}

.nosotros__card--front {
  height: 260px;
  background: var(--navy);
  top: 0; left: 0;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.nosotros__card-icon svg {
  width: 40px; height: 40px;
  stroke: var(--gold);
  margin-bottom: 16px;
}

.nosotros__card-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}

.nosotros__card-author {
  font-size: .8125rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 16px;
}

/* ===== COBERTURA ===== */
.cobertura { background: var(--cream); }

.cobertura__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.zona-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

/* Cards blancas → hover crema/dorado */
.zona-card:not(.zona-card--featured):hover {
  background: var(--cream-dark);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 48px rgba(27,42,74,.18);
  border-color: rgba(201,169,110,.6);
}
.zona-card:not(.zona-card--featured):hover .zona-card__name { color: var(--gold); }
.zona-card:not(.zona-card--featured):hover .zona-card__desc { color: var(--text); }
.zona-card:not(.zona-card--featured):hover .zona-card__icon { background: rgba(201,169,110,.2); }
.zona-card:not(.zona-card--featured):hover .zona-card__icon svg { stroke: var(--gold); }

/* Card azul destacada → hover blanco */
.zona-card--featured:hover {
  background: var(--white);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 48px rgba(27,42,74,.18);
  border-color: rgba(201,169,110,.6);
}
.zona-card--featured:hover .zona-card__name { color: var(--gold); }
.zona-card--featured:hover .zona-card__desc { color: var(--text-light); }
.zona-card--featured:hover .zona-card__icon { background: rgba(201,169,110,.15); }
.zona-card--featured:hover .zona-card__icon svg { stroke: var(--navy); }

.zona-card--featured {
  background: var(--navy);
  border-color: var(--navy);
}

.zona-card--featured .zona-card__icon svg { stroke: var(--gold); }
.zona-card--featured .zona-card__name { color: var(--white); }
.zona-card--featured .zona-card__desc { color: rgba(255,255,255,.7); }

.zona-card__badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.zona-card__icon {
  width: 64px; height: 64px;
  background: rgba(201,169,110,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.zona-card--featured .zona-card__icon { background: rgba(201,169,110,.15); }

.zona-card__icon svg { width: 28px; height: 28px; stroke: var(--navy); }

.zona-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.zona-card__desc {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== CONTACTO ===== */
.contacto {
  background: var(--white);
}

.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contacto__text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  margin: 20px 0 36px;
}

.contacto__datos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacto__dato {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contacto__dato-icon {
  width: 40px; height: 40px;
  background: rgba(201,169,110,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacto__dato-icon svg { width: 18px; height: 18px; stroke: var(--gold); }

.contacto__dato-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contacto__dato-value {
  font-size: .9375rem;
  color: var(--navy);
  font-weight: 500;
}

/* ===== FORM ===== */
.contacto__form-wrapper {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }
.form-row .form-group { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}

.form-input::placeholder { color: #bbb; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-sm);
  color: #065f46;
  font-size: .9rem;
  font-weight: 500;
}

.form-error {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: .9rem;
}

.hidden { display: none !important; }

/* ===== FOOTER ===== */
.footer { background: var(--navy-dark); padding: 64px 0 0; }

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__logo-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.footer__logo { height: 56px; width: auto; display: block; }

.footer__tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  max-width: 240px;
}

.footer__heading {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer__link:hover { color: var(--white); }

.footer__bottom {
  padding: 20px 0;
}

.footer__copy {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nosotros__inner { grid-template-columns: 1fr; gap: 48px; }
  .nosotros__visual { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .navbar__nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 8px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,.12);
    z-index: 99;
  }

  .navbar__nav.open { right: 0; }

  .navbar__link {
    font-size: 1.0625rem;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .navbar__link--cta {
    margin-top: 16px;
    text-align: center;
    width: 100%;
  }

  .navbar__hamburger { display: flex; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .servicios__grid { grid-template-columns: 1fr; }

  .cobertura__grid { grid-template-columns: 1fr; }

  .contacto__inner { grid-template-columns: 1fr; gap: 48px; }

  .form-row { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }

  .hero__content-wrap { padding-top: 120px; padding-bottom: 80px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .contacto__form-wrapper { padding: 24px; }
  .nosotros__card-stack { width: 100%; }
}

/* ===== ZONA CARDS CTA ===== */
.cobertura__hint {
  text-align: center;
  font-size: .8125rem;
  color: var(--text-light);
  margin-bottom: 24px;
  margin-top: -40px;
  letter-spacing: .04em;
}

.zona-card__cta {
  display: block;
  margin-top: 16px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .04em;
  transition: letter-spacing var(--transition);
}

.zona-card:hover .zona-card__cta { letter-spacing: .08em; }

.zona-card__cta--light { color: rgba(255,255,255,.7); }
.zona-card--featured:hover .zona-card__cta--light { color: var(--gold); }

/* ===== MODAL MAPA ===== */
.mapa-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.mapa-modal.active {
  opacity: 1;
  pointer-events: all;
}

.mapa-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,29,53,.75);
  backdrop-filter: blur(4px);
}

.mapa-modal__content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  overflow: hidden;
  transform: translateY(20px) scale(.97);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.mapa-modal.active .mapa-modal__content {
  transform: translateY(0) scale(1);
}

.mapa-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
}

.mapa-modal__eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.mapa-modal__titulo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.mapa-modal__desc {
  font-size: .875rem;
  color: var(--text-light);
  margin-top: 4px;
}

.mapa-modal__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
  margin-left: 16px;
}

.mapa-modal__close:hover { background: var(--cream-dark); }
.mapa-modal__close svg { width: 16px; height: 16px; stroke: var(--navy); }

.mapa-modal__map {
  background: var(--cream);
  padding: 20px 32px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mapa-modal__legend {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--text-light);
}

.legend-dot {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .mapa-modal__map { height: 280px; padding: 16px; }
  .mapa-modal__header { padding: 20px; }
  .mapa-modal__legend { padding: 14px 20px; gap: 16px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp .5s ease both;
}

.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }
