@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&family=Parisienne&family=Allura&family=Great+Vibes&family=Tangerine:wght@700&family=Pinyon+Script&family=Rouge+Script&family=Mrs+Saint+Delafield&family=Italianno&family=Monsieur+La+Doulaise&family=Mr+Dafoe&family=Euphoria+Script&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #fcf4e6;
    --text-secondary: #a0a0a0;
    --accent: #E8DCC8;
    --accent-secondary: #d4c5ad;
    --border: rgba(232, 220, 200, 0.2);
    --card-bg: rgba(232, 220, 200, 0.05);
    --card-hover: rgba(232, 220, 200, 0.1);
    --shadow: rgba(0, 0, 0, 0.4);
    --glow: rgba(232, 220, 200, 0.1);
    --logo-text: #1a1a1a;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #ffe6c5;
    --text-primary: #12184f;
    --text-secondary: #39476f;
    --accent: #1a1a1a;
    --accent-secondary: #2d2d2d;
    --border: rgba(26, 26, 26, 0.15);
    --card-bg: #fcead2;
    --card-hover: #fff4e7;
    --shadow: rgba(0, 0, 0, 0.1);
    --glow: rgba(232, 220, 200, 0.3);
    --logo-text: #1a1a1a;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    transition: background 0.4s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, var(--glow) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, var(--glow) 0%, transparent 50%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    background: var(--card-hover);
    transform: scale(1.1);
    box-shadow: 0 8px 16px var(--shadow);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
    transition: all 0.3s ease;
}

/* Por defecto mostrar el sol */
.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

/* En modo claro mostrar la luna */
[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

.container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
}

.logo-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    transition: border-color 0.4s ease;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: background 0.4s ease;
}

.logo {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E8DCC8 0%, #d4c5ad 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--logo-text);
    box-shadow: 
        0 10px 40px var(--glow),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.4s ease;
}

.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 8px;
    text-shadow: 0 2px 10px var(--glow);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.header p {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: none;
    font-weight: 500;
    transition: color 0.4s ease;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: -25px;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--card-hover) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-icon:hover {
    background: var(--card-hover);
    border-color: var(--border);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 16px var(--shadow),
        0 0 20px var(--glow);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.social-icon:active {
    transform: translateY(-1px) scale(1.02);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-button {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 20px 32px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    border-radius: 12px;
    animation: fadeInUp 0.8s ease backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-button:nth-child(1) { animation-delay: 0.1s; }
.link-button:nth-child(2) { animation-delay: 0.2s; }
.link-button:nth-child(3) { animation-delay: 0.3s; }
.link-button:nth-child(4) { animation-delay: 0.4s; }
.link-button:nth-child(5) { animation-delay: 0.5s; }
.link-button:nth-child(6) { animation-delay: 0.6s; }

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--card-hover), transparent);
    transition: left 0.6s ease;
}

.link-button:hover::before {
    left: 100%;
}

.link-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--card-hover) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.link-button:hover {
    background: var(--card-hover);
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 24px var(--shadow),
        0 0 40px var(--glow);
}

.link-button:hover::after {
    opacity: 1;
}

.link-button span {
    position: relative;
    z-index: 1;
}

.link-button:active {
    transform: translateY(-2px);
}

.footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    animation: fadeIn 1s ease 0.8s backwards;
    transition: border-color 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.footer p {
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.social-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

.social-links a:hover::after {
    width: 100%;
}

@media (max-width: 480px) {
    .theme-toggle {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }

    .header h1 {
        font-size: 40px;
        letter-spacing: 6px;
    }

    .logo-container {
        width: 120px;
        height: 120px;
    }

    .logo {
        font-size: 56px;
    }

    .link-button {
        font-size: 14px;
        padding: 18px 24px;
    }

            .social-links {
                gap: 24px;
            }

            .social-icons {
                gap: 12px;
                margin-top: 20px;
            }

            .social-icon {
                width: 42px;
                height: 42px;
            }

            .social-icon svg {
                width: 18px;
                height: 18px;
            }
        }
