/* ========== FONDO PRINCIPAL Y MARCA DE AGUA ========== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5; /* Color base */
    color: #222;
    position: relative;
    min-height: 100vh;
}

/* Capa de marca de agua (centrada y translúcida) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../static/fondo.png") center center no-repeat;
    background-size: 60%;        /* Ajusta tamaño del logo de fondo */
    opacity: 0.5;               /* Ajusta transparencia de la marca de agua */
    z-index: -1;                 /* Envía la imagen detrás de todo */
}

/* ========== CABECERA ========== */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(20, 20, 20, 0.85);
    color: #fff;
    padding: 10px;
    border-bottom: 3px solid #2c3e50;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section img {
    height: 70px;
    width: auto;
    border-radius: 8px;
}

header h1 {
    font-size: 1.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    margin: 0;
}

/* ========== NAVEGACIÓN ========== */
nav {
    margin-top: 10px;
}

nav a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* ========== CONTENIDO ========== */
main {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ========== TABLAS ========== */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.5); /* ← ajusta este valor */
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    border-radius: 10px;
}


th, td {
    padding: 8px 10px;
    border-bottom: 1px solid #ccc;
}

th {
    background-color: #444;
    color: white;
}

/* ========== ESTADOS ========== */
.estado.activo {
    background-color: #d4edda; /* verde suave */
    color: #155724;
    font-weight: bold;
}

.estado.no-activo {
    background-color: #f8d7da; /* rojo suave */
    color: #721c24;
    font-weight: bold;
}

/* ========== PIE DE PÁGINA ========== */
footer {
    background-color: rgba(20, 20, 20, 0.85);
    color: white;
    text-align: center;
    padding: 10px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .logo-section {
        flex-direction: column;
    }
    header h1 {
        font-size: 1.2em;
    }
    main {
        margin: 10px;
        padding: 15px;
    }
}
