@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #b388ff;
    --primary-dark: #7c4dff;
    --accent: #ff6b9d;
    --dark: #05000f;
    --darker: #020008;
    --text: #f0e0f0;
    --text-muted: rgba(200, 180, 255, 0.7);
    --border: rgba(179, 136, 255, 0.15);
    --glass: rgba(15, 0, 30, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--darker);
    overflow-x: hidden;
}

/* Partículas - SIEMPRE INTERACTIVAS */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto !important;
    background: var(--darker);
}

/* Todo el contenido por encima de las partículas pero sin bloquear interacción */
header, section, footer {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* Solo elementos interactivos capturan el mouse */
a, button, input, textarea, select, .nav-links, .menu-toggle {
    pointer-events: auto;
}

/* El texto y contenedores NO bloquean las partículas */
p, h1, h2, h3, h4, h5, h6, span, div, ul, li {
    pointer-events: none;
}

/* Excepto cuando tienen interacción específica */
.work-card, .info-card, .about-card, .social-links a, .btn-primary, .btn-secondary, .btn-submit {
    pointer-events: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(10, 1, 24, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    pointer-events: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    pointer-events: auto;
}

.nav-links li {
    pointer-events: auto;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
    pointer-events: auto;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text);
    pointer-events: auto;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(179, 136, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(179, 136, 255, 0.1);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
}

.about-main h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 600;
}

.about-main p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: rgba(179, 136, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.info-card:hover {
    background: rgba(179, 136, 255, 0.08);
    border-color: rgba(179, 136, 255, 0.3);
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 500;
}

.tools-list, .specialty-list {
    list-style: none;
}

.tools-list li {
    padding: 0.6rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.tools-list i {
    color: var(--primary);
    width: 20px;
}

.specialty-list li {
    padding: 0.6rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 1.2rem;
    position: relative;
}

.specialty-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Work */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.work-card {
    background: rgba(179, 136, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.work-card:hover {
    background: rgba(179, 136, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-8px);
}

.work-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.work-card.disabled:hover {
    transform: none;
    border-color: var(--border);
}

.work-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(179, 136, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.work-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.work-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.work-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.work-link {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.work-card:hover .work-link {
    gap: 0.8rem;
}

/* Contact */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-form {
    pointer-events: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(179, 136, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(179, 136, 255, 0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    pointer-events: auto;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(179, 136, 255, 0.4);
}

.social-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.social-footer p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    pointer-events: auto;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(179, 136, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    pointer-events: auto;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Footer */
footer {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}
