/* Reset inicial */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos globales del cuerpo y contenedor principal */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: calc(100% - 64px);
    max-width: 980px;
    margin: 20px auto;
    padding: 48px 32px 36px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    flex-grow: 1;
}

/* Estilos para la barra de progreso */
.progress-container {
    width: 300px;
    height: 25px;
    background-color: #f0f0f0;
    margin: 15px auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ccc;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 10px;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 25px;
}

/* Estilos del Footer */
.footer {
    text-align: center;
    padding: 0.5rem;
    background-color: #f0f0f0;
    margin-top: 0.5rem;
    font-size: clamp(0.8rem, 1.5vw, 0.85rem);
}

/* Sticky Footer con Flexbox */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* AsegÃƒÂºrate que no haya otros estilos que interfieran con min-height en body o html */ 

/* Estilos Responsivos para mÃƒÂ³viles */
@media (max-width: 600px) {
    .container {
        padding: 10px; /* Reducir padding en mÃƒÂ³viles */
        margin: 10px auto; /* Reducir margen en mÃƒÂ³viles */
        width: 90%;
    }

    .footer {
        padding: 15px; /* Ligeramente menos padding en el footer */
        font-size: 0.8em; /* Fuente mÃƒÂ¡s pequeÃƒÂ±a en el footer */
    }

    h1 {
        font-size: 1.5em; /* Ajustar tamaÃƒÂ±o de H1 para mÃƒÂ³viles si es necesario */
    }
} 

/* Estilos para el formulario de login */
.login-container {
    max-width: 320px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background: transparent;
    box-shadow: none;
}

.login-container h2 {
    margin-bottom: 25px;
    color: #1a202c;
    font-size: 28px;
    font-weight: 700;
}

.login-form {
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.center-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 16px;
    text-align: center;
}

.form-group input {
    width: 100%;
    max-width: 280px;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
    margin: 0 auto;
}

.form-group input:focus {
    outline: none;
    border-color: #0069d9;
    box-shadow: 0 0 0 3px rgba(0, 105, 217, 0.2);
}

.form-error {
    color: #dc3545;
    margin-top: 5px;
    font-size: 14px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: left;
    border-left: 4px solid #dc3545;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: block;
    width: 100%;
    max-width: 280px;
    padding: 10px;
    background-color: #0069d9;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    margin: 10px auto 0;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.password-reset {
    margin-top: 20px;
    text-align: center;
}

.password-reset a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.password-reset a:hover {
    text-decoration: underline;
    color: #0069d9;
}

/* Banner de previsualización (solo staff, modo ?preview=1).
   Compartido por el detalle de clase y la página /contenido. */
.preview-banner {
    position: fixed;
    /* Arriba-derecha, justo debajo del header sticky, para no estorbar el contenido. */
    top: 4.5rem;
    right: 1rem;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: calc(100vw - 1.5rem);
    background: rgba(15, 23, 41, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(167, 139, 250, 0.5);
    border-radius: 999px;
    padding: 0.4rem 0.5rem;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.preview-banner-label {
    flex-shrink: 0;
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    /* Borde transparente para que la altura (border-box) coincida con la del
       enlace, que sí tiene borde: así ambas píldoras quedan del mismo tamaño. */
    border: 1px solid transparent;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
}

.preview-banner-text {
    /* El texto descriptivo se omite: el banner queda compacto (badge + enlace). */
    display: none;
}

.preview-banner-link {
    flex-shrink: 0;
    background: rgba(167, 139, 250, 0.2);
    border: 1px solid rgba(167, 139, 250, 0.5);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.72rem;
    line-height: 1;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.preview-banner-link:hover {
    background: rgba(167, 139, 250, 0.35);
    border-color: rgba(167, 139, 250, 0.7);
}

@media (max-width: 560px) {
    .preview-banner {
        right: 0.5rem;
        padding: 0.35rem 0.45rem;
    }

    .preview-banner-label,
    .preview-banner-link {
        font-size: 0.65rem;
        padding: 0.3rem 0.65rem;
    }
}

