
        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

        body {
            font-family: 'Arial', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #1f1f1f; /* Fondo principal (tonalidad naranja oscuro) */
            color: #fff; /* Color de texto general */
        }

        header {
            background-color: rgba(31, 31, 31, 0.8); /* Fondo del encabezado con opacidad (tonalidad naranja oscuro) */
            color: #ffa500; /* Color de texto en el encabezado (naranja) */
            text-align: center;
            padding: 1em;
            border-bottom: 1px solid #ffa500; /* Línea separadora (naranja) */
            position: relative;
        }

        header h1 {
            font-size: 1.5em; /* Tamaño del título del encabezado */
            margin: 0;
            letter-spacing: 3px; /* Espaciado entre letras */
            text-transform: uppercase; /* Convierte el texto a mayúsculas */
            font-family: 'Orbitron', sans-serif; /* Fuente Orbitron */
        }

        section {
            padding: 20px;
            text-align: justify;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        h2 {
            color: #ffa500; /* Color de título (naranja) */
            font-size: 2em; /* Tamaño del título */
            margin-bottom: 10px;
        }

        p {
            font-size: 1.2em; /* Tamaño del texto */
            line-height: 1.6em; /* Altura de línea */
            margin-bottom: 20px;
        }

        img {
            width: 50%; /* Ajusta el ancho de la imagen según tus preferencias */
            border-radius: 10px; /* Agrega esquinas redondeadas si lo deseas */
            margin-bottom: 20px;
        }

        .logo-container {
            position: absolute;
            top: 0px; /* Subí la posición vertical */
            left: 10px; /* Mover hacia la izquierda en el eje X */
            width: 100px; /* Achiqué el tamaño del logo */
        }

        .logo {
            width: 100%; /* Mantiene la imagen dentro del contenedor */
            transition: transform 0.3s ease;
        }

        .logo:hover {
            transform: scale(1.1); /* Efecto hover de agrandamiento */
            cursor: pointer;
        }

        footer {
            background-color: rgba(31, 31, 31, 0.8); /* Fondo del pie de página con opacidad (tonalidad naranja oscuro) */
            color: #ffa500; /* Color de texto en el pie de página (naranja) */
            text-align: center;
            padding: 1em;
            position: fixed;
            bottom: 0;
            width: 100%;
            font-family: 'Orbitron', sans-serif; /* Fuente Orbitron */
        }

        .enlace-casillero {
            display: inline-block;
            padding: 10px 20px;
            margin: 5px;
            text-decoration: none;
            color: #ffa500; /* Color de enlaces (naranja) */
            border: 2px solid #ffa500; /* Borde de enlaces (naranja) */
            border-radius: 20px; /* Ajusta el valor según tus preferencias */
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .enlace-casillero:hover {
            background-color: #ffa500; /* Cambio de color de fondo al pasar el ratón (naranja) */
            color: #000; /* Cambio de color de texto al pasar el ratón (negro) */
        }

        canvas {
            position: fixed;
            top: 0;
            left: 0;
            pointer-events: none; /* Evita que el canvas capture eventos del ratón */
            z-index: -1; /* Coloca el canvas detrás del contenido */
        }
    
/* Ensure no horizontal overflow */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Ensure box-sizing is applied */
*,
*:before,
*:after {
  box-sizing: border-box;
}

/* Responsive media queries */
@media screen and (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 10px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 5px;
  }
}

/* Ensure images and media do not cause overflow */
img, video {
  max-width: 100%;
  height: auto;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 1024px) {
  body {
    font-size: 90%;
  }
  
  header {
    padding: 10px;
  }
  
  .logo-container img {
    max-width: 150px;
  }
  
  h1 {
    font-size: 1.5em;
  }
}

@media screen and (max-width: 768px) {
  body {
    font-size: 85%;
  }
  
  .logo-container img {
    max-width: 120px;
  }
  
  h1 {
    font-size: 1.2em;
  }
  
  header {
    padding: 8px;
  }
}

    /* Ensure images do not cause horizontal scroll */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Normalize word spacing and line height to prevent excessive gaps */
    body, p, h1, h2, h3 {
        word-spacing: normal;
        line-height: 1.5;
        white-space: normal;
    }
    
/* Ensure consistent spacing for specific titles (1930, 1950, 1990, 2000) */
h2:contains('1930'), h2:contains('1950'), h2:contains('1990'), h2:contains('2000') {
    word-spacing: 0px; /* Eliminate extra spacing for these specific titles */
    letter-spacing: 0px; /* Normalize letter spacing */
    white-space: normal; /* Ensure proper word wrapping */
}

/* Maintain the rest of the styles for all titles */
h1, h2 {
    font-size: 2em; /* Ensure consistent font size across all titles */
    word-spacing: 0px; /* Force no extra spacing between words */
    letter-spacing: 0px; /* Force no extra spacing between letters */
    white-space: normal; /* Ensure proper word wrapping without adding extra spaces */
}

/* Adjust for smaller screens */
@media screen and (max-width: 1024px) {
    .logo-container {
        top: 50px;
        left: 10px;
        width: 60px;
    }

    h2 {
        font-size: 1.6em; /* Maintain consistent heading size */
        word-spacing: 0px; /* Strictly enforce no extra word spacing */
        letter-spacing: 0px; /* Strictly enforce no extra letter spacing */
        white-space: normal; /* Prevent any unintended breaks or extra spaces */
    }

    p {
        font-size: 1em; /* Ensure paragraph size consistency */
        line-height: 1.4em;
    }
}

@media screen and (max-width: 768px) {
    .logo-container {
        top: 70px;
        left: 10px;
        width: 60px;
    }

    h2 {
        font-size: 1.4em; /* Ensure consistent heading size for mobile */
        word-spacing: 0px; /* Enforce strict word spacing */
        letter-spacing: 0px; /* Ensure consistent letter-spacing */
        white-space: normal; /* Ensure proper word wrapping */
    }

    p {
        font-size: 0.9em; /* Adjust paragraph size for mobile */
        line-height: 1.3em;
    }
}

@media screen and (min-width: 848px) and (max-width: 1024px) {
    .logo-container {
        top: 0px; /* Mantenerlo en la posición exacta para evitar superposición con la línea naranja */
        left: 10px;
        width: 90px; /* Ajustar el tamaño para que no toque la línea */
    }
}

@media screen and (min-width: 300px) and (max-width: 482px) {
    footer {
        padding: 0.5em; /* Reduce padding to make the rectangle smaller */
        font-size: 0.75em; /* Reduce font size to match smaller screen sizes */
    }
}
