/* ====================================== */
/* ESTILO GENERAL                         */
/* ====================================== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  scroll-padding-top: 80px;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

/* ====================================== */
/* LAYOUT FLEX PRINCIPAL                  */
/* ====================================== */
body.inicio {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ====================================== */
/* HEADER SUPERIOR                        */
/* ====================================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: #1b254b;
  z-index: 1000;
  padding-left: 230px;
}

.top-header img {
  height: 52px;
  width: auto;
}

.top-header a {
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  margin-right: 20px;
}

.top-header a:hover {
  color: #bbbbbb;
  text-decoration: underline;
}

/* ====================================== */
/* AJUSTE PARA SIDEBAR + MAIN            */
/* ====================================== */
.wrapper {
  display: flex;
  flex-grow: 1;
  min-height: calc(100vh - 72px);
}

.sidebar {
  min-height: calc(100vh - 72px);
  position: fixed;
  top: 72px;
  left: 0;
  width: 220px;
  background-color: #1b254b;
  padding-top: 20px;
}

.main-content {
  margin-left: 220px;
  padding: 90px 40px 40px;
  flex: 1;
  background-color: #ffffff;
  max-width: 100%;
  box-sizing: border-box;
}

/* ====================================== */
/* TIPOGRAFÍA Y COLORES                  */
/* ====================================== */
.main-content h1, .main-content h2 {
  font-size: 24px;
  color: #1b254b;
  margin-bottom: 10px;
}

.main-content p {
  font-size: 15px;
  color: #333;
}

/* ====================================== */
/* ENLACES DE SIDEBAR                    */
/* ====================================== */
.sidebar .nav-link {
  font-size: 15px;
  padding: 10px;
  border-radius: 4px;
  color: #ffffff;
  display: block;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background-color: #0f193a;
  color: #ffffff;
}

/* ====================================== */
/* TARJETAS GENERALES                    */
/* ====================================== */
.card {
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-weight: bold;
  color: #1b254b;
}

.card-body embed {
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* ====================================== */
/* BOTONES DE DESCARGA                   */
/* ====================================== */
.btn-primary {
  background-color: #1b254b;
  border-color: #1b254b;
  color: white;
}

.btn-primary:hover {
  background-color: #0f193a;
  border-color: #0f193a;
}

/* ====================================== */
/* FOOTER                                */
/* ====================================== */
.footer {
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
  width: 100%;
  margin: 0;
  clear: both;
  position: relative;
  z-index: 1;
  margin-top: auto; /* Esto asegura que el footer se quede al final */
}

.footer i {
  margin-right: 5px;
}

/* ====================================== */
/* BOTÓN HAMBURGUESA CUADRADO CONTORNO BLANCO */
/* ====================================== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 10px;
  z-index: 1050;
  background: #1b254b !important;
  color: #fff !important;
  border: 1.5px solid #fff;
  padding: 0;
  width: 36px; /*ancho del botón*/
  height: 36px; /*alto del botón*/
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle i {
  font-size: 24px; /*tamaño del icono*/
  color: #fff !important;
}

/* ====================================== */
/* OVERLAY PARA MENÚ MÓVIL               */
/* ====================================== */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.menu-overlay.active {
  display: block;
}

/* ====================================== */
/* RESPONSIVE (TABLETS Y CELULARES)      */
/* ====================================== */
@media screen and (max-width: 768px) {
  .top-header {
    height: 60px;
    padding-left: 60px;
  }

  .top-header img {
    height: 42px;
  }

  .sidebar {
    display: none !important;
  }

  .wrapper {
    min-height: calc(100vh - 60px); /* Ajustado para móvil */
    flex: 1; /* Asegura que ocupe todo el espacio disponible */
  }

  .main-content {
    margin-left: 0;
    padding: 80px 20px 20px;
    max-width: 100%;
    min-height: calc(100vh - 60px); /* Altura mínima para empujar el footer */
  }

  .menu-toggle {
    display: block;
  }

  .tarjeta {
    max-width: 100%;
  }

  .header-left {
    margin-left: 60px;
  }

  /* Ajuste específico para el botón hamburguesa */
  .btn.position-fixed {
    top: 10px !important;
    left: 10px !important;
    z-index: 1051 !important;
  }
}

/* ====================================== */
/* AJUSTE HEADER EN MÓVIL PARA ESCUDO     */
/* ====================================== */
@media (max-width: 576px) {
  .header-left {
    flex-grow: 1;
  }

  .header-left img {
    height: 40px;
    width: auto;
  }

  .top-header {
    padding-left: 60px;
  }
}

/* ====================================== */
/* AJUSTES PARA OFFCANVAS SIDEBAR MÓVIL   */
/* ====================================== */
@media (max-width: 768px) {
  .offcanvas-start {
    width: 280px !important;
  }
  
  .offcanvas-header {
    background-color: #1b254b;
    color: white;
    padding: 1rem;
  }
  
  .offcanvas-body {
    background-color: #1b254b;
    padding: 0;
  }
  
  .offcanvas-body .nav-link {
    color: white !important;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .offcanvas-body .nav-link:hover {
    background-color: #0f193a;
  }
}

/* ====================================== */
/* ESTILOS ESPECÍFICOS: AUTORIDADES      */
/* ====================================== */
/* Hacemos el selector más específico para que anule los estilos por defecto de Bootstrap */
.card .autoridad-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%; /* Esto crea el círculo */
}

/* ====================================== */
/* ESTILOS ESPECÍFICOS: INSCRIPCIÓN      */
/* ====================================== */
/* Círculo para los números de los pasos */
.step-circle {
  width: 35px;
  height: 35px;
  /* Evita que el círculo se encoja o estire por su contenido */
  flex-shrink: 0; 
}

/* Estilo para el destacado de declaración jurada */
.alert.declaracion-jurada {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Hover effect for copy icon in footer */
.copy-phone {
  cursor: pointer;
  vertical-align: middle;
}
.copy-phone:hover { opacity: 0.7; }

/* ====================================== */
/* COLORES PERSONALIZADOS                 */
/* ====================================== */
.text-purple {
  color: #6f42c1 !important; /* Violeta */
}

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:hover {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
}



