:root {
    --primary-pink: #ff0055;
    --primary-cyan: #00e5ff;
    --primary-gold: #ffcc00;
    --primary-purple: #9d00ff;
    --bg-aura: linear-gradient(135deg, #ff8da1 0%, #80eeff 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 1);
    --text-dark: #321450; /* Púrpura profundo de alta vibración en lugar de negro */
    --text-muted: #664182; /* Púrpura más suave para textos secundarios */
    --text-light: #ffffff;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #ff99bb 0%, #80f0ff 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 2rem 1rem;
}

/* Fondo animado */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: move 20s infinite alternate;
}

.c1 { width: 800px; height: 800px; background: radial-gradient(circle, #ff0055 0%, transparent 70%); top: -200px; left: -200px; opacity: 0.6; }
.c2 { width: 900px; height: 900px; background: radial-gradient(circle, #00e5ff 0%, transparent 70%); bottom: -300px; right: -300px; animation-delay: -5s; opacity: 0.5; }
.c3 { width: 600px; height: 600px; background: radial-gradient(circle, #ffcc00 0%, transparent 70%); top: 20%; left: 40%; animation-delay: -10s; opacity: 0.6; }

/* Estrellas celestiales */
.background-animation::after {
    content: '✦';
    position: absolute;
    top: 20%; left: 10%;
    color: white;
    font-size: 20px;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    animation: sparkle 3s infinite;
}

.background-animation::before {
    content: '✦';
    position: absolute;
    bottom: 30%; right: 15%;
    color: white;
    font-size: 15px;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    animation: sparkle 4s infinite reverse;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 50px) scale(1.1); }
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 450px;
    text-align: center;
    z-index: 1;
}

/* Perfil */
.profile {
    margin-bottom: 2.5rem;
    animation: fadeInDown 1s ease-out;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(50, 20, 80, 0.1);
    position: relative;
    z-index: 2;
}

.halo {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-gold) 0%, var(--primary-pink) 50%, transparent 70%);
    animation: pulse 4s infinite ease-in-out;
    z-index: 1;
    opacity: 0.4;
}

.title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 0 1rem;
}

/* Enlaces */
.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.link-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid transparent;
    background-clip: padding-box;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out both;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(50, 20, 80, 0.05);
}

.link-group {
    width: 100%;
}

.has-submenu {
    width: 100%;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-align: left;
}

.has-submenu small {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.7;
    color: var(--primary-pink);
}

.chevron {
    margin-left: auto;
    transition: var(--transition);
}

.link-group.active .chevron {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.link-group.active .submenu {
    max-height: 500px;
    padding: 1rem;
}

.sub-link {
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.5);
}

.sub-link:hover {
    background: white;
    transform: translateX(5px);
    border-color: var(--primary-pink);
}

/* Borde de gradiente mágico */
.link-card::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary-pink), var(--primary-cyan), var(--primary-gold));
    border-radius: 32px;
    z-index: -1;
    opacity: 0.3;
    transition: var(--transition);
}


.link-card i {
    width: 32px;
    height: 32px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: var(--primary-pink);
    transition: var(--transition);
    flex-shrink: 0;
}

.link-card:nth-child(2n) i { color: var(--primary-cyan); }
.link-card:nth-child(3n) i { color: var(--primary-gold); }
.link-card:nth-child(4n) i { color: var(--primary-purple); }

.link-card span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    letter-spacing: -0.2px;
}

.link-card:hover {
    transform: translateY(-4px);
    background: white;
    box-shadow: 0 10px 25px rgba(50, 20, 80, 0.1);
}

.link-card:hover::after {
    opacity: 0.6;
}

.link-card:hover i {
    transform: scale(1.1);
}

/* Redes Sociales */
.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.socials a {
    color: var(--text-dark);
    opacity: 0.7;
    transition: var(--transition);
}

.socials a:hover {
    opacity: 1;
    transform: scale(1.2);
    color: var(--primary-gold);
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 1rem;
}

/* Animaciones */
@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 pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Settings & Modal */
.settings-trigger {
    background: none;
    border: none;
    color: var(--text-dark);
    opacity: 0.5;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.settings-trigger:hover {
    opacity: 1;
    transform: rotate(90deg);
    color: var(--primary-pink);
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 10, 50, 0.6);
    backdrop-filter: blur(5px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(50, 20, 80, 0.2);
    animation: fadeInUp 0.4s ease-out;
    margin: auto;
}

.file-input {
    margin: 1.5rem 0;
    padding: 0.8rem;
    border: 2px dashed rgba(102, 65, 130, 0.3);
    border-radius: 15px;
    width: 100%;
    cursor: pointer;
}

.close-btn {
    background: var(--primary-pink);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 0, 85, 0.3);
}

/* Staggered delay for links */
.links .link-card:nth-child(1) { animation-delay: 0.1s; }
.links .link-card:nth-child(2) { animation-delay: 0.2s; }
.links .link-card:nth-child(3) { animation-delay: 0.3s; }
.links .link-card:nth-child(4) { animation-delay: 0.4s; }
.links .link-card:nth-child(5) { animation-delay: 0.5s; }

/* Mobile Optimizations */
@media (max-width: 480px) {
    .title { font-size: 2rem; }
    .bio { font-size: 1rem; }
    .link-card { padding: 1rem; }
}
