/* ========================================
   CSS Variables & Design System
   ======================================== */
:root {
    /* Colors - Vibrant Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #151520;
    --bg-card: rgba(30, 30, 45, 0.6);
    --bg-card-hover: rgba(40, 40, 60, 0.8);

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);

    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ========================================
   Typography
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
   
    

}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* ========================================
   Layout Components
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    

}

.header {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    
}

.header h1 {
    margin-bottom: var(--spacing-sm);
    animation: fadeInDown 0.8s ease;
    background: transparent;
    text-shadow: white 0 0 1px;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ========================================
   Hero Button (Large Central Button)
   ======================================== */
.hero-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--spacing-2xl) 0;
    animation: fadeInScale 0.8s ease 0.4s both;
    
}

.hero-button {
    position: relative;
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 180, 242, 0.664);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-button:hover::before {
    width: 300px;
    height: 300px;
}

.hero-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(99, 102, 241, 0.5);
}

.hero-button:active {
    transform: translateY(-4px) scale(1.02);
}

/* ========================================
   Links List
   ======================================== */
.links-list {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
    animation: fadeInUp 0.8s ease 0.6s both;
    max-height: 65vh; /* no deja que la lista llene toda la pantalla */
    overflow: auto;
    padding-right: 8px; /* espacio para el scrollbar */
}

.numbered-links {
    list-style: none;
    counter-reset: link-counter;
    padding: 0;
    /* Usamos grid para disponer enlaces en varias columnas y evitar llenar verticalmente */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-md);
}

.numbered-links li {
    counter-increment: link-counter;
    position: relative;
}

.numbered-links li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.numbered-links li a::before {
    content: counter(link-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    font-weight: 700;
    flex-shrink: 0;
}

.numbered-links li a::after {
    content: '→';
    margin-left: auto;
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
}

.numbered-links li a:hover {
    transform: translateX(8px);
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-md);
}

.numbered-links li a:hover::after {
    transform: translateX(5px);
}

/* ========================================
   Cards & Links Grid (Legacy - kept for compatibility)
   ======================================== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 0.1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.card-link {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.card-link:hover {
    color: var(--accent-secondary);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

.btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent-gradient);
    border-color: transparent;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.25rem;
}

/* ========================================
   Social Links
   ======================================== */
.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    font-weight: 600;
    font-size: 1.125rem;
}

.social-link:hover {
    transform: translateX(8px);
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Instagram specific */
.social-link.instagram:hover {
    border-color: #E4405F;
}

.social-link.instagram .social-icon {
    background: linear-gradient(135deg, #833AB4 0%, #E4405F 50%, #FCAF45 100%);
}

/* Telegram specific */
.social-link.telegram:hover {
    border-color: #0088cc;
}

.social-link.telegram .social-icon {
    background: linear-gradient(135deg, #0088cc 0%, #00aaff 100%);
}

/* ========================================
   Button Grid
   ======================================== */
.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }

    .header {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .hero-button {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1.25rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .button-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   Tema especial San Valentín
   - `theme-valentine`: colores rosados y rojos para el 14 de febrero
   Uso: <body class="theme-valentine">
   ======================================== */
body.theme-valentine {
    --bg-primary: #1a0508;
    --bg-secondary: #2d0a12;
    --bg-card: rgba(45, 10, 18, 0.7);

    --accent-primary: #ff1744;
    --accent-secondary: #ff6b9d;
    --accent-gradient: linear-gradient(135deg, #ff1744 0%, #ff6b9d 50%, #ffc0cb 100%);

    --text-primary: #fff0f3;
    --text-secondary: #ffb3c1;
    --text-muted: #ff8fab;

    --shadow-glow: 0 0 40px rgba(255, 23, 68, 0.2);
}

/* ========================================
   Temas alternativos (añade la clase al <body>)
   - `theme-neon`: estilo club nocturno, neones cian/magenta/púrpura
   - `theme-velvet`: estilo lounge/velvet, burdeos/dorado cálido
   Uso: <body class="theme-neon"> o desde JS: document.body.classList.add('theme-neon')
   ======================================== */

/* Opción 1 — Neon Club */
body.theme-neon {
    --bg-primary: #050308;
    --bg-secondary: #0b0b12;
    --bg-card: rgba(12, 12, 20, 0.6);

    --accent-primary: #00ffd5; /* cian neon */
    --accent-secondary: #ff00c8; /* magenta */
    --accent-gradient: linear-gradient(135deg, #00ffd5 0%, #8b5cf6 50%, #ff00c8 100%);

    --text-primary: #f7f7fb;
    --text-secondary: #c7f3ea;
    --text-muted: #97f0de;

    --shadow-glow: 0 0 40px rgba(0, 255, 213, 0.10);
}

/* Opción 2 — Velvet Lounge */
body.theme-velvet {
    --bg-primary: #0b0306;
    --bg-secondary: #1a0e12;
    --bg-card: rgba(30, 12, 16, 0.65);

    --accent-primary: #d4af37; /* dorado */
    --accent-secondary: #b76e79; /* rosa viejo / burdeos */
    --accent-gradient: linear-gradient(135deg, #b76e79 0%, #d4af37 50%, #8b0000 100%);

    --text-primary: #fff7f3;
    --text-secondary: #e7d6c2;
    --text-muted: #c4a78a;

    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.10);
}

/* ========================================
   Hearts effect (canvas) — efecto romántico para San Valentín
   - el canvas se posiciona encima de todo, sin capturar eventos.
   - colores rosados rojos para tema de amor
   ======================================== */
#hearts-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.7;
    mix-blend-mode: screen;
}

/* Accesibilidad - opción para reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    #hearts-canvas {
        display: none;
    }
}

.text-center-mb-lg {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    text-size-adjust: 20%;
}