/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif; /* Fuente Rubik */
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

/* Header con fondo degradado y hexágonos */
header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); /* Degradado de colores morado a azul */
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
    background-size: 400% 400%;
    animation: gradientAnimation 6s ease infinite; /* Animación de fondo en degradado */
    z-index: 1; /* Asegura que el contenido esté encima del fondo */
}

/* Efecto de animación para el fondo degradado */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fondo de hexágonos sutiles sobre el header */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Hexagonos.jpg') repeat; /* Usar el archivo local */
    opacity: 0.15; /* Baja opacidad para no sobrecargar el fondo */
    z-index: 0; /* Asegura que el patrón esté por debajo del contenido */
}

/* Estilo del texto del header */
header h1 {
    font-size: 3em;
}

header p {
    font-size: 1.2em;
}

/* Botones de cambio de idioma */
.language-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.language-buttons button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.language-buttons button:hover {
    background-color: #0056b3;
}

/* Fondo sutil de patrón de hexágonos para otras secciones */
section {
    margin: 20px 0;
    position: relative;
}

section::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    background: url('Hexagonos.jpg') repeat; /* Usar el archivo local */
    opacity: 0.1;
    z-index: -1; /* Asegura que el patrón esté por debajo del contenido */
}

/* Estilos del footer con hexágonos */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    margin-top: 40px;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Hexagonos.jpg') repeat; /* Usar el archivo local */
    opacity: 0.1; /* Baja opacidad para un efecto sutil */
    z-index: -1; /* Colocar el patrón detrás del contenido */
}

/* Justificación del texto en secciones */
section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify; /* Justificación del texto */
}

/* Ajustes de márgenes en el body */
body {
    margin: 0;
    padding: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 2.5em;
    }

    section h2 {
        font-size: 1.8em;
    }

    .language-buttons {
        top: 10px;
        right: 10px;
    }
}
