/* -----------------------------------------------------------
   LOGIN
----------------------------------------------------------- */

.login-body {
    background: #fff7f2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Arial, sans-serif;
}

.login-card {
    background: #fff;
    width: 380px;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 6px solid #f59e0b;
}

.login-card h2 {
    text-align: center;
    color: #e74c3c;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: 0.2s;
}

.form-group input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

button[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.error {
    background: #ffe6e6;
    color: #c0392b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
}

/* -----------------------------------------------------------
   LAYOUT GENERAL
----------------------------------------------------------- */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #FFFDF9;
}

/* -----------------------------------------------------------
   TOPBAR
----------------------------------------------------------- */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-bottom: 4px solid #E04A1D;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-weight: bold;
    color: #E04A1D;
}

.menu-btn {
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
}

/* -----------------------------------------------------------
   OVERLAY
----------------------------------------------------------- */

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

.overlay.active,
.overlay.open {
    display: block;
}

/* -----------------------------------------------------------
   SIDEBAR
----------------------------------------------------------- */

.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #4A2E1B;
    padding-top: 60px;
    transition: 0.3s;
    z-index: 999;
}

.sidebar.active,
.sidebar.open {
    left: 0;
}

.sidebar a {
    display: block;
    color: #fff;
    padding: 12px 15px;
    text-decoration: none;
}

.sidebar a:hover {
    background: #E04A1D;
}

/* -----------------------------------------------------------
   SUBMENÚ
----------------------------------------------------------- */

.submenu > a {
    cursor: pointer;
}

.submenu-items {
    display: none;
    background: #3a2416;
}

.submenu-items.active,
.submenu.open > .submenu-items {
    display: block;
}

.submenu .submenu .submenu-items {
    padding-left: 10px;
}

.submenu-items a {
    padding-left: 30px;
}

/* -----------------------------------------------------------
   CONTENIDO
----------------------------------------------------------- */

.contenido {
    padding: 20px;
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */

footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
}

/* -----------------------------------------------------------
   DASHBOARD PRINCIPAL (TARJETAS GRANDES)
----------------------------------------------------------- */

.titulo-dashboard {
    font-size: 32px;
    margin-bottom: 30px;
    color: #E04A1D;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.5px;
}

.subpanel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.subpanel-card {
    background: #fff;
    border-radius: 18px;
    padding: 25px 25px 30px;
    text-decoration: none;
    color: #4A2E1B;
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
    border-left: 6px solid #E04A1D;
    transition: 0.25s;
}

.subpanel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

.subpanel-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.subpanel-number {
    font-size: 26px;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

.subpanel-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.subpanel-desc {
    font-size: 14px;
    color: #6b4a3a;
    line-height: 1.4;
}

.subpanel-btn {
    margin-top: 15px;
    display: inline-block;
    padding: 8px 14px;
    background: #E04A1D;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}

.subpanel-btn:hover {
    background: #c63f18;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */

@media (max-width: 600px) {
    .subpanel-card {
        padding: 20px 15px;
    }

    .subpanel-icon {
        font-size: 32px;
    }
}

/* ============================================================
   TABLAS INTERNAS AMPA — ESTILO COMPLETO
   ============================================================ */

.tabla-wrapper {
    width: 100%;
    overflow-y: auto;
    max-height: 70vh;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tabla-ampa {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 900px;
}

.tabla-ampa thead th {
    position: sticky;
    top: 0;
    background: #f4f4f4;
    z-index: 5;
}

.tabla-ampa th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #ddd;
    cursor: pointer;
}

.tabla-ampa td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.tabla-ampa tbody tr:nth-child(even) {
    background: #fafafa;
}

.tabla-ampa tbody tr:hover {
    background: #f0f0f0;
}

.buscador-box {
    margin: 15px 0;
}

.buscador-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.contador-resultados {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.btn-accion {
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
    margin-right: 5px;
}

.btn-ver {
    background: #3498db;
    color: white;
}

.btn-editar {
    background: #f39c12;
    color: white;
}

.btn-exportar {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #27ae60;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

/* ============================================================
   FICHA DEL SOCIO
   ============================================================ */

.ficha-socio {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.ficha-col {
    flex: 1;
    min-width: 260px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.ficha-col h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
}

.qr-box {
    text-align: center;
    margin-bottom: 10px;
}

.qr-box img {
    width: 180px;
    height: 180px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.btn-volver,
.btn-descargar,
.btn-imprimir {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.btn-volver {
    background: #3498db;
    color: white;
}

.btn-descargar {
    background: #27ae60;
    color: white;
}

.btn-imprimir {
    background: #f39c12;
    color: white;
    border: none;
}

/* ============================================================
   FILA DE MESAS — ADMIN FIN DE CURSO
   ============================================================ */

.fila-mesas {
    background: #fafafa;
}

.mesas-listado {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.mesas-titulo {
    font-size: 14px;
    color: #4A2E1B;
    margin-bottom: 4px;
}

.mesa-item {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 14px;
}

.mesa-num {
    font-weight: bold;
    color: #E04A1D;
}

.mesa-adult,
.mesa-nino,
.mesa-total {
    color: #4A2E1B;
}
