:root {
    /* Colores */
    --color-primary: #6D28D9; /* Púrpura oscuro */
    --color-secondary: #B11FDD; /* Púrpura más claro */
    --color-background: #0D0C1D; /* Casi negro */
    --color-footer-bg: #1F0F3D; /* Púrpura muy oscuro para pie de página */
    --color-button: #FF52E5; /* Rosa neón */
    --color-text-light: #E0E0E0; /* Texto claro */
    --color-text-accent: #A855F7; /* Púrpura de acento para texto */
    --color-border-glass: rgba(255, 255, 255, 0.1); /* Borde para glasmorfismo */

    /* Colores de fondo de sección */
    --section-bg-1: #1E0A47;
    --section-bg-2: #2C125F;
    --section-bg-3: #3A1B77;
    --section-bg-4: #4C249C;
    --section-bg-5: #6D28D9;

    /* Tipografía */
    --font-family-primary: 'Montserrat', sans-serif;
    --font-family-secondary: 'Rajdhani', sans-serif; /* Para títulos o acentos */

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Bordes y sombras */
    --border-radius-sm: 8px;
    --border-radius-button: 8px 25px 8px 25px; /* Dinámico para botones */
    --shadow-button: 0 8px 15px rgba(255, 82, 229, 0.5); /* Sombra neón para botones */
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1); /* Sombra para glasmorfismo */
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.7; /* Mayor interlineado para mejor lectura */
    color: var(--color-text-light);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-secondary);
    color: var(--color-text-light);
    line-height: 1.2;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em; /* Espaciado sutil para títulos */
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px var(--color-primary); /* Sombra sutil de neón */
}

h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--color-secondary);
}

h3 {
    font-size: 2.2rem;
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

a {
    color: var(--color-button);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-text-light);
    text-shadow: 0 0 8px var(--color-button);
}

/* Contenedores y espaciado */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden; /* Para contener elementos con overflow */
}

/* Clases de fondo de sección */
.section-bg-1 {
    background-color: var(--section-bg-1);
}
.section-bg-2 {
    background-color: var(--section-bg-2);
}
.section-bg-3 {
    background-color: var(--section-bg-3);
}
.section-bg-4 {
    background-color: var(--section-bg-4);
}
.section-bg-5 {
    background-color: var(--section-bg-5);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius-button);
    background-color: var(--color-button);
    color: var(--color-background); /* Texto oscuro para contraste */
    font-family: var(--font-family-primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-button);
    transition: all 0.3s ease-in-out, transform 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 20px rgba(255, 82, 229, 0.7);
    color: var(--color-text-light); /* Texto más claro al pasar el ratón */
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-button);
}

/* Efecto glasmorfismo */
.glassmorphism {
    background: rgba(255, 255, 255, 0.08); /* Fondo ligeramente transparente */
    backdrop-filter: blur(10px); /* Desenfoque */
    -webkit-backdrop-filter: blur(10px); /* Compatibilidad Webkit */
    border: 1px solid var(--color-border-glass); /* Borde sutil */
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-glass);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(13, 12, 29, 0.7); /* Fondo más oscuro al hacer scroll */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border-glass);
}

.header-logo {
    height: 50px; /* Tamaño del logo abstracto */
    width: 50px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-button));
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    animation: pulseLogo 2s infinite ease-in-out;
}

.header-logo::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(5px);
}

@keyframes pulseLogo {
    0% { transform: scale(1); box-shadow: 0 0 5px var(--color-button); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px var(--color-button); }
    100% { transform: scale(1); box-shadow: 0 0 5px var(--color-button); }
}

.nav-links a {
    margin-left: var(--spacing-lg);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--color-button);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    gap: var(--spacing-md);
}

.header-icons .icon {
    color: var(--color-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.header-icons .icon:hover {
    color: var(--color-button);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(45deg, var(--hero-gradient-hex-start), var(--hero-gradient-hex-end));
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xxl) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: subtleZoom 30s infinite alternate ease-in-out;
}

@keyframes subtleZoom {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 20px var(--color-button), 0 0 30px var(--color-primary);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px var(--color-secondary);
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-button), transparent);
    animation: neonLine 5s infinite ease-in-out;
}

@keyframes neonLine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: var(--color-secondary);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-button);
    text-shadow: 0 0 5px var(--color-button);
}
.footer-links a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-icons .icon {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons .icon:hover {
    color: var(--color-button);
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 0 8px var(--color-button));
}

.footer-bottom {
    margin-top: var(--spacing-lg);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.8rem;
    }
    h2 {
        font-size: 2.4rem;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2rem;
    }
    p {
        font-size: 1rem;
    }
    .header {
        padding: var(--spacing-sm);
    }
    .nav-links {
        display: none; /* O implementar un menú hamburguesa */
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    section {
        padding: var(--spacing-lg) 0;
    }
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .container {
        padding: 0 var(--spacing-sm);
    }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}