* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background-image: url('/oficios/assets/img/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Capa visual sin bloquear botones */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(3px);
    z-index: 0;
    pointer-events: none;
}

.contenedor-principal {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.encabezado-sistema {
    width: 100%;
    padding: 22px 15px 15px 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(150, 150, 150, 0.35);
}

.encabezado-sistema h1 {
    font-size: clamp(1.4rem, 2.6vw, 2.5rem);
    font-weight: 700;
    color: #343434;
    margin-bottom: 4px;
}

.encabezado-sistema h2 {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 500;
    color: #6b6b6b;
    margin-bottom: 0;
}

.contenido-sistema {
    flex: 1;
    width: 100%;
    padding: 30px 20px 55px 20px;
    position: relative;
    z-index: 2;
}

.footer-sistema {
    position: fixed;
    left: 15px;
    bottom: 10px;
    z-index: 3;
    font-size: 0.82rem;
    color: #555;
    background: rgba(255,255,255,0.65);
    padding: 5px 12px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.card-sistema {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    border: 1px solid rgba(180,180,180,0.45);
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
    backdrop-filter: blur(6px);
}

.card-sistema p {
    text-align: justify;
    font-size: 0.95rem;
    color: #444;
}

/* Asegura que botones, links y formularios sean clicables */
a,
button,
input,
select,
textarea {
    position: relative;
    z-index: 5;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .encabezado-sistema {
        padding: 18px 10px 12px 10px;
    }

    .contenido-sistema {
        padding: 20px 12px 60px 12px;
    }

    .footer-sistema {
        font-size: 0.72rem;
        left: 8px;
        right: 8px;
        text-align: center;
    }
}

/* Inputs más visibles */
.form-control {
    background-color: #ffffff !important;
    border: 1px solid #b5b5b5;
    color: #000;
}

.form-control:focus {
    border-color: #9F2241;
    box-shadow: 0 0 0 0.2rem rgba(159, 34, 65, 0.25);
}

/* Contenedor más sólido */
.card-sistema {
    background: rgba(255, 255, 255, 0.96) !important;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Labels más visibles */
.form-label {
    font-weight: 600;
    color: #333;
}

.btn-accion {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}