:root{
  --color_primario: #ae841f;
  --color_secundario: #691a32;
  --color_obligatorio: red;
}

body,
html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  margin-top: 5rem;
  padding: 0;
  height: 100%;
  background-color: #f4f6f9;
  color: #333;
}

.sub-navbar {
  padding: 2rem;
  margin-top: 83px !important;
}

.navbar-expand-md .navbar-nav .nav-link {
  padding-top: 10px;
}

.navbar .container{
  justify-content: center;
}

.navbar-expand-md .navbar-nav .nav-link {
  font-size: 14px;
}

/* Header */
h1 {
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.banner{
  margin: -14px 0 30px;
}

.menu-item.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

section {
  scroll-margin-top: 80px; /* ajusta al tamaño de tu barra fija */
}

#formulario {
  width: 98%;
  font-size: 1.5rem;
  margin: 1rem;
  margin-top: 5rem;
  display: flex;
}

#respuesta {
  width: 100%;
  font-size: 1.7rem;
  padding: 3rem;
}

.sidebar {
  width: 240px;
  background: #b88b1a;
  color: white;
  padding: 20px;
}

.sidebar a.active {
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
}

.content{
  width: 100%;
}

.form-scroll {
  flex: 1;
  padding: 20px;
  padding-right: 1rem;
}

.btn-icon:not(:disabled):not(.disabled).active{
  background-color: var(--color_secundario);
}

.titulo{ 
  margin-bottom: 2rem;
}

.titulo hr{
  border-top: 6px solid var(--color_primario);
  opacity: 1;
  border-radius: 8px;
  margin: 0 auto !important;
}

.section-formulario {
  background: #f9f9f9;
  padding: 0 40px 40px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease-in-out;
}

.section-formulario h1, h1 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color_primario);
}

.section-formulario:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.etapa-numero {
  color: #999;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.required { color: var(--color_obligatorio); }

.curp { text-transform: uppercase; }

.card {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.15);
}

.step-section {
  padding: 40px 0;
}

/* ESTILOS PARA LOS COMPONENTES DEL SISTEMA */
/* Paragraphs and text blocks */
p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Labels and Inputs */
label {
  display: block;
  font-weight: bold;
  margin: 0.5rem 0 0.2rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1.4rem !important;
  margin-bottom: 1rem;
}

textarea {
  resize: vertical;
}

.eliminarFila {
  width: 50px!important;
}

#seccion4, #seccion5 {
  overflow-x: auto;
}

/* Buttons */
button, .btn {
  background-color: var(--color_primario);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1.5rem;
  border-radius: 4px;
  cursor: none;
  width: 300px;
}

button:hover, 
.btn:hover, 
.btn:focus, 
.menu-item.active {
  background-color: var(--color_secundario);
  color: white;
}

/* Sections and Containers */
.section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Questions Styles */
.question-multiple {
  background-color: #e8f0fe;
  padding: 1rem;
  border-left: 5px solid #005fa3;
  margin-bottom: 1rem;
}

.question-open {
  background-color: #fff9e6;
  padding: 1rem;
  border-left: 5px solid #e6b800;
  margin-bottom: 1rem;
}

.tooltip-container {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  margin: 8px;
  justify-content: center;
  align-items: center;
}

.tooltip-container .tooltip-text {
  visibility: hidden;
  width: 230px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 10px;
  position: absolute;
  bottom: 125%; /* Aparece arriba */
  left: 1.6%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 13px;
  z-index: 100;
}

.tooltip-container .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%; /* Flecha apuntando al icono */
  left: 50%;
  margin-left: -5px;
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.btn-link {
  background: none;
  border: none;
  color: #007bff;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link:hover {
  color: #0056b3;
}

.form-select, input, textarea {
  border: 1px solid #a57f2c !important;
}

/* ESTILOS MODAL */
.modal-content p{
  padding: 0 30px;
  color: white;
}

#titulo_sistema{
  font-size: 4rem;
  font-weight: 500;
  margin-bottom: -60px;
  color: var(--color_primario);
  text-align: center;
}

.modal-aviso {
  display: flex;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #03382f;
  font-size: 1.4rem;
  color: #decba3;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.modal-content h2 {
  color: #decba3;
  font-size: 28px;
  margin-bottom: 10px;
}

.modal-content h3 {
  color: #decba3;
  margin-bottom: 15px;
}

.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #fffbe8;
  z-index: 10000;
}

@media(max-width: 768px) {
  .cerrar-modal {
    top: 0;
    font-size: 22px;
  }

  .modal-content h2 {
    margin-top: 30px;
    font-size: 15px;
  }
}