
/* ==== RESET & BASE ==== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

/* ==== LOGIN & REGISTER ==== */
.login-body {
    background-image: url('../img/fondoAsientos.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form {
    --input-focus: #2d8cf0;
    --font-color: #8a8a8a;
    --font-color-sub: #666;
    --bg-color: rgba(20, 46, 165, 0.822);
    --main-color: black;
    padding: 30px;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 10px;
    border: 2px solid var(--main-color);
    box-shadow: 4px 4px var(--main-color);
    max-width: 500px;
    width: 100%;
}

.form-register { width: 100%; }

.title {
    color: var(--font-color);
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 10px;
}

.title span {
    color: var(--font-color-sub);
    font-weight: 600;
    font-size: 17px;
}

.input,
.button-confirm {
    width: 100%;
    height: 40px;
    border-radius: 5px;
    border: 2px solid var(--main-color);
    background-color: beige;
    font-size: 15px;
    font-weight: 600;
    padding: 5px 10px;
    outline: none;
}

.input::placeholder { color: var(--font-color-sub); opacity: 0.8; }
.input:focus { border: 2px solid var(--input-focus); }

.button-confirm {
    margin-top: 15px;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button-confirm:active {
    transform: translate(3px, 3px);
}

/* ==== RESERVAR ASIENTOS ==== */
.fila {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.fila-label {
    width: 25px;
    min-width: 25px;
    text-align: right;
    font-weight: bold;
    color: #000;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 6px;
}

.seat {
    width: 26px;
    height: 26px;
    margin: 3px;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    transition: transform 0.2s ease;
}

.seat:hover { transform: scale(1.1); }

#mapaAsientos {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: auto;
    padding: 10px;
}

.leyenda {
    margin-top: 40px;
    padding-left: 10px;
    text-align: center;
}

.leyenda h3 { margin-bottom: 10px; }

.leyenda span {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border: 1px solid black;
    vertical-align: middle;
}

.leyenda-item {
    margin-bottom: 8px;
    justify-content: center;
}

.escenario {
    width: fit-content;
    padding: 8px 20px;
    margin-bottom: 20px;
    text-align: center;
    background-color: #343a40;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-size: 16px;
}

/* ==== PERFIL DEL ESTUDIANTE ==== */
table {
    border-collapse: collapse;
    width: 100%;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

thead {
    background-color: #007bff;
    color: white;
}

td, th {
    padding: 12px;
    text-align: center;
    border: 1px solid #ccc;
}

main h1 { margin-bottom: 20px; }
section h2 { margin: 30px 0 10px; }

/* ==== NAVBAR ==== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    flex-wrap: wrap;
}

.navbar-brand { font-weight: bold; font-size: 18px; }
.navbar-logo { font-size: 20px; color: white; }
.navbar-menu { display: flex; gap: 20px; }

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.logout-link { color: #ffc107; }

/* ==== LOGOS ==== */
.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-itver {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.logo-app-fixed {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.logo-app-fixed img {
    width: 300px;
    height: auto;
}

/* ==== LINK TEXTO ==== */
.link-text {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: white;
}

.link-text a {
    color: #ffc107;
    font-weight: bold;
    text-decoration: underline;
}

/* ==== UTILIDADES ==== */
.pasillo {
    width: 40px;
    height: 24px;
    display: inline-block;
}

.espacio-horizontal {
    height: 20px;
    width: 100%;
}

/* ==== RESPONSIVE GLOBAL ==== */
@media (max-width: 768px) {
    .form {
        padding: 20px;
        box-shadow: none;
        border: none;
    }

    .logo-app-fixed img { width: 200px; }

    table, thead, tbody, th, td, tr { font-size: 14px; }

    main {
        padding: 10px;
        margin-left: 0 !important;
    }

    select#evento,
    #btnConfirmarReserva {
        width: 100% !important;
        font-size: 16px;
    }

    .leyenda-item span { margin-right: 10px; }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table td, table th { min-width: 100px; }

    section h2 { font-size: 18px; }
    main h1 { font-size: 22px; }

    .escenario {
        margin-left: auto;
        margin-right: auto;
        transform: scale(1.1);
    }

    #mapaAsientos {
        transform: scale(0.9) !important;
        transform-origin: top center !important;
        display: inline-block;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-menu {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 10px;
    }

    .navbar-menu a {
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.2);
        width: 100%;
    }

    body > div[style*="float: left"] {
        width: 100% !important;
        float: none !important;
        height: auto !important;
        box-shadow: none !important;
        padding: 10px !important;
        background-color: #f0f0f0 !important;
    }

    body > div[style*="float: left"] h3 {
        text-align: center;
    }

    body > div[style*="float: left"] ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body > div[style*="float: left"] li { margin-bottom: 12px; }
    body > div[style*="float: left"] a { font-size: 16px; }
}

/* ==== IMPRESIÓN ==== */
@media print {
    button, select {
        display: none;
    }
}

/* ==== SIDEBAR MODERNO ==== */
.sidebar {
    width: 220px;
    float: left;
    height: 100vh;
    background-color: #1e2a38;
    padding: 20px;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
}

.sidebar h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffc107;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu a {
    display: block;
    padding: 12px;
    background-color: #2f3e52;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.sidebar-menu a:hover {
    background-color: #ffc107;
    color: #1e2a38;
}

/* ==== DASHBOARD PANEL ==== */
.dashboard-main {
    margin-left: 240px;
    padding: 40px 20px;
    background-color: #f4f6f9;
    min-height: 100vh;
}

.dashboard-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.dashboard-welcome {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.dashboard-btn {
    display: block;
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-btn.logout {
    background-color: #ffecec;
    border-color: #e74c3c;
    color: #c0392b;
}

/* === MODAL INVITADOS (gestionar_asientos) === */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
}

.modal-content h3 {
  margin-top: 0;
}

.modal-content label {
  display: block;
  margin: 10px 0;
  font-weight: bold;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button {
  margin-right: 10px;
  padding: 8px 14px;
  border: none;
  background-color: #3498db;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #2980b9;
}

/* ==== TABLA EVENTOS ==== */
.eventos-container h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

#btnCrearEvento {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#btnCrearEvento:hover {
    background-color: #218838;
}

#tablaEventos {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#tablaEventos th {
    background-color: #007bff;
    color: white;
    padding: 12px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #ddd;
}

#tablaEventos td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 15px;
}

#tablaEventos td button,
#tablaEventos td a {
    padding: 6px 10px;
    margin: 2px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

#tablaEventos td .editar {
    background-color: #17a2b8;
    color: white;
}

#tablaEventos td .eliminar {
    background-color: #dc3545;
    color: white;
}

#formularioEvento {
    margin-top: 30px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#formularioEvento h2 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 20px;
}

#formularioEvento label {
    font-weight: 600;
    margin-top: 10px;
    display: block;
}

#formularioEvento input,
#formularioEvento select,
#formularioEvento button {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
}

#formularioEvento button[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

#formularioEvento button[type="submit"]:hover {
    background-color: #0069d9;
}

#formularioEvento a#btnCancelar {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
}

#formularioEvento select[multiple] {
    height: auto;
}

#formularioEvento small {
    display: block;
    margin-top: 4px;
    color: #555;
    font-size: 13px;
}

/* ==== GESTIÓN DE ASIENTOS ==== */
#evento {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin-top: 6px;
    margin-bottom: 16px;
}

#btnGuardarCambios {
    background-color: #28a745;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    transition: background-color 0.3s;
}

#btnGuardarCambios:hover {
    background-color: #218838;
}

.leyenda {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.leyenda-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #444;
    gap: 8px;
}

.leyenda-item span {
    width: 20px;
    height: 20px;
    display: inline-block;
    border: 1px solid #999;
    border-radius: 4px;
}

#tablaInvitadosSection table {
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    font-size: 15px;
}

#tablaInvitadosSection th {
    background-color: #007bff;
    color: white;
    padding: 10px;
    font-weight: bold;
}

#tablaInvitadosSection td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
}

#tablaInvitadosSection h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

/* ==== REPORTES Y ESTADÍSTICAS ==== */
main h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

main h3 {
    font-size: 22px;
    color: #2c3e50;
    margin: 30px 0 15px;
}

main ul {
    margin-top: 10px;
    padding-left: 20px;
    font-size: 16px;
}

main ul li {
    margin-bottom: 10px;
}

main ul li a {
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
    transition: color 0.3s ease;
}

main ul li a:hover {
    color: #0056b3;
}

canvas {
    display: block;
    max-width: 100%;
    height: auto !important;
    margin-top: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* ==== REGISTRO SUPER USUARIO Y TUTOR ==== */
.registro-body {
    margin-left: 240px;
    padding: 40px 20px;
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.registro-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    border: 1px solid #ccc;
}

.registro-form h2.title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.registro-form .input,
.registro-form select,
.registro-form .button-confirm {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fefefe;
    transition: border 0.2s ease;
}

.registro-form .input:focus,
.registro-form select:focus {
    border-color: #007bff;
    outline: none;
}

.registro-form .button-confirm {
    background-color: #007bff;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.registro-form .button-confirm:hover {
    background-color: #0056b3;
}

/* Contenedor del input de contraseña */
.input-password {
    position: relative;
    display: flex;
    align-items: center;
}

/* Input con espacio a la derecha para el ícono */
.input-password input {
    width: 100%;
    padding-right: 40px;
}

/* Icono del ojito */
.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    user-select: none;
    color: #333; /* Puedes cambiar el color si deseas */
    font-size: 1.2em;
    display: flex;
    align-items: center;
}

/* ==== PERFIL DEL ESTUDIANTE DETALLADO ==== */
.perfil-container {
    display: flex;
    gap: 40px;
    align-items: center;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 30px auto;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.perfil-foto {
    flex-shrink: 0;
    text-align: center;
}

.perfil-foto img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #007bff;
    background-color: #f0f0f0;
    transition: transform 0.3s;
}

.perfil-foto img:hover {
    transform: scale(1.05);
}

.perfil-datos {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}

.perfil-datos p {
    font-size: 17px;
    margin: 10px 0;
    color: #333;
    line-height: 1.6;
}

.perfil-datos p strong {
    color: #0056b3;
}

.btn-editar-perfil {
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: start;
}

.btn-editar-perfil:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .perfil-container {
        flex-direction: column;
        text-align: center;
    }

    .perfil-datos {
        align-items: center;
    }

    .btn-editar-perfil {
        align-self: center;
    }
}
.btn-reservaciones {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 16px;
}

.btn-reservaciones i {
    margin-right: 8px;
    font-size: 17px;
}

.btn-reservaciones:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* ==== RESERVACIONES DEL ESTUDIANTE ==== */
.reservaciones-container {
    max-width: 1000px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.reservaciones-container h2 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.tabla-scroll {
    overflow-x: auto;
    width: 100%;
    position: relative;
}

.tabla-scroll table {
    min-width: 1050px; /* Asegura que se vea toda la tabla en móvil */
}

.tabla-reservas {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.tabla-reservas th {
    background-color: #007bff;
    color: white;
    padding: 12px;
    text-align: center;
}

.tabla-reservas td {
    padding: 10px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.tabla-reservas td a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.tabla-reservas td a:hover {
    text-decoration: underline;
}

.btn-cancelar {
    padding: 6px 12px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-cancelar:hover {
    background-color: #c82333;
}

@media (max-width: 768px) {
    .reservaciones-container {
        padding: 20px;
    }

    .tabla-reservas th,
    .tabla-reservas td {
        font-size: 14px;
    }
}

/* ==== FOTO DE PERFIL ==== */
.perfil-foto-editable {
  position: relative;
  display: inline-block;
  width: 170px;
  height: 170px;
}

.perfil-foto-editable img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #007bff;
  background-color: #f0f0f0;
}

.btn-cambiar-foto {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.btn-cambiar-foto i {
  pointer-events: none;
}

/* ==== VER JEFES ==== */
.tarjetas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.tarjeta-usuario {
    width: 280px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.tarjeta-usuario:hover {
    transform: scale(1.03);
}

.tarjeta-usuario img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
    margin-bottom: 15px;
}

.tarjeta-usuario p {
    margin: 6px 0;
    font-size: 15px;
    color: #333;
}

.tarjeta-usuario strong {
    color: #007bff;
}

.btn-ver-jefes {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-ver-jefes:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
