/* ===============================
   CONTACTO — BLOQUE SUPERIOR
   =============================== */
.section--contact-info {
  padding-top: 6rem;            /* separa del hero */
  margin-top: 2rem;
}
.section--contact-info .container{
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section--contact-info .contact-grid{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:3rem;
  flex-wrap:wrap;
}
.section--contact-info .contact-item{
  flex:1 1 280px;
  max-width:360px;
  text-align:center;
}
@media (max-width:768px){
  .section--contact-info{
    padding-top:4rem;
    margin-top:1.5rem;
  }
  .section--contact-info .contact-grid{
    flex-direction:column;
    text-align:center;
    gap:2rem;
  }
  .section--contact-info .contact-item{ max-width:100%; }
}

/* ===============================
   CONTACTO — MAPA + LISTA LATERAL
   =============================== */
.section--contact-map{ padding:2.5rem 0 4rem; }

/* grid dos columnas: lista (izq) + mapa (der) */
.contact-map-wrap.contact-map--two-cols{
  display:grid;
  grid-template-columns:minmax(240px,320px) 1fr;
  gap:1.25rem;
  align-items:start;
}

/* LISTA LATERAL (rectángulo) */
.poi-pill-col{ position:sticky; top:96px; }
.poi-pill-list{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  padding:.6rem;
  background:#fff;
  border:1px solid var(--border, #e7e7e7);
  border-radius:16px;
  box-shadow:var(--shadow-1, 0 6px 18px rgba(0,0,0,.06));
}

/* Ítems de la lista: mismos estilos que <p> */
.poi-pill-list .poi{
  position:relative;
  display:block;
  width:100%;
  text-align:left;
  padding:.65rem 1rem;
  border:0;
  border-radius:10px;
  background:transparent;
  font-family:inherit;
  font-size:1rem;
  line-height:1.6;
  font-weight:400;
  letter-spacing:0;
  color:var(--text-main, #222);
  cursor:pointer;
  transition:background .2s ease, color .2s ease, box-shadow .2s ease;
}
.poi-pill-list .poi:hover:not(.is-active){
  background:#f7f7f7;
  color:var(--color-tertiary, #FF4B2A);
}

/* Estado activo: texto rojo corporativo + fondo sutil */
.poi-pill-list .poi.is-active{
  color:var(--color-tertiary, #FF4B2A);
  background:rgba(255,75,42,.08);
  box-shadow:inset 0 0 0 1px rgba(255,75,42,.28);
}
.poi-time{
  margin-left:.35rem;
  font-weight:inherit;
  color:currentColor;    /* mismo color que el texto del item */
}

/* MAPA + CABECERA */
.map-col{ position:relative; }
.map-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin:0 0 8px;
}
.map-intro{
  margin:0;
  font-size:clamp(1rem, 1.2vw, 1.15rem);
  font-weight:700;
  color:var(--text-main, #222);
}

/* Badge de distancia (rojo corporativo) */
.distance-badge{
  position:static;             /* en la cabecera, no flotante */
  padding:.45rem .8rem;
  background:var(--color-tertiary, #FF4B2A);
  color:#fff;
  border-radius:999px;
  font-weight:700;
  font-size:.9rem;
  box-shadow:0 4px 12px rgba(255,75,42,.3);
  white-space:nowrap;
}

/* Mapa */
.contact-map{
  width:100%;
  min-height:520px;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/* Nota de mapa (si la usas) */
.map-note{
  text-align:center;
  color:var(--text-muted, #666);
  margin-top:.75rem;
}

/* Responsive */
@media (max-width:960px){
  .contact-map-wrap.contact-map--two-cols{ grid-template-columns:1fr; }
  .poi-pill-col{ position:static; }
}
@media (max-width:720px){
  .map-head{
    flex-direction:column;
    align-items:flex-start;
    gap:.4rem;
  }
}

/* ===============================
   CONTACT · MOBILE COMPACT
   =============================== */

@media (max-width: 768px){

  .section--contact-info .contact-grid{
    height: auto !important;        /* ← evita el estiramiento total */
    min-height: auto !important;    /* ← elimina alturas heredadas */
    align-items: flex-start !important;
    justify-content: flex-start !important;
    display: block !important;      /* ← elimina el flex que causa el estiramiento */
  }

  .section--contact-info .contact-item{
    margin: 0 0 1.8rem 0 !important;   /* ← espacio entre fichas */
  }

  .section--contact-info .contact-item h2{
    font-size: 2rem;
    margin: 0 0 .25rem;
    color: var(--color-tertiary);     /* rojo corporativo */
    position: relative;
    display: inline-block;
    padding-bottom: .15rem;
  }

  /* Línea decorativa pequeña en rojo */
  .section--contact-info .contact-item h2::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;                     /* más discreto */
    background: var(--color-primary);
    border-radius: 999px;
  }

  .section--contact-info .contact-item p{
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .section--contact-info .contact-item a{
    color: var(--color-text);
    text-decoration: underline;
  }

  .section--contact-info{
    padding-top: 1rem;
    padding-bottom: 0 !important;
  }

  /* Quitar espacio extra en las secciones */
  .section--contact-map{
    padding-top: 0.2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ===============================
   CONTACT MAP · MOBILE
   =============================== */
@media (max-width: 768px){

  /* Ocultar la columna de puntos de interés */
  .section--contact-map .poi-pill-col{
    display: none !important;
  }

  /* El wrapper pasa a una sola columna */
  .section--contact-map .contact-map-wrap{
    display: block;                 /* en vez de grid / flex dos columnas */
  }

  /* El mapa ocupa todo el ancho */
  .section--contact-map .map-col{
    width: 100%;
    max-width: 100%;
  }

  .section--contact-map .contact-map{
    width: 100%;
    min-height: 320px;              /* ajusta si quieres más alto */
  }

  /* MAPA: solo se muestra el mapa en móvil */
  .section--contact-map .map-head .map-intro,
  .section--contact-map .map-head .distance-badge{
    display: none !important;
  }
}

