/* MODERN RESPONSIVE ACODECO ID CARD SYSTEM */



/* ================================================================ */

/* RESPONSIVE FOUNDATION */

/* ================================================================ */



* {

  box-sizing: border-box;

}



body {

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

  line-height: 1.6;

  color: #333;

  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

  min-height: 100vh;

  margin: 0;

  padding: 26px 20px 20px;

}



.container {

  max-width: 800px;

  margin: 0 auto;

  padding: 0 15px;

  border-radius: 6px;

}



/* ================================================================ */

/* MODERN SEARCH INTERFACE */

/* ================================================================ */



.search-container {

  background: white;

  border-radius: 20px;

  padding: 40px;

  margin-bottom: 40px;

  text-align: center;

}



.search-title {

  font-size: 32px;

  font-weight: 700;

  color: #000;

  margin-bottom: 12px;

  line-height: 1.2;

}



.search-subtitle {

  color: #8e8e93;

  margin-bottom: 40px;

  font-size: 17px;

  line-height: 1.4;

}



.search-form {

  display: flex;

  flex-direction: row;

  gap: 12px;

  max-width: 500px;

  margin: 0 auto;

  align-items: center;

  background: #f2f2f7;

    border-radius: 12px;

}



/* Custom Dropdown */

.custom-dropdown {

  position: relative;

  width: 120px;

}



.dropdown-selected {

  background: #f2f2f7;

  border: none;

  border-radius: 12px;

  padding: 16px 16px;

  font-size: 15px;

  color: #000;

  cursor: pointer;

  height: 52px;

  box-sizing: border-box;

  display: flex;

  align-items: center;

  justify-content: space-between;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

}



.dropdown-arrow {

  margin-left: 8px;

  transition: transform 0.2s ease;

}



.dropdown-options {

  position: absolute;

  top: 100%;

  left: 0;

  right: 0;

  background: white;

  border: 1px solid #e8e8e8;

  border-radius: 8px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.1);

  z-index: 1000;

  display: none;

  overflow: hidden;

}



.dropdown-option {

  padding: 12px 16px;

  cursor: pointer;

  font-size: 15px;

  color: #000;

  background: white;

  transition: background-color 0.2s ease;

}



.dropdown-option:hover {

  background: #f2f2f7;

}



.dropdown-option:first-child {

  border-top: none;

}



.custom-dropdown.open .dropdown-arrow {

  transform: rotate(180deg);

}



.custom-dropdown.open .dropdown-options {

  display: block;

}



.search-row {

  display: flex;

  gap: 12px;

  align-items: center;

  flex: 1;

}



.search-input {

  flex: 1;

  border: none;

  background: #cfcfd1;

  border-radius: 12px;

  padding: 16px 20px;

  font-size: 17px;

  color: #000;

  outline: none;

  height: 52px;

  box-sizing: border-box;

  margin: 0 !important;

}



.search-input:focus {

  background: #e5e5ea;

}



.search-input::placeholder {

  color: #89898bd9;

}



.search-btn {

  background: #1B5A96;

  border: none;

  border-radius: 12px;

  padding: 16px 20px;

  cursor: pointer;

  color: white;

  display: flex;

  align-items: center;

  justify-content: center;

  min-width: 60px;

  height: 52px;

  box-sizing: border-box;

}



.search-btn:hover {

  background: #154a85;

}



.sr-only {

  position: absolute;

  width: 1px;

  height: 1px;

  padding: 0;

  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;

}



/* ================================================================ */

/* APPLE-STYLE DIGITAL ID */

/* ================================================================ */



/* Modern Profile View */

.digital-id-container {

  max-width: 400px;

  margin: 0 auto;

  padding: 20px;

}



.digital-id-card {

  background: white;

  border-radius: 20px;

  padding: 30px;

}



.digital-id-header {

  text-align: center;

  margin-bottom: 8px;

}



.id-org {

  font-size: 12px;

  font-weight: 500;

  color: #999;

  text-transform: uppercase;

  letter-spacing: 2px;

}



.id-country {

  display: none;

}



.digital-id-content {

  text-align: center;

}



.profile-section {

  margin-bottom: 32px;

}



.profile-photo {

  width: 120px;

  height: 120px;

  border-radius: 50%;

  margin: 0 auto 24px;

  overflow: hidden;

}



.profile-photo-placeholder {

  width: 120px;

  height: 120px;

  border-radius: 50%;

  background: #f8f9fa;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto 24px;

}



.employee-photo-img {

  width: 100%;

  height: 100%;

  object-fit: contain;

  border-radius: 50%;

}



.primary-info {

  margin-bottom: 32px;

}



.employee-name {

  font-size: 28px;

  font-weight: 700;

  color: #000;

  margin: 0 0 4px 0;

  line-height: 1.2;

    text-transform: uppercase;

}



.employee-position {

  font-size: 17px;

  color: #8e8e93;

  margin: 0 0 20px 0;

  font-weight: 400;

    text-transform: uppercase;

}



.profile-details {

  space-y: 16px;

}



.profile-item {

  margin-bottom: 16px;

}



.profile-cedula {

  font-size: 28px;

  font-weight: 700;

  color: #1B5A96;

  margin-bottom: 16px;

  letter-spacing: 0.5px;

}

.pa-cedula {

  font-size: 24px;

  font-weight: 700;

  color: #29961b;

  margin: 0 0 4px 0;

  line-height: 1.2;

    text-transform: uppercase;

   

}

.pa-fecha {

  font-size: 16px;

  color: #cf0303;

  margin-bottom: 8px;

  font-weight: 600;

    text-transform: uppercase;

}


.profile-department {

  font-size: 18px;

  color: #333;

  margin-bottom: 12px;

  font-weight: 500;

  text-transform: uppercase;

}



.profile-id {

  font-size: 16px;

  color: #666;

  margin-bottom: 8px;

  font-weight: 500;

}



.profile-blood {

  font-size: 16px;

  color: #FF8C00;

  margin-bottom: 8px;

  font-weight: 600;

    text-transform: uppercase;

}



.digital-id-footer {

  background: transparent;

  padding: 24px 0 0;

  text-align: center;

}



.validation-info {

  display: block;

}



.validation-status {

  font-size: 14px;

  color: #34c759;

  font-weight: 600;

  margin-bottom: 4px;

}



.status-indicator {

  display: none;

}



.issued-date {

  font-size: 14px;

  color: #999;

}



/* ================================================================ */

/* RESPONSIVE DESIGN */

/* ================================================================ */



@media (max-width: 768px) {

  body {

    padding: 10px;

  }



  .search-container {

    padding: 20px;

  }



  .header-logos-container {

    gap: 20px;

    padding: 0 15px;

  }



  .logo-acodeco img {

    height: 55px;

  }



  .logo-paso-firme img {

    height: 45px;

  }



  .search-form {

    max-width: 100%;

    padding: 0 20px;

    flex-direction: column;

    gap: 16px;

    align-items: stretch;

    background: #f2f2f7;

      border-radius: 12px;

  }

  

  .custom-dropdown {

    width: 100%;

  }



  .search-row {

    gap: 10px;

  }



  .id-card-body {

    grid-template-columns: 1fr;

    gap: 20px;

    text-align: center;

  }



  .employee-cedula {

    font-size: 24px;

  }



  .employee-position {

    font-size: 16px;

  }



  .employee-name {

    font-size: 20px;

  }



  .details-section {

    text-align: left;

  }



  .back-button-container {

    top: 15px;

    right: 15px;

  }



  .back-button {

    padding: 8px 16px;

    font-size: 12px;

  }

}



@media (max-width: 480px) {

  .search-title {

    font-size: 20px;

  }



  .search-subtitle {

    font-size: 14px;

  }



  .header-logos-container {

    gap: 15px;

    padding: 0 10px;

  }



  .logo-acodeco img {

    height: 50px;

  }



  .logo-paso-firme img {

    height: 40px;

  }



  .integrated-search-bar {

    margin: 0 10px;

  }



  .search-selector,

  .search-input,

  .search-button {

    padding: 14px 16px;

  }



  .employee-photo {

    width: 120px;

    height: 156px;

  }



  .search-text {

    display: none;

  }



  .search-button {

    min-width: auto;

  }

}



/* ================================================================ */

/* LOADING AND ANIMATIONS */

/* ================================================================ */



.loading {

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 40px;

}



.spinner {

  border: 3px solid #f3f3f3;

  border-top: 3px solid #FF8C00;

  border-radius: 50%;

  width: 40px;

  height: 40px;

  animation: spin 1s linear infinite;

}



@keyframes spin {

  0% {

    transform: rotate(0deg);

  }



  100% {

    transform: rotate(360deg);

  }

}



/* ================================================================ */

/* BACK BUTTON */

/* ================================================================ */



.back-button-container {

  position: absolute;

  top: 100px;

  left: 30px;

  z-index: 1000;

}



.back-button {

  background: none;

  border: none;

  color: #007AFF;

  padding: 0;

  cursor: pointer;

  display: flex;

  align-items: center;

  gap: 4px;

  transition: opacity 0.2s ease;

  font-size: 16px;

  text-decoration: none;

}



.back-button:hover {

  opacity: 0.6;

}



.back-arrow {

  font-size: 18px;

  font-weight: 400;

}



.back-text {

  font-size: 16px;

  font-weight: 400;

}



/* ================================================================ */

/* VALIDATION AND ERROR HANDLING */

/* ================================================================ */



.validation-message {

  background: #fff3cd;

  border: 1px solid #ffeeba;

  border-radius: 12px;

  padding: 16px 20px;

  text-align: center;

  color: #856404;

  font-size: 16px;

  margin: 20px auto;

  max-width: 400px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

}



.validation-message::before {

  content: "⚠️";

  font-size: 18px;

}



/* ================================================================ */

/* ERROR HANDLING - MODERN FRIENDLY DESIGN */

/* ================================================================ */



.error-container {

  background: transparent;

  padding: 60px 20px;

  text-align: center;

  max-width: 450px;

  margin: 0 auto;

}



.error-illustration {

  margin-bottom: 32px;

  display: flex;

  justify-content: center;

}



.error-content {

  text-align: center;

}



.error-title {

  font-size: 28px;

  font-weight: 700;

  color: #333;

  margin-bottom: 12px;

  line-height: 1.2;

}



.error-message {

  font-size: 18px;

  color: #666;

  margin-bottom: 40px;

  line-height: 1.5;

}



.help-section {

  margin-top: 40px;

}



.help-contact {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 16px;

  background: #f8f9fa;

  padding: 24px;

  border-radius: 12px;

}



.phone-icon {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 48px;

  height: 48px;

  background: #fff;

  border-radius: 50%;

  flex-shrink: 0;

}



.help-text {

  display: flex;

  flex-direction: column;

  text-align: left;

  gap: 2px;

}



.help-title {

  font-size: 16px;

  color: #333;

  font-weight: 500;

}



.help-number {

  font-size: 18px;

  color: #FF8C00;

  font-weight: 600;

}



.help-number strong {

  font-weight: 700;

}



.help-subtitle {

  font-size: 14px;

  color: #666;

  font-weight: 400;

}



/* ================================================================ */

/* HEADER OVERRIDES */

/* ================================================================ */



/* Override the banner background from style.css */

#logo2024 a,

#logo2 a {

  background: none !important;

  text-indent: 0 !important;

  height: auto !important;

  width: auto !important;

  border: none !important;

}



#header {

  background: white !important;

  padding: 16px 0 !important;

  position: relative !important;

  display: flex !important;

  justify-content: space-between !important;

  align-items: center !important;

  border-bottom: 1px solid #e8e8e8 !important;

}



.header-logos-container {

  display: flex;

  align-items: center;

  justify-content: space-between;

  width: 100%;

  padding: 0 30px;

}



.logo-acodeco,

.logo-paso-firme {

  height: 80px;

  display: flex;

  align-items: center;

}



.logo-acodeco img {

  height: 70px;

  width: auto;

}



.logo-paso-firme img {

  height: 60px;

  width: auto;

}



/* ================================================================ */

/* COLOR ACCENT STRIPES */

/* ================================================================ */



.top-accent-stripe {

  display: flex;

  position: fixed;

  top: 0;

  left: 0;

  right: 0;

  z-index: 1001;

}



.color-accent-footer {

  display: flex;

  margin-top: 60px;

  margin-bottom: 20px;

}



.accent-stripe {

  height: 12px;

  flex: 1;

}



.accent-stripe.blue {

  background: #1B5A96;

}



.accent-stripe.orange {

  background: #FF8C00;

}



/* ================================================================ */

/* LEGACY OVERRIDES */

/* ================================================================ */



#wrapper {

  width: 100%;

  max-width: none;

  background: none;

}



.shell {

  width: 100%;

  max-width: none;

}



.espaciador {

  height: 20px;

}



.menu {

  background: none;

  border: none;

  padding: 0;

}



.menu_buscador {

  background: none;

  border: none;

  padding: 0;

}

/* ================================================================ */


/* MODAL - Fondo oscuro que cubre toda la pantalla */

/* ================================================================ */

/* Contenedor que oscurece toda la pantalla */
.modal-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999999 !important;
  justify-content: center;
  align-items: center;
  padding: 15px; /* Margen para pantallas móviles */
}

/* Caja del aviso */
.modal-content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  max-width: 700px; /* Un poco más ancho para albergar el texto largo */
  width: 100%;
  max-height: 90vh; /* Evita que se salga de la pantalla verticalmente */
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-family: Arial, sans-serif;
}

/* Título Principal */
.modal-content h2 {
  color: #003366; /* Azul formal institucional */
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 22px;
  text-align: center;
  line-height: 1.3;
  border-bottom: 2px solid #eeeeee;
  padding-bottom: 15px;
}

/* Contenedor con Scroll para el texto */
.modal-body-scroll {
  overflow-y: auto; /* Activa barra de desplazamiento si es necesario */
  text-align: left; /* Lectura natural alineada a la izquierda */
  padding-right: 10px;
  margin-bottom: 20px;
}

.modal-body-scroll p {
  color: #333333;
  line-height: 1.6;
  font-size: 15px;
}

/* Subtítulos de las secciones (1 y 2) */
.seccion-aviso h3 {
  color: #003366;
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 8px;
}

/* Estilos de las viñetas */
.seccion-aviso ul {
  margin-top: 0;
  margin-bottom: 15px;
  padding-left: 20px;
}

.seccion-aviso li {
  color: #444444;
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Formato de la Nota al pie */
.nota-aviso {
  background-color: #f9f9f9;
  border-left: 4px solid #ffcc00; /* Detalle en amarillo de advertencia sugerido */
  padding: 12px;
  margin-top: 20px;
  border-radius: 0 4px 4px 0;
  font-size: 14px !important;
}

/* Botón de aceptación */
.modal-btn {
  position: relative;
  z-index: 1000000 !important;
  background-color: #003366;
  color: white;
  border: none;
  padding: 14px 35px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  align-self: center; /* Centra solo el botón al final */
  transition: background 0.3s ease;
  width: auto;
}

.modal-btn:hover {
  background-color: #002244;
}
