/* ---------------- GENERAL ---------------- */
body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f5f7;
    color: #333;
}

/* ---------------- HEADER PRINCIPAL ---------------- */
.encabezado {
    background: white;
    display: flex;
    justify-content: flex-start; /* Alineación correcta a la izquierda */
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

/* ---------------- SUB-ENCABEZADO ---------------- */
.sub-encabezado {
    text-align: center;
    background-color: #ffffff;
    padding: 22px 20px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    margin: 0 0 28px 0;
}

.sub-encabezado h3 {
    margin: 0;
    font-size: 20px;
    color: #008c45;
    font-weight: 700;
}

.sub-encabezado p {
    margin: 6px 0 0 0;
    font-size: 14px;
    color: #555;
}

/* ---------------- LOGIN ---------------- */
.contenedor-login {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.login-box {
    background: white;
    width: 350px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.15);
    text-align: center;
}

.login-box h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: #0d572c;
}

form {
    text-align: left;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 1rem;
}

input:focus {
    border-color: #0d572c;
    outline: none;
    box-shadow: 0 0 5px rgba(13,87,44,0.3);
}

.btn-ingresar {
    width: 100%;
    padding: 12px;
    background: #0d572c;
    color: white;
    border: none;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-ingresar:hover {
    background: #0a4322;
}

/* ---------------- MÓDULOS (para dashboard u otras vistas) ---------------- */
.modulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 50px;
}

.modulo {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.modulo:hover {
    transform: translateY(-5px);
}

.modulo img {
    width: 70px;
    margin-bottom: 10px;
}

/* ---------------- DASHBOARD ---------------- */
.contenedor-dashboard {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px;
}

.tarjeta {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 25px;
    width: 300px;
    text-align: center;
    transition: transform 0.2s ease;
}

.tarjeta:hover {
    transform: translateY(-5px);
}

.tarjeta h3 {
    color: #008c45;
    margin-bottom: 10px;
}

.tarjeta p {
    color: #555;
    margin-bottom: 15px;
}

.btn-acceder {
    display: inline-block;
    background-color: #008c45;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-acceder:hover {
    background-color: #006f37;
}

/* ---------------- FOOTER ---------------- */
footer {
    background: #008c45;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 50px;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;  /* Empuja el footer hacia abajo */
}

