/* ============================================================
   VARIABLES PROPIAS (extienden styles.css)
   ============================================================ */
:root {
  --acr-blue:   #007aff;
  --acr-navy:   #003ab4;
  --acr-accent: #48c400;
  --acr-bg:     #ffffff;
  --acr-soft:   #edf2ff;
  --acr-text:   #232634;
  --acr-muted:  #5c677a;
  --acr-border: #dde2f3;
  --acr-shadow: 0 10px 30px rgba(0, 30, 80, .10);
  --acr-radius: 14px;
  --acr-max:    1160px;
  --acr-pad:    clamp(16px, 3vw, 28px);
}

/* ============================================================
   MENÚ ACTIVO
   ============================================================ */
.suc-menu-activo {
  color: var(--verde-primario, #48c400) !important;
  font-weight: 700;
}

/* ============================================================
   HERO
   ============================================================ */
.suc-hero {
  background: radial-gradient(circle at top left, #0052f5 0, #003ab4 45%, #001c60 100%);
  color: #fff;
  padding-block: 2.8rem 3rem;
  text-align: center;
}
.suc-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 0.7rem;
}
.suc-hero p {
  font-size: 1rem;
  max-width: 660px;
  margin: 0 auto;
  opacity: 0.92;
}

/* ============================================================
   MAPA ANCHO COMPLETO – pegado al hero, sin gap
   ============================================================ */
.suc-mapa-full {
  line-height: 0;
  background: #c9d5ff;
  display: block;
}
.suc-mapa-iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}

/* ============================================================
   SECCIÓN PRINCIPAL
   ============================================================ */
.acr-branches {
  background: var(--acr-bg);
  color: var(--acr-text);
  padding-bottom: 3rem;
}
.acr-wrap {
  max-width: var(--acr-max);
  margin: 0 auto;
  padding: 32px var(--acr-pad) 0;
}

/* ============================================================
   INTRO SEO – listas en una sola línea por item
   ============================================================ */
.acr-seoIntro {
  margin-bottom: 20px;
  background: var(--acr-soft);
  border: 1px solid var(--acr-border);
  border-radius: var(--acr-radius);
  padding: 16px 18px;
}
.acr-twoCol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.acr-miniFaq b {
  display: block;
  color: var(--acr-navy);
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.acr-miniFaq ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.acr-miniFaq li {
  font-size: 0.84rem;
  color: var(--acr-text);
  margin-bottom: 4px;
  /* UNA SOLA LÍNEA: flex sin wrap */
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: nowrap;
  line-height: 1.5;
}
/* Evita que <b> y <span> internos rompan la línea */
.acr-miniFaq li > b    { display: inline; white-space: nowrap; color: var(--acr-navy); }
.acr-miniFaq li > span { display: inline; }

/* ============================================================
   CONTROLES
   ============================================================ */
.acr-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.acr-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--acr-border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: var(--acr-shadow);
  transition: border-color 0.2s ease;
}
.acr-search:focus-within { border-color: var(--acr-blue); }
.acr-search input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--acr-text);
  background: transparent;
}
.acr-select {
  border: 1.5px solid var(--acr-border);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  background: #fff;
  box-shadow: var(--acr-shadow);
  color: var(--acr-text);
  min-width: 220px;
  font-size: 0.88rem;
  cursor: pointer;
}
.acr-select:focus { outline: 2px solid var(--acr-blue); }

/* ============================================================
   STATS
   ============================================================ */
.acr-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--acr-muted);
  font-size: 13px;
}
.acr-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--acr-soft);
  border: 1px solid var(--acr-border);
  color: var(--acr-navy);
  font-weight: 900;
  font-size: 0.82rem;
}

/* ============================================================
   ACORDEÓN PAÍSES
   ============================================================ */
.acr-results { margin-top: 4px; }

details.acr-acc {
  background: #fff;
  border: 1px solid var(--acr-border);
  border-radius: var(--acr-radius);
  box-shadow: var(--acr-shadow);
  overflow: hidden;
}
details.acr-acc + details.acr-acc { margin-top: 12px; }

summary.acr-sum {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  color: var(--acr-navy);
  background: linear-gradient(0deg, rgba(237,242,255,.85), rgba(237,242,255,.85));
  transition: background 0.2s ease;
  user-select: none;
}
summary.acr-sum::-webkit-details-marker { display: none; }
summary.acr-sum:hover { background: #e0e8ff; }
details[open] > summary.acr-sum { background: #dce6ff; }

.acr-sum-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.acr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 58, 180, .08);
  border: 1px solid rgba(0, 58, 180, .18);
  color: var(--acr-navy);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}
.acr-chevron {
  color: var(--acr-blue);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
details[open] .acr-chevron { transform: rotate(180deg); }

.acr-panel {
  padding: 14px 14px 16px;
  background: #fff;
}

/* ============================================================
   CIUDADES
   ============================================================ */
.acr-city { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--acr-border); }
.acr-city:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.acr-cityTitle {
  margin: 0 0 10px;
  color: var(--acr-navy);
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.acr-cityTitle small { color: var(--acr-muted); font-weight: 800; }

/* ============================================================
   GRID TARJETAS
   ============================================================ */
.acr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* ============================================================
   TARJETA SUCURSAL
   ============================================================ */
.acr-card {
  border: 1px solid var(--acr-border);
  border-radius: var(--acr-radius);
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.acr-card:hover {
  box-shadow: 0 8px 22px rgba(0,58,180,0.12);
  border-color: var(--acr-blue);
}
.acr-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  color: var(--acr-navy);
}
.acr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--acr-muted);
}
.acr-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--acr-border);
  background: rgba(246,248,252,.9);
  color: var(--acr-muted);
  font-weight: 900;
}
.acr-tag.primary {
  border-color: rgba(0, 94, 210, .25);
  background: rgba(0, 94, 210, .08);
  color: var(--acr-navy);
}
.acr-addr { margin: 0; color: var(--acr-text); font-size: 14px; }
.acr-addr small { display: block; color: var(--acr-muted); margin-top: 4px; }
.acr-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.acr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid var(--acr-border);
  background: #fff;
  color: var(--acr-navy);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.acr-btn:hover { border-color: var(--acr-blue); background: rgba(0,122,255,.06); }
.acr-btn.primary {
  background: var(--acr-accent);
  border-color: transparent;
  color: #1b1304;
}
.acr-btn.primary:hover { background: var(--acr-blue); color: #fff; }
.acr-btn.link {
  border-color: rgba(0, 94, 210, .25);
  color: var(--acr-blue);
  background: rgba(0, 94, 210, .06);
}
.acr-empty {
  padding: 18px;
  background: #fff;
  border: 1px dashed var(--acr-border);
  border-radius: var(--acr-radius);
  color: var(--acr-muted);
  font-weight: 800;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .acr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .acr-twoCol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .acr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body { padding-bottom: 64px; }
  .acr-controls { grid-template-columns: 1fr; }
  .acr-select { min-width: unset; width: 100%; }
  .suc-mapa-iframe { height: 300px; }
  .suc-hero { padding-block: 2rem; }
}
