/* =========================
   RESET BÁSICO
========================= */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* =========================
   HEADER SUPERIOR
========================= */
header {
    background: #ffffff;
    padding: 16px 40px;
    border-bottom: 2px solid #ccc;
}

.config {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 40px;
}

/* =========================
   INPUTS HORA INICIO / FIN
========================= */
.hora-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hora-input label {
    font-size: 20px;
    font-weight: bold;
}

.hora-input input[type="time"] {
    font-size: 22px;
    padding: 10px 18px;
    width: 200px;
    letter-spacing: 1px;
    cursor: pointer;
}

.hora-input small {
    font-size: 12px;
    color: #666;
}

/* =========================
   TIEMPO RESTANTE
========================= */
.tiempo-restante {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 14px;
}

#contador {
    background: #000;
    color: #fff;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 34px;
    min-width: 180px;
    text-align: center;
    letter-spacing: 1px;
}

/* =========================
   CONTENIDO PRINCIPAL
========================= */
main {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

/* =========================
   HORA ACTUAL (CENTRAL)
========================= */
.hora-actual {
    text-align: center;
    font-size: clamp(120px, 16vw, 220px);
    font-weight: 800;
    margin: 40px 0 30px 0;
    line-height: 1;
}

/* =========================
   BARRA DE PROGRESO
========================= */
.barra-container {
    width: calc(100% - 80px);
    height: 30px;
    margin: 0 auto 60px auto;
    border: 1px solid #aaa;
    background: #eee;
}

.barra-progreso {
    height: 100%;
    width: 0%;
    background: #d32f2f;
}

/* =========================
   BLOQUE DE DATOS INFERIOR
========================= */
.info {
    padding: 0 40px 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 3;
}

/* ----- FILA 1: CURSO + EVALUACIÓN ----- */
.fila-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* ----- FILA 2: PROFESOR + HORARIO ----- */
.fila-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* ----- FILA 3: FECHA ----- */
.fila-3 {
    display: flex;
    justify-content: flex-start;
}

/* ----- FILA 4: BOTÓN FULLSCREEN ----- */
.fila-4 {
    display: flex;
    justify-content: flex-start;
}

/* =========================
   CAMPOS INDIVIDUALES
========================= */
.campo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.campo label {
    font-size: 32px;
    font-weight: bold;
    white-space: nowrap;
}

.campo input {
    flex: 1;
    padding: 12px 16px;
    font-size: 32px;
}

/* =========================
   FECHA
========================= */
.campo.fecha input {
    max-width: 280px;
    cursor: pointer;
    background-color: #fff;
}

/* =========================
   BOTÓN PANTALLA COMPLETA
========================= */
#btnFullscreen {
    font-size: 20px;
    padding: 14px 22px;
    border: none;
    border-radius: 8px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

#btnFullscreen:hover {
    background: #000;
}
