/* =========================================
   CSS variables and Base Setup
   ========================================= */
:root {
    --bg-dark: #050508;
    --bg-darker: #020205;
    --primary: #3b82f6; /* Blue */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #a855f7; /* Purple */
    --secondary-glow: rgba(168, 85, 247, 0.5);
    --accent: #00f0ff; /* Neon Cyan */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 15, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}
.center { text-align: center; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }
p { color: var(--text-muted); }

/* Background Globals */
.glow-bg {
    position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; pointer-events: none;
}
.glow-bg.top-left {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 60%);
}
.glow-bg.bottom-right {
    bottom: -10%; right: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.glow-text {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 40px rgba(59, 130, 246, 0.6);
}

/* Base Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 8px; font-weight: 600; text-decoration: none;
    transition: all 0.3s ease; cursor: pointer; font-size: 1rem;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border: none; }
.glow-btn:hover { box-shadow: 0 0 25px var(--primary-glow), 0 0 45px var(--secondary-glow); transform: translateY(-3px); }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--card-border); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); }

/* Navigation */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    backdrop-filter: blur(12px); background: var(--glass-bg); border-bottom: 1px solid var(--card-border);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 16px 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 800; color: var(--text-main); text-decoration: none; letter-spacing: 1px;}
.logo i { color: var(--accent); font-size: 1.8rem; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* 1. HERO */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    max-width: 1000px; margin: 0 auto; padding: 150px 24px 60px;
}
.hero-content {
    max-width: 800px; margin: 0 auto;
}
.hero-title { font-size: 5rem; margin-bottom: 24px; letter-spacing: 2px; }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 40px; color: var(--text-muted); }
.hero-actions.center-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }


/* 5. TECNOLOGÍAS */
.tech-section {
    border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
    background: rgba(0,0,0,0.4); padding: 30px 0;
}
.tech-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 30px;
}
.tech-item { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 600; opacity: 0.8; transition: 0.3s; }
.tech-item:hover { opacity: 1; transform: translateY(-2px); }
.tech-item i { font-size: 2rem; }

/* 6. SOBRE NOSOTROS */
.about-section { padding-bottom: 20px;}
.about-box {
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px;
    padding: 40px; text-align: center; backdrop-filter: blur(10px);
}
.about-box h2 { font-size: 2.2rem; margin-bottom: 16px; color: var(--text-main); }
.about-box p { font-size: 1.15rem; max-width: 800px; margin: 0 auto; }

/* 3. SERVICIOS GRID */
.section-header h2 { font-size: 3rem; margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; margin-bottom: 40px; }
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.service-card {
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px;
    padding: 32px; transition: transform 0.3s, box-shadow 0.3s; backdrop-filter: blur(10px);
}
.service-card:hover {
    transform: translateY(-8px); border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(59, 130, 246, 0.1);
}
.service-card .icon-wrapper {
    font-size: 2.5rem; color: var(--primary); margin-bottom: 20px;
    background: rgba(59, 130, 246, 0.1); width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.service-card h3 { font-size: 1.4rem; margin-bottom: 12px; }

/* 4. PROYECTOS GRID */
.grid-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.project-card {
    background: var(--bg-darker); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden;
    transition: all 0.4s ease; cursor: pointer; position: relative;
}
.project-card:hover { transform: translateY(-8px); border-color: var(--secondary); box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 20px rgba(168, 85, 247, 0.2); }
.img-wrapper { width: 100%; height: 200px; position: relative; overflow: hidden; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .img-wrapper img { transform: scale(1.05); }
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.overlay i { font-size: 2.5rem; color: white; }
.project-card:hover .overlay { opacity: 1; }
.project-info { padding: 24px; }
.project-info h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--text-main); }
.project-info p { font-size: 0.95rem; margin-bottom: 20px; min-height: 45px; }
.tech-badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600;
    color: var(--accent); background: rgba(0, 240, 255, 0.1); padding: 6px 12px; border-radius: 20px; width: 100%; justify-content: center;
}

/* 2. RESEÑAS CAROUSEL */
.carousel-container { position: relative; margin-top: 40px; display: flex; align-items: center; }
.carousel-btn {
    background: var(--glass-bg); border: 1px solid var(--card-border); color: white;
    width: 45px; height: 45px; border-radius: 50%; font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; transition: all 0.3s; position: absolute;
}
.carousel-btn:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
.carousel-btn.prev { left: -15px; }
.carousel-btn.next { right: -15px; }
.carousel-track {
    display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 20px 0; -ms-overflow-style: none; scrollbar-width: none; width: 100%;
}
.carousel-track::-webkit-scrollbar { display: none; }
.review-card {
    flex: 0 0 320px; scroll-snap-align: center; background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; padding: 32px; backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: space-between;
}
.review-card .stars { color: #F59E0B; font-size: 1.2rem; margin-bottom: 16px; }
.review-card .comment { font-style: italic; font-size: 1.05rem; margin-bottom: 24px; color: #cbd5e1; }
.client-info h4 { font-size: 1.1rem; color: var(--primary); }
.client-info span { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* 7. CONTACTO (DISCORD) */
.contact-section { margin-bottom: 80px; }
.contact-box {
    background: linear-gradient(180deg, rgba(20,20,30,0.8) 0%, rgba(10,10,15,0.8) 100%);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 60px 40px; text-align: center;
    position: relative; overflow: hidden;
}
.contact-box::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--secondary));
    animation: rotate 6s linear infinite; opacity: 0.15; z-index: 0;
}
.contact-box::after { content: ''; position: absolute; inset: 2px; background: var(--bg-darker); border-radius: 22px; z-index: 1; }
.contact-content { position: relative; z-index: 2; }
.contact-content h2 { font-size: 2.5rem; margin-bottom: 16px; }
.contact-content p { font-size: 1.2rem; margin-bottom: 40px; max-width: 500px; margin: 0 auto 40px; }

.discord-btn {
    display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #5865F2, #7B84F5);
    color: white; padding: 18px 48px; border-radius: 50px; font-weight: 800; font-size: 1.25rem;
    text-decoration: none; box-shadow: 0 0 25px rgba(88, 101, 242, 0.4); transition: all 0.3s;
}
.discord-btn:hover { transform: translateY(-5px); box-shadow: 0 0 40px rgba(88, 101, 242, 0.8); }

/* 8. FOOTER */
footer { border-top: 1px solid var(--card-border); background: var(--bg-darker); padding: 40px 24px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-left { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; }
.logo-icon { color: var(--accent); }
.footer-center p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.footer-right .highlight-brand {
    font-weight: 800; background: linear-gradient(90deg, var(--text-main), var(--text-muted)); -webkit-background-clip: text; color: transparent; letter-spacing: 1px;
}

/* Animations */
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.animate { opacity: 0; visibility: hidden; }
.animate.is-visible { opacity: 1; visibility: visible; }
.fade-up { transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.is-visible { transform: translateY(0); }
.scale-up { transform: scale(0.95); transition: opacity 0.8s ease, transform 0.8s ease; }
.scale-up.is-visible { transform: scale(1); }
.delay-1 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 900px) {
    .hero-title { font-size: 3.5rem; }
    .footer-container { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .carousel-btn { display: none; }
    .contact-box { padding: 40px 20px; }
    .discord-btn { padding: 14px 24px; font-size: 1.1rem; }
}
