/* ============================================
   VARIABLES
   ============================================ */
:root {
    --primary: #6c3ce0;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --secondary: #06b6d4;
    --bg-dark: #0a0a12;
    --bg-card: rgba(18, 18, 30, 0.85);
    --text-primary: #f0f0ff;
    --text-secondary: #94a3b8;
    --text-muted: #4a4a6a;
    --border: rgba(108, 60, 224, 0.15);
    --radius: 16px;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   PARTÍCULAS DE FONDO
   ============================================ */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 18, 0.9);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-dot {
    color: var(--primary-light);
    -webkit-text-fill-color: var(--primary-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 2rem 4rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(108, 60, 224, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-circle {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 60, 224, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.emoji-avatar {
    font-size: 8rem;
    animation: float 4s ease-in-out infinite;
}

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

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
    animation: spin-ring 20s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-color: rgba(108, 60, 224, 0.1);
}

.ring-2 {
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-color: rgba(6, 182, 212, 0.05);
    animation-duration: 25s;
    animation-direction: reverse;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-light);
    background: rgba(108, 60, 224, 0.1);
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.section-header h2 .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ============================================
   SOBRE MÍ
   ============================================ */
.about {
    background: rgba(108, 60, 224, 0.02);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.about-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-sub {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.about-bio {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.bio-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.bio-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.bio-text strong {
    color: var(--text-primary);
}

.bio-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border-left: 1px solid var(--border);
}

.bio-quote i {
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.bio-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* ============================================
   HABILIDADES
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.skill-card.highlight-card {
    background: linear-gradient(135deg, rgba(108, 60, 224, 0.1), rgba(6, 182, 212, 0.05));
    border-color: var(--primary-light);
}

.skill-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 0.8rem;
}

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.skill-card ul li:last-child {
    border-bottom: none;
}

.level {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.level.expert {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.level.advanced {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.level.intermediate {
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.1);
}

/* ============================================
   CONTACTO
   ============================================ */
.contact {
    background: rgba(108, 60, 224, 0.02);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}

.contact-icon.discord {
    background: rgba(88, 101, 242, 0.15);
    color: #5865F2;
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
}

.contact-icon.github {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.contact-icon.location {
    background: rgba(108, 60, 224, 0.1);
    color: var(--primary-light);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.contact-link:hover {
    gap: 1rem;
}

.location-flag {
    font-size: 2rem;
    display: block;
    margin-top: 0.5rem;
}

.contact-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgba(10, 10, 18, 0.9);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    text-align: center;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
    font-weight: 800;
}

.footer-brand .logo-dot {
    font-size: 1.8rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.footer-copy p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .profile-circle {
        width: 280px;
        height: 280px;
    }
    .emoji-avatar {
        font-size: 6rem;
    }
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .profile-circle {
        width: 220px;
        height: 220px;
    }
    .emoji-avatar {
        font-size: 4.5rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 18, 0.98);
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        gap: 1rem;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-bio {
        grid-template-columns: 1fr;
    }
    .bio-quote {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-top: 1.5rem;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    .stat-divider {
        display: none;
    }
    .profile-circle {
        width: 180px;
        height: 180px;
    }
    .emoji-avatar {
        font-size: 3.5rem;
    }
}
