/* Variables de Color */
:root {
    --dark-bg: #10052F;
    --secondary-bg: #14083E;
    --text-color: #f0f0f0;
    --neon-pink: #FF00FF;
    --neon-blue: #00FFFF;
    --purple-gradient: linear-gradient(135deg, #7B24FF, #D700D7);
    --blue-gradient: linear-gradient(135deg, #00FFFF, #00BFFF);
    --card-gradient: linear-gradient(135deg, #2A176D, #1E0E57);
    --header-height: 80px;
}

html {
            scroll-behavior: smooth;
        }

/* Estilos Generales y Reseteo */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--dark-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Solución para la alineación del logo y el texto */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
}

/* Estilo para el texto del logo, usando tu nuevo gradiente */
.logo-text {
    font-size: 1.5em;
    font-weight: 600; /* Semi-Bold para el nombre del logo */
    color: #fff;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600; /* Semi-Bold para los enlaces de navegación */
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--neon-blue);
}

.join-btn {
    padding: 10px 25px;
    background: var(--purple-gradient);
    border: none;
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 600; /* Semi-Bold para el botón */
    font-family: 'Poppins', sans-serif;
    font-size: small;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* La sombra inicial ahora está aquí para que la animación funcione */
    box-shadow: 0 0 5px rgba(215, 0, 215, 0.4);
    /* Aplicar la animación de forma permanente */
    animation: shadow-pulse 1.5s infinite ease-in-out;
    display: inline-block;
}

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(215, 0, 215, 0.8);
}

/* Sección Hero */
.hero {
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding-bottom: 50px;
    position: relative;
    background-image: url('https://firebasestorage.googleapis.com/v0/b/virtual-universe-web.firebasestorage.app/o/Imagenportada.png?alt=media&token=df45bfed-b130-42d4-bc1b-054abbc52ab0');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}


.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 3.5em;
    font-weight: 700; /* Bold para el título principal */
    line-height: 1.2;
    text-align: left;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 1.1em;
    color: #ccc;
    margin-top: -10px;
    font-weight: 400; /* Regular para el párrafo de introducción */
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.saber-mas-btn {
    background: none;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: small;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.open-app-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}

.buy-token-btn {
    background: var(--purple-gradient);
    color: var(--text-color);
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: small;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* La sombra inicial ahora está aquí para que la animación funcione */
    box-shadow: 0 0 5px rgba(215, 0, 215, 0.4);
    /* Aplicar la animación de forma permanente */
    animation: shadow-pulse 1.5s infinite ease-in-out;
    display: inline-block;
}

.buy-token-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(215, 0, 215, 0.8);
}

/* Animación de la sombra parpadeante */
@keyframes shadow-pulse {
    0% {
        box-shadow: 0 0 5px rgba(215, 0, 215, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(215, 0, 215, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(215, 0, 215, 0.4);
    }
}

/* Sección de Funcionalidades (Grid de tarjetas) */
.functionality {
    padding: 80px 0;
    text-align: center;
    position: relative; /* Necesario para que el video de fondo se posicione correctamente */
    overflow: hidden; /* Oculta cualquier parte del video que se desborde */
    z-index: 0;
}

.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Estilo para el video de fondo */
.video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}


/* Para garantizar que el contenido esté por encima del video */
.video-overlay  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(16, 5, 47, 0.1);
}

.functionality .container {
    position: relative;
    z-index: 1;
}

.functionality h2 {
    position: relative;
    font-size: 2.5em;
    margin-bottom: 50px;
    font-weight: 700;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    z-index: 1;
}

.functionality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.5);
}

.card:hover {
    background: rgba(16, 5, 47, 0.5);
}

.card h3 {
    text-align: center;
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-color);
}

.card p {
    color: #aaa;
    font-weight: 400;
    text-align: justify;
    hyphens: auto;
}


.intersection {
    padding: 80px 0;
    background-color: var(--dark-bg);
    text-align: center;
}

.intersection h2 {
    position: relative;
    font-size: 2.5em;
    margin-bottom: 50px;
    font-weight: 700;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    z-index: 1;
}

.buttons-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.buttons-group .btn {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.buttons-group .btn.active {
    background: var(--purple-gradient);
    border-color: var(--neon-pink);
}

.intersection-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    text-align: left;
}

.intersection-content-image {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    flex: 1;
}

.intersection-image {
    position: relative;
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.intersection-image:hover {
    transform: scale(1.2);
}

.intersection-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.intersection-image2 {
    position: relative;
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.intersection-image2:hover {
    transform: scale(1.2);
}

.intersection-image2 img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.intersection-text {
    flex: 1;
    min-width: 300px;
}

.intersection-text h3 {
    text-align: left;
    font-size: 2em;
    font-weight: 600; /* Semi-Bold para el subtítulo */
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.intersection-text ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.intersection-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #ccc;
    font-weight: 400; /* Regular para la lista */
}

.intersection-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--neon-blue);
    font-weight: bold;
}

.contact-section {
    padding: 80px 0;
    text-align: center;
    background-image: url('https://firebasestorage.googleapis.com/v0/b/virtual-universe-web.firebasestorage.app/o/contactImgea.png?alt=media&token=1f8f8df3-3322-496a-a650-3e6ead3b5cb2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-section h2 {
    position: relative;
    font-size: 2.5em;
    margin-bottom: 50px;
    font-weight: 700;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    z-index: 1;
}

.contact-form-container {
    background: rgba(16, 5, 47, 0.5);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--neon-blue);
    background-color: transparent !important;
    border-radius: 10px;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input,
.form-group textarea,
.form-group selected {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--neon-blue);
    background-color: transparent !important;
    border-radius: 10px;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

.form-group.phone-group {
    display: flex;
    flex-direction: column;
}

.phone-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #10052F;
}

.phone-input-container select {
    width: auto;
    max-width: 100px; /* Ajusta el ancho para el selector */
    flex-shrink: 0;
}

.phone-input-container input {
    flex-grow: 1;
}

#countryCode {
    color: var(--text-color); /* Aplica el color del texto del selector */
}

#countryCode option {
    background-color: #10052F; /* Color de fondo para el menú desplegable */
    color: var(--text-color); /* Color del texto de las opciones */
    border: none;
}

.invalid {
    border-color: #FF0000 !important;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5) !important;
}

.form-message {
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.error {
    background-color: #550000;
    color: #FF6666;
    opacity: 1;
}

.form-message.success {
    background-color: #005500;
    color: #66FF66;
    opacity: 1;
}

/* Footer */
footer {
padding: 50px 0;
box-shadow: 0px 0px 6px 4px rgba(0, 0, 0, 0.4);
}

.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 40px;
text-align: left;
margin-bottom: 20px;
}

.footer-col h4 {
font-size: 1.2em;
font-weight: 600;
margin-bottom: 20px;
position: relative;
background: var(--purple-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}

.footer-col ul {
list-style: none; /* Elimina las viñetas */
padding: 0;
margin: 0;
}

.footer-col ul li {
margin-bottom: 10px;
}

.footer-col ul a {
color: #ccc;
text-decoration: none;
transition: color 0.3s ease;
}

.footer-col ul a:hover {
color: var(--neon-blue);
}

.social-links {
display: flex;
justify-content: center;
background: none;
gap: 4px;
margin-top: 20px;
}

.social-links a {
display: inline-block;
margin: 0 4px;
width: 32px;
height: 32px;
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease, fill 0.3s ease;
}


.footer-bottom {
padding-top: 20px;
text-align: center;
}

.footer-bottom p {
font-size: 0.9em;
color: #aaa;
}

.footer-description {
text-align: left;
font-size: 0.9em;
color: #ccc;
margin-top: 10px;
}

.footer-content {
    text-align: center;
}

.footer-col h4 {
    margin-top: 30px;
    text-align: center;
}


/* Media Queries */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5em;
        text-align: center;
    }

    .hero-text p {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .intersection-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 15px;
    }

    .join-btn {
        padding: 8px 15px;
    }

    .hero-text h1 {
        font-size: 2em;
    }
}
