/*=========================================
  Import y Reset
=========================================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  list-style: none;
}

/*=========================================
  BODY y Fondo global
=========================================*/
body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  background: linear-gradient(135deg, #F4F7FA 0%, #FFFFFF 70%);
  color: #333333;
}

/*=========================================
  FONDO EXCLUSIVO PARA PÁGINA DE LOGIN
=========================================*/
body.login-page {
  background:
    linear-gradient(135deg, rgba(44,62,80,0.7), rgba(41,128,185,0.7)),
    url('/assets/images/fondo.png') no-repeat center center fixed;
  background-size: cover;
}

/*=========================================
  HEADER y FOOTER FIJOS
=========================================*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #2C3E50;
  color: #FFFFFF;
  text-align: center;
  padding: 10px 0;
  z-index: 1030;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  /* Si tu footer es más alto, ajusta esta altura */
  height: 50px;
  background-color: #2C3E50;
  color: #FFFFFF;
  text-align: center;
  padding: 10px 0;
  z-index: 1030;
}

/*=========================================
  Espacios para que no tape contenido
=========================================*/
body {
  padding-top: 70px;    /* espacio para el header */
  padding-bottom: 50px; /* espacio para el footer */
}

/*=========================================
  NAVEGACIÓN
=========================================*/
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2C3E50;
  padding: 10px 20px;
}
.navbar-text {
  font-size: 36px;
  font-weight: bold;
  color: #FFFFFF;
  flex-grow: 1;
  text-align: center;
}
.nav-item-left,
.nav-item-right {
  flex-grow: 0;
}

/*=========================================
  FORMULARIO Principal
=========================================*/
.form-container {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 20px 30px 30px 30px;
  color: #333333;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  margin: 20px auto;
  border: 1px solid #DDE5EC;
}

.section-container {
  background-color: #F4F7FA;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #DDE5EC;
}

/*=========================================
  Controles y Botones
=========================================*/
.btn-custom {
  background-color: #607D8B;
  border-color: #607D8B;
  color: #FFFFFF;
  transition: background-color 0.3s ease;
}
.btn-custom:hover {
  background-color: #455A64;
  border-color: #455A64;
}

.btn-secondary {
  background-color: #2980B9;
  border-color: #2980B9;
  color: #FFFFFF;
}
.btn-secondary:hover {
  background-color: #1F6391;
  border-color: #1F6391;
}

.btn-block {
  width: 100%;
}

/*=========================================
  Utilidades
=========================================*/
.hidden-field {
  display: none !important;
}

.radio-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
}

/*=========================================
  SELECT y validación
=========================================*/
select.form-control {
  color: #666666;
}
select.form-control:invalid {
  color: #999999;
}

/*=========================================
  LOGIN / REGISTER (tu CSS original)
=========================================*/
.auth-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 850px;
  height: 550px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 0 30px rgba(0,0,0,0.15);
  overflow: hidden;
}
.auth-container h1 {
  font-size: 36px;
  margin: -10px 0;
  color: #2C3E50;
}
.auth-container p {
  font-size: 14.5px;
  margin: 15px 0;
  color: #333333;
}
form { width: 100%; }
.form-box {
  position: absolute;
  right: 0;
  width: 50%;
  height: 100%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  color: #F4F7FA;
  text-align: center;
  padding: 40px;
  z-index: 1;
  transition: .6s ease-in-out 1.2s, visibility 0s 1s;
}
.auth-container.active .form-box { right: 50%; }
.form-box.register { visibility: hidden; }
.auth-container.active .form-box.register { visibility: visible; }
.input-box {
  position: relative;
  margin: 30px 0;
}
.input-box input {
  width: 100%;
  padding: 13px 50px 13px 20px;
  background: #EFEFEF;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333333;
  font-weight: 500;
}
.input-box input::placeholder {
  color: #888888;
  font-weight: 400;
}
.input-box i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #2C3E50;
}
.forgot-link { margin: -15px 0 15px; }
.forgot-link a { font-size: 14.5px; color: #2980B9; }
.btn {
  width: 100%;
  height: 48px;
  background: #2980B9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.07);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}
.toggle-box {
  position: absolute;
  width: 100%;
  height: 100%;
}
.toggle-box::before {
  content: '';
  position: absolute;
  left: -250%;
  width: 300%;
  height: 100%;
  background: #607D8B;
  border-radius: 150px;
  z-index: 2;
  transition: 1.8s ease-in-out;
}
.auth-container.active .toggle-box::before { left: 50%; }
.toggle-panel {
  position: absolute;
  width: 50%;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: .6s ease-in-out;
}
.toggle-panel.toggle-left {
  left: 0;
  transition-delay: 1.2s;
}
.auth-container.active .toggle-panel.toggle-left {
  left: -50%;
  transition-delay: .6s;
}
.toggle-panel.toggle-right {
  right: -50%;
  transition-delay: .6s;
}
.auth-container.active .toggle-panel.toggle-right {
  right: 0;
  transition-delay: 1.2s;
}
.toggle-panel p {
  margin-bottom: 20px;
}
.toggle-panel .btn {
  width: 160px;
  height: 46px;
  background: transparent;
  border: 2px solid #fff;
  box-shadow: none;
}

/*=========================================
  MEDIA QUERIES
=========================================*/
@media screen and (max-width: 650px) {
  .container {
    height: calc(100vh - 40px);
  }
  .form-box {
    bottom: 0;
    width: 100%;
    height: 70%;
  }
  .container.active .form-box {
    right: 0;
    bottom: 30%;
  }
  .toggle-box::before {
    left: 0;
    top: -270%;
    width: 100%;
    height: 300%;
    border-radius: 20vw;
  }
  .container.active .toggle-box::before {
    top: 70%;
  }
  .toggle-panel {
    width: 100%;
    height: 30%;
  }
  .toggle-panel.toggle-left {
    top: 0;
  }
  .toggle-panel.toggle-right {
    right: 0;
    bottom: -30%;
  }
  .container.active .toggle-panel.toggle-right {
    bottom: 0;
  }
}

@media screen and (max-width: 400px) {
  .form-box {
    padding: 20px;
  }
  .toggle-panel h1 {
    font-size: 30px;
  }
}

/*=========================================
  RESULTADOS DEL ESTUDIO
=========================================*/
body {
  background: linear-gradient(180deg, #FFFBEA 0%, var(--c-bg) 100%);
  color: var(--c-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}
.results-container {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  color: #333333;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: 40px auto;
  transition: transform 0.3s ease;
}
.results-container:hover {
  transform: translateY(-5px);
}
.btn-custom {
  background-color: #607D8B;
  border-color: #607D8B;
  color: #fff;
  padding: 12px;
  font-size: 1.2em;
}
header, footer {
  background-color: #2C3E50;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}
h1 {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 0;
}
h3 {
  font-size: 1.75em;
  margin-bottom: 0;
  color: #fff;
  background-color: #2C3E50;
  padding: 15px 20px;
  border-radius: 10px 10px 0 0;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
table {
  width: 100%;
  margin-bottom: 20px;
}
table th, table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #DDE5EC;
}
table th {
  background-color: #2C3E50;
  color: #fff;
}
table td {
  background-color: #F4F7FA;
  color: #333333;
}
table tr:hover td {
  background-color: #FFFFFF;
}

/*=========================================
  UNIFICAR COLOR AL AZUL PETRÓLEO DEL HEADER
=========================================*/

/* Botones principales (Enviar, Siguiente, Anterior) */
.btn-custom,
.btn-primary,
.btn-secondary {
  background-color: #2C3E50 !important;
  border-color:     #2C3E50 !important;
  color:            #ffffff !important;
  min-width:        140px;       /* ancho mínimo */
  width:            auto !important; /* que no ocupen todo el contenedor */
  padding:          0.6rem 1.4rem;
  border-radius:    5px;
  font-weight:      500;
}
.btn-custom:hover,
.btn-primary:hover,
.btn-secondary:hover {
  background-color: #1A2933 !important;
  border-color:     #1A2933 !important;
}

/* Si tienes botones de avanzar/retroceder dentro de un contenedor .wizard-buttons por ejemplo */
.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}
.wizard-buttons .btn {
  flex: 1;
  margin: 0 0.5rem;
}

/*=========================================
  TABS (?pill? style) EN AZUL PETRÓLEO
=========================================*/
.nav-tabs {
  border-bottom: none;
}
.nav-tabs .nav-link {
  color: #607D8B;                  /* texto de pestañas inactivas */
  border: 1px solid transparent;
  border-radius: 5px 5px 0 0;
  margin-right: 0.2rem;
  padding: 0.6rem 1.2rem;
}
.nav-tabs .nav-link:hover {
  color: #ffffff;
  background-color: #2C3E50;
  border-color: #2C3E50 #2C3E50 transparent;
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: #ffffff;
  background-color: #2C3E50;
  border-color: #2C3E50 #2C3E50 transparent;
}

/*=========================================
  AJUSTES GENERALES
=========================================*/
/* Quitar ancho 100% de .btn-block dentro de wizard */
.section-container .btn-block {
  width: auto;
}

/* Centramos el formulario de tabs */
.form-wizard {
  max-width: 900px;
  margin: 0 auto;
}




#inicio-menu .menu-card {
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#inicio-menu .menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

#inicio-menu .menu-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    color: #2C3E50;
    transition: color 0.3s ease;
}

#inicio-menu .menu-card:hover .menu-icon {
    color: #2C3E50;
}


/* ===== Vista: Actualizar Estado ===== */
.section-container table thead th {
  background-color: #2C3E50;
  color: #fff;
  border-color: #2C3E50;
}
.section-container table tbody td {
  background: #F4F7FA;
}
.section-container table tbody tr:hover td {
  background: #FFFFFF;
}

/* Botón 'Elegir' en tabla */
.btn-select {
  padding: .25rem .6rem;
  line-height: 1.2;
}

/* Inputs solo lectura con aspecto deshabilitado sutil */
input.form-control.readonly[readonly] {
  background: #EFEFEF;
  color: #555;
}

/* Espaciado del buscador en una fila */
#formBuscar .form-group { margin-bottom: .5rem; }

/* Titular dentro del contenedor (si no usas el h1 global) */
.form-container > h3 {
  background: #2C3E50;
  color: #fff;
  border-radius: 10px 10px 0 0;
  margin: -10px -10px 15px -10px;
}

/* Enlaces a 'Ver' soporte en tabla */
.table a[target="_blank"] {
  font-weight: 500;
  text-decoration: underline;
}

.btn[disabled] { opacity: .6; cursor: not-allowed; }