body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: rgb(33, 33, 33);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background-color: #DA9CFF;
    border-radius: 10px;
    border: 3px solid #333;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #b87cff;
}

/* -------- Header -------- */
header {
    background-color: #111;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    font-family: Helvetica;
}

.icono {
    margin-right: 20px;
}

.icono img {
    width: 110px;
    height: 100px;
}

.contenido {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contenido nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.contenido nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contenido ul li a:hover,
.contenido ul li a.active {
    color: #DA9CFF;
}

/* -------- Main -------- */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: rgba(42, 42, 42, 0.747);
    margin: 1% 2%;
    border-radius: 20px;
    padding: 20px;
}

main section {
    width: 80%;
    max-width: 1000px;
    margin-bottom: 40px;
    text-align: center;
}

main h2 {
    color: #DA9CFF;
    border-bottom: 2px solid #DA9CFF;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Galería de imágenes */
.galeria-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.galeria-track {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.galeria-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .galeria-page {
        grid-template-columns: 1fr;
    }
}

.galeria-card {
    background-color: rgba(60, 60, 60, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.galeria-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-info {
    padding: 15px;
    text-align: left;
}

.card-info h4 {
    color: #DA9CFF;
    margin: 0 0 5px;
}

.card-info p {
    margin: 0;
    font-size: 0.9em;
}

.galeria-controles {
    display: flex;
    align-items: center;
    gap: 20px;
}


.arrow-btn {
    background-color: #DA9CFF;
    color: #111;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.arrow-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.arrow-btn:not(:disabled):hover {
    background-color: #b87cff;
}

#page-info {
    font-size: 1.2em;
    font-weight: bold;
    color: #DA9CFF;
}

/* Modal de zoom */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3em;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #DA9CFF;
}

/* -------- Footer -------- */
footer {
    background-color: #111;
    padding: 15px 0;
    margin-top: auto;
}

footer p {
    color: white;
    font-size: 0.8em;
    margin: 0;
    text-align: center;
}

/* volver */
.back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    text-decoration: none;
}

.back-arrow:hover {
    color: #DA9CFF;
}

/* Opcional: Estilos para el SVG si lo usas */
.back-arrow svg {
    width: 30px;
    height: 30px;
}