:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #334155;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--text);
    margin: 0;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Animación Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.flex-nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.logo span { color: var(--primary); }
.navbar ul { list-style: none; display: flex; gap: 20px; margin: 0; }
.navbar a { text-decoration: none; color: var(--text); font-weight: 500; transition: 0.3s; }
.navbar a:hover { color: var(--primary); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.profile-img {
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    margin-bottom: 20px;
    object-fit: cover;
}

/* Tarjetas y Grid */
.services-grid, .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card, .card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: 0.3s;
}

.card { padding: 0; overflow: hidden; }
.card-image { height: 200px; background-size: cover; background-position: center; background-color: #ddd; transition: 0.5s; }
.card:hover .card-image { transform: scale(1.1); }
.card-content { padding: 20px; }

/* Botones y Otros */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
}
.primary { background: var(--primary); color: white; }
.github { background: #333; color: white; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center; justify-content: center;
}
.lightbox img { max-width: 90%; max-height: 80%; border-radius: 10px; }

/* WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25d366; color: white;
    padding: 12px 25px; border-radius: 50px;
    text-decoration: none; display: flex; align-items: center; gap: 10px;
}
