* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --link-hover: #667eea;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Apply Typekit font to all text elements */
/* Typekit CSS will load the font automatically */
body {
    /* Typekit font will be applied automatically from the loaded kit */
    background-image: linear-gradient(to bottom, rgb(193 20 47 / 50%) 0%, rgb(22 3 6 / 80%) 100%), url(img/illustration-duotone-red.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    line-height: 1.6;
}

/* Asegurar que todos los elementos de texto hereden la fuente del body (que incluirá Typekit) */
*,
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select,
.link-title, .link-description, .link-arrow,
.name, .bio, .footer {
    font-family: inherit;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background-color: #FAF9F7;
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.profile {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease-out;
}

.avatar {
    margin-bottom: 0;
}

.avatar-logo {
    width: auto;
    height: 120px;
    max-width: 300px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.separator {
    width: 80%;
    max-width: 240px;
    height: 1px;
    background-color: #ffffff;
    margin: 0px auto 24px;
}

.name {
    font-family: "gotham-narrow", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    color: #000000;
    margin-bottom: 6px;
}

.bio {
    font-size: 12px;
    color: #000000;
    line-height: 1.4;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.link-card {
    background: #FAF9F7;
    border-radius: 8px;
    padding: 14px 20px;
    text-decoration: none;
    color: #3E5468;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    box-shadow: 8px 10px 3px rgb(0 0 0 / 10%);
    border: 3px solid #3E5468;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.link-card:hover {
    transform: translateY(-4px);
    background: #3E5468;
    color: #ffffff;
}

.link-card:active {
    transform: translateY(-2px);
}

.link-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon svg {
    width: 24px;
    height: 24px;
}

.link-icon svg path,
.link-icon svg circle,
.link-icon svg rect {
    stroke: #3E5468;
    fill: #FAF9F7;
    transition: stroke 0.3s ease, fill 0.3s ease;
}

.link-card:hover .link-icon svg path,
.link-card:hover .link-icon svg circle,
.link-card:hover .link-icon svg rect {
    stroke: #ffffff;
    fill: #3E5468;
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-family: "gotham-narrow", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    color: #3E5468;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.link-card:hover .link-title {
    color: #ffffff;
}

.link-description {
    font-size: 13px;
    color: #3E5468;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.link-card:hover .link-description {
    color: #ffffff;
}

.link-arrow {
    font-size: 20px;
    color: #3E5468;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
    color: #ffffff;
}

.footer {
    text-align: center;
    color: #000000;
    font-size: 14px;
    animation: fadeIn 0.8s ease-out;
}

.footer a {
    color: #000000;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: rgba(0, 0, 0, 0.7);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Staggered animation for links */
.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }
.link-card:nth-child(6) { animation-delay: 0.6s; }
.link-card:nth-child(7) { animation-delay: 0.7s; }
.link-card:nth-child(n+8) { animation-delay: 0.8s; }

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .container {
        padding: 16px;
    }
    
    .profile {
        margin-bottom: 14px;
    }
    
    .avatar-logo {
        height: 80px;
        max-width: 200px;
    }
    
    .separator {
        margin: 0 auto 16px;
    }
    
    .name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .bio {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .links {
        gap: 8px;
        margin-bottom: 14px;
    }
    
    .link-card {
        padding: 10px 14px;
        gap: 10px;
    }
    
    .link-icon {
        width: 32px;
        height: 32px;
    }
    
    .link-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .link-title {
        font-size: 14px;
        margin-bottom: 1px;
    }
    
    .link-description {
        font-size: 11px;
        line-height: 1.25;
    }
    
    .link-arrow {
        font-size: 16px;
    }
    
    .footer {
        font-size: 11px;
    }
}

