/* Style Settings - SEDITEC Linktree */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

:root {
    --bgColor: #0a0a0a;
    --cardBg: rgba(255, 255, 255, 0.03);
    --cardBorder: rgba(255, 255, 255, 0.1);
    --textPrimary: #ffffff;
    --textSecondary: #888888;
    --accentColor: #ffffff;
    --accentGlow: rgba(255, 255, 255, 0.2);
    --highlightColor: #ffffff;
    --highlightBg: rgba(255, 255, 255, 0.15);
    --font: 'Poppins', sans-serif;
}

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

body {
    background: var(--bgColor);
    min-height: 100vh;
    font-family: var(--font);
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Efecto de fondo con gradientes */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(200, 200, 200, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(180, 180, 180, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 30% 30%, rgba(220, 220, 220, 0.08) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
    animation: subtle-move 15s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

@keyframes subtle-move {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1) translate(-3%, 3%);
        opacity: 1;
    }
}

.container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Logo - sin deformar */
#userPhoto {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 30px auto 25px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

#userPhoto:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
}

/* Título principal */
h1 {
    text-align: center;
    color: var(--textPrimary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 3px;
}

/* Subtítulo */
#userName {
    color: var(--textSecondary);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

#userName:hover {
    color: var(--textPrimary);
}

/* Descripción */
.description {
    text-align: center;
    color: var(--textSecondary);
    font-size: 0.85rem;
    margin-bottom: 30px;
    padding: 0 20px;
    line-height: 1.6;
}

/* Contenedor de enlaces */
#links {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 25px auto;
    padding: 0 10px;
}

/* Enlaces normales */
.link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--cardBg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--textPrimary);
    text-align: center;
    padding: 16px 24px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid var(--cardBorder);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.link i {
    font-size: 1.2rem;
    min-width: 24px;
}

/* Enlace destacado (Autodiagnóstico) */
.link-highlight {
    background: var(--highlightBg);
    border: 2px solid var(--highlightColor);
    animation: pulse-glow 2s infinite;
    margin-top: 10px;
    overflow: visible;
}

.link-highlight::after {
    content: 'GRATIS';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--highlightColor);
    color: var(--bgColor);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 10;
}

.link-highlight:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--highlightColor);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--accentGlow);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    }
}

/* Sección separadora */
.section-title {
    color: var(--textSecondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin: 30px 0 15px;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cardBorder), transparent);
}

.section-title::before {
    left: 20%;
}

.section-title::after {
    right: 20%;
}

/* Enlace de contacto al final */
.contact-link {
    display: block;
    text-align: center;
    color: var(--textSecondary);
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 30px;
    padding: 15px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--textPrimary);
}

.contact-link i {
    margin-right: 8px;
}

/* Redes sociales en línea */
.social-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--cardBg);
    border: 1px solid var(--cardBorder);
    border-radius: 50%;
    color: var(--textPrimary);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Colores de marca para cada red social */
.social-icon.instagram:hover {
    background: linear-gradient(45deg, rgba(253, 29, 29, 0.2), rgba(131, 58, 180, 0.2));
    border-color: #e4405f;
    color: #e4405f;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(228, 64, 95, 0.3);
}

.social-icon.linkedin:hover {
    background: rgba(0, 119, 181, 0.15);
    border-color: #0077b5;
    color: #0077b5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 119, 181, 0.3);
}

.social-icon.facebook:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: #1877f2;
    color: #1877f2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(24, 119, 242, 0.3);
}

.social-icon.twitter:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
}

.social-icon.whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25d366;
    color: #25d366;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 211, 102, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.footer p {
    color: var(--textSecondary);
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Animaciones personalizadas */
.animate__animated {
    --animate-duration: 0.8s;
}

/* Animaciones */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }

/* Responsive - Tablets */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Responsive - Móviles */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    #userPhoto {
        max-width: 110px;
        margin: 20px auto 20px;
    }

    .description {
        font-size: 0.8rem;
        padding: 0 10px;
        margin-bottom: 20px;
    }

    #links {
        gap: 12px;
        padding: 0 5px;
        margin: 20px auto;
    }

    .link {
        padding: 14px 16px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .link i {
        font-size: 1rem;
    }

    .link-highlight {
        margin-top: 8px;
    }

    .link-highlight::after {
        font-size: 0.6rem;
        padding: 4px 8px;
        top: -10px;
        right: 12px;
    }

    .section-title {
        font-size: 0.7rem;
        margin: 25px 0 12px;
    }

    .section-title::before,
    .section-title::after {
        width: 40px;
    }

    .section-title::before {
        left: 15%;
    }

    .section-title::after {
        right: 15%;
    }

    .social-row {
        gap: 12px;
        margin: 15px 0;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .contact-link {
        font-size: 0.85rem;
        margin-top: 20px;
        padding: 12px;
    }

    .footer {
        margin-top: 25px;
    }

    .footer p {
        font-size: 0.7rem;
    }
}

/* Responsive - Móviles pequeños */
@media (max-width: 360px) {
    h1 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    #userPhoto {
        max-width: 100px;
    }

    .link {
        padding: 12px 14px;
        font-size: 0.8rem;
        gap: 8px;
    }

    .social-row {
        gap: 10px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
