body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    height: 100%;
}
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000033, #000066);
    z-index: -1;
}
.stars {
    position: absolute;
    width: 100%;
    height: 65%;
}
nav, .history-section, .galleries-section, footer {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}
nav {
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.nav-content, .history-content, .galleries-content, .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
.logo span {
    font-size: 1.5em;
    color: white;
}
.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #FFA500;
}
.contact-btn, .join-btn {
    background-color: #FFA500;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.contact-btn:hover, .join-btn:hover {
    background-color: #FF8C00;
}
.content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150vh; 
    text-align: center;
    color: white;
    margin-top: 50px; /* Margen superior para separar de la barra de navegación */
}
.hero-image {
    width: 85%; /* Ocupar todo el ancho del contenedor */
    height: 85%; /* Ocupar todo el alto del contenedor */
    object-fit: cover; /* Asegura que la imagen se ajuste sin perder proporciones */
    margin-top: 20px; /* Este margen es adicional si quieres más espacio */
}
/* Ajustes para pantallas móviles */
@media (max-width: 768px) {
    .content {
        height: 100vh; /* Ajustar el contenedor a la altura de la pantalla móvil */
        margin-top: 20px; /* Reducir el margen superior */
    }

    .hero-image {
        width: 100%; /* Ocupar el 100% del ancho de la pantalla */
        height: auto; /* Ajustar la altura automáticamente para mantener las proporciones */
        margin-top: 10px; /* Reducir el margen superior */
    }
}

@media (max-width: 480px) {
    .content {
        height: 90vh; /* Reducir aún más el contenedor en pantallas pequeñas */
    }

    .hero-image {
        width: 100%;
        height: auto; 
        margin-top: 5px; /* Espacio mínimo en la parte superior */
    }
}
h1 {
    font-size: 3em;
    margin-bottom: 20px;
}
p {
    font-size: 1.2em;
    margin-bottom: 30px;
}
.join-btn {
    padding: 15px 30px;
    font-size: 1.2em;
}

.galleries-section {
    background-image: url('estudiantina-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
.galleries-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}
.galleries-content {
    position: relative;
    z-index: 1;
}
.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.gallery-link {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: transparent;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    justify-content: flex-end;
}

.gallery-text {
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semitransparente */
    color: white;
    padding: 10px;
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Sombra de texto */
}

.gallery-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

footer {
    padding: 50px 0;
    background-color: #000033;
    text-align: center;
}
.footer-info {
    margin-top: 30px;
}
@keyframes twinkle {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes moveAndScaleStar {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(10px, 25px) scale(1.5);
    }
}
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 1s linear infinite, moveAndScaleStar 5s linear infinite;
}
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFA500;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    opacity: 0;
    z-index: 1000;
}
.back-to-top:hover {
    background-color: #FF8C00;
}
.back-to-top.visible {
    opacity: 1;
}
.terminos {
    font-size: 0.5em; /* Puedes ajustar este valor según lo que necesites */
}
.terminos input[type="checkbox"] {
    width: 20px;
    height: 20px;
    transform: scale(1.5); /* Escala el tamaño del checkbox */
    margin-right: 10px; /* Espacio entre el checkbox y el texto */
}
@media (max-width: 768px) {
    .galleries-grid {
        grid-template-columns: repeat(2, 1fr); /* Organiza en 2 columnas */
        gap: 10px; /* Puedes ajustar el espacio entre los cuadritos */
    }

    .gallery-link {
        padding: 15px; /* Ajusta el padding para hacerlos más pequeños */
    }

    .gallery-text {
        font-size: 16px; /* Ajusta el tamaño del texto en móviles si lo prefieres */
    }
}
.featured-gallery {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.gallery-link.featured {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    margin: 0 auto;
}

.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-link {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: transparent;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    justify-content: flex-end;
}


@media (max-width: 768px) {
    .gallery-link.featured {
        width: 250px;
        height: 250px;
    }

    .galleries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-link {
        padding: 15px;
    }

    .gallery-text {
        font-size: 16px;
    }
}
.precompra-section {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #000033, #000066);
}

.precompra-text {
    color: #FFD700;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    animation: pulse 2s infinite;
}
.offer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.offer-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 20px;
    max-width: 300px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.offer-title {
    color: #FFD700;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.price {
    font-size: 28px;
    font-weight: bold;
}

.original-price {
    color: #FF6347;
    text-decoration: line-through;
}

.offer-price {
    color: #32CD32;
}

.savings {
    color: #FFD700;
    font-size: 18px;
    margin-top: 10px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.precompra-button {
    display: inline-block;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

.precompra-button::before {
    content: '★';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #FFD700;
}

.precompra-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
}

.precompra-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.precompra-button:hover::after {
    top: -100%;
    left: -100%;
}

@media (max-width: 768px) {
    .precompra-text {
        font-size: 24px;
    }
    .precompra-button {
        font-size: 20px;
        padding: 15px 30px;
    }
}