:root {
    /* Colors */
    --color-primary: #ec4899;
    --color-secondary: #8b5cf6;
    --color-accent: #fb7185;
    --color-bg-start: #fbcfe8;
    /* Richer, warmer pastel rose */
    --color-bg-mid: #d8b4fe;
    /* Deeper, magical lavender */
    --color-bg-end: #c7d2fe;
    /* Rich, elegant periwinkle */
    --color-text-main: #1f2937;
    --color-text-muted: #4b5563;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-bg-hover: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-border-hover: rgba(255, 255, 255, 0.95);

    /* Typography */
    --font-title: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Font Sizes */
    --font-size-title-h1: clamp(1.25rem, 5vw, 1.75rem);
    /* clamp-based responsive titles */
    --font-size-title-h2: clamp(1.2rem, 4vw, 1.6rem);
    --font-size-paragraph: 20px;
    /* 20px paragraph, as per user rule */
    --font-size-paragraph-mobile: clamp(1rem, 4.5vw, 1.25rem);
    /* clamp-based 20px dynamic paragraph */
    --font-size-small: 0.8rem;
    --font-size-tiny: 10px;

    /* Animations & Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Shadows */
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(139, 92, 246, 0.15);
    --shadow-accent-hover: 0 15px 30px rgba(251, 113, 133, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-mid) 50%, var(--color-bg-end) 100%);
    background-attachment: fixed;
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 450px;
    padding: 20px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    content-visibility: auto;
}

/* Perfil */
.profile {
    text-align: center;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    content-visibility: auto;
}

.profile__avatar-wrapper {
    position: relative;
    width: 150px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 16px;
    cursor: pointer;
}

.profile__image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    object-position: top;
    transition: var(--transition-spring);
}

/* Dynamic hover animation for avatar */
.profile__avatar-wrapper:hover .profile__image {
    transform: scale(1.06) rotate(4deg);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-bg-start);
}

.profile__badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-spring);
}

.profile__avatar-wrapper:hover .profile__badge {
    transform: scale(1.2) translate(4px, 4px) rotate(15deg);
}

.profile__name {
    font-family: var(--font-title);
    font-size: var(--font-size-title-h1);
    /* clamp title */
    font-weight: 700;
    margin-bottom: 8px;
    color: #374151 !important;
}

.profile__title {
    font-size: 16px;
    letter-spacing: 0.05em;
    color: #374151 !important;
    /* High-contrast dark charcoal */
    font-weight: 500;
    /* Medium weight for perfect readability */
    line-height: 1.4;
    margin-bottom: 20px;
}

.profile__socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: var(--transition-spring);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-spring);
}

/* Premium Social Buttons Hover */
.social-btn:hover {
    transform: translateY(-6px) scale(1.12);
    background: white;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-hover);
}

.social-btn:hover svg {
    transform: scale(1.15) rotate(10deg);
}

.social-btn:active {
    transform: translateY(-2px) scale(0.95);
}

/* Enlaces */
.link-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    content-visibility: auto;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-spring);
    opacity: 1;
    animation: fadeInUp 0.6s forwards;
}

.link-card__icon-container {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    transition: var(--transition-spring);
    overflow: hidden; /* Added so images don't overflow */
}

.link-card__icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.link-card__title {
    flex: 1;
    font-size: var(--font-size-small);
    font-weight: 600;
    color: #374151;
    transition: var(--transition-smooth);
}

.link-card__arrow {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: var(--transition-spring);
}

/* Dynamic hover effect for link cards */
.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--glass-bg-hover);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-hover);
}

.link-card:hover .link-card__icon-container {
    transform: scale(1.12) rotate(6deg);
}

.link-card:hover .link-card__title {
    color: var(--color-text-main);
    transform: translateX(2px);
}

.link-card:hover .link-card__arrow {
    color: var(--color-secondary);
    transform: translateX(4px) scale(1.2);
}

.link-card:active {
    transform: translateY(-1px) scale(0.98);
    background: rgba(255, 255, 255, 0.7);
}

/* Featured Link Card */
.link-card--featured {
    background: var(--color-accent);
    border: none;
    box-shadow: 0 10px 20px rgba(251, 113, 133, 0.3);
    animation: fadeInUp 0.6s forwards, pulse 2s infinite ease-in-out;
}

.link-card--featured .link-card__title {
    color: white;
    font-weight: 700;
}

.link-card--featured .link-card__arrow {
    color: white;
}

/* Premium Featured hover effects */
.link-card--featured:hover {
    opacity: 1;
    transform: translateY(-7px) scale(1.03);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    box-shadow: var(--shadow-accent-hover);
    animation: none !important;
    /* Disable animation on hover to avoid WebKit rendering conflicts */
}

.link-card--featured:hover .link-card__icon-container {
    transform: scale(1.15) rotate(-8deg);
    background: white;
    color: var(--color-accent);
}

.link-card--featured:hover .link-card__arrow {
    transform: scale(1.3) rotate(15deg);
}

.link-card--featured:active {
    transform: translateY(-2px) scale(0.98);
}

/* Icon colors */
.link-card__icon-container--blue {
    background: #dbeafe;
    color: #3b82f6;
}

.link-card__icon-container--purple {
    background: #f3e8ff;
    color: #a855f7;
}

.link-card__icon-container--indigo {
    background: #e0e7ff;
    color: #6366f1;
}

.link-card__icon-container--amber {
    background: #fef3c7;
    color: #f59e0b;
}

.link-card__icon-container--teal {
    background: #ccfbf1;
    color: #14b8a6;
}

.link-card__icon-container--white {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* UI Components */



/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse-hover {
    0% {
        transform: translateY(-7px) scale(1.03);
    }

    50% {
        transform: translateY(-7px) scale(1.06);
    }

    100% {
        transform: translateY(-7px) scale(1.03);
    }
}

.delay-1 {
    animation-delay: 0.08s;
}

.delay-2 {
    animation-delay: 0.16s;
}

.delay-3 {
    animation-delay: 0.24s;
}

.delay-4 {
    animation-delay: 0.32s;
}

.delay-5 {
    animation-delay: 0.4s;
}

.delay-6 {
    animation-delay: 0.48s;
}

/* App Footer & Logo */
.app-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
    margin-top: auto;
    content-visibility: auto;
}

.app-logo {
    width: 220px;
    max-width: 60%;
    height: auto;
    aspect-ratio: auto;
    opacity: 0.75;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.04));
}

.app-logo:hover {
    opacity: 1;
    transform: scale(1.03);
    filter: drop-shadow(0 6px 12px rgba(139, 92, 246, 0.1));
}