/* ===================================================
   RESIDENCIAL SOL NACIENTE — Estilos v2.1 Mobile-First
   =================================================== */

:root {
  --naranja:        #F97316;
  --naranja-dark:   #C2570B;
  --naranja-light:  #FFF7ED;
  --dorado:         #F59E0B;
  --oscuro:         #1C1917;
  --carbon:         #292524;
  --gris:           #44403C;
  --gris-medio:     #78716C;
  --gris-claro:     #A8A29E;
  --borde:          #E7E5E4;
  --fondo:          #FAFAF9;
  --blanco:         #FFFFFF;
  --verde:          #16A34A;
  --verde-light:    #DCFCE7;
  --rojo-light:     #FEE2E2;
  --amarillo-light: #FEF3C7;
  --gris-light:     #F5F5F4;
  --azul:           #2563EB;
  --sombra:         0 4px 20px rgba(0,0,0,.09);
  --sombra-lg:      0 12px 48px rgba(0,0,0,.13);
  --radio:          12px;
  --radio-lg:       20px;
  --t:              all 0.25s ease;
  --linea-divisoria: #E7E5E4;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  background-color: var(--fondo);
  background-image: url(../imagenes/SOL\ NACIENTE\ FONDO_TELEFONO.jpg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll; /* scroll en móvil — fixed rompe iOS */
  color: var(--gris);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--oscuro);
  line-height: 1.25;
}

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

/* ── HEADER ─────────────────────────────────────── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  height: 60px;
  background: rgba(249, 115, 22, 0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.header .logo > span {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-nav { display: none; } /* oculto en móvil */

/* ── BOTÓN HAMBURGER ────────────────────────────── */
.hamburger-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
  border: none;
  font-size: 1.4rem;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── MENÚ MÓVIL ─────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 78%;
  max-width: 300px;
  height: 100%;
  background: var(--blanco);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 32px rgba(0,0,0,.14);
}
.mobile-nav.is-active { transform: translateX(0); }

.mobile-nav a {
  display: block;
  text-decoration: none;
  color: var(--gris);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.55rem 1.5rem;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  transition: var(--t);
}
.mobile-nav a:hover,
.mobile-nav a:active { background: var(--fondo); color: var(--naranja); }

.mobile-nav .btn-primary { color: #fff; margin-top: 0.75rem; }

.close-btn {
  position: absolute;
  top: 0.875rem;
  right: 1rem;
  background: var(--fondo);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gris);
  cursor: pointer;
}

/* ── BOTÓN PRIMARIO ─────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--naranja);
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--naranja-dark); }
.btn-primary:active { transform: scale(0.97); }

/* ── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 55vmax;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1.25rem 5rem;
  color: #fff;
}


.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,25,23,.88) 0%, rgba(28,25,23,.5) 60%, transparent 100%);
  z-index: 1;
}

.hero > * { position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--dorado);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dorado);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(1.6rem, 6vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  max-width: 600px;
}
.hero h1 em {
  font-style: normal;
  color: var(--dorado);
}

.hero .hero-sub {
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  color: rgba(255,255,255,.8);
  margin: 0 0 1.5rem;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }

.hero-stats {
  display: none; /* oculto en móvil, se muestra en desktop */
  position: absolute;
  bottom: 1.75rem;
  right: 2.5rem;
  gap: 2rem;
  z-index: 2;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.6);
}

/* ── MAPA + PANEL ───────────────────────────────── */
.mapa {
  padding: 1rem;
}
.mapa .section-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.map-wrapper {
  width: 100%;
  height: 400px;
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-lg);
  flex-shrink: 0;
}

#map {
  position: absolute;
  inset: 0;
}

.loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250,250,249,.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.spinner {
  border: 3px solid rgba(0,0,0,.08);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border-left-color: var(--naranja);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.search-overlay,
.legend-overlay {
  position: absolute;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sombra);
  border-radius: 10px;
  z-index: 10;
  padding: 9px 12px;
}
.search-overlay {
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 28px);
}
.search-overlay i { color: var(--gris-claro); font-size: 0.9rem; flex-shrink: 0; }
.search-overlay input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  width: 140px;
  min-width: 0;
  color: var(--oscuro);
}
.search-overlay input::placeholder { color: var(--gris-claro); }

.legend-overlay { bottom: 62px; left: 14px; }
.legend-overlay h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gris-medio);
  margin-bottom: 7px;
}
.legend-overlay ul { list-style: none; }
.legend-overlay li {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 4px;
  color: var(--gris);
  font-weight: 500;
}
.legend-overlay li:last-child { margin-bottom: 0; }
.legend-color {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  margin-right: 7px;
  flex-shrink: 0;
}

/* ── PANEL ──────────────────────────────────────── */
.panel {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra-lg);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel h2 {
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gris-medio);
  border-bottom: 1px solid var(--borde);
  background: var(--fondo);
}

.panel #panel-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--borde);
}

.panel .panel-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 140px;
  text-align: center;
  gap: 8px;
}
.panel .panel-placeholder i {
  font-size: 2rem;
  color: var(--borde);
}
.panel .panel-placeholder strong {
  font-size: 0.88rem;
  color: var(--gris-medio);
}

.panel-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid #F5F5F4;
  font-size: 0.88rem;
  gap: 8px;
}
.panel-detail-item:last-child { border-bottom: none; }
.panel-detail-item > span:first-child {
  color: var(--gris-claro);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.panel-detail-item strong {
  color: var(--oscuro);
  font-weight: 600;
  text-align: right;
}

/* Estado badge */
.estado-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.estado-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.estado-disponible    { background: var(--verde-light); color: var(--verde); }
.estado-disponible::before { background: var(--verde); }
.estado-vendido       { background: var(--rojo-light); color: #DC2626; }
.estado-vendido::before    { background: #DC2626; }
.estado-reservado     { background: var(--amarillo-light); color: #B45309; }
.estado-reservado::before  { background: #D97706; }
.estado-no-disponible { background: transparent; color: var(--gris-medio); border: 1px solid var(--gris-claro); }
.estado-no-disponible::before { background: transparent; border: 1px solid var(--gris-claro); }
.estado-habitado      { background: var(--gris-light); color: var(--gris-medio); }
.estado-habitado::before     { background: #808080; }

.panel-description {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--linea-divisoria);
}
.panel-description h4,
.panel-colindancias h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gris-medio);
  margin-bottom: 0.3rem;
}
.panel-description p {
  font-size: 0.86rem;
  color: var(--gris);
  line-height: 1.55;
}

.panel-colindancias {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--linea-divisoria);
}
.colindancias-list { display: flex; flex-direction: column; gap: 4px; }
.colindancia-row { display: flex; align-items: baseline; gap: 8px; font-size: 0.84rem; }
.col-dir {
  font-weight: 700;
  min-width: 46px;
  color: var(--naranja-dark);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.col-val { color: var(--gris); line-height: 1.4; }

.panel-footer { padding: 1rem 1.25rem; }

/* Mini-mapa */
#mini-map-container {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  margin-bottom: 0.875rem;
  background: var(--gris-light);
  overflow: hidden;
}
#mini-map-container .mapboxgl-ctrl-bottom-left,
#mini-map-container .mapboxgl-ctrl-bottom-right { display: none; }

/* Popup */
.custom-popup .mapboxgl-popup-content {
  font-family: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: var(--sombra-lg);
  width: 210px;
  border-top: 3px solid var(--naranja);
}
.custom-popup .popup-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--oscuro);
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--borde);
}
.custom-popup .popup-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--gris);
}
.custom-popup .popup-row strong { color: var(--oscuro); }
.custom-popup .mapboxgl-popup-tip { display: none; }

/* ── BENEFICIOS ─────────────────────────────────── */
.beneficios {
  padding: 3rem 1rem;
  text-align: center;
}
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--naranja);
  margin-bottom: 0.5rem;
}
.beneficios h2 {
  font-size: clamp(1.4rem, 5vw, 2rem);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  max-width: 960px;
  margin: 0 auto;
}

.card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 1.25rem 1rem;
  box-shadow: var(--sombra);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--borde);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--naranja), var(--dorado));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sombra-lg); }
.card:hover::before { opacity: 1; }

.card-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--naranja-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
}
.card .card-icon { font-size: 1.3rem; color: var(--naranja); }
.card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.card p { color: var(--gris-medio); font-size: 0.85rem; line-height: 1.55; }

/* ── CTA ────────────────────────────────────────── */
.cta-wrap {
  padding: 0 1rem 3rem;
}
.cta {
  background: var(--oscuro);
  background-image: linear-gradient(135deg, #1C1917 0%, #292524 60%, #3A1E0F 100%);
  color: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--radio);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--sombra-lg);
}
.cta-text h2 { color: #fff; font-size: clamp(1.25rem, 5vw, 1.75rem); margin-bottom: 0.4rem; }
.cta-text p { font-size: 0.9rem; opacity: 0.75; }
.cta .btn-primary { font-size: 0.92rem; padding: 0.75rem 1.4rem; }
.cta .btn-primary:hover { background: var(--dorado); }

/* ── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--carbon);
  color: rgba(255,255,255,.65);
  padding: 2rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.footer .logo .logo-img { height: 38px; }

.footer .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}
.footer .links a {
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: rgba(255,255,255,.5);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--t);
}
.footer .links a:hover { color: #fff; background: rgba(255,255,255,.07); }

.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.Contacto-form {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.38);
}
.social-links .icons { display: flex; gap: 8px; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--t);
}
.social-links a:hover { background: var(--naranja); color: #fff; transform: translateY(-2px); }

.logo-empresa {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.logo-empresa span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.32);
}
.logo-empresa img { height: 28px; opacity: 0.6; transition: var(--t); }
.logo-empresa img:hover { opacity: 1; }

.footer > p {
  font-size: 0.8rem;
  color: rgba(255,255,255,.28);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.07);
  width: 100%;
  text-align: center;
}

/* ── MODAL ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1rem;
}
.modal-content {
  position: relative;
  background: var(--oscuro);
  padding: 5px;
  border-radius: 14px;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.modal-close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--naranja);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 10px;
  overflow: hidden;
}
.video-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ════════════════════════════════════════════════
   RESPONSIVE — Escala hacia arriba (mobile-first)
   ════════════════════════════════════════════════ */

/* Tablet pequeña (≥ 540px) */
@media (min-width: 540px) {
  .header { padding: 0 1.5rem; }
  .header .logo > span { font-size: 1.1rem; }
  .logo-img { height: 44px; }

  .hero { padding: 2.5rem 2rem 5rem; }

  .mapa { padding: 1.25rem; }
  .map-wrapper { height: 460px; }

  .beneficios { padding: 3.5rem 1.5rem; }
  .grid { gap: 1rem; }
  .card { padding: 1.5rem 1.25rem; }

  .cta-wrap { padding: 0 1.25rem 3rem; }
}

/* Tablet (≥ 768px) */
@media (min-width: 768px) {
  .header { height: 68px; padding: 0 2rem; }
  .header .logo > span { font-size: 1.2rem; }
  .logo-img { height: 48px; }

  .hero { padding: 3rem 3rem 5rem; max-height: 580px; }

  .mapa { padding: 1.5rem 2rem; }
  .map-wrapper { height: 520px; border-radius: var(--radio-lg); }

  .search-overlay input { width: 180px; }

  .beneficios { padding: 4rem 2rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .card { padding: 1.75rem 1.5rem; }
  .card h3 { font-size: 1rem; }

  .cta-wrap { padding: 0 2rem 3.5rem; }
  .cta { padding: 2.5rem 2.5rem; }

  .footer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    padding: 2.5rem 2rem 1.5rem;
    gap: 1.5rem;
  }
  .footer .logo { justify-content: flex-start; }
  .footer .links { justify-content: flex-start; }
  .social-links { align-items: flex-start; }
  .social-links .icons { justify-content: flex-start; }
  .logo-empresa { align-items: flex-end; }
  .footer > p { margin-top: 0.5rem; }
}

/* Desktop pequeño (≥ 900px) */
@media (min-width: 900px) {
  /* Mostrar nav de escritorio */
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .hamburger-menu { display: none; }

  .header { height: 72px; padding: 0 2.5rem; }
  .header .logo > span { font-size: 1.25rem; }
  .logo-img { height: 52px; }

  .header .desktop-nav a {
    padding: 0.5rem 0.9rem;
    text-decoration: none;
    color: rgba(255,255,255,.88);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: var(--t);
  }
  .header .desktop-nav a:hover { color: #fff; background: rgba(255,255,255,.15); }
  .header .desktop-nav a.btn-primary {
    background: #fff;
    color: var(--naranja-dark);
    font-weight: 700;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
  }
  .header .desktop-nav a.btn-primary:hover { background: var(--oscuro); color: #fff; }

  /* Hero con stats */
  .hero { min-height: 50vh; max-height: 600px; }
  .hero-stats { display: flex; }

  /* Mapa: lado a lado */
  .mapa { padding: 2rem 2.5rem; }
  .mapa .section-inner { flex-direction: row; align-items: flex-start; }
  .map-wrapper { height: 600px; flex: 1; }
  .panel {
    width: clamp(300px, 25vw, 360px);
    flex-shrink: 0;
    max-height: 600px;
    border-radius: var(--radio-lg);
  }
  .panel h2 { padding: 1.25rem 1.5rem; font-size: 0.85rem; }
  .panel #panel-content { padding: 1.25rem 1.5rem; }
  .panel-footer { padding: 1.1rem 1.5rem; }
  #mini-map-container { height: 175px; }

  .beneficios { padding: 5rem 2.5rem; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .card { padding: 2rem 1.5rem; }
  .card h3 { font-size: 1.05rem; }

  .cta-wrap { padding: 0 2.5rem 4rem; }
  .cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 3.5rem;
    border-radius: var(--radio-lg);
  }

  .footer {
    padding: 3rem 3rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.5rem 2.5rem;
    align-items: start;
  }
  .footer .logo  { grid-column: 1; }
  .footer .links { grid-column: 2; padding-top: 2px; }
  .social-links  { grid-column: 3; }
  .logo-empresa  { grid-column: 4; }
  .footer > p    { grid-column: 1 / -1; }
}

/* Desktop mediano (≥ 1200px) */
@media (min-width: 1200px) {
  body {
    background-image: url(../imagenes/SOL\ NACIENTE\ FONDO_ORDENADOR.jpg);
    background-attachment: fixed;
  }

  .header { padding: 0 3.5rem; }

  .hero { padding: 3.5rem 4rem 5rem; }
  .hero-stat-num { font-size: 1.8rem; }

  .mapa { padding: 2rem 3.5rem; }
  .map-wrapper { height: 640px; }
  .panel { max-height: 640px; width: 360px; }

  .beneficios { padding: 5rem 3.5rem; }
  .cta-wrap { padding: 0 3.5rem 4.5rem; }
  .cta { padding: 3.5rem 4rem; }

  .footer { padding: 3.5rem 4rem 2rem; gap: 1.5rem 3rem; }

  .search-overlay input { width: 200px; }
}

/* Desktop grande (≥ 1400px) — centrar contenido */
@media (min-width: 1400px) {
  .header { padding: 0 max(3.5rem, calc((100vw - 1360px) / 2)); }

  .mapa { padding: 2rem max(3.5rem, calc((100vw - 1360px) / 2)); }

  .beneficios {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
  .cta-wrap {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer { padding: 3.5rem max(4rem, calc((100vw - 1360px) / 2)) 2rem; }
}
