body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    /* padding: 0 1rem; */
}

header {
    /* background-color: #003366; */
    background-color: #ffffff;
    color: black;
    /* padding: 1rem 2rem; */
    display: flex;
    align-items: center;
    justify-content: center;
    /*min-height: 140px;*/  /* Aumentamos altura mínima del header */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 100px;       /* Aumentamos tamaño visual del logo */
    max-height: 120px;   /* por si en móviles quieres limitarlo */
}

h1 {
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
}

.resumen {
    margin: 2rem auto 1rem;
    text-align: center;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table.sistemas {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 2rem;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

table.sistemas th, table.sistemas td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
}

table.sistemas th {
    background-color: #09a9be;
}

.subseccion {
    background-color: #e0e0e0;
}

.up {
    background-color: #00ff00;
}

.down {
    background-color: #ff0000;
}

.error {
    background-color: #ff9900;
}

/* Estilo para los selects */
select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

select:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 4px rgba(0, 102, 204, 0.3);
}

/* Estilo para los botones */
button {
    padding: 6px 14px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #004c99;
}

button:focus {
    outline: none;
    box-shadow: 0 0 4px rgba(0, 102, 204, 0.4);
}

/* Estilo para el pop-up */
.popup-ok {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centra realmente el popup */
    background-color: #e0ffe0;
    color: #006600;
    border: 1px solid #33cc33;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popup-ok .close-btn {
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 0.5rem;
}


/* Responsive */
@media (max-width: 768px) {
    .resumen p {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.2rem;
    }

    .logo {
        height: 40px;
    }
}

/* AVISO GENERAL */
.aviso-general-section {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 2rem;
    overflow: hidden; /* oculta texto que salga */
    position: relative;
}

.aviso-general-div {
    background-color: #fff0f0;
    border: 2px solid #cc0000;
    border-radius: 8px;
    padding: 12px 16px;
    position: relative;
}

.aviso-general-div span {
    display: inline-block;
    color: #cc0000 !important; /* fuerza rojo */
    font-weight: bold;
    font-size: 1rem;
    white-space: normal; /* permite saltos de línea */
    word-wrap: break-word; /* rompe palabras largas */
}



/* Contenedor del formulario del aviso general, en la consola de administracion */
.form-aviso-general {
    width: 90%;          /* igual que tus tablas .sistemas */
    max-width: 1000px;   /* opcional, para no crecer demasiado */
    margin: 1rem auto 2rem;  /* centrado horizontal con auto */
    text-align: center;  /* centra botón y textarea dentro */
}

/* Estilo del textarea */
.form-aviso-general textarea {
    width: 100%;          /* ocupa todo el ancho del contenedor */
    font-size: 1.2rem;
    color: #cc0000;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #cc0000;
    box-sizing: border-box; /* importante para que width:100% incluya padding */
}

/* Botón centrado */
.form-aviso-general button {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 1rem;
    background-color: #cc0000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.form-aviso-general button:hover {
    background-color: #990000;
}