/**
* Estilos PWA Red Calle 360
* Author: Unidad Asesora en Comunicación - Ministerio de Desarrollo Social
* Date: Abril de 2026
*
*/


@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap');

:root {
  --blue:        #1149b8;
  --blue-dark:   #0a3490;
  --blue-deeper: #082a72;
  --yellow:      #f5a800;
  --yellow-light:#ffc840;
  --white:       #ffffff;
  --light:       #f0f4fb;
  --text-dark:   #0d1f4e;
  --text-muted:  #6678a0;
  --radius:      12px;
  --shadow:      0 8px 32px rgba(10, 30, 90, 0.12);
  --violeta: #322d5c;
  --violetaTransparente: rgba(50,45,92,0.5)
  --amarilloDestaque: #f8a11f;
  --amarilloDegIzq: #fbbb1d;
  --amarilloDegDer: #ec6626;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora";
  color: var(--text-dark);
  background: var(--violeta);
  overflow-x: hidden;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--violeta);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin: auto;
}

.hero::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,168,0,0.18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 52px;
}

.logo-icon {
  font-size: 2rem;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: var(--white);
}

.logo-ministry {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.8;
  text-transform: uppercase;
}

.logo-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.hero__pre {
  font-family: 'Sora';
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__number {
  font-family: 'Sora', sans-serif;
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 900;
  line-height: 0.85;
  color: var(--yellow);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(245,168,0,0.4);
  margin: 8px 0 6px;
}

.hero__sub {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero__badge {
  display: inline-block;
  margin-top: 28px;
  padding: 8px 20px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 14px 32px;
  background: var(--yellow);
  color: var(--violeta);
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(245,168,0,0.35);
}

.hero__cta:hover {
  background: var(--yellow-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,168,0,0.45);
}

.hero__cta-arrow {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s;
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateY(3px);
}

.separador{height: 2em; border-bottom: 1px dotted #ccc; margin-bottom: 2em;}

.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-hint span {
  display: block;
  width: 20px;
  height: 34px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-hint span::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  background: var(--yellow);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* =============================================
   FADE-IN ANIMATION (hero)
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.65s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   SECCIONES
   ============================================= */
.section {
  padding: 80px 24px;
}

.section--white { background: var(--white); }
.section--light  { background: var(--light); }
.section--blue   { background: var(--violeta); }

.container {
  max-width: 1060px;
  margin: 0 auto;
}

.container--narrow {
  max-width: 680px;
}

.section__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section__title--white {
  color: var(--white);
}

.section__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
  line-height: 1.6;
}

/* =============================================
   TARJETAS
   ============================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(10,30,90,0.18);
}

.card--blue {
  background: var(--violeta);
  color: var(--white);
}

.card--yellow {
  background: var(--yellow);
  color: var(--violeta);
}

.card__icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.card__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.88;
}

/* =============================================
   ESTADÍSTICAS
   ============================================= */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.stat {
  text-align: center;
  padding: 36px 48px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  min-width: 200px;
  flex: 1;
}

.stat__number {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* =============================================
   CUADRO DE CONTACTO
   ============================================= */
.contact-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(17,73,184,0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 36px;
}

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--violeta);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--yellow);
}

.contact-divider {
  height: 1px;
  background: rgba(17,73,184,0.08);
  margin: 0 36px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--violeta);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer__sub {
  font-style: italic;
  opacity: 0.7;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
span.textoDestacado{
    color: var(--yellow);
  }

/* =============================================
   VERSIÓN RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  
  .hero{
    width: 85%;
    position: relative;
  }
  .hero__content{
    padding: 0;
  }
  .hero__content img{
    width: 100%;
  }
  .stat {
    min-width: 140px;
    padding: 28px 24px;
  }

  .contact-item {
    padding: 20px 24px;
  }

  .contact-divider {
    margin: 0 24px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* --- Popup --- */
.wa-popup {
  width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.85) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
}

.wa-popup.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.wa-popup__header {
  background: #075E54;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-popup__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.wa-popup__avatar svg {
  width: 100%;
  height: 100%;
}

.wa-popup__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wa-popup__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.wa-popup__status {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.wa-popup__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.wa-popup__close:hover {
  color: #fff;
}

.wa-popup__body {
  padding: 16px;
  background: #ECE5DD;
}

.wa-popup__message {
  background: #fff;
  border-radius: 0 10px 10px 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

.wa-popup__message::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  border-width: 0 8px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

.wa-popup__message p + p {
  margin-top: 8px;
}

.wa-popup__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #25D366;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.wa-popup__btn:hover {
  background: #1ebe5d;
}

@media (max-width: 400px) {
  .wa-widget {
    bottom: 18px;
    right: 18px;
  }
  .wa-popup {
    width: calc(100vw - 36px);
  }
}
.inau-box {
  align-items: flex-start;
}

.inau-box__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.inau-box__phones {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.inau-box__number {
  display: flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.1;
  transition: opacity 0.2s;
}

.inau-box__number:hover { opacity: 0.8; }

.inau-box__phone-prefix {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 1px;
}

.inau-box__web-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 100px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  width: fit-content;
}

.inau-box__web-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
}

/* =============================================
   TABS MONTEVIDEO / INTERIOR
   ============================================= */
.location-selector {
  display: flex;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  gap: 0;
}

.location-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  background: rgba(17,73,184,0.07);
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.location-tab:hover {
  background: rgba(17,73,184,0.12);
  color: var(--violeta);
}

.location-tab.active {
  background: var(--violeta);
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.location-tab img.iconoPq {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
}

.location-tab.active img.iconoPq {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.tabs { display: flex; gap: 0; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.tab-btn {
  flex: 1; padding: 14px 20px; border: none; cursor: pointer;
  font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
  background: rgba(17,73,184,0.08); color: var(--text-muted);
}
.tab-btn.active { background: var(--violeta); color: var(--yellow); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0 4px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(17,73,184,0.1);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10,30,90,0.15);
  border-color: rgba(17,73,184,0.22);
}

.contact-card:active {
  transform: scale(0.98);
}

.contact-card__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.contact-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-card__number {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--violeta);
  line-height: 1.1;
}

.contact-card__arrow {
  flex-shrink: 0;
  color: rgba(50,45,92,0.25);
  transition: color 0.2s, transform 0.2s;
}

.contact-card:hover .contact-card__arrow {
  color: var(--violeta);
  transform: translateX(3px);
}

.contact-card--wa .contact-card__number { color: #1a7c3e; }
.contact-card--wa:hover { border-color: #25d366; }
.contact-card--wa:hover .contact-card__arrow { color: #25d366; }

.contact-card--emergency {
  border-color: rgba(230,126,34,0.18);
  background: #fffdf9;
}
.contact-card--emergency .contact-card__number { color: #c0392b; }
.contact-card--emergency:hover { border-color: rgba(192,57,43,0.4); }
.contact-card--emergency:hover .contact-card__arrow { color: #c0392b; }

@media (min-width: 540px) {
  .contact-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .contact-card {
    flex: 1;
    min-width: 200px;
  }
}



/* =============================================
   SECCIÓN EMERGENCIA
   ============================================= */
.emergency-section { margin-top: 36px; }
.emergency-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 14px;
}
.emergency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.emergency-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.emergency-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.emergency-card--red { background: #c0392b; color: #fff; }
.emergency-card--orange { background: #e67e22; color: #fff; }
.emergency-card__icon { font-size: 1.8rem; flex-shrink: 0; }
.emergency-card__label {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; opacity: 0.85; display: block; margin-bottom: 3px;
}
.emergency-card__number {
  font-family: 'Sora', sans-serif; font-size: 1.5rem;
  font-weight: 900; line-height: 1; display: block;
}
.emergency-card__desc {
  font-size: 0.72rem; opacity: 0.85; margin-top: 3px;
  display: block; line-height: 1.35;
}

/* =============================================
   INAU
   ============================================= */
.inau-box {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: #1a5fa8;
  color: #fff;
}
.inau-box__icon { font-size: 2.2rem; flex-shrink: 0; padding-top: 2px; }
.inau-box__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.inau-box__label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; opacity: 0.85; display: block; margin-bottom: 2px;
}
.inau-box__phones {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.inau-box__number {
  display: flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.1;
  transition: opacity 0.2s;
}
.inau-box__number:hover { opacity: 0.8; }
.inau-box__phone-prefix {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; opacity: 0.75; margin-bottom: 1px;
}
.inau-box__desc { font-size: 0.8rem; opacity: 0.85; line-height: 1.4; }
.inau-box__web-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 100px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  width: fit-content;
}
.inau-box__web-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
}

/* =============================================
   ENLACE A MÁS INFORMACIÓN
   ============================================= */
.more-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 24px;
  border: 1.5px solid rgba(17,73,184,0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--violeta);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.more-info:hover {
  background: rgba(17,73,184,0.05);
  border-color: var(--violeta);
}

.interior-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* =============================================
   SECCIÓN ESTRATEGIA NACIONAL
   ============================================= */
.estrategia-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
  line-height: 1.65;
}

.modelo-3v {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.v-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}
.v-card:hover {
  background: rgba(255,255,255,0.11);
  transform: translateY(-4px);
}
.v-card__emoji { font-size: 2.4rem; margin-bottom: 14px; display: block; }
.v-card__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.v-card__text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.stat-card__number {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
  line-height: 1.4;
}

.cupos-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 64px;
}
.cupos-block__title {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-bottom: 28px;
}
.cupos-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 32px;
  height: 160px;
}
.cupos-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 100px;
  height: 100%;
  justify-content: flex-end;
}
.cupos-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: rgba(245,168,0,0.35);
  transition: height 1.2s cubic-bezier(0.22,1,0.36,1);
  position: relative;
}
.cupos-bar--highlight { background: var(--yellow); }
.cupos-bar__val {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--yellow);
  text-align: center;
}
.cupos-bar--highlight .cupos-bar__val { color: var(--violeta); }
.cupos-bar__year {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.cupos-bar--highlight .cupos-bar__year { color: rgba(255,255,255,0.85); }

.acciones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}
.accion-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: background 0.2s;
}
.accion-item:hover { background: rgba(255,255,255,0.1); }
.accion-item__icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.accion-item__title {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.accion-item__text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

.estrategia-cta {
  text-align: center;
}
.estrategia-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--yellow);
  color: var(--violeta);
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(245,168,0,0.3);
}
.estrategia-cta__btn:hover {
  background: var(--yellow-light);
  transform: translateY(-2px);
}

@media screen and (min-width:701px){ 
  .iconoPq{
    max-width: 30px;
  } 
}

/* =============================================
   RESPONSIVE – ESTRATEGIA
   ============================================= */
@media (max-width: 700px) {
  .modelo-3v { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .acciones-grid { grid-template-columns: 1fr; }
  .cupos-bars { gap: 16px; }
}

@media (max-width: 500px) {
  .emergency-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--violetaTransparente);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 28, 80, 0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.navbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 75px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar__brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar__logo {
  height: 90px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.navbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.navbar__link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.navbar__link.is-active {
  background: var(--yellow);
  color: var(--violeta);
}

.navbar__link.is-active:hover {
  background: var(--yellow-light, #ffd84d);
  color: var(--violeta);
}

.navbar__link svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
  border-radius: 8px;
  transition: background 0.2s;
}

.navbar__burger:hover {
  background: rgba(255,255,255,0.1);
}

.navbar__burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}

.navbar__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body { padding-top: 60px; }
.hero { margin-top: -60px; padding-top: 60px; width: 100%;}

/* =============================================
   NAVBAR — MOBILE
   ============================================= */
@media (max-width: 768px) {
  .navbar__burger {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% - 8px);     
    margin-left: 0;            
    background: var(--violeta);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }

  .navbar__burger:hover {
    background: #3d3775;
  }

  .navbar__burger.open {
    background: var(--yellow);
    border-color: var(--yellow);
  }

  .navbar__burger.open span {
    background: var(--violeta);
  }

  .navbar__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 28, 80, 0.98);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 12px 16px 16px;
    animation: slideDown 0.22s ease;
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__link {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 1rem;
    justify-content: flex-start;
    margin-bottom: 4px;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 768px) {

  /* Lock body scroll */
  html, body {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  .hero { display: none; }

  .footer { display: none; }

  .mobile-screen {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }

  .mobile-screen.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, visibility 0s linear 0s;
    z-index: 2;
  }

  .mobile-screen.section {
    padding-top: 62px;
  }

  @supports (padding: max(0px)) {
    .mobile-screen {
      padding-bottom: max(40px, env(safe-area-inset-bottom));
    }
  }

  .navbar[data-current-screen="inicio"] .navbar__burger {
    display: none;
  }

  .navbar__link {
    display: flex;
  }

  .navbar__link--inicio {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
  }

  .mobile-home {
    background: var(--violeta);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
  }

  .mobile-home__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: max(6dvh, 20px) 16px 16px;
  }

  .mobile-home .alerta-roja-bar {
    display: none;
  }

  .mobile-home__brand {
    width: min(130px, 33vw);
    margin-top: 0;
    margin-bottom: 12px;
    flex-shrink: 0;
  }

  .mobile-home__brand img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
  }

  .mobile-home__tagline {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.45);
    text-align: center;
    margin-bottom: 14px;
  }

  .mobile-home__menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .mobile-home__card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px 12px 12px;  
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    color: #fff;
    transition: background 0.18s, transform 0.15s, border-color 0.18s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-home__card:active {
    background: rgba(255,255,255,0.14);
    transform: scale(0.98);
    border-color: rgba(255,255,255,0.3);
  }

  .mobile-home__card-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 6px;
  }

  .mobile-home__card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .mobile-home__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-home__card-body strong {
    font-family: 'Sora', sans-serif;
    font-size: 0.97rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1.2;
  }

  .mobile-home__card-body span {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
  }

  .mobile-home__card-arrow {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
    margin-left: 4px;
  }

  .mobile-home__footer {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
    text-align: center;
    margin-top: auto;
    padding-top: 16px;
    padding-bottom: 8px;
  }
}

@media (min-width: 769px) {
  .mobile-home { display: none !important; }
}


/* =============================================
   PWA — INSTALL BUTTON (Android)
   ============================================= */
.install-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--yellow);
  color: var(--violeta);
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245,168,0,0.35);
  animation: installPop 0.4s ease;
  transition: transform 0.2s, box-shadow 0.2s;
}

.install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245,168,0,0.45);
}

.install-btn[hidden] { display: none; }
.install-btn span { font-size: 1.1rem; }

@keyframes installPop {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 500px) {
  .install-btn {
    bottom: 16px;
    left: 16px;
    padding: 11px 18px;
    font-size: 0.82rem;
  }
}

/* =============================================
   PWA — iOS INSTALL HINT
   ============================================= */
.ios-hint {
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  z-index: 999;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(10, 28, 80, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: iosHintSlide 0.35s ease;
}

.ios-hint__text { font-size: 0.88rem; line-height: 1.45; flex: 1; }
.ios-hint__text strong { color: var(--yellow); font-weight: 700; }

.ios-hint__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ios-hint__close:hover { background: rgba(255,255,255,0.22); }

@keyframes iosHintSlide {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (display-mode: standalone) {
  .install-btn,
  .ios-hint { display: none !important; }
}

@supports (padding: max(0px)) {
  .install-btn  { bottom: max(24px, env(safe-area-inset-bottom)); }
  .ios-hint     { bottom: max(20px, env(safe-area-inset-bottom)); }
}

/* =============================================
   LUGARES DE ATENCIÓN — PANTALLA
   ============================================= */

.lugares-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lugares-left {
  background: #fff;
}

@media (min-width: 769px) {
  .lugares-left {
    width: 300px;
    flex-shrink: 0;
    border-right: 1px solid rgba(0,0,0,0.08);
  }
  .lugares-layout {
    flex-direction: row;
    align-items: stretch;
  }
}

@media (min-width: 769px) {
  #lugares.section {
    padding: 0;
    height: 100vh;
    overflow: hidden;         
  }
  .lugares-layout {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .lugares-left {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
  }
}

.lugares-header {
  flex-shrink: 0;
  padding: 14px 16px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 10;
}

.lugares-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--violeta);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lugares-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.lugares-search-icon {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.lugares-search {
  width: 100%;
  padding: 9px 36px 9px 34px;
  border: 1.5px solid rgba(50,45,92,0.2);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.lugares-search:focus {
  border-color: var(--violeta);
}

.lugares-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.lugares-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px 4px 6px;
  border-radius: 100px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.03);
  transition: border-color 0.15s, background 0.15s, color 0.15s, opacity 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0.65;
}

.legend-item:hover {
  opacity: 1;
  border-color: rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.06);
}

.legend-item.active {
  opacity: 1;
  font-weight: 700;
  border-color: currentColor;
  background: rgba(0,0,0,0.06);
  color: var(--text-dark);
}

.legend-item.inactive {
  opacity: 0.3;
}

.legend-item--todos {
  font-weight: 600;
}

.legend-item--todos.active {
  background: var(--violeta);
  color: var(--yellow);
  border-color: var(--violeta);
  opacity: 1;
}

.legend-item--todos:hover {
  background: rgba(50,45,92,0.1);
  border-color: var(--violeta);
  color: var(--violeta);
  opacity: 1;
}

.legend-item.is-filtered {
  border-color: currentColor;
  background: rgba(0,0,0,0.05);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot--todos {
  background: var(--violeta);
}

.lugares-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
}

.lugares-map-el {
  flex: 1;
  min-height: 0;
  width: 100%;
  z-index: 1;
}

@media (max-width: 768px) {
  .lugares-map-el {
    height: calc(100dvh - 60px - 145px);
  }
}

.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: auto !important;
  min-width: 200px;
  max-width: 260px;
}

.leaflet-popup-tip-container {
  margin-top: -1px;
}

.centro-popup {
  padding: 14px 16px;
}

.centro-popup__nombre {
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--violeta);
  margin: 0 0 6px;
  line-height: 1.3;
  text-transform: uppercase;
}

.centro-popup__row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.75rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 4px;
}

.centro-popup__row svg {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.6;
}

.centro-popup__badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--blue-dark);
  text-align: center;
}

.lugares-list-wrap {
  position: relative;
}

.lugares-list-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  width: 100%;
  border: none;
  background: rgba(50,45,92,0.05);
  border-top: 1px solid rgba(0,0,0,0.07);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--violeta);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .lugares-list-toggle { display: flex; }
}

.lugares-list {
  display: none;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.lugares-list.is-open { display: block; }

.lugares-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.lugares-list-item:hover { background: rgba(50,45,92,0.04); }

.lugares-list-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lugares-list-item__body {
  flex: 1;
  min-width: 0;
}

.lugares-list-item__nombre {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--violeta);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.lugares-list-item__modalidad {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 769px) {

  .lugares-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  .lugares-header {
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    border-right: none;
  }

  .lugares-list-wrap {
    flex: 1;
    min-height: 0;             
    overflow-y: auto;
    border-top: none;
  }

  .lugares-map-el {
    flex: 1;
    height: 100%;
    min-width: 0;
  }

  .lugares-list-toggle { display: none !important; }

  .lugares-list {
    display: block !important;
    max-height: none;
    overflow: visible;
  }
}

/* =============================================
   FORMULARIO DE AVISO
   ============================================= */
.form-aviso {
  margin: 24px 0 8px;
  border: 1.5px solid rgba(50,45,92,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.form-aviso__header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px 14px;
}

.form-aviso__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.form-aviso__title {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--violeta);
  margin-bottom: 4px;
}

.form-aviso__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.form-aviso__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 16px 12px;
  padding: 13px 20px;
  background: var(--violeta);
  color: #fff;
  border-radius: var(--radius);
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.form-aviso__btn:hover  { background: #3d3775; }
.form-aviso__btn:active { transform: scale(0.98); }
.form-aviso__btn svg    { flex-shrink: 0; opacity: 0.85; }

.form-aviso__note {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0 16px 14px;
  margin: 0;
  line-height: 1.4;
}

/* =============================================
   IOS PWA INSTALL GUIDE
   ============================================= */

.navbar__link--install-guide,
.navbar__link--ios-guide {           
  background: none;
  border: 1.5px solid rgba(245,168,0,0.5);
  color: var(--yellow) !important;
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.navbar__link--ios-guide:hover {
  background: rgba(245,168,0,0.1) !important;
  border-color: var(--yellow);
}

.ios-guide-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.ios-guide-modal.open {
  display: block;
}

.ios-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: iosGuideBackdropIn 0.25s ease;
}

@keyframes iosGuideBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ios-guide-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 24px 24px max(24px, env(safe-area-inset-bottom));
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: iosGuideSheetIn 0.32s cubic-bezier(0.22,1,0.36,1);
}

@keyframes iosGuideSheetIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.ios-guide-sheet::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.ios-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ios-guide-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--violeta);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ios-guide-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.07);
  border-radius: 50%;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.ios-guide-close:hover { background: rgba(0,0,0,0.12); }

.ios-guide-video {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 22px;
  text-decoration: none;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: 380px;
}

.ios-guide-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.ios-guide-video:hover img {
  opacity: 0.85;
}

.ios-guide-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ios-guide-video__play svg circle {
  transition: fill 0.2s;
}

.ios-guide-video:hover .ios-guide-video__play svg circle {
  fill: rgba(230,0,0,0.85);
}

.ios-guide-video__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.ios-guide-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 22px;
}

.ios-guide-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ios-guide-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ios-guide-step__num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--violeta);
  color: var(--yellow);
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.ios-guide-step__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ios-guide-step__body strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.ios-guide-step__body > span:not(.ios-guide-step__icon):not(.ios-guide-step__chip) {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.ios-guide-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(17,73,184,0.06);
  border-radius: 10px;
  color: var(--violeta);
  margin-top: 6px;
}

.ios-guide-step__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 12px;
  background: rgba(17,73,184,0.07);
  border: 1px solid rgba(17,73,184,0.15);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--violeta);
  width: fit-content;
}

.ios-guide-step__chip--yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--violeta);
}

.ios-guide-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.07);
  margin: 0;
}


.install-video-section {
  padding: 3rem 0;
  background: #f7f7f7;
}

.install-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 177.77%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.install-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 701px) {
  .install-video-section {
    display: none;
  }
}


/* =============================================
   ALERTA ROJA BAR
   ============================================= */
.alerta-roja-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 20px;
  background: #c0392b;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
}

.alerta-roja-bar svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.alerta-roja-bar--zocalo {
  flex-shrink: 0;          
  width: 100%;
  padding: 10px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  border-radius: 0;
  box-shadow: 0 -3px 16px rgba(0,0,0,0.35);
  z-index: 10;
}

.alerta-roja-bar__rayo {
  animation: rayoPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes rayoPulse {
  0%   { opacity: 1; }
  45%  { opacity: 1; }
  50%  { opacity: 0.15; }
  55%  { opacity: 1; }
  75%  { opacity: 1; }
  80%  { opacity: 0.15; }
  85%  { opacity: 1; }
  100% { opacity: 1; }
}

.alerta-roja-bar--hero {
  position: relative;
  width: auto;
  min-width: 280px;
  max-width: 520px;
  border-radius: 8px;
  padding: 11px 28px;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  margin: 0 auto 40px;  
}

.logo-icon img {
  width: min(200px, 40vw);
  height: auto;
  display: block;
}

/* =============================================
   INFORMES ALERTA ROJA — NAVBAR LINK
   ============================================= */
.navbar__link--alerta {
  color: #ff6b6b !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255,107,107,0.35);
  border-radius: var(--radius-pill, 100px);
}

.navbar__link--alerta:hover {
  background: rgba(255,107,107,0.15) !important;
  border-color: rgba(255,107,107,0.6);
  color: #fff !important;
}

.mobile-home__card--install {
  display: none;
  color: var(--yellow);
  border-color: rgba(245,168,0,0.3);
  background: rgba(245,168,0,0.07);
}

@media (max-width: 700px) {
  .mobile-home__card--install {
    display: flex;
  }
}

.mobile-home__card--alerta {
  text-decoration: none;
  border: 1.5px solid rgba(192,57,43,0.35);
  background: rgba(192,57,43,0.08);
}

.mobile-home__card--alerta strong { color: #c0392b; }

.mobile-home__card--alerta:hover,
.mobile-home__card--alerta:active {
  background: rgba(192,57,43,0.15);
  border-color: rgba(192,57,43,0.5);
}

/* =============================================
   INSTALL GUIDE STATIC BTN    ============================================= */
.navbar__link--install-static {
  display: none;
}

@media (max-width: 700px) {
  .navbar__link--install-static {
    display: inline-flex !important;
  }
}

/* =============================================
   SUGERENCIAS — form-aviso--alt
   ============================================= */
.form-aviso--alt {
  margin-top: 16px;
  border-color: rgba(50,45,92,0.10);
  background: #fafbff;
}

.form-aviso__btn--alt {
  background: #4a4580;
}

.form-aviso__btn--alt:hover {
  background: var(--violeta);
}

/* =============================================
   LEGEND TOGGLE — colapsable en mobile
   ============================================= */
.legend-wrap {
  margin-bottom: 6px;
}

@media (min-width: 769px) {
  .legend-toggle {
    display: none;
  }
  .legend-panel[hidden] {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .legend-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px 7px 12px;
    background: rgba(50,45,92,0.07);
    border: 1.5px solid rgba(50,45,92,0.18);
    border-radius: 100px;
    font-family: 'Sora', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--violeta);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .legend-toggle:hover {
    background: rgba(50,45,92,0.12);
  }

  .legend-toggle.open {
    background: var(--violeta);
    color: var(--yellow);
    border-color: var(--violeta);
  }

  .legend-toggle__chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .legend-toggle.open .legend-toggle__chevron {
    transform: rotate(180deg);
  }

  .legend-panel[hidden] {
    display: none;
  }

  .legend-panel:not([hidden]) {
    animation: legendSlideDown 0.2s ease;
  }

  @keyframes legendSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* =============================================
   BOTÓN ATRÁS — en flujo del contenido, mobile
   ============================================= */
.back-btn {
  display: none; 
}

@media (max-width: 768px) {
  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px 8px 10px;
    margin: 16px 0 8px;
    background: rgba(50,45,92,0.07);
    border: 1.5px solid rgba(50,45,92,0.18);
    border-radius: 100px;
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--violeta);
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .back-btn:hover  { background: rgba(50,45,92,0.13); }
  .back-btn:active { transform: scale(0.95); }

  .back-btn svg {
    flex-shrink: 0;
    transition: transform 0.15s;
  }

  .back-btn:active svg {
    transform: translateX(-3px);
  }
}
