/* ============================================================
   VARIABLES & RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-gov-blue:      #3b5ea6;
  --color-nav-dark:      #1e1e4e;
  --color-nav-hover:     #2a2a72;
  --color-nav-active:    #3b5ea6;
  --color-orange:        #e8651a;
  --color-orange-hover:  #c85512;
  --color-blue-link:     #4baae8;
  --color-white:         #ffffff;
  --color-slide-dark:    #0a1628;
  --color-header-bg:     #ffffff;
  --font-primary:        'Open Sans', sans-serif;
  --font-title:          'Montserrat', sans-serif;
  --gov-bar-height:      38px;
  --header-height:       90px;
  --nav-height:          60px;
  --carousel-height:     300px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); background: #f4f4f4; color: #222; min-width: 320px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   BARRA INSTITUCIONAL GOV.CO
============================================================ */
.gov-bar {
  background: var(--color-gov-blue);
  height: var(--gov-bar-height);
  width: 100%;
  position: relative;
  z-index: 100;
}

.gov-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.gov-bar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gov-bar__icon {
  display: flex;
  align-items: center;
}

.gov-bar__text {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-title);
}

.gov-bar__user-link {
  color: var(--color-white);
  font-size: 17px;
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.gov-bar__user-link:hover { opacity: 1; }

/* ============================================================
   HEADER PRINCIPAL
============================================================ */
.site-header {
  background: var(--color-header-bg);
  height: var(--header-height);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: relative;
  z-index: 90;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-header__logo-link { display: flex; align-items: center; }

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-emblem {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  border-left: 3px solid #e0e0e0;
  padding-left: 12px;
}

.logo-text__name {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: #1b2e6e;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.logo-text__desc {
  font-size: 10.5px;
  color: #555;
  line-height: 1.4;
  max-width: 180px;
}

/* Separador tricolor debajo del logo-text */
.logo-text::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 5px;
  background: linear-gradient(to right, #FFD700 33%, #003893 33% 66%, #CE1126 66%);
  border-radius: 2px;
}

/* Búsqueda */
.site-header__search {
  display: flex;
  align-items: center;
  border: 1px solid #c8c8c8;
  border-radius: 22px;
  overflow: hidden;
  height: 38px;
}

.search-input {
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 13.5px;
  color: #555;
  width: 210px;
  background: transparent;
  font-family: var(--font-primary);
}
.search-input::placeholder { color: #aaa; }

.search-btn {
  background: var(--color-gov-blue);
  color: #fff;
  width: 40px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.search-btn:hover { background: #2e4d8f; }

/* ============================================================
   NAVEGACIÓN PRINCIPAL
============================================================ */
.main-nav {
  background: var(--color-nav-dark);
  min-height: var(--nav-height);
  position: relative;
  z-index: 80;
}

.main-nav__inner {
  display: flex;
  align-items: stretch;
  min-height: var(--nav-height);
}

.main-nav__list {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.main-nav__item {
  display: flex;
  align-items: stretch;
}

.main-nav__link {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 600;
  padding: 0 18px;
  display: flex;
  align-items: center;
  text-align: center;
  line-height: 1.3;
  transition: background 0.2s, color 0.2s;
  position: relative;
  white-space: nowrap;
}

.main-nav__link:hover {
  background: var(--color-nav-hover);
  color: var(--color-white);
}

/* Active item */
.main-nav__item--active .main-nav__link,
.main-nav__link--active {
  background: var(--color-nav-active);
  color: var(--color-white) !important;
  white-space: normal;
  text-align: center;
}

/* ============================================================
   CARRUSEL HERO
============================================================ */
.hero-carousel {
  position: relative;
  overflow: hidden;
  height: var(--carousel-height);
  background: var(--color-slide-dark);
  user-select: none;
}

.carousel-track-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

/* Fondo oscuro principal (Slide 1) */
.slide-bg--dark {
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, #061228 0%, #0d1f45 45%, #0f2255 70%, #0a1f4a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Fondos alternativos */
.slide-bg--alt {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-bg--alt2  { background: linear-gradient(110deg, #0a2040 0%, #123568 100%); }
.slide-bg--alt3  { background: linear-gradient(110deg, #06201a 0%, #0e4033 100%); }
.slide-bg--alt4  { background: linear-gradient(110deg, #1a0a06 0%, #4a1a0a 100%); }
.slide-bg--alt5  { background: linear-gradient(110deg, #0a0820 0%, #1a145e 100%); }
.slide-bg--alt6  { background: linear-gradient(110deg, #061420 0%, #0c3050 100%); }
.slide-bg--alt7  { background: linear-gradient(110deg, #181206 0%, #503810 100%); }
.slide-bg--alt8  { background: linear-gradient(110deg, #041820 0%, #085060 100%); }
.slide-bg--alt9  { background: linear-gradient(110deg, #1a0614 0%, #500a2e 100%); }

/* Puntos decorativos */
.deco-dots--tl {
  position: absolute;
  top: 18px;
  left: 18px;
  opacity: 0.7;
  z-index: 1;
}

/* Gráfico izquierdo (lupa SVG) */
.slide-graphic {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 310px;
  height: 310px;
  z-index: 2;
  animation: floatGraphic 5s ease-in-out infinite alternate;
}

@keyframes floatGraphic {
  from { transform: translateY(calc(-50% - 6px)); }
  to   { transform: translateY(calc(-50% + 6px)); }
}

.graphic-svg {
  width: 100%;
  height: 100%;
}

/* Mapa de fondo (derecha, decorativo) */
.slide-map-bg {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  z-index: 1;
}

.map-svg {
  width: 100%;
  height: 100%;
}

/* Contenido textual principal de la diapositiva 1 */
.slide-content {
  position: relative;
  z-index: 3;
  margin-left: 310px;
  padding: 28px 80px 28px 30px;
  max-width: 520px;
}

.slide-title--snigrd {
  font-family: var(--font-title);
  font-size: 62px;
  font-weight: 800;
  color: #FFD700;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.slide-subtitle {
  font-family: var(--font-primary);
  font-size: 12.5px;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  margin-bottom: 14px;
  font-weight: 400;
}

.slide-body {
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 20px;
}

.slide-body strong { font-weight: 700; color: var(--color-white); }

.slide-link { font-weight: 600; transition: opacity 0.2s; }
.slide-link:hover { opacity: 0.8; text-decoration: underline; }
.slide-link--orange { color: var(--color-orange); }
.slide-link--blue   { color: var(--color-blue-link); }

.slide-cta {
  display: inline-block;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 4px;
  text-align: center;
  line-height: 1.4;
  transition: background 0.22s, transform 0.15s;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
.slide-cta:hover {
  background: var(--color-orange-hover);
  transform: translateY(-1px);
}

/* Contenido centrado para diapositivas de placeholder */
.slide-content--centered {
  margin: 0;
  padding: 24px 40px;
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide-placeholder-title {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 10px;
}

.slide-placeholder-text {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
}

/* ============================================================
   BOTONES DE NAVEGACIÓN DEL CARRUSEL (Flechas)
============================================================ */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(2px);
}
.carousel-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.carousel-btn--prev { left: 14px; }
.carousel-btn--next { right: 14px; }

/* ============================================================
   CONTROLES INFERIORES: Play/Pause + Dots
============================================================ */
.carousel-controls-bottom {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
}

/* Botones Play / Pause */
.carousel-playback {
  display: flex;
  align-items: center;
  gap: 4px;
}

.playback-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.playback-btn:hover,
.playback-btn--active {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.75);
  color: #fff;
}

/* Indicadores (dots) */
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  cursor: pointer;
}
.carousel-dot:hover {
  background: rgba(255,255,255,0.6);
}
.carousel-dot--active {
  background: #FFD700;
  border-color: #FFD700;
  transform: scale(1.2);
}

/* ============================================================
   BOTONES FLOTANTES
============================================================ */
.floating-buttons {
  position: fixed;
  right: 16px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.floating-btn:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.floating-btn--accessibility {
  background: #c8c8c8;
  color: #333;
}

.floating-btn--chat {
  background: var(--color-gov-blue);
  color: var(--color-white);
}

/* ============================================================
   SECCIÓN DE AYUDA SOLIDARIA Y ENCUESTA DE DAMNIFICADOS
============================================================ */
.aid-portal {
  padding: 45px 0 70px;
  background: #f0f3f8;
  position: relative;
}

.aid-portal__header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 35px;
}

.aid-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff2e8;
  color: var(--color-orange);
  border: 1px solid #ffd8bf;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aid-portal__title {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  color: #1a3a6e;
  line-height: 1.25;
  margin-bottom: 12px;
}

.aid-portal__lead {
  font-size: 15.5px;
  color: #556270;
  line-height: 1.6;
}

/* ============================================================
   WIZARD DE PASOS
============================================================ */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto 35px;
  padding: 0 10px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.wizard-step__circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
}

.wizard-step__text {
  display: flex;
  flex-direction: column;
}

.wizard-step__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: #94a3b8;
}

.wizard-step__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.wizard-step__connector {
  flex: 1;
  height: 3px;
  background: #cbd5e1;
  margin: 0 16px;
  border-radius: 2px;
  transition: background 0.3s ease;
}

/* Wizard Estados */
.wizard-step--active .wizard-step__circle {
  background: var(--color-gov-blue);
  color: #fff;
  border-color: #2e4d8f;
  box-shadow: 0 0 0 4px rgba(59, 94, 166, 0.2);
}
.wizard-step--active .wizard-step__title {
  color: var(--color-gov-blue);
}

.wizard-step--completed .wizard-step__circle {
  background: #10b981;
  color: #fff;
  border-color: #059669;
}
.wizard-step--completed .wizard-step__title {
  color: #059669;
}

/* ============================================================
   TARJETA PRINCIPAL (AID CARD)
============================================================ */
.aid-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0,0,0,0.04);
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 40px;
  transition: all 0.3s ease;
}

.aid-card__header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf2f7;
}

.aid-card__icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--color-gov-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.aid-card__icon-wrapper--green {
  background: #ecfdf5;
  color: #059669;
}

.aid-card__title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.aid-card__desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.lookup-form {
  margin-bottom: 24px;
}

.lookup-form__fields {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
}

.lookup-select {
  width: 100%;
  padding: 13px 14px;
  font-size: 14px;
  font-family: var(--font-primary);
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.lookup-select:focus {
  border-color: var(--color-gov-blue);
  box-shadow: 0 0 0 3px rgba(59, 94, 166, 0.2);
}

.lookup-form__label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 8px;
}

.required-star {
  color: #dc2626;
  font-weight: bold;
}

.lookup-form__input-wrap {
  display: flex;
  align-items: stretch;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #cbd5e1;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lookup-form__input-wrap:focus-within {
  border-color: var(--color-gov-blue);
  box-shadow: 0 0 0 3px rgba(59, 94, 166, 0.2);
}

.lookup-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
}

.lookup-input {
  flex: 1;
  padding: 14px 16px 14px 48px;
  font-size: 16px;
  font-family: var(--font-primary);
  border: none;
  outline: none;
  color: #1e293b;
  font-weight: 600;
}

.lookup-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.lookup-submit-btn {
  background: var(--color-gov-blue);
  color: #ffffff;
  padding: 0 26px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  transition: background 0.2s;
}

.lookup-submit-btn:hover {
  background: #2b4783;
}

.form-hint {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  margin-top: 8px;
}

/* Chips de ejemplo */
.quick-examples {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.quick-examples__title {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  width: 100%;
  margin-bottom: 2px;
}

.badge-chip {
  background: #ffffff;
  border: 1px solid #94a3b8;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.badge-chip:hover {
  background: #eef4ff;
  border-color: var(--color-gov-blue);
  color: var(--color-gov-blue);
  transform: translateY(-1px);
}

/* Spinner */
.lookup-loading {
  text-align: center;
  padding: 30px 10px;
  color: #475569;
  font-size: 14px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--color-gov-blue);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   RESPUESTA INSTITUCIONAL Y ALERT BOX
============================================================ */
.lookup-response {
  animation: fadeIn 0.4s ease-out;
}

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

.alert-box {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 10px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.alert-box--success {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #064e3b;
}

.alert-box__icon {
  font-size: 26px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-box__title {
  font-size: 15.5px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 6px;
  font-family: var(--font-title);
}

.alert-box__text {
  font-size: 14px;
  color: #065f46;
  line-height: 1.65;
  background: #d1fae5;
  padding: 12px 14px;
  border-radius: 6px;
  border-left: 4px solid #10b981;
}

.alert-box__text strong {
  color: #1e293b;
  font-weight: 800;
  background: #a7f3d0;
  padding: 1px 4px;
  border-radius: 3px;
}

.lookup-actions {
  display: flex;
  justify-content: flex-end;
}

/* Botones Principales y Secundarios */
.btn-primary-action {
  background: var(--color-orange);
  color: #ffffff;
  padding: 14px 28px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  box-shadow: 0 4px 12px rgba(232, 101, 26, 0.3);
  transition: all 0.2s ease;
}

.btn-primary-action:hover {
  background: var(--color-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 101, 26, 0.4);
}

.btn-secondary-action {
  background: #f1f5f9;
  color: #475569;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}

.btn-secondary-action:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* ============================================================
   FORMULARIO Y ENCUESTA (PASO 2)
============================================================ */
.survey-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
}

.form-section__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #e2e8f0;
}

.form-section__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-gov-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.form-section__title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field--2cols {
  grid-column: span 2;
}

.form-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font-primary);
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-gov-blue);
  box-shadow: 0 0 0 3px rgba(59, 94, 166, 0.18);
}

.form-input[readonly] {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
  font-weight: 600;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

/* ============================================================
   PREGUNTAS DE LA ENCUESTA DE SISMO
============================================================ */
.survey-questions {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.question-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.45;
}

/* Radios Verticales */
.radio-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-card:hover {
  border-color: var(--color-gov-blue);
  background: #f8fafc;
}

.radio-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--color-gov-blue);
  transform: scale(1.2);
}

.radio-card__text {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.45;
}

.radio-card__text strong {
  color: #0f172a;
}

/* Radio Grid / Chips */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.radio-chip {
  cursor: pointer;
}

.radio-chip input[type="radio"] {
  display: none;
}

.radio-chip__box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
}

.radio-chip__box i {
  color: var(--color-orange);
  font-size: 16px;
}

.radio-chip input[type="radio"]:checked + .radio-chip__box {
  background: #eff6ff;
  border-color: var(--color-gov-blue);
  color: var(--color-gov-blue);
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(59, 94, 166, 0.2);
}

/* Contadores Familiares */
.family-counts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.counter-input {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.counter-input label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  line-height: 1.3;
}

.form-input--small {
  padding: 6px 8px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

/* Consentimiento */
.consent-box {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 6px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 4px;
  transform: scale(1.3);
  accent-color: var(--color-gov-blue);
  cursor: pointer;
}

.checkbox-label {
  font-size: 13px;
  color: #78350f;
  line-height: 1.55;
}

/* Barra de Acciones del Formulario */
.form-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
}

/* ============================================================
   PANTALLA DE ÉXITO Y RADICADO (PASO 3)
============================================================ */
.success-screen {
  text-align: center;
  padding: 10px 0;
}

.success-screen__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  font-size: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-screen__title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 8px;
}

.success-screen__subtitle {
  font-size: 14.5px;
  color: #475569;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

/* Ticket de Radicación */
.radicado-ticket {
  background: #f8fafc;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  max-width: 620px;
  margin: 0 auto 26px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.radicado-ticket__header {
  background: #1e293b;
  color: #ffffff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.radicado-ticket__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #cbd5e1;
}

.radicado-ticket__code {
  font-family: monospace;
  font-size: 17px;
  font-weight: 800;
  color: #FFD700;
  letter-spacing: 1px;
}

.radicado-ticket__body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radicado-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.radicado-row__label {
  color: #64748b;
  font-weight: 600;
}

.radicado-row__val {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
  max-width: 60%;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.badge-status--pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Callout */
.notice-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px 20px;
  max-width: 620px;
  margin: 0 auto 30px;
  text-align: left;
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.55;
}

.notice-callout__icon {
  font-size: 24px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-callout p {
  margin-top: 4px;
  color: #1e40af;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* ============================================================
   PIE DE PÁGINA (FOOTER)
============================================================ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.6;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr;
  gap: 40px;
  padding: 50px 20px 40px;
}

.footer-logo__title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: #FFD700;
  display: block;
}

.footer-logo__desc {
  font-size: 12px;
  color: #cbd5e1;
  display: block;
  margin-bottom: 12px;
}

.footer-mission {
  color: #94a3b8;
  font-size: 13px;
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-list, .footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
}

.footer-list i {
  color: var(--color-orange);
  width: 16px;
}

.footer-links a {
  color: #cbd5e1;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: #FFD700;
  padding-left: 4px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 12px;
  color: #64748b;
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom__gov {
  display: flex;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #aab;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.footer-social a:hover {
  background: #F5A800;
  color: #fff;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  :root {
    --carousel-height: 260px;
  }
  .slide-graphic { width: 220px; height: 220px; left: -10px; }
  .slide-content { margin-left: 220px; padding-right: 50px; }
  .slide-title--snigrd { font-size: 46px; }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col--brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .aid-card {
    padding: 24px 20px;
  }

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

  .form-field--2cols {
    grid-column: span 1;
  }

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

  .family-counts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lookup-form__fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lookup-form__input-wrap {
    flex-direction: column;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
  }

  .lookup-input {
    width: 100%;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    box-sizing: border-box;
  }

  .lookup-input:focus {
    border-color: var(--color-gov-blue);
    box-shadow: 0 0 0 3px rgba(59, 94, 166, 0.2);
  }

  .lookup-submit-btn {
    width: 100%;
    border-radius: 8px;
    padding: 14px;
    justify-content: center;
  }

  .lookup-icon {
    top: 26px;
  }

  .wizard-step__title {
    display: none;
  }

  .form-actions-bar {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .wizard-step__label {
    white-space: nowrap;
    font-size: 11px;
  }

  .form-actions-bar button {
    width: 100%;
    justify-content: center;
  }

  .success-actions {
    flex-direction: column;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }
  .footer-col--brand {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  :root {
    --carousel-height: 320px;
    --header-height:   70px;
    --nav-height:      auto;
  }

  .logo-text__name { font-size: 18px; }
  .logo-text__desc { display: none; }
  .search-input    { width: 130px; }

  .main-nav__list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 6px 0;
  }
  .main-nav__link { padding: 6px 10px; font-size: 12px; }

  .slide-graphic   { width: 160px; height: 160px; left: -10px; opacity: 0.6; }
  .slide-content   { margin-left: 150px; padding: 20px 30px 20px 10px; }
  .slide-title--snigrd { font-size: 36px; }
  .slide-map-bg    { display: none; }
}

@media (max-width: 480px) {
  .slide-graphic { display: none; }
  .slide-content { margin-left: 0; padding: 24px 20px; }
  .slide-title--snigrd { font-size: 44px; }
  .aid-portal__title { font-size: 24px; }
}

