:root {
    --bg: #050505;
    --card-bg: #0f0f12;
    --primary: #00f2ff;
    --primary-dim: rgba(0, 242, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

/* Fondo Gradiente Dinámico */
.glow-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, #1e293b, transparent 50%);
    z-index: -1;
}

/* Tipografía */
h1, h2, h3, .logo { font-family: var(--font-heading); letter-spacing: -0.02em; }
.text-reveal {
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }

.section { padding: 100px 0; }
.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
}
.section-title { font-size: 3rem; margin-bottom: 60px; }

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 700; text-decoration: none; color: #fff; }
.logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 40px; align-items: center; }
.nav-links a { color: var(--text-dim); text-decoration: none; transition: 0.3s; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 16px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    width: fit-content;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3); }
.btn-glass { border: 1px solid var(--primary); color: var(--primary); padding: 10px 20px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.btn-outline { border: 1px solid var(--border); color: #fff; padding: 14px 30px; border-radius: 4px; text-decoration: none; margin-left: 15px; transition: 0.3s; }
.btn-outline:hover { background: var(--border); }

/* Hero */
.hero { padding: 180px 0 100px; text-align: center; }
.badge {
    background: var(--primary-dim);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
    margin-bottom: 25px;
    display: inline-block;
}
.hero h1 { font-size: clamp(3rem, 10vw, 5rem); line-height: 1.1; margin-bottom: 25px; }
.hero p { color: var(--text-dim); font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px; }

/* Grid Proyectos (NUEVO) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.project-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: block;
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.project-info { transform: translateY(20px); transition: transform 0.4s ease; }
.project-info h3 { color: #fff; font-size: 1.5rem; margin-bottom: 5px; }
.project-info p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 15px; }
.project-link { color: var(--primary); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* Hover Proyectos */
.project-card:hover img { transform: scale(1.1); }
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-info { transform: translateY(0); }

/* Grid & Cards Servicios */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 50px;
    border-radius: 12px;
    transition: 0.4s;
}
.card:hover { border-color: var(--primary); transform: translateY(-10px); }
.card-icon { font-size: 2rem; color: var(--primary); margin-bottom: 25px; }
.card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* Benefits Strip */
.benefits-strip {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 80px 0;
    margin: 40px 0;
}
.benefits-grid { display: flex; justify-content: space-around; align-items: center; }
.benefit-card { text-align: center; }
.benefit-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}
.benefit-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-dim); font-weight: 600; }
.benefit-divider { width: 1px; height: 60px; background: var(--border); }

/* Formulario Corregido */
.contact-box {
    background: linear-gradient(145deg, #0f0f12, #050505);
    padding: 80px 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    align-items: center;
}
.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}
input, textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 18px;
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
    width: 100%;
}
textarea { resize: none; min-height: 120px; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); }

/* Footer */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.copyright { color: var(--text-dim); font-size: 0.9rem; }
.social a { color: var(--text-dim); margin-left: 20px; font-size: 1.2rem; transition: 0.3s; }
.social a:hover { color: var(--primary); }

/* Tech Stack Visual */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 15px; justify-content: flex-end; }
.tech-stack span {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 100;
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
    .benefits-grid { flex-direction: column; gap: 40px; }
    .benefit-divider { width: 50px; height: 1px; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .tech-stack { justify-content: center; }
    .input-group { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 30px; }
    .projects-grid { grid-template-columns: 1fr; }
}