@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);

body {
  background: rgb(235, 238, 240);
  font-family: "Open Sans", sans-serif;
  margin: 0;
}

body.login-page {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #333;
}

.titulo {
  display: flex;
  justify-content: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 50px;
  margin: 40px 40px 70px 60px;
}

.divDownColor {
  background-color: #296ce8;

  padding: 130px;
}

/* ---------- LOGIN ---------- */
/* Contenedor general */
.login_wrapper {
  background-color: #ffffff;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;   /* combina tus dos bloques en uno */
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 10px;
}



/* Logo */
.img_login {
  width: 250px;
  margin-bottom: 20px;
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  text-align: center;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-header {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2a5298;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

/* Inputs */
.card-body input {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

.card-body input:focus {
  border-color: #2a5298;
  outline: none;
  box-shadow: 0 0 8px rgba(42, 82, 152, 0.4);
}

/* Botón */
button {
  width: 100%;
  background: #2a5298;
  color: white;
  font-size: 1rem;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s;
}
button:hover { background: #1e3c72; transform: scale(1.03); }

/* === Password + icono === */

/* Wrapper específico del input de password + icono */
.pw-wrap {
  position: relative;   /* referencia para posicionar el icono */
  width: 100%;
}

/* Deja espacio a la derecha para el icono */
.pw-wrap > #password[type="password"],
.pw-wrap > #password[type="text"] {
  padding-right: 12px;
}

/* Estilo del icono (img con id pass-icon) */
#pass-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  user-select: none;
}

#pass-icon:hover { opacity: 1; }




/* Mensajes de error */
.alert {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  background-color: #f8d7da;
  color: #721c24;
  font-size: 0.9rem;
  border: 1px solid #f5c6cb;
}

/* Footer */
footer {
  margin-top: 20px;
  color: white;
  font-size: 0.85rem;
  text-align: center;
}

.login-header,
.login p {
  margin-top: 0;
  margin-bottom: 0;
}

.login-triangle {
  width: 0;
  margin-right: auto;
  margin-left: auto;
  border: 12px solid transparent;
  border-bottom-color: #28d;
}

.login-header {
  background: #28d;
  padding: 20px;
  font-size: 1.4em;
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}

.login-container {
  background: #ebebeb;
  padding: 12px;
}

.login p {
  padding: 12px;
}

.login input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  border-width: 1px;
  border-style: solid;
  padding: 16px;
  outline: 0;
  font-family: inherit;
  font-size: 0.95em;
}

.login input[type="email"],
.login input[type="password"] {
  background: #fff;
  border-color: #bbb;
  color: #555;
}

.login input[type="email"]:focus,
.login input[type="password"]:focus {
  border-color: #888;
}

.login input[type="submit"] {
  background: #28d;
  border-color: transparent;
  color: #fff;
  cursor: pointer;
}

.login input[type="submit"]:hover {
  background: #17c;
}

.login input[type="submit"]:focus {
  border-color: #05a;
}

/*-----------HERO--------------*/

.hero {
  background-color: white;
  padding: 10px;
}

.img-hero {
  height: 500%;
  width: 200px;
}

.empty_div {
  background-color: #296ce8;
  padding: 30px 20px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  background-color: #296ce8;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 8px 20px;
}

.navbar a,
.dropbtn {
  color: rgb(232, 231, 240);
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.navbar a:hover,
.dropbtn:hover {
  background-color: #555;
  border-radius: 4px;
}

.logout{
  position: absolute;
  right: 0;
  display: flex;
  justify-content: flex-end ;
  align-items: center;
  padding: 15px;
}

.user-info{
  padding: 10px;
  color: white;
}

/* ---------- DROPDOWN ---------- */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  min-width: 160px;
  flex-direction: column;
  z-index: 1000;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #555;
}

.show {
  display: block;
}

/* ---------- PROYECTOS ---------- */
.projectsWrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.projectContainer {
  flex: 0 1 auto;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.projectContainer:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  outline: 2px solid yellow;
  outline-offset: 2px;
  border-radius: 10px;
}

.projectContainer img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.nombrePlaza {
  font-size: 1.4em;
}

/* Imagen página amara*/

.pag_principal_img {
  flex: 0 1 auto;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding-top: 50px;
}



.pag_principal_img img {
  
  width: 600px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  
}

.pag_principal_img_V {
  flex: 0 1 auto;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding-top: 50px;
}



.pag_principal_img_V img {
  
  width: 600px;
  height: 600px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  
}

/* Estilos para la tabla*/

/* --- TABLA --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0px;
  font-size: 14px;
  background-color: #fff;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#Tabla_solicitudes {
  margin: 30px 50px;
}

/* Encabezado */
thead {
  background-color: #296ce8;
  color: #ffffff;
}

th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

/* Celdas */
td {
  padding: 10px;
  border-bottom: 1px solid #e6e6e6;
  color: #333;
}

/* Filas alternadas */
tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover */
tbody tr:hover {
  background-color: #eef6ff;
  transition: 0.2s;
}

/* Links */
table a {
  color: #3498db;
  font-weight: 500;
  text-decoration: none;
}

table a:hover {
  text-decoration: underline;
}

/* --- GRÁFICO D3 --- */
#chart {
  margin: 40px auto;
  padding: 20px;
  max-width: 700px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Texto dentro del gráfico */
#chart text {
  font-size: 10px;
  fill: #2c3e50;
  font-weight: 600;
}

/* Eje X e Y */
.axis path,
.axis line {
  stroke: #ccc;
}

.axis text {
  font-size: 12px;
  fill: #555;
}

.estado-label {
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  text-transform: capitalize;
}

/* Colores según estado */
.estado-label.abierto {
  background-color: #28a745;
  color: white;
}

.estado-label.en_atencion {
  background-color: #ffc107;
  color: #000;
}

.estado-label.cerrado {
  background-color: #dc3545;
  color: white;
}

/* Modal general */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Contenido interno del modal */
.contenido-modal {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 60%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: animarsuperior 0.5s;
}

/* Animación de apertura */
@keyframes animarsuperior {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botón cerrar */
.close {
  color: #333;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
}
