/* Aplicar box-sizing a todos los elementos */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    color: #fefefe;
    background-image: url('./images/fondo/fondo-pagina.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-color: rgba(41, 40, 40, 0.85); /* Color negro con 50% de opacidad */
    background-blend-mode: darken; /* Otras opciones: multiply, screen, overlay, etc. */

}

/*--- Contenedor ---*/
.containerIndex {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Altura completa de la ventana */
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/*--- NAVBAR ---*/
nav {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background-color: #262626;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav .logo p {
    margin-left: 6px;
    font-size: 1rem;
    color: #00A2B2;
    font-weight: 900;
    padding: 0;
}

nav .logo img {
    width: 40px;
}

nav .menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fefefe;
}

nav .nav-links {
    display: flex;
    gap: 10px;
}

nav .nav-links > button {
    background-color: #00A2B2;
    color: #fefefe;
    border: none;
    padding: 5px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

nav .nav-links button:hover {
    background-color: #18f1f8;
    color: #262626;
}

.mainIndex {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 70px; /* Agregar padding-top para evitar la superposición */
    /* height: 100vh; /* Asegura que el main ocupe toda la altura de la ventana */
}

.mainIndex h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    /* color: #008C9E; */
    color: #EEBF76;
    text-align: center;
}

.mainIndex > p {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    max-width: 600px;
}

.textTitle {
    color: var(--text);
}

.textText {
    color: #06b6b6;
}

/* Pies de página de index (footer de index) */
.footerIndex {
    width: full;
    background-color: #333;
    padding: 1rem;
    text-align: center;
    color: #FFFFFF;
    flex-shrink: 0; /* Evita que se reduzca */
}

.footerIndex p {
    margin: 0;
    font-size: 12px;
}

.footerIndex p > a {
    color: var(--accent);
}

/* --- POPUP REGISTRARSE --- */
.password-container {
    position: relative;
    margin: 0;
}

.password-container input {
    width: calc(100% - 170px); /* Ajusta el ancho para dar espacio al icono */
    min-width: 270px;
}

.password-container .toggle-password {
    position: absolute;
    right: calc(100% - 80%);
    top: 60%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* --- POPUP INDEX DE INICIO DE SESIÓN --- */
/* PopUp html normal inicio de sesión */
.popup {
    display: none; 
    position: fixed; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1000; 
    justify-content: center; 
    align-items: center;
}
.popup-content {
    background-color: #fefefe;
    border-radius: 8px; 
    padding: 20px; 
    width: 300px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
}

.popup-header {
    margin-bottom: 10px;
    color: #262626;
    font-weight: bold;
    text-align: center;
}

.divlogininputpass {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .eye-icon-login { */
.eye-icon {
    position: absolute;
    right: 18px;
    /* margin-left: 208px; */
    top: 50%; 
    transform: translateY(-50%); 
    cursor: pointer; 
    color: #a2a2a2;
    pointer-events: auto; /* Asegura que el click sea detectado */
}

.popup-input {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    border: 1px solid #EEBF76;
    border-radius: 4px;
    box-sizing: border-box;
}

.popup-footer {
    text-align: center;
}

.popup-button {
    margin-top: 5px;
    background-color: #00A2B2;
    color: #fefefe;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.popup-button:hover {
    background-color: #008a8a;
}

/* Mensaje si estan vacios los inputs */
.mensajeLogin {
    display: flex; /* Activar Flexbox */
    align-items: center; /* Alinear verticalmente el contenido */
    justify-content: center; /* Centrar horizontalmente el contenido */
    background-color: #F0F0F0; /* Color de fondo opcional */
    font-family: Arial, sans-serif; /* Fuente opcional */
    color: #F17479; /* Color del texto */
    font-size: 12px;
    padding: 0 4px;
    margin-bottom: 10px;
    display: none;
}

.mensajeLogin i {
    margin-right: 10px; /* Espacio entre el ícono y el texto */
    color: #EEBF76; /* Color del ícono */
    font-size: 26px;
}

/* Dinamica de boton para no permitir doble click */
.hidden {
    display: none;
  }
  
  #spinner {
    margin-left: 8px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

/*--------------------------*/
/* Estilos responsivos */
@media (max-width: 768px) {
    nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav .menu-toggle {
        display: block;
    }

    nav .nav-links.active {
        display: flex;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #262626;
        padding: 10px 0;
    }

    nav .nav-links button {
        width: 100%;
        text-align: center;
    }

}

/* popup registro nueva compañía */
.backgroundNewCompanyForm {
    display: none;
    position: fixed; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1000; 
    justify-content: center; 
    align-items: center;
}

.containerNewCompanyForm {
    background-color: #fefefe;
    padding: 10px 20px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 400px;
    box-sizing: border-box;
}

.closePopupNewCompanyForm {
    color: #aaaaaa;
    margin-left: auto;
    float: right;
    top: 0;
    font-size: 30px;
    font-weight: bold;
}

.closePopupNewCompanyForm:hover,
.closePopupNewCompanyForm:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.headerNewCompanyForm > h3 {
    padding-top: 10px;
    text-align: center;
    color: #262626;
}

/* .containerNewCompanyForm input[type="text"],
.containerNewCompanyForm input[type="password"],
.containerNewCompanyForm input[type="email"], */
/* .containerNewCompanyForm input,
.containerNewCompanyForm select { */

.formNewCompany input, 
.formNewCompany select {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    border: #a8a8a8 solid 1px;
    
    /* border: #00A2B2 solid 1px; */
}

.formNewCompany input:focus, 
.formNewCompany select:focus {
    outline: none;
}

.containerNewCompanyForm select {
    background-color: #fefefe;
    color: #292828;
}

.containerInputPasswordNew {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}



.containerMessageNew{
    height: 22px;
}

.messageNew_success {
    display: none;
    background-color: #9bff9b;
    font-size: 0.9rem;
    color: #262626;
    text-align: center;
    padding: 4px 4px;
}

.messageNew_success-activo {
    display: block;
}

.messageNew_error {
    display: none;
    background-color: #F66060;
    font-size: 0.9rem;
    text-align: center;
    padding: 4px 4px;
}

.messageNew_error-activo {
    display: block;
}

.containerBtnNewCompanyForm {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
}

.containerBtnNewCompanyForm button {
    width: 100%;
    background-color: #00A2B2;
    color: #FFFFFF;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.containerBtnNewCompanyForm button:hover {
    background-color: #6af3ff;
    color: #282929;
}

.invalid {
    border: #F66060 solid 1px !important;
    box-shadow: 0 0 7px #F17479;
}

.correct {
    /* border: #1ed12d solid 1px !important;
    box-shadow: 0 0 7px #1ed12d; */
    border: #00A2B2 solid 1px !important;
    box-shadow: 0 0 7px #00A2B2;

}

