/* =======================================================
   SECCIÓN MAPA LRPD – DISEÑO LIMPIO
   Todas las clases empiezan con lrpd-map- para no chocar con nada.
   ======================================================= */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: radial-gradient(
    circle at top,
    #ffffff 0%,
    #f9fafb 40%,
    #e5e7eb 100%
  );
  color: #111827;
}

/* CONTENEDOR GENERAL DE LA SECCIÓN */
.lrpd-map-section {
  padding: 80px 16px;
}

.lrpd-map-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
}

/* =========================
   COLUMNA TEXTO
   ========================= */

.lrpd-map-info {
  padding: 8px 4px;
}

.lrpd-map-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.02);
  border: 1px solid rgba(209, 213, 219, 0.95);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4b5563;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.lrpd-map-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.9), 0 0 14px rgba(34, 197, 94, 0.7);
}

.lrpd-map-title {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 2.3vw + 1.2rem, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #020617;
}

.lrpd-map-title-highlight {
  position: relative;
  display: inline-block;
}

.lrpd-map-title-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.1em;
  width: 100%;
  height: 0.5em;
  background: linear-gradient(
    to right,
    rgba(15, 15, 15, 0.03),
    rgba(15, 23, 42, 0.16),
    rgba(15, 15, 15, 0.03)
  );
  border-radius: 999px;
  z-index: -1;
}

.lrpd-map-lead {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #4b5563;
}

.lrpd-map-lead strong {
  color: #111827;
}

/* Lista de puntos */
.lrpd-map-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lrpd-map-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: #374151;
}

.lrpd-map-bullet {
  margin-top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.4);
  background: radial-gradient(circle, #111827, #ffffff);
}

/* Info extra */
.lrpd-map-info-extra {
  margin-bottom: 18px;
}

.lrpd-map-info-block {
  margin-bottom: 8px;
}

.lrpd-map-info-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 2px;
}

.lrpd-map-info-value {
  display: block;
  font-size: 0.9rem;
  color: #111827;
}

/* Botón */
.lrpd-map-actions {
  margin-top: 6px;
}

.lrpd-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.lrpd-map-btn--primary {
  background: #111827;
  color: #f9fafb;
  border-color: #020617;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.96);
}

.lrpd-map-btn--primary:hover {
  transform: translateY(-1px) translateX(1px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(249, 250, 251, 0.15);
  background: #020617;
}

/* =========================
   COLUMNA MAPA
   ========================= */

.lrpd-map-embed {
  position: relative;
}

.lrpd-map-frame {
  border-radius: 26px;
  padding: 18px;
  background: radial-gradient(
      circle at top left,
      rgba(0, 0, 0, 0.05),
      transparent 55%
    ),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.18), #050816);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(15, 23, 42, 0.7);
  overflow: hidden;
}

/* AQUÍ VIVE EL MAPA */
.lrpd-map-iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border-radius: 20px;
  border: 1px solid rgba(156, 163, 175, 0.45);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.9);
  background-color: #ffffff;
}

.lrpd-map-caption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* =========================
   ANIMACIÓN DE ENTRADA (SUAVE)
   ========================= */

.lrpd-map-info,
.lrpd-map-embed {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.lrpd-map-section.lrpd-map-visible .lrpd-map-info,
.lrpd-map-section.lrpd-map-visible .lrpd-map-embed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.lrpd-map-section.lrpd-map-visible .lrpd-map-info {
  transition-delay: 0.12s;
}
.lrpd-map-section.lrpd-map-visible .lrpd-map-embed {
  transition-delay: 0.18s;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 960px) {
  .lrpd-map-container {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .lrpd-map-section {
    padding: 60px 12px;
  }

  .lrpd-map-frame {
    padding: 14px;
    border-radius: 22px;
  }

  .lrpd-map-iframe {
    min-height: 280px;
  }

  .lrpd-map-title {
    font-size: 1.9rem;
  }

  .lrpd-map-btn {
    width: 100%;
    justify-content: center;
  }
}
