/* Color Variables */
:root {
    --primary-color: #272a4c;
    --secondary-color: #ec932d;
    --accent-color: #4c3fff;
    --highlight-color: #ffce23;
    --light-pink: #ff53e2;
    --light-blue: #76c2d9;
    --purple: #bf88ff;
}

/* Loading Overlay */
#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading-logo {
    display: flex;
    align-items: center;
}

#loading-logo svg {
    width: 80px;
    height: 80px;
    animation: pulse 1.5s infinite ease-in-out;
}

#loading-text {
    margin-left: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: textFadeIn 2s ease-in-out infinite;
}

/* Pulse animation for SVG logo */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Text fade-in animation */
@keyframes textFadeIn {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

body {
    font-family: 'Baloo Thambi 2', sans-serif;
    background-color: #f5f5f5;
    color: var(--primary-color);
    overflow-x: hidden;
}

/* Sidebar */
#sidebar {
    height: 100vh;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    background-color: var(--accent-color);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

#sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 25px;
    color: white;
    display: block;
    transition: 0.3s;
}

#sidebar a:hover {
    background-color: #5757ff;
}

#sidebar .close-btn {
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 36px;
}

/* Open button */
.open-btn {
    font-size: 30px;
    cursor: pointer;
    color: white;
    padding: 10px 15px;
    background-color: var(--light-pink);
    border: none;
    transition: 0.3s;
    position: absolute;
    top: 20px;
    right: 20px;
}

.open-btn:hover {
    background-color: #ec42d2;
}

.hero-section {
    height: 100vh;
    background: linear-gradient(to right, var(--accent-color), var(--light-pink)); /* El gradiente sigue intacto */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 20px;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('mapa.svg'); /* El SVG como fondo */
    background-size: contain; /* Contenemos el SVG para que no sea tan invasivo */
    background-position: center;
    background-repeat: no-repeat;
    mask-image: url('mapa.svg'); /* Usamos el SVG como máscara */
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    opacity: 0.1; /* Reducimos la opacidad del SVG para que no tape el contenido */
    z-index: 1; /* Aseguramos que el SVG esté detrás del contenido */
}

.hero-section h1, .hero-section p, .cta-btn {
    position: relative;
    z-index: 2; /* Aseguramos que el contenido esté por encima */
}

/* Botón ajustado */
.cta-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-btn:hover {
    background: linear-gradient(45deg, #FFA500, #FF4500);
}



.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.5s ease-out;
}

/* Call to Action Button */
.cta-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    background-color: var(--highlight-color);
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.5s ease-out forwards;
}

.cta-btn:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 200%;
    height: 300%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    transition: all 0.4s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0; /* Ensure this changes to 1 when visible */
    padding: 10px;
    text-align: center;
    animation: fadeInOut ease-in-out infinite;
}

.floating-elements img {
    width: 80px;
}

 

.notification {
    position: absolute;
    top: 6px;
    left: 80px;
    display: flex;
    align-items: center;
}

.notification img {
    margin-right: 10px;
}

.notification-text {
    font-size: 14px;
    color: #333;
}

.notification-text p {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    color: var(--primary-color);
}

.notification-text span {
    font-size: 0.8rem;
    color: gray;
}

/* Text Animations */
.hero-section h1, .hero-section p {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(4px);
    animation: textAppear 1.5s ease forwards;
}

.hero-section p {
    animation-delay: 1s;
}

@keyframes textAppear {
    0% {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Floating Elements Keyframes */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    60% {
        opacity: 1;
        transform: scale(1);
    }
    80% {
        opacity: 0;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Additional Floating Elements around the SVG */
.floating-around-logo {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 204, 0, 0.8);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: floatAroundLogo 4s ease-in-out infinite;
}

@keyframes floatAroundLogo {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
}

/* Positioning of additional floating elements */
#bubble1 {
    top: 50%;
    left: 45%;
    animation-delay: 0.5s;
    background-color: var(--purple);
}

#bubble2 {
    top: 40%;
    left: 60%;
    animation-delay: 1s;
    background-color: var(--light-blue);
}

#bubble3 {
    top: 60%;
    left: 50%;
    animation-delay: 1.5s;
    background-color: var(--light-pink);
}

#bubble4 {
    top: 50%;
    left: 30%;
    animation-delay: 2s;
}

/* Adjust animation delays for unique floating effects */
.element1 {
    animation-duration: 2s;
    animation-delay: 0s;
}

.element2 {
    animation-duration: 6s;
    animation-delay: 1s;
}

.element3 {
    animation-duration: 6s;
    animation-delay: 2s;
}

.element4 {
    animation-duration: 6s;
    animation-delay: 1.5s;
}

.element5 {
    animation-duration: 6s;
    animation-delay: 2.5s;
}

.element6 {
    animation-duration: 6s;
    animation-delay: 3s;
}

/* SVG Effects */
#Capa_1 {
    fill: var(--highlight-color);
    animation: pulse 15s infinite ease-in-out;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .cta-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    #sidebar a {
        font-size: 20px;
    }

    .floating-elements {
        width: 60px;
        height: 60px;
    }

    .floating-elements img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .cta-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    #sidebar a {
        font-size: 18px;
    }

    .floating-elements {
        width: 50px;
        height: 50px;
    }
}

/* Progress Bar */
#progress-container {
    position: fixed;
    width: 100%;
    height: 5px;
    top: 0;
    left: 0;
    background: #f0f0f0;
    z-index: 1000;
}

#progress-bar {
    height: 5px;
    background-color: var(--accent-color);
    width: 0;
}

 

 

/* Tambaleo del logo con colores cambiantes */
@keyframes wobble {
  0%, 100% { transform: rotate(0deg); fill: var(--primary-color); }
  25% { transform: rotate(-5deg); fill: var(--accent-color); }
  50% { transform: rotate(5deg); fill: var(--highlight-color); }
  75% { transform: rotate(-5deg); fill: var(--light-pink); }
}

/* Animación para que los regalos vuelen por toda la pantalla */
@keyframes flyGift {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(calc(100vw * (random() - 0.5)), calc(100vh * (random() - 0.5))) scale(1);
    opacity: 0;
  }
}

/* Configuración de los regalos */
.gift {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('gift_icon.svg'); /* Cambia al ícono de regalo */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.5s, opacity 0.5s;
}

.gift.fly {
    animation: flyFromLogo 3s ease-out forwards;
}

@keyframes flyFromLogo {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5); /* Inicia desde el logo */
    }
    100% {
        opacity: 0;
        transform: translate(calc(100vw * (random() - 0.5)), calc(100vh * (random() - 0.5))) scale(1.5); /* Se dispersan por la pantalla */
    }
}



 

/* Avatar Animation */
.avatar {
  display: none;
  opacity: 0;
  transform: scale(0);
  transition: opacity 1s, transform 1s;
}

.avatar.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* Sticky Menu */
.sticky-menu {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--light-pink));
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease-in-out;
    opacity: 0;
    transform: translateY(-100%);
}

.sticky-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.sticky-menu a {
    margin: 0 15px;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    padding: 10px 15px;
    text-decoration: none;
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.sticky-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
}

.sticky-menu a.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: 2px solid #fff;
}

/* Login y Registro en la derecha */
.menu-right {
    margin-right: 20px;
}

.btn-login, .btn-register {
    font-size: 16px;
    padding: 10px 20px;
    color: #fff;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: 15px;
}

.btn-login:hover, .btn-register:hover {
    background-color: #fff;
    color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-register {
    background-color: #fff;
    color: var(--accent-color);
}

.btn-register:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Flex para separar los menús */
.menu-left {
    display: flex;
    flex-grow: 1;
    justify-content: flex-start;
    padding-left: 20px;
}

.menu-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
}

/* Responsive para pantallas más pequeñas */
@media (max-width: 768px) {
    .sticky-menu {
        flex-direction: column;
        padding: 10px 0;
    }

    .menu-left, .menu-right {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .menu-left a, .menu-right a {
        margin: 10px 0;
    }

    .btn-login, .btn-register {
        width: 100%;
        margin: 5px 0;
    }
}

  

/* Progress Bar */
#progress-container {
  position: fixed;
  width: 100%;
  height: 5px;
  top: 0;
  left: 0;
  background: #f0f0f0;
}

#progress-bar {
  height: 5px;
  background-color: var(--accent-color);
  width: 0;
}

/* Sección de registro */
.registro-section {
    padding: 50px 0;
    background-color: #272a4c;
    position: relative; /* Para posicionar las formas SVG */
}

/* Texto con contorno */
.texto-con-contorno {
    font-size: 5.2rem;
    font-weight: 700;
    color: #1a00ff; /* Color principal (azul) */
    text-shadow: -3px -3px 0px #fff, 3px 3px 0px #fff, -3px 3px 0px #fff, 3px -3px 0px #fff; /* Contorno blanco más grueso */
    margin-bottom: 10px;
    text-align: left; /* Alinear a la izquierda */
}

.subtitulo-con-contorno {
    font-size: 5.2rem;
    font-weight: 700;
    color: #ff53e2; /* Color principal (rosado) */
    text-shadow: -3px -3px 0px #fff, 3px 3px 0px #fff, -3px 3px 0px #fff, 3px -3px 0px #fff; /* Contorno blanco más grueso */
    text-align: left; /* Alinear a la izquierda */
}

.subtitulo-sin-contorno {
    font-size: 2rem;
    font-weight: 400;
    color: #fff; /* Color del subtítulo sin contorno */
    text-align: left; /* Alinear a la izquierda */
}

/* Formulario de registro */
.form-modern {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 0 auto; /* Centrar el formulario en pantallas pequeñas */
}

.form-modern input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-modern button.cta-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-modern button.cta-btn:hover {
    background: linear-gradient(45deg, #FFA500, #FF4500);
}

/* Formas decorativas con SVG */
.formas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Debajo del contenido principal */
}

.formas svg {
    max-width: 100px; /* Tamaño ajustado */
    opacity: 0.6; /* Ligera transparencia */
}

/* Media queries */
@media (max-width: 768px) {
    .registro-section .row {
        flex-direction: column;
        text-align: center; /* Centrar el contenido en pantallas pequeñas */
    }

    .texto-con-contorno {
        font-size: 2.5rem;
        text-align: center; /* Centrar el texto en pantallas pequeñas */
    }

    .subtitulo-con-contorno {
        font-size: 1.2rem;
        text-align: center; /* Centrar el subtítulo en pantallas pequeñas */
    }

    .form-modern {
        width: 100%; /* Ocupa todo el ancho disponible */
    }
}



 
 /* Estilos para el modal */
.modal-content {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.modal-header {
    background-color: #272a4c;
    color: #fff;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 20px;
}

.modal-header .btn-close {
    background-color: #ff53e2;
    border: none;
    border-radius: 50%;
    padding: 5px;
    color: #fff;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: bold;
}

.modal-body {
    padding: 20px;
    background-color: #f8f9fa;
}

/* Estilos del formulario dentro del modal */
.modal-body form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-body form input,
.modal-body form select {
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.modal-body form input:focus,
.modal-body form select:focus {
    border-color: #ff53e2;
    outline: none;
}

.modal-body form label {
    font-size: 1rem;
    color: #272a4c;
}

.modal-body form button.cta-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #fff;
    font-size: 1.2rem;
    padding: 12px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-body form button.cta-btn:hover {
    background: linear-gradient(45deg, #FFA500, #FF4500);
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    .modal-dialog {
        width: 100%;
        max-width: 100%;
    }

    .modal-body form input,
    .modal-body form select {
        font-size: 0.9rem;
        padding: 10px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-body form button.cta-btn {
        font-size: 1rem;
        padding: 10px;
    }
}

 

/* Footer Styles */
.footer-section {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    font-family: 'Baloo Thambi 2', sans-serif;
}

.footer-section h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--highlight-color);
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
}

.social-links li {
    margin-right: 15px;
}

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--highlight-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.social-links a img {
    width: 20px;
    height: 20px;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid var(--secondary-color);
    padding-top: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .footer-section .col-md-4 {
        margin-bottom: 30px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        padding-top: 10px;
        font-size: 0.8rem;
    }
}


/* Sección de Cómo Participar */
.como-participar {
    background-color: #053871;
    padding: 50px 0;
    color: white;
}

.seccion-titulo {
    color: #ff53e2;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.icono-caja {
    margin-bottom: 20px;
}

.icono {
    width: 80px;
    height: auto;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

h3 {
    color: #1a00ff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: -1px -1px 0px #fff, 1px 1px 0px #fff;
}

.lista-bullets {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.lista-bullets li {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
}

.cta-btn {
    padding: 10px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.cta-btn:hover {
    background: linear-gradient(45deg, #FFA500, #FF4500);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .seccion-titulo {
        font-size: 1.5rem;
    }

    .lista-bullets li {
        font-size: 0.9rem;
    }
}


/* Sección de la Tienda de Regalos */
.tienda-regalos {
    background-color: #f0f0f0;
    padding: 50px 0;
    text-align: center;
}

.seccion-titulo {
    font-size: 2rem;
    font-weight: 700;
    color: #ff53e2;
    margin-bottom: 20px;
}

.subtitulo {
    font-size: 1rem;
    color: #333;
    margin-bottom: 40px;
}

.tarjeta-regalo {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.tarjeta-regalo:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.icono-regalo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

h3 {
    font-size: 1rem;
    color: #272a4c;
    font-weight: 700;
}

.cta-btn {
    padding: 10px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.cta-btn:hover {
    background: linear-gradient(45deg, #FFA500, #FF4500);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .icono-regalo {
        width: 80px;
    }

    h3 {
        font-size: 0.9rem;
    }

    .cta-btn {
        font-size: 1rem;
    }
}
