/* ========================================== */
/* ESTILOS GLOBALES                          */
/* ========================================== */

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

body {
    font-family: 'Orbitron', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* Fondo animado tecnológico */
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
}

.container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* ========================================== */
/* MÓDULO: HEADER                            */
/* ========================================== */

.tech-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.tech-header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #00ffff;
    font-size: 12px;
    letter-spacing: 2px;
}

.tech-header__glitch {
    animation: glitch 2s infinite;
    font-size: 20px;
}

.tech-header__text {
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.tech-header__status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ff88;
}

.tech-header__dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}

/* ========================================== */
/* MÓDULO: PROFILE                           */
/* ========================================== */

.profile {
    text-align: center;
    margin-bottom: 40px;
}

.profile__avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.profile__avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00ffff, #ff00ff, #00ffff);
    animation: spin-ring 3s linear infinite;
}

.profile__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0a0a0a;
    position: relative;
    z-index: 1;
}

.profile__badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #ff00ff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 2px solid #0a0a0a;
    z-index: 2;
    animation: float-badge 2s ease-in-out infinite;
}

.profile__name {
    font-size: 28px;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.profile__name--highlight {
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile__title {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.profile__typing {
    display: inline-block;
    border-right: 2px solid #00ffff;
    animation: typing-blink 1s step-end infinite;
    padding-right: 5px;
}

.profile__social-proof {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile__stat {
    color: #666;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========================================== */
/* MÓDULO: BUTTONS (¡Aquí está la magia!)   */
/* ========================================== */

.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-radius: 15px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    letter-spacing: 1px;
}

/* Efecto de brillo en hover */
.button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.button:hover::before {
    opacity: 1;
}

.button:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.button__icon {
    font-size: 20px;
    margin-right: 12px;
}

.button__text {
    flex: 1;
    text-align: left;
}

.button__arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
    color: inherit;
}

.button:hover .button__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================== */
/* COLORES DE CADA BOTÓN (¡Personaliza aquí!) */
/* ========================================== */

.button--github {
    color: #f0f6fc;
    background: #161b22;
    border-color: #30363d;
}
.button--github:hover {
    background: #1c2333;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.button--linkedin {
    color: white;
    background: #0a66c2;
}
.button--linkedin:hover {
    background: #0a5ca8;
    box-shadow: 0 0 30px rgba(10, 102, 194, 0.3);
}

.button--twitter {
    color: white;
    background: #000000;
    border-color: #333;
}
.button--twitter:hover {
    background: #1a1a1a;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.button--youtube {
    color: white;
    background: #ff0000;
}
.button--youtube:hover {
    background: #cc0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

.button--tiktok {
    color: white;
    background: #000000;
    border-color: #25f4ee;
}
.button--tiktok:hover {
    background: #1a1a1a;
    box-shadow: 0 0 30px rgba(37, 244, 238, 0.2);
}

.button--instagram {
    color: white;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.button--instagram:hover {
    transform: translateX(8px) scale(1.05);
    box-shadow: 0 0 40px rgba(225, 48, 108, 0.3);
}

.button--portfolio {
    color: white;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
}
.button--portfolio:hover {
    transform: translateX(8px) scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
}

/* ========================================== */
/* MÓDULO: FOOTER                            */
/* ========================================== */

.tech-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #444;
}

.tech-footer__copy {
    font-family: 'Courier New', monospace;
}

.tech-footer__social-mini {
    display: flex;
    gap: 15px;
}

.tech-footer__link {
    color: #444;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.tech-footer__link:hover {
    color: #00ffff;
}

.tech-footer__version {
    font-family: 'Courier New', monospace;
    color: #00ff88;
    font-weight: 700;
}

/* ========================================== */
/* ANIMACIONES (las que usamos)              */
/* ========================================== */

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes spin-ring {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes typing-blink {
    0%, 50% { border-color: #00ffff; }
    50.1%, 100% { border-color: transparent; }
}

@keyframes glitch {
    0%, 100% { opacity: 1; }
    10% { opacity: 0.3; transform: translateX(-2px); }
    20% { opacity: 1; transform: translateX(2px); }
    30% { opacity: 0.5; transform: translateX(-1px); }
    40% { opacity: 1; transform: translateX(1px); }
    50% { opacity: 0.8; transform: translateX(-2px); }
    60% { opacity: 1; transform: translateX(2px); }
    70% { opacity: 0.4; transform: translateX(-1px); }
    80% { opacity: 1; transform: translateX(1px); }
    90% { opacity: 0.6; transform: translateX(-2px); }
}