* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f5f7;
    color: #222;
}

.contenedor {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.tarjeta {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    text-align: center;
}

.logo {
    max-width: 220px;
    margin-bottom: 20px;
}

h1 {
    font-size: 26px;
    margin: 10px 0;
    color: #1f3b2d;
}

.subtitulo {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.aviso {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: bold;
}

.correcto {
    background: #e7f7ec;
    color: #1b7f3a;
    border: 1px solid #b7e2c2;
}

.botones {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.boton {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.principal {
    background: #1f7a3b;
    color: #ffffff;
}

.secundario {
    background: #e9ecef;
    color: #222;
}

.boton:hover {
    opacity: 0.9;
}
.ancho {
    align-items: flex-start;
}

.grande {
    max-width: 1100px;
    text-align: left;
}

.grande .logo {
    display: block;
    margin: 0 auto 20px auto;
}

.grande h1,
.grande h2 {
    text-align: center;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.formulario label {
    font-weight: bold;
    margin-top: 10px;
}

.formulario input,
.formulario select,
.formulario textarea {
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 8px;
    font-size: 16px;
    text-transform: uppercase;
}

.formulario button {
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.error {
    background: #fdecea;
    color: #b00020;
    border: 1px solid #f5b5b5;
}

hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #ddd;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background: #1f3b2d;
    color: white;
}

.margen-arriba {
    margin-top: 25px;
}
.centrado {
    text-align: center;
}

.grid-dos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.checkbox-linea {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 20px;
    background: #f4f6f5;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.checkbox-linea input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.proteccion-datos {
    margin-top: 25px;
    padding: 20px;
    background: #f8faf9;
    border: 1px solid #d7ded9;
    border-radius: 10px;
}

.proteccion-datos h2 {
    margin-top: 0;
    color: #1f3b2d;
    font-size: 20px;
    text-align: left;
}

.proteccion-datos p {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-align: justify;
}

.checkbox-linea.obligatorio {
    background: #eef7f1;
    border: 1px solid #b7e2c2;
    font-weight: bold;
}

.checkbox-linea label {
    cursor: pointer;
}

@media (max-width: 750px) {
    .grid-dos {
        grid-template-columns: 1fr;
    }

    .tarjeta {
        padding: 25px;
    }
}
.resumen-alumno {
    background: #f4f6f5;
    border: 1px solid #d7ded9;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 16px;
}

.zona-camara {
    margin-top: 20px;
    text-align: center;
}

.camara-wrapper {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
}

.camara-wrapper video {
    width: 100%;
    display: block;
}

.marco-dni {
    position: absolute;
    width: 75%;
    aspect-ratio: 85.60 / 53.98;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #ffb000;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 1px 3px #000;
    letter-spacing: 1px;
}

.marco-verde {
    border-color: #18a94f;
}

.preview-box {
    margin-top: 25px;
    text-align: center;
}

.preview-box img {
    max-width: 420px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 10px;
}
.estado {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.estado-pendiente {
    background: #fff4d6;
    color: #8a5a00;
    border: 1px solid #f0c36d;
}

.estado-correcto {
    background: #e7f7ec;
    color: #1b7f3a;
    border: 1px solid #b7e2c2;
}

.estado-rechazado {
    background: #fdecea;
    color: #b00020;
    border: 1px solid #f5b5b5;
}

.form-estado {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mini-boton {
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

.mini-boton.pendiente {
    background: #fff4d6;
    color: #8a5a00;
}

.mini-boton.correcto-btn {
    background: #e7f7ec;
    color: #1b7f3a;
}

.mini-boton.rechazado {
    background: #fdecea;
    color: #b00020;
}

.mini-boton:hover {
    opacity: 0.85;
}
.zona-subida-dni {
    margin-top: 30px;
    padding: 20px;
    background: #f8faf9;
    border: 1px solid #d7ded9;
    border-radius: 10px;
}

.zona-subida-dni h2 {
    text-align: center;
    color: #1f3b2d;
}

.zona-subida-dni input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 8px;
    background: #ffffff;
    margin-top: 8px;
}
/* CALENDARIO VISUAL DE PRÁCTICAS */

.calendario-practicas {
    margin-top: 15px !important;
    padding: 15px !important;
    border: 1px solid #d7ded9 !important;
    border-radius: 10px !important;
    background: #f8faf9 !important;
}

.calendario-cabecera {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
}

.calendario-cabecera strong {
    font-size: 18px !important;
    text-align: center !important;
    flex: 1 !important;
}

.calendario-dias-semana {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
}

.calendario-dias-semana div {
    text-align: center !important;
    font-weight: bold !important;
    padding: 8px !important;
    background: #e9efe8 !important;
    border-radius: 6px !important;
}

.calendario-dias {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 6px !important;
}

.dia-calendario {
    display: block !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 0 !important;
    border: 1px solid #cfd8d2 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    text-align: center !important;
}

.dia-calendario:hover {
    background: #e8f0eb !important;
}

.dia-calendario.seleccionado {
    background: #1f6f43 !important;
    color: #ffffff !important;
    border-color: #1f6f43 !important;
}

.dia-calendario.bloqueado {
    background: #eeeeee !important;
    color: #999999 !important;
    cursor: not-allowed !important;
}

.dia-calendario.vacio {
    border: none !important;
    background: transparent !important;
    cursor: default !important;
}