/* ============================================
   GO SMARTPHONE - Linktree Style
   Paleta: negro, rojo intenso, blanco
   ============================================ */

:root {
    --color-bg-dark: #0a0a0a;
    --color-bg-mid: #1a1a1a;
    --color-red: #e30613;
    --color-red-bright: #ff1f2e;
    --color-red-dark: #b8050f;
    --color-white: #ffffff;
    --color-text-soft: #d4d4d4;
    --color-border: rgba(255, 255, 255, 0.08);
    --shadow-red: 0 4px 20px rgba(227, 6, 19, 0.35);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg-dark);
    color: var(--color-white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Fondo con degradado y glow rojo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(227, 6, 19, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 80% 90%, rgba(227, 6, 19, 0.2) 0%, transparent 45%),
        linear-gradient(180deg, #0a0a0a 0%, #1a0303 50%, #0a0a0a 100%);
    z-index: -2;
}

.background-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Contenedor principal */
.container {
    max-width: 580px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Perfil */
.profile {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeDown 0.6s ease-out;
}

.logo-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    box-shadow: var(--shadow-red), 0 0 60px rgba(227, 6, 19, 0.4);
    position: relative;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-red-bright), transparent, var(--color-red));
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
}

.logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-bg-dark);
    border: 3px solid var(--color-bg-dark);
}

.brand-name {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #ffe6e8 50%, var(--color-red-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(227, 6, 19, 0.3);
}

.tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 6px;
}

.bio {
    font-size: 0.9rem;
    color: var(--color-text-soft);
    max-width: 380px;
    margin: 0 auto;
    font-weight: 400;
}

/* Lista de enlaces */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeUp 0.7s ease-out 0.15s both;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--color-bg-mid);
    border: 1.5px solid var(--color-border);
    border-radius: 14px;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227, 6, 19, 0.15), transparent);
    transition: left 0.5s ease;
}

.link-button:hover {
    transform: translateY(-3px);
    border-color: var(--color-red);
    background: #232323;
    box-shadow: var(--shadow-red), var(--shadow-card);
}

.link-button:hover::before {
    left: 100%;
}

.link-button:active {
    transform: translateY(-1px);
}

.link-button .icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    color: var(--color-white);
    transition: var(--transition);
}

.link-button .icon svg {
    width: 20px;
    height: 20px;
}

.link-button:hover .icon {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.5);
}

.link-button .label {
    flex: 1;
    text-align: center;
    margin-right: 36px;
    letter-spacing: 0.3px;
}

/* Botón destacado */
.link-button.featured {
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    border-color: var(--color-red-bright);
}

.link-button.featured .icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.link-button.featured:hover {
    background: linear-gradient(135deg, var(--color-red-bright) 0%, var(--color-red) 100%);
    box-shadow: 0 8px 30px rgba(255, 31, 46, 0.5);
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* Animaciones */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation para los botones */
.link-button {
    animation: fadeUp 0.5s ease-out backwards;
}

.link-button:nth-child(1) { animation-delay: 0.20s; }
.link-button:nth-child(2) { animation-delay: 0.28s; }
.link-button:nth-child(3) { animation-delay: 0.36s; }
.link-button:nth-child(4) { animation-delay: 0.44s; }
.link-button:nth-child(5) { animation-delay: 0.52s; }
.link-button:nth-child(6) { animation-delay: 0.60s; }
.link-button:nth-child(7) { animation-delay: 0.68s; }
.link-button:nth-child(8) { animation-delay: 0.76s; }

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 32px 18px 24px;
    }

    .logo-wrapper {
        width: 110px;
        height: 110px;
    }

    .brand-name {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
    }

    .tagline {
        font-size: 0.92rem;
    }

    .bio {
        font-size: 0.85rem;
    }

    .link-button {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .link-button .label {
        margin-right: 30px;
    }
}

/* Accesibilidad: foco visible */
.link-button:focus-visible {
    outline: 2px solid var(--color-red-bright);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
