:root {
  --navy: #16283B;
  --navy-700: #112032;
  --orange: #F39A0D;
  --text: #0f1720;
  --muted: #6b7280;
  --azul: #192D46;
  --header-height: 108px;
}
.wrap { 
  max-width: 960px; 
  margin: 0 auto; 
  padding: 24px; 
}
header {
  background: linear-gradient(180deg, var(--navy), var(--navy-700));
  color: #fff; border-bottom: 4px solid var(--orange);
}
footer{
  background-color: var(--azul) !important;
}
body {
  scroll-behavior: smooth;
}
.registro {
  background: linear-gradient(180deg, var(--azul), var(--navy-700));
  color: #fff; border-bottom: 4px solid var(--orange);
}
.hero {
  background: url('../images/dron_portada.jpg') no-repeat center center/cover;
  position: relative;
  height: 100vh;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}
.hero .container {
  position: relative;
  z-index: 2;
}
h1, h2, h5 {
  color: dark;
}
.card {
  background: #fff; 
  border-radius: 16px; 
  padding: 24px; 
  box-shadow: 0 10px 30px rgba(0,0,0,.06); 
  border: 1px solid #e5e7eb;
}
form {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 16px; 
}
label { 
  font-size: 14px; 
  color: #111827; 
  font-weight: 600; 
}
input, select, textarea {
  width: 100%; 
  padding: 12px 14px; 
  border: 1px solid #d1d5db; 
  border-radius: 12px; 
  font-size: 15px; 
  outline: none;
}
input:focus, select:focus, textarea:focus { 
  border-color: var(--azul); 
  box-shadow: 0 0 0 3px rgba(22,40,59,.12); 
}
.full { 
  grid-column: 1 / -1; 
}
.btn {
  padding: 12px 16px; 
  border-radius: 12px; 
  cursor: pointer;
}
.btn-primary {
  background: var(--orange); 
  color:#111; 
  border: var(--orange); 
}
.btn:hover { 
  filter: brightness(.96); 
}
.btn-secondary { 
  background: #fff; 
  color: var(--azul); 
  border:1px solid var(--azul); 
}
.servicio-card {
  background-color: var(--azul);
  border: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.servicio-card .icono i {
  color: var(--orange);
  transition: transform 0.4s ease, color 0.3s ease;
}
.servicio-card:hover .icono i {
  transform: scale(1.2) rotate(8deg);
  color: #ffb13b;
}
.servicio-card h5 {
  color: var(--orange);
  margin-bottom: 0.5rem;
}
/* LOGIN AISLADO */
.login-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4vh 6vw;
  box-sizing: border-box;
}

.login-container {
  max-width: 520px;
  width: 100%;
  background: #fff;
  padding: 20px 22px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.login-logo {
  width: 35%;
}

.login-title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 400;
}

.toggles-row {
  display: flex;
  gap: 0.6rem;
}
.toggle-btn {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--orange);
  background: transparent;
  color: var(--orange);
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
}
.toggle-btn.active {
  background: var(--orange);
  color: #fff;
}

.login-form .form-group {
  width: 100%;
}
.login-form .form-label {
  margin-bottom: .35rem;
  color: var(--navy);
  font-weight: 600;
}
.login-form .form-control {
  width: 100%;
  border-radius: 8px;
  padding: .45rem .65rem;
  border: 1px solid #d1d5db;
}

/* fila de enlaces */
.options-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  font-size: .9rem;
  justify-content: flex-start;
}

.options-row .link-small {
  color: var(--navy);
  text-decoration: none;
}

.options-row .link-small:hover {
  text-decoration: underline;
}

/* Ajuste del recordarme */
.remember-inline {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  color: var(--navy);
  margin-left: 0 !important;
  white-space: nowrap;
}
.remember-inline input[type="checkbox"] {
  margin: 0;
}

.submit-row {
  margin-top: .25rem;
}
#btnLogin {
  padding: .55rem .75rem;
  border-radius: .6rem;
}

/* Responsive */
@media (max-width: 768px) {
  .login-layout {
    justify-content: center;
    padding: 3vh 4vw;
  }
  .remember-inline {
    margin-left: 0;
    width:100%;
  }
  .options-row {
    flex-direction: column;
    align-items:flex-start;
    gap:.5rem;
  }
}

/* --- REGISTRO --- */
.registro-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9fafb;
  padding: 2rem;
}

.registro-container {
  max-width: 650px;
  width: 100%;
}

.registro-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  padding: 3rem 2rem;
  transition: all 0.3s ease;
}

.registro-logo {
  width: 35%;
}

.registro-opciones {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-opcion {
  background: var(--azul);
  color: #fff;
  border: 2px solid var(--azul);
  border-radius: 1rem;
  padding: 1.8rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-opcion i {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.btn-opcion span {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: #e5e7eb;
}

.btn-opcion:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.btn-opcion:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.formulario-registro-persona {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

.formulario-registro-persona form {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

.formulario-registro-persona .row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.formulario-registro-persona .col-lg-3,
.formulario-registro-persona .col-lg-4,
.formulario-registro-persona .col-lg-6 {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  box-sizing: border-box;
}

.formulario-registro-persona input.form-control,
.formulario-registro-persona select.form-select {
  width: 100% !important;
}

/* CONTENEDOR GENERAL */
.pilot-modal {
  border-radius: 14px;
  padding: 0;
  background: #fff;
  min-height: 600px;
}

/* HEADER */
.pilot-modal-header {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* INDICADORES DE PASOS */
.pilot-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.pilot-step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dce3ff;
  color: #4a5bb5;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  cursor: pointer;
}

.pilot-step-number.active {
  background: var(--azul);
  color: #fff;
  transform: scale(1.08);
}

.pilot-step-line {
  flex: 1;
  height: 3px;
  background: #dce3ff;
  margin: 0 10px;
}

/* TITULO DEL PASO */
.pilot-step-title {
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  color: #ff6f00; /* Naranja clásico */
  margin-bottom: 1.2rem;  
}

/* CONTENIDO DEL PASO */
.pilot-step {
  display: none;
}
.pilot-step.active {
  display: block;
}

/* FOOTER */
.pilot-modal-footer {
  display: flex;
  justify-content: space-between;
}

.pilot-btn-prev,
.pilot-btn-next {
  background: var(--azul);
  color: #fff;
  border-radius: 10px;
  padding: .55rem 1.2rem;
  font-weight: 600;
  border: none;
  transition: .2s ease-in-out;
}

.pilot-btn-prev:disabled {
  background: #b9c2d6 !important;
  cursor: not-allowed;
}
.section-title-line {
  text-align: center;
  font-weight: 600;
  position: relative;
  margin-bottom: 24px;
}

.section-title-line::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #ff6f00;
  display: block;
  margin: 8px auto 0;
  border-radius: 2px;
}
.btn-orange {
  background-color: #ff6f00;
  color: #fff;
  border: none;
  font-weight: 600;
  padding-top: 5px; 
  padding-bottom: 9px; 
  padding-left: 14px;
  padding-right: 14px;
}

.btn-orange:hover {
  background-color: #e66500;
  color: #fff;
}
.input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
}
.input-group .btn-orange {
  border-radius: 0 6px 6px 0;
}
/* ===== HEADER GENERAL ===== */
.site-header {
  width: 100%;
  background: var(--azul);
  padding: 12px 24px;
  box-sizing: border-box;
}

/* Contenedor interno */
.site-header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-header-logo img {
  height: 80px;
  display: block;
}

/* Redes */
.social-icons{
  display: flex;
  gap: 10px;
}

.social-icons .icon{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--orange);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: 0.2s;
}

.social-icons .icon i{
  color: white;
  font-size: 18px;
}

/* Hover */
.social-icons .icon:hover{
  transform: scale(1.12);
  filter: brightness(1.1);
}
  .rule {
    font-size: 14px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
  }

  .rule span {
    margin-left: 6px;
  }

  .rule.invalid i { color: red; }
  .rule.valid i { color: green; }


  .position-relative { position: relative; }

/* SIDEBAR */
#nav-vertical {
  position: fixed;
  top: calc(var(--header-height));
  left: 0;
  width: 230px; 
  height: calc(100vh - var(--header-height));
  margin: 0;
  padding: 10px 0;
  background: #7d7d7d url(/images/gradient.png) repeat-x 0 -110px;
  border-radius: 0 !important;       
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
  box-shadow: none !important;      
  overflow-y: auto;
  z-index: 1000; 
}

#nav-vertical li {
  margin: 5px;
  padding: 0;
  list-style: none;
}

#nav-vertical a {
  display: block;
  padding: 10px 18px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 1.6em;
  -webkit-border-radius: 1.6em;
  -moz-border-radius: 1.6em;
}

/* Hover y estilo activo EXACTO del original */
#nav-vertical a:hover,
#nav-vertical li:hover > a {
  background: #666 url(/images/gradient.png) repeat-x 0 -40px;
  color: #444;
  border-top: solid 1px #f8f8f8;

  -webkit-box-shadow: 0 1px 1px rgba(0,0,0, .2);
  -moz-box-shadow: 0 1px 1px rgba(0,0,0, .2);
  box-shadow: 0 1px 1px rgba(0,0,0, .2);

  text-shadow: 0 1px 0 rgba(255,255,255, 1);
}



/* CONTENIDO PRINCIPAL */
  .main-content {
    margin-left: 230px;              /* Se corre a la derecha del sidebar */
    padding-top: var(--header-height);
    padding: 20px;                   /* Normal */
  }
.menu-disabled {
  pointer-events: none !important;
  opacity: 0.45 !important;
  filter: grayscale(100%) !important;
}

.btnEliminarDron:hover {
  color: #dc3545 !important; /* rojo solo en hover */
}
.btnEliminarLicencia:hover {
  color: #dc3545 !important; /* rojo solo en hover */
}

/* ===== RESPONSIVE ===== */
@media(max-width: 768px){
    #sidebar {
      left: -250px;
      transition: 0.3s;
    }

    /* Cuando se abre */
    #sidebar.show {
      left: 0;
    }

    .main-content {
      margin-left: 0;
      padding-top: 100px;
    }
    #toggleSidebar {
      font-size: 26px;
      color: var(--orange);
      border: none;
      background: transparent;
    }
  .site-header-container {
    flex-direction: column;
    gap: 10px;
  }

  .site-header-logo img {
    height: 55px;
  }

  .formulario-registro-persona .row {
    flex-direction: column;
  }

  .formulario-registro-persona .col-lg-3,
  .formulario-registro-persona .col-lg-4,
  .formulario-registro-persona .col-lg-6,
  .formulario-registro-persona .col-md-6,
  .formulario-registro-persona .col-md-4,
  .formulario-registro-persona .col-md-3 {
    width: 100% !important;
    max-width: 100% !important;
  }
  .form-check {
    display: flex;
    align-items: flex-start;
  }

  .form-check-input {
    margin-top: 3px;  /* Ajuste fino opcional */
  }
}
@media (min-width: 768px) {
  .registro-opciones {
    flex-direction: row;
    justify-content: center;
  }

  .btn-opcion {
    flex: 1;
  }
}
@media (max-width: 576px) {
  /* Centrar el contenido y evitar exceso de espacio lateral */
  .login-layout {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
  }

  /* Contenedor más ancho en pantallas pequeñas */
  .login-container {
    width: 100%;
    max-width: 95%;
    padding: 16px 18px;
  }

  /* Logo más pequeño y centrado */
  .login-logo {
    width: 55%;
    display: block;
    margin: 0 auto 1rem auto;
  }

  /* Título más legible y centrado */
  .login-title {
    text-align: center;
    font-size: 1.2rem;
  }

  /* Botones tipo toggle en una sola columna si no caben */
  .toggles-row {
    flex-direction: column;
    width: 100%;
  }

  .toggle-btn {
    width: 100%;
    text-align: center;
  }

  /* Inputs y etiquetas más cómodos para tacto */
  .login-form .form-label {
    font-size: 0.9rem;
  }
  .login-form .form-control {
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem;
  }

  /* Enlaces y checkbox alineados correctamente */
  .options-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  /* Botón más visible y legible */
  #btnLogin {
    width: 100%;
    margin-top: 0.8rem;
    font-size: 1rem;
  }
}
@media (max-width: 720px) {
  form { 
    grid-template-columns: 1fr; 
  }
  .grid-2 { 
    grid-template-columns:1fr; 
  }
  .logo { 
    width: 200px; 
  }
}