@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter.ttf') format('truetype');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Lora.ttf') format('truetype');
}

:root {
    --color-text: #f9f9f9;
    --color-text-destacado: #d32f40;
    --color-background-overlay: rgba(0, 0, 0, 0.6); /* Capa oscura sobre la imagen */
    --font-heading: 'Inter', serif;
    --font-body: 'Lora', sans-serif; /* Cambia la fuente del cuerpo a Inter */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern", "liga", "clig", "calt";
    color: var(--color-text);
    background-color: #1a1a1a; /* Fondo de fallback si la imagen no carga */
    background-image: url('https://www.rmcr.org/wp-content/uploads/2022/05/biblioteca-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Para que la imagen de fondo no se desplace con el scroll */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow: hidden; /* Evita barras de desplazamiento si el contenido es demasiado grande */
}

.overlay {
    background-color: var(--color-background-overlay);
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box; /* Incluye padding en el ancho/alto total */
}

.content-wrapper {
    max-width: 900px;
    padding: 40px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.2); /* Un fondo ligeramente más sólido para el contenido */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease-out; /* Animación de aparición suave */
    max-height: 90vh; /* Limita la altura máxima del contenido */
    overflow-y: auto; /* Habilita el scroll interno si el contenido excede la altura */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.logo img {
    width: 10rem; /* Ajusta el tamaño máximo del logo */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); /* Sombra suave para que destaque */
}

h1 {
    font-family: var(--font-heading);
    font-size: 3em;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

p {
    font-size: 1.2em;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--color-text);
}

p strong {
    font-weight: bolder;
    color: var(--color-text-destacado);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 30px;
    }
    h1 {
        font-size: 2.5em;
    }
    p {
        font-size: 1em;
    }
    .status-message {
        font-size: 1.8em;
    }
    .logo img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 20px;
    }
    h1 {
        font-size: 2em;
    }
    .status-message {
        font-size: 1.5em;
    }
    .logo img {
        max-width: 180px;
    }
}