:root {
    --bg-dark: #121212;
    --bg-card: rgba(30, 30, 30, 0.75);
    --primary: #00d4ff; /* Azul neón tech */
    --secondary: #7026ff; /* Morado tech */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at top center, #1a1a2e 0%, #000000 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Scrollbar personalizado */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f0f0f; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* --- Background Effects --- */
.particles {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
}
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    to { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

.glow {
    position: fixed;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(112, 38, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulseGlow 10s infinite alternate;
}
@keyframes pulseGlow {
    0% { transform: translate(-30%, -30%); }
    100% { transform: translate(30%, 30%); }
}

/* --- Container (Glassmorphism) --- */
.container {
    position: relative; z-index: 10;
    width: 100%; max-width: 850px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* --- Profile Header --- */
.profile { text-align: center; margin-bottom: 3.5rem; }

.profile-photo-container {
    position: relative; width: 160px; height: 160px; margin: 0 auto 1.5rem;
}

.profile-photo {
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    transition: transform 0.4s ease;
}

.profile-photo:hover { transform: scale(1.05); border-color: var(--primary); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Indicador de estado (bolita verde) */
.status-indicator {
    position: absolute; bottom: 10px; right: 10px;
    width: 20px; height: 20px;
    background: #2ecc71;
    border: 3px solid #1e1e1e;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
}

.name {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.2rem; color: var(--primary);
    font-family: monospace; font-weight: 500;
}

/* Efecto cursor parpadeante */
.cursor {
    display: inline-block; width: 2px; background-color: var(--primary);
    animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.divider {
    height: 1px; width: 100%; max-width: 200px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 2rem auto 0;
}

/* --- Sections --- */
.section { margin-bottom: 3rem; }
.section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem; color: var(--text-main);
    margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: 10px;
}
.section-title i { color: var(--primary); }
.section-content { color: var(--text-muted); line-height: 1.7; }
.section-content strong { color: #fff; font-weight: 600; }

/* --- Info Grid --- */
.info-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex; align-items: center; gap: 15px;
    transition: all 0.3s;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.icon-grid { font-size: 1.5rem; color: var(--secondary); }
.info-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #666; }
.info-value { font-weight: 600; font-size: 0.95rem; }

/* --- Skills Tags --- */
.skills { display: flex; flex-wrap: wrap; gap: 10px; }

.skill-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    display: flex; align-items: center; gap: 8px;
    cursor: default;
}

.skill-tag i { font-size: 1.1em; }

/* Colores sutiles al hover según tipo */
.skill-tag.backend:hover { border-color: #e74c3c; color: #fff; background: rgba(231, 76, 60, 0.1); }
.skill-tag.database:hover { border-color: #f1c40f; color: #fff; background: rgba(241, 196, 15, 0.1); }
.skill-tag.frontend:hover { border-color: #3498db; color: #fff; background: rgba(52, 152, 219, 0.1); }
.skill-tag.tools:hover { border-color: #2ecc71; color: #fff; background: rgba(46, 204, 113, 0.1); }

/* --- Social Links --- */
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.social-link {
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); text-decoration: none; font-size: 1.5rem;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-link:hover {
    background: var(--text-main); color: #000;
    transform: translateY(-5px) scale(1.1);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .container { padding: 2rem; }
    .name { font-size: 2.2rem; }
    .info-grid { grid-template-columns: 1fr; }
}