/* ============================================================
   LOGITRAX - SISTEMA ADMIN
   Color principal: #4d9eff
   Color acento:    #3a7bc8
   Fondo oscuro:    #133454
   Texto:           #2c3e50
   Fuente:          Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ───────────────────────────────────────────────────── */
body {
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    position: relative;
    overflow-x: hidden;
    background: #0d1b2a;
    color: #2c3e50;
}

/* ── FONDO BLUREADO ─────────────────────────────────────────── */
.bg-blur {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('../../images/topw.webp') no-repeat center center;
    background-size: cover;
    filter: blur(10px) brightness(0.6);
    transform: scale(1.05);
    z-index: 0;
}

/* ── CONTENEDOR PRINCIPAL ───────────────────────────────────── */
.dakart-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.main-header { width: 100%; }

.header-banner {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}
.header-banner > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.header-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(77,158,255,0.25));
    border-bottom: 3px solid #4d9eff;
}

.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo-img { height: 60px; filter: drop-shadow(0 0 8px #4d9eff); }
.header-logo-text { color: #fff; font-size: 26px; font-weight: 900; letter-spacing: 3px; text-shadow: 0 0 10px #4d9eff; }

.header-user { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 14px; }
.header-user i { font-size: 20px; color: #4d9eff; }

.btn-logout {
    background: #4d9eff; color: #fff;
    padding: 6px 14px; border-radius: 8px;
    text-decoration: none; font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    transition: background 0.3s;
}
.btn-logout:hover { background: #3a7bc8; }

/* ── CONTENIDO PRINCIPAL ────────────────────────────────────── */
.main-content {
    flex: 1; width: 100%; padding: 24px;
    display: flex; justify-content: center; align-items: flex-start;
}

/* ── DASHBOARD CONTAINER ────────────────────────────────────── */
.dashboard-container {
    width: 92%; margin: 0 auto;
    background: rgba(255,255,255,0.95);
    border-radius: 16px; padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

/* ── TÍTULOS ────────────────────────────────────────────────── */
.dashboard-title { color: #2c3e50; font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; text-align: center; }
.dashboard-title i { color: #4d9eff; margin-right: 8px; }
.dashboard-subtitle { color: #666; text-align: center; font-size: 0.95rem; margin-bottom: 32px; }

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }

/* ── ALERTAS ────────────────────────────────────────────────── */
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

/* Alerta portal */
.admin-alert-portal {
    background: #e8f4ff; border: 1px solid #4d9eff;
    border-left: 4px solid #4d9eff; color: #2c3e50;
    padding: 0.9rem 1.2rem; border-radius: 10px;
    margin-bottom: 1.5rem; display: flex;
    align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.92rem;
}
.admin-alert-portal i { color: #4d9eff; font-size: 1.1rem; flex-shrink: 0; }
.admin-alert-portal strong { color: #4d9eff; }
.admin-alert-link { margin-left: auto; color: #4d9eff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; transition: opacity 0.2s; }
.admin-alert-link:hover { opacity: 0.8; }

/* ── DASHBOARD CARDS ────────────────────────────────────────── */
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 16px; }

.card {
    background: #fff; border: 1px solid #e0eaf5;
    border-radius: 14px; padding: 24px 16px;
    text-align: center; text-decoration: none; color: #2c3e50;
    transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.05); display: block;
}
.card:hover { transform: translateY(-5px); border-color: #4d9eff; box-shadow: 0 8px 20px rgba(77,158,255,0.2); }
.card-icon { font-size: 2.4rem; margin-bottom: 10px; }
.card-icon i { color: #4d9eff; }
.card h3 { color: #2c3e50; font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.card p  { color: #777; font-size: 0.78rem; }

/* Badge en tarjeta */
.badge-admin { display: inline-flex; align-items: center; justify-content: center; background: #4d9eff; color: #fff; font-size: 0.65rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 20px; margin-left: 6px; vertical-align: middle; animation: pulso 1.5s infinite; }
@keyframes pulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.card-alerta { border: 2px solid rgba(77,158,255,0.4) !important; }
.card-alerta:hover { border-color: #4d9eff !important; }

/* ── BUSCADOR ───────────────────────────────────────────────── */
.buscador { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.buscador-input { flex: 1; min-width: 200px; display: flex; align-items: center; background: #fff; border: 1px solid #d0dce8; border-radius: 8px; padding: 0 12px; gap: 8px; }
.buscador-input i { color: #4d9eff; }
.buscador-input input { flex: 1; border: none; outline: none; padding: 10px 0; font-size: 0.9rem; color: #2c3e50; background: transparent; }
.buscador-container { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; }
.buscador-container .form-control { flex: 1; }

/* ── TABLA ──────────────────────────────────────────────────── */
.table-card, .form-card {
    background: #fff; border: 1px solid #e0eaf5;
    border-radius: 14px; padding: 24px;
    margin-bottom: 24px; box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.table-card h2, .form-card h2, .table-card h3, .form-card h3 {
    font-size: 1rem; color: #2c3e50; margin-bottom: 16px;
    padding-bottom: 10px; border-bottom: 1px solid #e0eaf5;
}
.table-card h2 i, .form-card h2 i,
.table-card h3 i, .form-card h3 i { color: #4d9eff; margin-right: 6px; }

.total-registros { font-size: 0.85rem; color: #666; margin-bottom: 12px; }
.total-registros i { color: #4d9eff; margin-right: 4px; }

.table-responsive { overflow-x: auto; }
.tabla-datos { width: 100%; border-collapse: collapse; font-size: 0.85rem; color: #2c3e50; }
.tabla-datos th { background: #f0f6ff; padding: 10px; text-align: left; font-weight: 700; color: #4d9eff; border-bottom: 2px solid #e0eaf5; white-space: nowrap; }
.tabla-datos td { padding: 10px; border-bottom: 1px solid #e0eaf5; color: #555; vertical-align: middle; }
.tabla-datos tr:hover td { background: #f9fbff; }
.sin-datos { text-align: center; color: #999; padding: 40px 32px; }
.sin-datos i { font-size: 2.5rem; display: block; margin-bottom: 12px; color: #d0dce8; }

/* ── ACCIONES ───────────────────────────────────────────────── */
.acciones { display: flex; gap: 6px; flex-wrap: wrap; }

.btn-editar { background: #4d9eff; color: #fff; padding: 4px 8px; border-radius: 6px; text-decoration: none; font-size: 0.75rem; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; transition: background 0.2s; border: none; cursor: pointer; }
.btn-editar:hover { background: #3a7bc8; color: #fff; }

.btn-eliminar { background: #f44336; color: #fff; border: none; padding: 4px 8px; border-radius: 6px; cursor: pointer; font-size: 0.75rem; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; transition: background 0.2s; }
.btn-eliminar:hover { background: #da190b; }

.btn-ver { background: #17a2b8; color: #fff; padding: 4px 8px; border-radius: 6px; text-decoration: none; font-size: 0.75rem; display: inline-flex; align-items: center; gap: 4px; transition: background 0.2s; }
.btn-ver:hover { background: #138496; color: #fff; }

.btn-gps { color: #4d9eff; text-decoration: none; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 4px; }
.btn-gps:hover { color: #3a7bc8; }

.btn-agregar { background: #4d9eff; color: #fff; border: none; padding: 8px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; }
.btn-agregar:hover { background: #3a7bc8; }

.btn-buscar { background: #4d9eff; color: #fff; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; margin-left: 10px; font-family: inherit; }
.btn-buscar:hover { background: #3a7bc8; }

.btn-cambiar-password { background: #ff9800; color: #fff; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.btn-cambiar-password:hover { background: #e68900; }

.btn-regresar { display: inline-flex; align-items: center; gap: 8px; background: #eef2f5; color: #4d9eff; padding: 8px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 1px solid #d0dce8; transition: all 0.2s; }
.btn-regresar:hover { background: #4d9eff; color: #fff; }

/* ── PAGINACIÓN ─────────────────────────────────────────────── */
.paginacion { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.btn-pag { padding: 6px 12px; border-radius: 6px; border: 1px solid #d0dce8; background: #fff; color: #4d9eff; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; cursor: pointer; }
.btn-pag:hover  { background: #4d9eff; color: #fff; border-color: #4d9eff; }
.btn-pag.activo { background: #4d9eff; color: #fff; border-color: #4d9eff; font-weight: bold; }

/* ── FORMULARIOS ────────────────────────────────────────────── */
.form-section { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #eef2f5; }
.form-section:last-of-type { border-bottom: none; }
.form-section h3 { font-size: 1rem; color: #4d9eff; margin-bottom: 16px; font-weight: 700; }
.form-section h3 i { color: #4d9eff; margin-right: 6px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.tres-cols { grid-template-columns: 1fr 1fr 1fr; }
.form-group { margin-bottom: 0; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 600; color: #555; font-size: 0.85rem; }
.form-group label i { color: #4d9eff; margin-right: 4px; }

.form-control {
    width: 100%; padding: 8px 12px;
    border: 1px solid #d0dce8; border-radius: 8px;
    font-size: 0.9rem; color: #2c3e50;
    background: #f9fbff; font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { outline: none; border-color: #4d9eff; background: #fff; box-shadow: 0 0 0 3px rgba(77,158,255,0.1); }

small { display: block; margin-top: 4px; font-size: 0.75rem; color: #888; }

.form-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.dashboard-actions { text-align: center; margin-top: 16px; }

/* ── BOTONES PRINCIPALES ────────────────────────────────────── */
.btn-primary {
    background: #4d9eff; color: #fff; border: none;
    padding: 8px 18px; border-radius: 8px; cursor: pointer;
    font-weight: 600; font-size: 0.9rem; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background 0.3s, transform 0.2s; font-family: inherit;
}
.btn-primary:hover { background: #3a7bc8; transform: translateY(-2px); color: #fff; }

.btn-secondary {
    background: #eef2f5; color: #4d9eff; border: 1px solid #d0dce8;
    padding: 8px 18px; border-radius: 8px; text-decoration: none;
    font-size: 0.9rem; font-weight: 600; display: inline-flex;
    align-items: center; gap: 6px; transition: all 0.2s;
    font-family: inherit; cursor: pointer;
}
.btn-secondary:hover { background: #4d9eff; color: #fff; border-color: #4d9eff; }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); justify-content: center; align-items: center; }
.modal-content { background: #fff; border-radius: 16px; padding: 24px; width: 90%; max-width: 500px; border-top: 4px solid #4d9eff; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.modal-content h3 { color: #4d9eff; margin-bottom: 20px; font-size: 1.1rem; }
.modal-content label { display: block; margin-top: 12px; margin-bottom: 6px; font-weight: 600; color: #555; font-size: 0.85rem; }
.modal-content .form-control { width: 100%; }
.modal-buttons { display: flex; gap: 12px; margin-top: 24px; }
.btn-guardar { background: #4d9eff; color: #fff; flex: 1; padding: 10px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-family: inherit; }
.btn-guardar:hover { background: #3a7bc8; }
.btn-cancelar { background: #eef2f5; color: #555; flex: 1; padding: 10px; border: 1px solid #d0dce8; border-radius: 8px; cursor: pointer; font-family: inherit; }
.btn-cancelar:hover { background: #e0e8f0; }

/* ── MODAL REPORTES ─────────────────────────────────────────── */
.modal-reportes { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); justify-content: center; align-items: center; }
.modal-reportes-content { background: #fff; border: 2px solid #4d9eff; border-radius: 16px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3); width: 90%; max-width: 550px; animation: modalFadeIn 0.3s ease; }
@keyframes modalFadeIn { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }
.modal-reportes-header { background: #f0f6ff; padding: 16px 20px; border-bottom: 1px solid #e0eaf5; display: flex; justify-content: space-between; align-items: center; }
.modal-reportes-header h2 { color: #2c3e50; font-size: 1.2rem; font-weight: 700; margin: 0; }
.modal-reportes-header h2 i { color: #4d9eff; margin-right: 8px; }
.modal-reportes-close { background: none; border: none; color: #aaa; font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.modal-reportes-close:hover { color: #4d9eff; }
.modal-reportes-body { padding: 20px; max-height: 500px; overflow-y: auto; }
.directorio { background: #f9fbff; border-radius: 12px; border: 1px solid #e0eaf5; overflow: hidden; }
.directorio-header { background: #f0f6ff; padding: 10px 16px; border-bottom: 1px solid #e0eaf5; display: flex; align-items: center; gap: 8px; }
.directorio-header i { color: #4d9eff; font-size: 1.1rem; }
.directorio-header span { color: #555; font-size: 0.85rem; }
.lista-reportes { list-style: none; padding: 8px 0; }
.reporte-item { border-bottom: 1px solid #eef2f5; }
.reporte-item:last-child { border-bottom: none; }
.reporte-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: #555; transition: all 0.2s; cursor: pointer; }
.reporte-link:hover { background: #f0f6ff; color: #4d9eff; padding-left: 24px; }
.reporte-link i { font-size: 1.1rem; min-width: 24px; color: #4d9eff; }
.reporte-nombre { flex: 1; font-weight: 500; }
.cargando, .sin-reportes { text-align: center; color: #aaa; padding: 40px; }
.modal-reportes-footer { padding: 16px 20px; border-top: 1px solid #e0eaf5; text-align: center; }
.btn-cerrar { background: #4d9eff; color: #fff; border: none; padding: 8px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: background 0.2s; font-family: inherit; }
.btn-cerrar:hover { background: #3a7bc8; }
.modal-reportes-body::-webkit-scrollbar { width: 6px; }
.modal-reportes-body::-webkit-scrollbar-track { background: #f9fbff; }
.modal-reportes-body::-webkit-scrollbar-thumb { background: #4d9eff; border-radius: 3px; }

/* ── BADGES ─────────────────────────────────────────────────── */
.badge-activo   { background: #d4edda; color: #155724; padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-inactivo { background: #f8d7da; color: #721c24; padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }

/* ── ADMIN DIVIDER ──────────────────────────────────────────── */
.admin-divider { border: 0; height: 2px; background: linear-gradient(90deg, #4d9eff, #3a7bc8, #4d9eff); margin: 30px 0 20px 0; }
.admin-section-title { color: #2c3e50; font-size: 1.5rem; font-weight: 800; text-align: center; margin: 20px 0 25px 0; letter-spacing: 2px; }
.admin-section-title i { color: #4d9eff; margin-right: 12px; }

/* ── GALERÍA DE IMÁGENES ────────────────────────────────────── */
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.galeria-item { background: #f9fbff; border: 1px solid #e0eaf5; border-radius: 10px; overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.galeria-item:hover { border-color: #4d9eff; transform: translateY(-2px); }
.galeria-img-wrap { width: 100%; height: 130px; overflow: hidden; background: #eef2f5; display: flex; align-items: center; justify-content: center; }
.galeria-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.galeria-item:hover .galeria-img-wrap img { transform: scale(1.05); }
.galeria-svg-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #4d9eff; font-size: 0.85rem; }
.galeria-svg-placeholder i { font-size: 2.5rem; }
.galeria-info { padding: 0.6rem 0.7rem; }
.galeria-nombre { font-size: 0.78rem; color: #2c3e50; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 2px 0; }
.galeria-meta { font-size: 0.72rem; color: #888; margin: 0 0 0.5rem 0; }
.galeria-acciones { display: flex; gap: 4px; flex-wrap: wrap; }
.galeria-acciones .btn-gps, .galeria-acciones .btn-editar { font-size: 0.75rem; padding: 3px 8px; }
.galeria-acciones .btn-eliminar { font-size: 0.75rem; padding: 3px 8px; }
.toast-copiado { position: fixed; bottom: 2rem; right: 2rem; background: #4d9eff; color: #fff; padding: 0.7rem 1.2rem; border-radius: 8px; font-size: 0.88rem; font-weight: 600; z-index: 9999; animation: toastIn 0.3s ease; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
@keyframes toastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ── LOGIN ──────────────────────────────────────────────────── */
.login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; width: 92%; max-width: 900px; margin: 2rem auto; align-items: center; }
.login-info { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.login-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; color: #fff; }
.login-info h2 i { color: #4d9eff; margin-right: 10px; text-shadow: 0 0 10px #4d9eff; }
.login-info p { font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 1rem; line-height: 1.6; }

.login-window { background: #fff; border: 2px solid #4d9eff; border-radius: 16px; overflow: hidden; box-shadow: 0 0 30px rgba(77,158,255,0.3), 0 8px 32px rgba(0,0,0,0.3); }
.login-header { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 12px; padding: 18px 0 0; background: #fff; width: 100%; }
.login-logo { max-height: 60px; filter: drop-shadow(0 0 8px #4d9eff); }
.login-title { color: #4d9eff; font-size: 28px; font-weight: 900; letter-spacing: 3px; }
.login-body { padding: 20px 35px 28px; background: #fff; }
.error-message { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; padding: 10px 14px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.input-group { display: flex; align-items: center; background: #f9fbff; border: 1px solid #d0dce8; border-radius: 10px; margin-bottom: 18px; transition: border 0.3s, box-shadow 0.3s; overflow: hidden; }
.input-group:focus-within { border-color: #4d9eff; box-shadow: 0 0 0 3px rgba(77,158,255,0.1); }
.input-icon { width: 46px; display: flex; justify-content: center; align-items: center; color: #4d9eff; font-size: 16px; flex-shrink: 0; border-right: 1px solid #e0eaf5; padding: 0 12px; height: 48px; }
.input-group input { flex: 1; padding: 13px 14px; background: transparent; border: none; outline: none; color: #2c3e50; font-size: 15px; font-family: inherit; }
.input-group input::placeholder { color: #aaa; font-size: 14px; }
.toggle-pass { background: none; border: none; color: #aaa; cursor: pointer; padding: 0 12px; font-size: 14px; transition: color 0.2s; }
.toggle-pass:hover { color: #4d9eff; }
.btn-login { width: 100%; padding: 13px; margin-top: 6px; background: #4d9eff; color: #fff; font-size: 16px; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: background 0.3s, transform 0.2s; display: flex; justify-content: center; align-items: center; gap: 8px; font-family: inherit; }
.btn-login:hover { background: #3a7bc8; transform: translateY(-2px); }
.login-footer { margin-top: 16px; text-align: center; font-size: 13px; color: #4d9eff; display: flex; justify-content: center; align-items: center; gap: 7px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.main-footer { width: 100%; background: #133454; border-top: 3px solid #4d9eff; padding: 12px 24px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-content a { color: #4d9eff; text-decoration: none; font-weight: 600; transition: color 0.3s; }
.footer-content a:hover { color: #fff; }
.footer-content i { color: #4d9eff; margin-right: 5px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .header-banner { height: 90px; }
    .header-logo-img { height: 40px; }
    .header-logo-text { font-size: 20px; }
    .header-user span { display: none; }
    .btn-logout { padding: 5px 10px; font-size: 12px; }
    .main-content { padding: 16px; }
    .dashboard-container { width: 98%; padding: 20px 16px; }
    .dashboard-cards { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .card { padding: 16px 8px; }
    .card-icon { font-size: 1.8rem; }
    .card h3 { font-size: 0.85rem; }
    .card p { display: none; }
    .form-row, .form-row.tres-cols { grid-template-columns: 1fr; }
    .buscador { flex-direction: column; align-items: stretch; }
    .buscador-input { width: 100%; }
    .tabla-datos th, .tabla-datos td { padding: 7px 6px; font-size: 0.78rem; }
    .acciones { flex-direction: column; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .footer-content { flex-direction: column; gap: 6px; text-align: center; }
    .login-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .login-info { text-align: center; }
    .galeria-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .galeria-img-wrap { height: 100px; }
    .admin-alert-portal { flex-direction: column; align-items: flex-start; }
    .admin-alert-link { margin-left: 0; }
}
@media (max-width: 480px) {
    .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── LANGUAGE SELECTOR ──────────────────────────────────── */
.lang-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
}
.lang-selector-btn {
    background: rgba(77,158,255,0.15);
    border: 1px solid rgba(77,158,255,0.5);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}
.lang-selector-btn:hover { background: rgba(77,158,255,0.35); }
.lang-arrow { font-size: 0.55rem; transition: transform 0.2s; display: inline-block; }
.lang-selector.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    min-width: 150px;
    z-index: 9999;
    overflow: hidden;
    border: 1px solid #e0eaf5;
}
.lang-selector.open .lang-dropdown { display: block; }
.lang-dropdown form { margin: 0; }
.lang-dropdown button {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 16px;
    text-align: left;
    color: #2c3e50;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}
.lang-dropdown button:hover { background: #f0f6ff; color: #4d9eff; }
.lang-dropdown button.lang-active { background: #e8f4ff; color: #4d9eff; font-weight: 700; }
.lang-dropdown hr { margin: 0; border: none; border-top: 1px solid #eef2f5; }
