/* Incluir las fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Rock+Salt&family=Cinzel&family=Uncial+Antiqua&family=Orbitron&display=swap');

body {
    font-family: 'Creepster', sans-serif; /* Fuente principal */
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #d4af37;
    overflow-x: hidden;
}

.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1002; /* Encima del resto del contenido */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro semi-transparente */
}

/* Estilo de la imagen en el modal */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border: 3px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Botón de cerrar */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ffcc00;
    text-decoration: none;
    cursor: pointer;
}

.carrusel-section {
    position: fixed; /* Fija el carrusel para que esté detrás del contenido */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; /* Envía el carrusel detrás de otros elementos */
    overflow: hidden;
}

.carrusel-container {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.carrusel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease; /* Transición suave de opacidad */
}

.carrusel-img.active {
    opacity: 1;
}

.carrusel-prev, .carrusel-next {
    display: none; /* Oculta las flechas para que no interfieran en el fondo */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #222;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-family: 'Cinzel', serif; /* Fuente gótica o clásica para títulos */
    font-size: 2em;
    margin: 0;
    color: #d4af37;
    text-shadow: 1px 1px 3px #000;
}

nav {
    margin: 15px 0;
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    font-family: 'Orbitron', sans-serif; /* Fuente moderna y futurista para los enlaces de navegación */
    display: inline-block;
    padding: 10px 20px;
    background-color: #222;
    color: #d4af37;
    text-decoration: none;
    font-size: 1.1em;
    border: 2px solid #d4af37;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: #d4af37;
    color: #222;
}

.back-button {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #d4af37;
    color: #222;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 1.5em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1001;
}

.back-button:hover {
    background-color: #b89a27;
    color: #fff;
}

.container {
    margin-top: 120px;
    padding: 20px;
}

.section {
    margin: 20px auto;
    padding: 20px;
    background: #333;
    border: 2px solid #d4af37;
    border-radius: 8px;
    max-width: 800px;
}

.circle-img {
    font-family: 'Uncial Antiqua', serif; /* Fuente medieval para las imágenes circulares */
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    border: 6px solid #d4af37;
}

.circle-img img {
    width: 100%;
    height: auto;
    display: block;
}

h1, h2 {
    font-family: 'Cinzel', serif; /* Fuente gótica o clásica para títulos */
    color: #d4af37;
    text-shadow: 1px 1px 3px #000;
}

p {
    font-family: 'Rock Salt', cursive; /* Fuente manuscrita y ligeramente caótica */
    line-height: 1.6;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border: 2px solid #d4af37;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    border-color: #ffcc00;
}

footer {
    background: #222;
    color: #d4af37;
    padding: 20px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.5);
}

footer h3 {
    margin: 0 0 10px 0;
}

footer .contact-info {
    margin-top: 10px;
    font-size: 1em;
}

footer .contact-info a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #222;
    color: #d4af37;
    text-decoration: none;
    font-size: 1.1em;
    border: 2px solid #d4af37;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 5px;
}

footer .contact-info a:hover {
    background-color: #d4af37;
    color: #222;
}

@media (max-width: 768px) {
    .container {
        margin-top: 60px;
        padding: 10px;
    }

    header {
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .back-button {
        top: 60px;
    }
}
