/* ============================= */
/* BASE GENERAL                  */
/* ============================= */
body {
    font-family: Arial, sans-serif;
    background: #f5f7f6;
    margin: 0;
    padding: 0;
    position: relative;
    color: #616160;
}

/* ============================= */
/* ENCABEZADO INSTITUCIONAL      */
/* ============================= */
.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 30px;
    background: #0b6754;
    color: white;
}

/* Línea institucional fina */
.header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e6e468;
}

.header-logo {
    position: absolute;
    left: 30px;
}

.logo-header {
    height: 60px;
    width: auto;
}




.header h1 {
    margin: 0;
    font-size: 38px;   /* antes más chico */
    font-weight: 600;
    letter-spacing: 1px;
}

.header p {
    margin: 6px 0 0;
    font-size: 18px;   /* más grande */
    opacity: 0.9;
}

/* ============================= */
/* BOTÓN VOLVER GLOBAL (HEADER)  */
/* ============================= */
.btn-volver-global {
    position: absolute;
    top: 34px;
    right: 20px;
    width: 110px;
    padding: 16px 0;
    background: #ffffff;
    color: #0b6754;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
}

.btn-volver-global:hover {
    background: #e6e468;
}

@media (max-width: 600px) {
    .btn-volver-global {
        top: 24px;
        right: 10px;
        width: 95px;
        font-size: 14px;
        padding: 14px 0;
    }
}

/* ============================= */
/* CONTENEDORES GENERALES        */
/* ============================= */
.contenedor {
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}

.contenedor-principal {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    flex-wrap: wrap;
}

.contenedor-form,
.card-form {
    width: 90%;
    max-width: 520px;
    margin: 30px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ============================= */
/* TARJETAS (CARD)               */
/* ============================= */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-wide {
    width: 100%;
    max-width: 1250px;
    margin: 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ============================= */
/* FORMULARIOS                   */
/* ============================= */
label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

input,
select {
    width: 100%;
    padding: 9px;
    margin-top: 5px;
    margin-bottom: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

h3 {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

/* ============================= */
/* BOTONES GRANDES (PANELES)     */
/* ============================= */
.boton {
    display: block;
    padding: 14px;
    color: white;
    text-decoration: none;
    border-radius: 0 0 12px 12px;
    font-size: 16px;
    font-weight: bold;
}

.boton:hover {
    opacity: 0.9;
}

.boton-alumno   { background: #0b6754; }
.boton-profesor { background: #e6e468; color: #0b6754; }
.boton-admin    { background: #616160; }

/* ============================= */
/* OPCIONES / CARDS SIMPLES      */
/* ============================= */
.opciones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 40px;
}

.card-simple {
    width: 200px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    text-decoration: none;
    text-align: center;
    color: #616160;
    transition: 0.3s;
    font-weight: bold;
}

.card-simple:hover {
    transform: scale(1.05);
}

/* ============================= */
/* ALERTAS                       */
/* ============================= */
.alert-ok {
    background: #0b6754;
    color: #ffffff;
}

.alert-error {
    background: #b91c1c;
    color: #ffffff;
}

.alert {
    max-width: 900px;
    margin: 25px auto;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
}

/* ============================= */
/* TABLAS (ADMIN)                */
/* ============================= */
.tabla {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.tabla th,
.tabla td {
    padding: 14px 12px;
    border-bottom: 1px solid #ddd;
}

.tabla th {
    background: #0b6754;
    color: white;
}

/* ============================= */
/* BOTONES BASE                  */
/* ============================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    background: #0b6754;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    background: #084c3f;
}

.btn:active {
    transform: scale(0.97);
}

/* VARIANTES */
.btn-success { background: #0b6754; }
.btn-success:hover { background: #084c3f; }

.btn-danger { background: #b91c1c; }
.btn-danger:hover { background: #8f1414; }

.btn-secondary { background: #616160; }
.btn-secondary:hover { background: #4a4a4a; }

.btn-warning {
    background: #e6e468;
    color: #0b6754;
}
.btn-warning:hover {
    background: #d4d245;
}

.btn-outline {
    background: #ffffff;
    color: #0b6754;
    border: 2px solid #0b6754;
}
.btn-outline:hover {
    background: #e6e468;
}

/* FORZADO FINAL */
a.btn,
button.btn {
    background: #0b6754 !important;
    color: #ffffff !important;
}

a.btn:hover,
button.btn:hover {
    background: #084c3f !important;
}



/* IMÁGENES EN CARDS (INDEX) */
body.body-index .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}



/* ===== INDEX - CARDS TAMAÑO ORIGINAL ===== */

body.body-index .contenedor-principal {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

body.body-index .card {
    width: 300px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    text-align: center;
}

body.body-index .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}








body.body-index .card h3 {
    text-align: center;
}

body.body-index .card p {
    text-align: center;
}



body.body-index .card {
    text-align: center;
}







/* ===== CENTRAR TEXTO EN CARDS DEL INDEX ===== */

body.body-index .card {
    text-align: center !important;
}

body.body-index .card h3,
body.body-index .card p {
    text-align: center !important;
}




/* ===== FOOTER INDEX AJUSTE FUERTE ===== */

body.body-index .contenedor-principal {
    padding-bottom: 10px;   /* reduce espacio debajo de las cards */
}

body.body-index .footer {
    text-align: center;
    padding: 15px 20px 35px 20px;  /* mucho menos espacio arriba */
    background: #f5f7f6;
    margin-top: 0;                /* lo pega a las cards */
}

body.body-index .footer h2 {
    margin-bottom: 10px;
}

body.body-index .footer p {
    max-width: 800px;
    margin: 0 auto;
}





.btn-filtrar-grande{
background:#1976d2;
color:white;
border:none;
padding:10px 18px;
font-size:15px;
font-weight:bold;
border-radius:6px;
cursor:pointer;
margin-left:6px;
}

.btn-filtrar-grande:hover{
background:#125aa3;
}





/* ============================= */
/* FILTROS ADMIN PAGOS           */
/* ============================= */

.filtros-inline{
display:flex;
align-items:center;
gap:8px;
flex-wrap:wrap;
margin-bottom:15px;
}

.filtros-inline select{
width:180px;
height:30px;
padding:3px 6px;
font-size:13px;
margin-bottom:0;
}

.filtros-inline input{
width:160px;
height:30px;
padding:3px 6px;
font-size:13px;
margin-bottom:0;
}

.filtros-inline button{
margin-left:auto;
height:34px;
padding:6px 18px;
}







/* ============================= */
/* FECHA PAGO INLINE             */
/* ============================= */

.fecha-pago-inline label{
display:inline-block;
margin-top:0;
}

.fecha-pago-inline input{
width:130px;
height:30px;
margin-bottom:0;
}