*, *::before, *::after {
  box-sizing: border-box;
}

* {
  padding: 0;
  margin: 0;
}

body {
  background: url('/assets/img/about-company-4.jpg')no-repeat center center;
  background-size: cover;   /* Hace que siempre cubra la pantalla */
  background-attachment: fixed; /* opcional, para que no se repita al hacer scroll */
}

a {
  text-decoration: none;
  color: #9F2241;
  transition: 0.5s ease;
}
a:hover {
  color: #BC955B;
}

.contenedor-formularios {
  background: #FFF;
  padding: 40px;
  max-width: 600px;
  margin: 40px auto;
  border-radius: 4px;
  box-shadow: 0 4px 10px 4px rgba(19, 35, 47, 0.3);
  
}

.contenedor-tabs {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}
.contenedor-tabs::after {
  content: "";
  display: table;
  clear: both;
}
.contenedor-tabs li a {
  display: block;
  text-decoration: none;
  padding: 15px;
  background: rgba(160, 179, 176, 0.25);
  color: #a0b3b0;
  font-size: 20px;
  float: left;
  width: 50%;
  text-align: center;
  cursor: pointer;
  transition: 0.5s ease;
}
.contenedor-tabs li a:hover {
  background: #9F2241;
  color: #fff;
}
.contenedor-tabs .active a {
  background: #BC955B;
  color: #fff;
}

.contenido-tab > div:last-child {
  display: none;
}

.tit{
  text-align: center;
  color:#fff;
  font-weight: 300;
  margin: 0 0 40px;
}

h1{
  text-align: center;
  color:#9F2241;
  font-weight: 300;
  margin: 0 0 40px;
}

label {
  position: absolute;
  transform: translateY(6px);
  left: 10px;
  color: #000;
  transition: all 0.25s ease;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
  font-size: 18px;
}
label .req {
  margin: 2px;
  color: #000;
}

label.active {
  transform: translateY(50px);
  left: 2px;
  font-size: 14px;
}
label.active .req {
  opacity: 0;
}

label.highlight {
  color: #BC955B;
}

input {
  font-size: 18px;
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px 10px;
  background: none;
  background-image: none;
  border: 1px solid #BC955B;
  border-top: none;
  border-left: none;
  border-right: none;
  color: black;
  border-radius: 0;
  transition: all 0.5s ease;
  border-radius: 5px;
}
input:focus {
  outline: none;
  border-color: #BC955B;
}

.contenedor-input {
  position: relative;
  margin-bottom: 40px;
}

.fila-arriba::after {
  content: "";
  display: table;
  clear: both;
}
.fila-arriba div {
  float: left;
  width: 48%;
  margin-right: 4%;
}
.fila-arriba div:last-child {
  margin: 0;
}

.button {
  border: 0;
  outline: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 15px 0;
  font-size: 1rem;
  background: #9F2241;
  color: #fff;
  transition: all 0.5s ease;
  -webkit-appearance: none;
}
.button:hover, .button:focus {
  background: #BC955B;
}

.button-block {
  display: block;
  width: 30%;
  margin-left: auto;   /* <-- Añadir esto */
  margin-right: auto;  /* <-- Añadir esto */
}

.forgot {
  margin-top: -20px;
  text-align: right;
  margin-bottom: 20px;
}

@media screen and (max-width: 500px) {
  .fila-arriba div {
    width: 100%;
  }
  .fila-arriba div:last-child {
    margin-bottom: 40px;
  }
}
@media screen and (max-width: 400px) {
  .contenedor-tabs li a {
    width: 100%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
}

.footer .copyright {
  text-align: center;
  color: #fff;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #fff;
}

.header {
    background-image: linear-gradient(
        to right,
        rgba(142, 34, 60, 0.9),
        rgba(159, 34, 65, 0.8),
        rgba(222, 186, 95, 0.6)
    );
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 100px; /* Altura mínima fija para el header */
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: 80px; /* Altura mínima para el contenido del header */
}

.logo {
  flex-shrink: 0;
  margin-right: 20px;
}

.logo img {
  width: 100px;
  height: auto;
}

.header h1 {
  flex-grow: 1;
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*
 * ===============================================================
 * CSS MÍNIMO Y ESENCIAL PARA MODAL DE BOOTSTRAP 5 (CORREGIDO)
 * ===============================================================
*/

/* 1. Variables de configuración */
:root {
  --bs-modal-zindex: 1055;
  --bs-modal-width: 500px;
  --bs-modal-padding: 1rem;
  --bs-modal-margin: 0.5rem;
  --bs-modal-bg: #fff;
  --bs-modal-border-color: #dee2e6;
  --bs-modal-border-width: 1px;
  --bs-modal-border-radius: 0.5rem;
  --bs-modal-header-border-color: #dee2e6;
  --bs-modal-footer-border-color: #dee2e6;
  --bs-secondary: #BC955B;
}

/* 2. El fondo oscuro (backdrop) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: 0.5; }

/* 3. Contenedor principal del modal (oculto por defecto) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--bs-modal-zindex);
  display: none;
  width: 100%; /* <-- CORREGIDO: Debe ocupar toda la pantalla */
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

/* 4. Estilos para la animación de aparición (fade) */
.fade { transition: opacity 0.15s linear; }
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}
.modal.show .modal-dialog { transform: none; }

/* 5. El diálogo (la caja que se centra) */
.modal-dialog {
  position: relative;
  width: auto;
  margin: var(--bs-modal-margin);
  pointer-events: none;
}
.modal.show .modal-dialog { pointer-events: auto; }

/* 6. Regla para centrar el diálogo */
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - var(--bs-modal-margin) * 2);
}
/* Forzamos el centrado horizontal en pantallas más grandes */
@media (min-width: 576px) {
  .modal-dialog {
    max-width: var(--bs-modal-width);
    margin-right: auto;
    margin-left: auto;
  }
}

/* 7. El contenido (la caja blanca con bordes) */
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: var(--bs-modal-bg);
  background-clip: padding-box;
  border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
  border-radius: var(--bs-modal-border-radius);
  outline: 0;
}

/* 8. Cabecera, cuerpo y pie de página */
.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: var(--bs-modal-padding);
  border-bottom: var(--bs-modal-border-width) solid var(--bs-modal-header-border-color);
}
.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}
.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: var(--bs-modal-padding);
}
.modal-footer {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: var(--bs-modal-border-width) solid var(--bs-modal-footer-border-color);
}
.modal-footer > * { margin: 0.25rem; }

/* 9. Botón para cerrar (la 'X') */
.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em;
  color: #000;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
  cursor: pointer;
}
.btn-close:hover { opacity: 0.75; }

/* 10. Estilos para la lista de errores y el botón */
.list-group {
  padding-left: 0;
  margin-bottom: 0;
}
.list-group-item {
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.125);
}
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  background-color: var(--bs-secondary);
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  
}
.secondary {
  color: #fff;
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
}

/*
 * CSS ESENCIAL PARA ALERTAS DE BOOTSTRAP 5
 * Extraído y adaptado para uso independiente.
*/

:root {
  /* Definición de colores base que usan las alertas */
  --bs-blue: #0d6efd;
  --bs-cyan: #0dcaf0;
  --bs-green: #198754;
  --bs-yellow: #ffc107;
  --bs-red: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  
  /* Variables de color para las alertas (pueden ser sobreescritas) */
  --bs-success-rgb: 25, 135, 84;
  --bs-danger-rgb: 220, 53, 69;
  --bs-warning-rgb: 255, 193, 7;
}

/* 1. Estilo base para todas las alertas */
.alert {
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

/* 2. Estilos para cada tipo de alerta */
.alert-success {
  color: #052b19;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-danger {
  color: #410e14;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.alert-warning {
  color: #4d3c03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

/* 3. Estilo para los enlaces dentro de las alertas */
.alert-link {
  font-weight: 700;
}

.alert-success .alert-link { color: #042214; }
.alert-danger .alert-link { color: #340b10; }
.alert-warning .alert-link { color: #3d3002; }

/* 4. Estilos para el spinner (opcional, si lo usas) */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: -0.125em;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: 0.75s linear infinite spinner-border;
  animation: 0.75s linear infinite spinner-border;
}
@keyframes spinner-border {
  to { transform: rotate(360deg); }
}
.text-primary { color: #0d6efd !important; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.d-flex { display: flex !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.ms-3 { margin-left: 1rem !important; }

.alert-compact {
  padding-top: 0rem;
  padding-bottom: 1rem;
}
.alert-compact1 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

p {
  color:#000;
	font-size: 18px;
	font-weight: 100;
	line-height: 20px;
	letter-spacing: 0.5px;
	margin: 20px 0 30px;
  text-align: justify;
}

.p-strong {
  color:#000;
	font-size: 14px;
	font-weight: bold;
	line-height: 20px;
	letter-spacing: 0.5px;
	margin: 20px 0 30px;
}

select {
	background-color: #eee;
	border: none;
	padding: 12px 15px;
	margin: 8px 0;
	width: 100%;
}

.registro-wrapper {
    display: flex;
    flex-direction: column; /* Apila los elementos verticalmente */
    align-items: center;    /* Centra todo horizontalmente */
    text-align: center;     /* Asegura que el texto si tiene 2 líneas se centre */
    gap: 15px;              /* Espacio entre el texto y los botones */
    width: 100%;
}

.registro-texto {
    font-size: 16px;
    margin: 0;              /* Quitamos márgenes por defecto para controlar el gap */
    color: #333;
}

/* Ajuste ligero a tu container existente para que no pelee con el wrapper */
.social-container {
    margin: 0;              /* El wrapper ya maneja el espacio */
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-container a {
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    
    /* MEJORA 1: Tamaño más amigable */
    /* 40px es un poco difícil de atinar en móviles. 48px es el estándar de usabilidad. */
    height: 48px; 
    width: 48px;
    
    flex-shrink: 0;
    background-color: #fff; /* Asegura fondo blanco */
    
    /* MEJORA 2: Preparar la animación */
    transition: all 0.3s ease; 
    cursor: pointer;
    text-decoration: none;
}

/* MEJORA 3: Feedback visual al pasar el mouse (Hover) */
.social-container a:hover {
    border-color: #adadad; /* Borde un poco más oscuro */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra suave para dar relieve */
    transform: translateY(-3px); /* El botón "se levanta" */
}

/* Efecto al hacer clic (Active) */
.social-container a:active {
    transform: translateY(0); /* Vuelve a bajar */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/*estilos botones de Google y Microsoft*/
.social {
  cursor: pointer; /* Indispensable: cambia la flecha por la manita */
  transition: all 0.3s ease; /* Suaviza la animación */
}

.social:hover {
  transform: translateY(-3px); /* El botón "salta" un poco hacia arriba */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Crea una sombra para dar profundidad */
  filter: brightness(1.05); /* Se ilumina ligeramente */
}

.social:active {
  transform: translateY(1px); /* Efecto de presionar al hacer clic */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/*Estilo iconos*/
.google-icon {
    position: relative;
    max-width: 1.5rem;
    max-height: 1.5rem;
    height: 1.5rem;
    width: 1.5rem;
    top: 0px;
    left: 0px;
    background-size: cover;
    z-index: 2;
    background-image: url(data:image/svg+xml;base64,PHN2ZyBpZD0iQ2FwYV8xIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGc+PHBhdGggZD0ibTEyMCAyNTZjMC0yNS4zNjcgNi45ODktNDkuMTMgMTkuMTMxLTY5LjQ3N3YtODYuMzA4aC04Ni4zMDhjLTM0LjI1NSA0NC40ODgtNTIuODIzIDk4LjcwNy01Mi44MjMgMTU1Ljc4NXMxOC41NjggMTExLjI5NyA1Mi44MjMgMTU1Ljc4NWg4Ni4zMDh2LTg2LjMwOGMtMTIuMT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M5LjgzM3oiIGZpbGw9IiNjZjJkNDgiLz48cGF0aCBkPSJtMjU2IDEyMHYtMTIwYy02OC4zOCAwLTEzMi42NjcgMjYuNjI5LTE4MS4wMiA3NC45OC03Ljk5MSA3Ljk5MS0xNS4zNzYgMTYuNDI2LTIyLjE1OCAyNS4yMzVsODYuMzA4IDg2LjMwOGMyMy43NTMtMzkuODAzIDY3LjI0Ni02Ni41MjMgMTE2Ljg3LTY2LjUyM3oiIGZpbGw9IiNlYjQxMzIiLz48L2c+PC9zdmc+);

  
}

.logoude {
   position: relative;
    max-width: 1.5rem;
    max-height: 1.5rem;
    height: 1.5rem;
    width: 1.5rem;
    top: 0px;
    left: 0px;
    background-size: cover;
    z-index: 2;
}

.microsoft-icon {
    position: relative;
    max-width: 1.5rem;
    max-height: 1.5rem;
    height: 1.5rem;
    width: 1.5rem;
    top: 0px;
    left: 0px;
    background-size: cover;
    z-index: 2;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath fill='%23f35325' d='M0 0h10v10H0z'/%3E%3Cpath fill='%2381bc06' d='M11 0h10v10H11z'/%3E%3Cpath fill='%2305a6f0' d='M0 11h10v10H0z'/%3E%3Cpath fill='%23ffba08' d='M11 11h10v10H11z'/%3E%3C/svg%3E");
}

.RENAPO {
  color: #D10000;
}

.btn-registrate {
  background-color: #8c223c;
  color: #fff;
  border: 2px solid white;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  flex-shrink: 0; /* No se comprime */
  margin-left: auto;   /* <-- Añadir esto */
  margin-right: auto;  /* <-- Añadir esto */
}

.btn-registrate:hover {
  background-color: white;
  color: #8c223c;
}

/* Estilo para el indicador de carga (spinner) */
.loader {
  border: 6px solid #f3f3f3; /* Gris claro */
  border-top: 6px solid #BC955B; /* Azul */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1.5s linear infinite;
  margin: 0 auto; /* Para centrarlo si el contenedor es ancho */
}

/* Animación que hace girar el spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

