/*
 * @intranet-file base/nntt/css/styles.css
 * @intranet-file-version 2026.03.13.1
 * @intranet-file-date 2026-03-13
 * @intranet-file-owner CSIF Intranet
 */
:root {
  --color-primario: #31318b;
  --color-secundario: #5252b1; /* #52e152 */
  --color-terciario: #aeaeea;
  --color-cuaternario: #e8e8f4;
}

/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  background-color: var(--color-cuaternario);
  color: #333;
  margin: 5px;
  padding: 5px;
}

fieldset {
  border-style: outset;
}

/* Elementos de formulario */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  max-width: 95%;
  padding: 0.45rem;
  margin: 0.45rem 0;
  border: 0.1rem solid #ddd;
  border-radius: 0.4rem;
  font-size: 1rem;
  text-align: center;
}

button,
.btn-primary {
  width: fit-content;
  padding: 0.56rem;
  margin-top: 0.23rem;
  background-color: var(--color-primario);
  color: white;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover,
.btn-primary:hover {
  background-color: var(--color-secundario);
}

button:disabled {
  background-color: #a1a1a1;
  cursor: not-allowed;
}


/* Contenedores */
.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Contenedores de login */
.login-container {
  width: 600px;
  max-width: 90%;
  margin: 0 auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-container img {
  width: 200px;
  margin: 2 auto;
  padding: 1.5rem;
  text-align: center;
}

.modal,
.modal2 {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 60rem;
  background: #dddddd;
  padding: 1.5rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow-y: auto;
  max-height: 80vh;
  border-radius: 1rem;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Header y Footer */
header {
  position: fixed;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 4rem;
  background-color: var(--color-secundario);
  color: white;
  text-align: center;
  padding: 0 1rem;
  font-size: 1rem;
  z-index: 500;
}

header img {
  height: 3.5rem;
  width: auto;
}

.home {
  height: 1.5rem;
  width: auto;
}

header nav ul {
  list-style: none;
  padding: 8px;
  padding-top: 48px;
  margin: 8px;
  background: var(--color-secundario);
  display: flex;
  justify-content: space-around;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  padding: 10px;
  display: block;
}

header nav ul li a:hover {
  background: var(--color-primario);
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5rem;
  background-color: var(--color-terciario);
  color: #000000;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 1000;
}

main {
  padding: 1rem;
  padding-top: 11rem;
  padding-bottom: 5rem;
  flex-grow: 1;
  overflow-y: auto;
  box-sizing: border-box;
  max-width: 95%;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
}

/* Cuadrícula de enlaces */
.enlaces-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
}

.enlace-item {
  text-align: center;
  background-color: #ffffff;
  padding: 0.75rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  max-height: 15rem;
}

.enlace-item img {
  max-width: 3rem;
  max-height: 3rem;
}

.enlace-texto {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.enlace-texto:hover {
  color: var(--color-secundario);
}

/* Botón con ícono de casa */
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primario);
  color: white;
  text-decoration: none;
  border-radius: 0.4rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}

.home-button:hover {
  background-color: var(--color-secundario);
  transform: scale(1.05);
}

.home-button .icon {
  font-size: 1.2rem;
}

.home-button .text {
  display: none;
}

@media (min-width: 768px) {
  .home-button .text {
    display: inline;
  }
}

/* Contenedor secundario (container3) */
.container3 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  max-width: 85%;
  margin: 0 auto;
  gap: 1rem;
}

.column3 {
  flex: 1;
  margin: 0.5rem;
  padding: 1rem;
  background-color: #ffffff;
  border: 0.1rem solid #ddd;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.column3:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
}

/* Media Queries */
@media (max-width: 768px) {
  header {
    height: 3.5rem;
    font-size: 0.9rem;
  }

  header img {
    height: 3rem;
  }

  footer {
    height: 2.5rem;
    font-size: 0.7rem;
  }

  .login-container {
    padding: 1rem;
  }

  .modal,
  .modal2 {
    max-width: 90%;
    padding: 1rem;
  }

  .enlaces-container {
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  }

  .enlace-item img {
    max-width: 2.5rem;
    max-height: 2.5rem;
  }
}

/* Estilos del Navbar */
.navbar {
  background-color: var(--color-primario);
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar-logo img {
  height: 40px;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.navbar-links li a:hover {
  text-decoration: underline;
}

.hea {
  gap: 20px;
  font-weight: bold;
  color: var(--color-primario);
  text-decoration: underline;
  text-align: center;
  font-size: 1.2rem;
}

.automatica {
  background-color: yellow;
}

.calculada {
  background-color: #ddc;
}
