/* ==========================================================================
   SNR - Certificados de Tradición y Libertad Style System
   Exact match for SNR & GOV.CO official portal layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --snr-navy: #002864;
  --snr-blue: #004884;
  --snr-accent: #3772ff;
  --snr-blue-hover: #225ad4;
  --gov-blue: #3366cc;
  --gov-red: #ff3b5c;
  --gov-yellow: #f5a623;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 30px;
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--gov-yellow);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Top Header GOV.CO
   ========================================================================== */

.header-gov-co {
  background-color: var(--gov-blue);
  color: #ffffff;
  padding: 8px 30px;
}

.gov-co-header-relativo {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gov-co-header-relativo img {
  height: 24px;
}

.gov-header-auth-buttons {
  display: flex;
  gap: 12px;
}

.btnInicio {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  padding: 5px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-family);
  transition: all 0.2s ease;
}

.btnInicio:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btnInicioRegistro {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff;
}

/* ==========================================================================
   Logo SNR Header & Red Notification Bar
   ========================================================================== */

.snr-top-logo-bar {
  background-color: #ffffff;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snr-top-logo-bar img {
  max-height: 46px;
  height: auto;
  display: block;
}

.contenedor-no-disponibles {
  background-color: var(--gov-red);
  color: #ffffff;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contenedor-no-disponibles i {
  font-size: 16px;
}

/* ==========================================================================
   Hero Section with City Background
   ========================================================================== */

.hero-city-section {
  background: linear-gradient(rgba(18, 56, 120, 0.82), rgba(18, 56, 120, 0.82)), url('../images/city_hero_bg.jpg');
  background-size: cover;
  background-position: center center;
  padding: 40px 20px 60px;
  color: #ffffff;
  text-align: center;
}

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

.hero-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto 10px;
  line-height: 1.6;
}

.hero-recovery-text {
  font-size: 14px;
  margin-bottom: 30px;
}

.hero-recovery-text a {
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   Wizard Steps (1. Consultar, 2. Pagar, 3. Descargar)
   ========================================================================== */

.ui-steps {
  width: 60%;
  max-width: 480px;
  margin: 0 auto 35px;
}

.ui-steps ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  position: relative;
}

.ui-steps ul::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 15%;
  right: 15%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.ui-steps-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ui-steps-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #123878;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.ui-steps-title {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.ui-steps-item.ui-state-highlight .ui-steps-number {
  background-color: #ffffff;
  color: var(--snr-navy);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.ui-steps-item.ui-state-highlight .ui-steps-title {
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   Search Panel Bar (White Input Container)
   ========================================================================== */

.panel-home-compra {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 1050px;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

.panel-home-oficinas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 180px;
  align-items: stretch;
  position: relative;
}

.input-field-block {
  padding: 16px 20px;
  border-right: 1px solid #e2e8f0;
  text-align: left;
  position: relative;
}

.input-field-block label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: 6px;
}

.autocomplete-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ui-inputfield {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-family);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  outline: none;
  color: #2d3748;
}

.ui-inputfield:focus {
  border-color: var(--snr-accent);
}

.btn-dropdown-trigger {
  background-color: var(--snr-accent);
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.btn-dropdown-trigger:hover {
  background-color: var(--snr-blue-hover);
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  display: none;
  text-align: left;
  margin-top: 2px;
}

.autocomplete-dropdown.active {
  display: block !important;
}

.autocomplete-option {
  padding: 10px 14px;
  font-size: 13px;
  color: #2d3748;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.autocomplete-option:hover, .autocomplete-option.selected {
  background-color: #eef4ff;
  color: var(--snr-accent);
  font-weight: 600;
}

.boton-busqueda-home {
  background-color: var(--snr-accent);
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  height: 100%;
  min-height: 70px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boton-busqueda-home:hover {
  background-color: var(--snr-blue-hover);
}

.panel-home-oficinas-busqueda {
  text-align: right;
  margin-top: 12px;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.boton-busqueda-home-oficina {
  background: #ffffff;
  color: var(--snr-navy);
  border: none;
  padding: 4px 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  margin-left: 6px;
}

/* ==========================================================================
   Shopping Cart Panel (panelCarrito - Exact match for Screenshot 1)
   ========================================================================== */

#panelCarritoContainer {
  margin-top: 25px;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  display: none;
}

.panel-home-carrito-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--text-dark);
  text-align: left;
}

.cart-subtext {
  color: #ffffff;
  text-align: center;
  font-size: 13px;
  margin-bottom: 10px;
}

.tabla-carrito-header {
  font-weight: 700;
  color: #4a5568;
  padding: 8px 10px;
}

.tabla-carrito-row-focus {
  border-bottom: 1px solid #edf2f7;
}

.tabla-carrito-row-focus td {
  padding: 12px 10px;
}

.btn-delete-cart-item {
  color: #e53e3e;
  cursor: pointer;
  font-size: 16px;
  border: none;
  background: none;
  padding: 4px;
  transition: transform 0.15s ease;
}

.btn-delete-cart-item:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   Translucent Quick Options Grid (Glassmorphism)
   ========================================================================== */

.contenedor-opciones-rapidas {
  margin-top: 45px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.opcion-rapida-card {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.opcion-rapida-card:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-3px);
}

.opcion-rapida-icon {
  font-size: 26px;
  color: #ffffff;
}

.opcion-rapida-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   Middle Card & Yellow Footer Section
   ========================================================================== */

.middle-footer-section {
  background-color: var(--gov-yellow);
  padding: 50px 20px 30px;
}

.snr-card-info {
  background-color: #ffffff;
  border-radius: 12px;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 30px 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: left;
}

.snr-card-info h3 {
  color: var(--snr-navy);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.snr-card-info h4 {
  color: var(--snr-accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
}

.snr-card-info p {
  font-size: 13px;
  color: #4a5568;
  margin-bottom: 6px;
}

.gov-co-redes-sociales {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.gov-co-redes-sociales a {
  color: #4a5568;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gov-co-redes-sociales i {
  font-size: 16px;
  color: var(--snr-navy);
}

.bottom-gov-bar {
  background-color: var(--gov-blue);
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.bottom-gov-bar img {
  height: 24px;
}

/* ==========================================================================
   Modals System
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 20, 50, 0.55);
  backdrop-filter: blur(2px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  padding: 15px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog-snr {
  background-color: #ffffff;
  border-radius: 8px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.modal-header-snr {
  background-color: var(--snr-accent);
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-snr h3 {
  font-size: 15px;
  font-weight: 700;
}

.modal-header-snr.error-header {
  background-color: #d9534f;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.modal-body-snr {
  padding: 22px;
  font-size: 13.5px;
  color: #2d3748;
  text-align: left;
}

.modal-body-snr .sub-info-text {
  color: #718096;
  font-size: 13px;
  margin-bottom: 16px;
}

.info-table-block {
  margin-bottom: 20px;
}

.info-label-title {
  font-weight: 400;
  color: #4a5568;
  font-size: 13px;
}

.info-label-value {
  font-weight: 700;
  color: #1a202c;
  font-size: 14px;
  margin-bottom: 12px;
  word-break: break-word;
}

.modal-footer-snr {
  padding: 15px 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
}

.btn-pill-blue {
  background-color: var(--snr-accent);
  color: #ffffff;
  border: none;
  padding: 8px 24px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-pill-blue:hover {
  background-color: var(--snr-blue-hover);
}

/* Responsive Rules */
@media (max-width: 900px) {
  .panel-home-oficinas-grid {
    grid-template-columns: 1fr;
  }

  .input-field-block {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .boton-busqueda-home {
    min-height: 50px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .contenedor-opciones-rapidas {
    grid-template-columns: repeat(3, 1fr);
  }

  .ui-steps {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .contenedor-opciones-rapidas {
    grid-template-columns: repeat(2, 1fr);
  }

  .ui-steps {
    width: 95%;
  }
}
