*, *::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-info {
  color: #cce5ff;
  background-color:  #cce5ff;
  border-color:  #cce5ff;
}

.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;
}

/* Contenedor principal para centrar */
.social-container {
  width: 100%;
  max-width: 300px; /* Un poco más ancho para que quepa bien el texto */
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Para que salgan uno debajo del otro */
}

/* Estilo base del botón */
.auth-provider {
  font-family: system-ui, roboto, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 40px;
  padding: 0 15px;
  border-radius: 20px; /* Bordes redondeados */
  cursor: pointer;
  margin-bottom: 12px;
  box-sizing: border-box;
  border: 1px solid #d6d9dc;
  text-align: center;
  background: #FFF;
  color: #535a60;
  transition: transform 0.1s, box-shadow 0.2s;
  display: flex; /* Flex para alinear icono y texto */
  align-items: center;
  justify-content: center;
  gap: 10px; /* Espacio entre el icono y el texto */
}

.auth-provider:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.auth-provider:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* --- Estilos específicos por marca --- */

/* Google: Blanco con borde gris */
.google-login {
  color: #535a60;
  border-color: #8c8c8c;
}
.google-login:hover {
    background-color: #f8f9fa;
}

/* Microsoft: Blanco con borde (estilo moderno) */
.microsoft-login {
  color: #535a60;
  border-color: #8c8c8c;
}
.microsoft-login:hover {
    background-color: #f3f3f3;
}

/* Yahoo: Morado oficial */
.yahoo-login {
  color: #535a60;
  border-color: #8c8c8c;
}
.yahoo-login:hover {
    background-color: #f3f3f3;
}

/* Ajuste para los iconos SVG */
.svg-icon {
  vertical-align: middle;
  /* padding-bottom eliminado para centrar mejor con flexbox */
}

.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); }
}

/* Contenedor principal estilo "Jumbotron" */
    .aviso-cerrado {
        background-color: #e9ecef; /* Gris suave */
        padding: 4rem 2rem;        /* Espaciado interno generoso */
        border-radius: 0.5rem;     /* Bordes redondeados */
        text-align: center;        /* Texto centrado */
        margin: 2rem auto;         /* Centrado en la página y separado de arriba */
        max-width: 800px;          /* Que no se estire demasiado en pantallas grandes */
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* Título principal */
    .aviso-cerrado h1 {
        color: #343a40;
        font-size: 2.5rem;
        font-weight: 300;
        margin-bottom: 1rem;
    }

    /* Texto descriptivo */
    .aviso-cerrado p.lead {
        font-size: 1.25rem;
        font-weight: 300;
        color: #495057;
    }

    /* Línea divisoria */
    .aviso-cerrado hr {
        border: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin: 1.5rem 0;
    }
