/* =======================
   🎨 Variables de color
   ======================= */
:root {
	--color-primario: #ff3633;
	/* institucional rojo */
	--color-secundario: #f6c213;
	/* amarillo */
	--color-fondo-nav: #f0ecec;
	/* gris claro */
	--color-texto: #333;
	--color-link: #007bff;
}

/* =======================
   ⚙️ Base
   ======================= */
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: var(--color-texto);
}

body,
html {
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
	/* ocupa todo el espacio disponible */
	display: flex;
	align-items: center;
	justify-content: center;
}

footer {
	background: #2a5298;
	color: white;
	text-align: center;
	padding: 15px 0;
}

/* =======================
   🔹 Header & Navbar
   ======================= */
.header-rounded {
	border-radius: 0 0 18px 18px;
}

.bg-nav {
	background-color: var(--color-fondo-nav) !important;
}

.logo-nav {
	width: 220px;
	height: 60px;
	object-fit: contain;
	border-radius: 4px;
}

/* Links nav */
.text-nav {
	font-weight: 500;
	color: var(--color-texto) !important;
	transition: color 0.3s;
}

.text-nav:hover {
	color: var(--color-primario) !important;
}

.icono {
	margin-right: 6px;
}

/* =======================
   🔹 Dropdown
   ======================= */
.custom-dropdown {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 8px 0;
	min-width: 220px;
	animation: fadeInDown 0.25s ease-in-out;
}

.custom-dropdown .dropdown-item {
	color: var(--color-texto) !important;
	padding: 10px 18px;
	transition: all 0.3s ease;
	font-weight: 500;
	border-radius: 6px;
}

.custom-dropdown .dropdown-item:hover {
	background: var(--color-fondo-nav);
	color: var(--color-link) !important;
	transform: translateX(5px);
}

.custom-dropdown .dropdown-divider {
	border-top: 1px solid #ddd;
	margin: 6px 0;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* =======================
   🔹 Portal Transparencia
   ======================= */
.logo-transparencia {
	width: 160px;
	height: 45px;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
}


/* Submenú dentro del dropdown */
.dropdown-submenu {
	position: relative;
}

.dropdown-submenu .dropdown-menu {
	top: 0;
	left: 100%;
	/* aparece a la derecha */
	margin-top: -5px;
	border-radius: 8px;
	display: none;
}

/* Mostrar el submenú al pasar el mouse */
.dropdown-submenu:hover .dropdown-menu {
	display: block;
}

/* Indicador de submenú */
.dropdown-submenu>.dropdown-toggle::after {
	content: " ▸";
	float: right;
}

/*CAPTCHA*/

.captcha-container {
	max-width: 500px;
}

.captcha-box {
	display: flex;
	align-items: center;
	border: 1px solid #ced4da;
	transition: box-shadow 0.3s ease;
}

.captcha-box:hover {
	box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.captcha-img {
	height: 50px;
	width: auto;
	border-right: 1px solid #ced4da;
}

.captcha-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 1rem;
	padding-left: 10px;
	text-transform: uppercase;
}

.captcha-input::placeholder {
	color: #6c757d;
}


/* Contenedor timeline */
/* Contenedor timeline */
.timeline-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	margin-bottom: 20px;
}

.card-body p {
  margin-bottom: 0.5rem;
}

/* Cada estado circular */
.timeline-step {
	position: relative;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-size: 24px;
	cursor: pointer;
	transition: transform 0.3s;
}

/* Hover */
.timeline-step:hover {
	transform: scale(1.2);
}

/* Conectores entre los estados */
.timeline-step::after {
	content: '';
	position: absolute;
	width: 60px;
	height: 4px;
	background-color: #ccc;
	top: 50%;
	left: 100%;
	transform: translateY(-50%);
	z-index: -1;
}

/* Último círculo no tiene conector */
.timeline-step.ultimo::after {
  display: none;
}

/* Colores según tipo */
.timeline-step.or1 {
	background-color: #28a745;
	/* verde */
	animation: pulse 1.5s infinite;
}

.timeline-step.or2 {
	background-color: #6c757d;
	/* gris */
}

/* Animación de “latido” */
@keyframes pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
	}

	50% {
		transform: scale(1.1);
		box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
	}
}

/* Label debajo del círculo */
.timeline-label {
	text-align: center;
	margin-top: 10px;
	font-size: 14px;
	max-width: 100px;
	word-wrap: break-word;
}

/* Responsive */
@media (max-width: 576px) {
	.timeline-container {
		gap: 20px;
	}

	.timeline-step {
		width: 60px;
		height: 60px;
		font-size: 18px;
	}

	.timeline-label {
		font-size: 12px;
		max-width: 60px;
	}
}

/* Iconos centrados */
.timeline-step i {
	font-size: 28px;
}

  #spinnerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }
  .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin {
    100% { transform: rotate(360deg); }
  }