:root {
    --primary-color: #111111;
    --secondary-color: #666666;
    --bg-color: #ffffff;
    --bg-light: #f7f7f7;
    --accent-color: #2563eb;
    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--primary-color); background-color: var(--bg-color); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navegación */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; position: fixed; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px); z-index: 1000; border-bottom: 1px solid #eaeaea; }
.logo { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.5px; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--secondary-color); font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-color); }

/* Secciones Generales */
.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.section-title { font-size: 2rem; margin-bottom: 40px; font-weight: 600; letter-spacing: -1px; }

/* Hero Section - Estilo MinimalFolio */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; width: 100%; }
.hero-text { flex: 1; }
.hero-text .subtitle { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: var(--secondary-color); margin-bottom: 20px; font-weight: 600; }
.hero-text h1 { font-size: 4rem; font-weight: 600; letter-spacing: -2px; margin-bottom: 20px; line-height: 1.1; }
.hero-text .description { max-width: 500px; color: var(--secondary-color); margin-bottom: 40px; font-size: 1.1rem; line-height: 1.6; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.btn { display: inline-block; padding: 12px 30px; background-color: var(--primary-color); color: white; text-decoration: none; border-radius: 4px; font-weight: 400; transition: background-color 0.3s, transform 0.2s; }
.btn:hover { background-color: var(--accent-color); transform: translateY(-2px); }

/* Imagen grande tipo portafolio */
.profile-img-large {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Grids */
.skills-grid, .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.skill-card, .project-card { background: var(--bg-color); padding: 30px; border: 1px solid #eaeaea; border-radius: 8px; transition: transform 0.3s, box-shadow 0.3s; }
.skill-card:hover, .project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.skill-card h3, .project-card h3 { margin-bottom: 15px; font-size: 1.2rem; }
.skill-card p, .project-card p { color: var(--secondary-color); font-size: 0.95rem; }

/* Diseño de la Tarjeta de Certificación */
.cert-card {
    background: var(--bg-color);
    padding: 30px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.cert-badge {
    width: 150px;
    height: auto;
}
.cert-info h3 { margin-bottom: 10px; font-size: 1.3rem; }
.cert-info p { color: var(--secondary-color); margin-bottom: 5px; font-size: 0.95rem; }
.cert-date { font-size: 0.85rem !important; color: #999 !important; margin-bottom: 20px !important; }

.btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin-top: 10px;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Footer */
.footer { background-color: var(--primary-color); color: white; text-align: center; padding: 80px 0 40px; }
.footer h2 { margin-bottom: 10px; }
.footer p { color: #a0a0a0; margin-bottom: 30px; }
.social-links { margin-bottom: 40px; }
.social-links a { color: white; text-decoration: none; margin: 0 15px; font-size: 1rem; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.social-links a:hover { border-color: white; }
.copyright { font-size: 0.8rem; border-top: 1px solid #333; padding-top: 20px; margin-top: 40px; }

/* Solución anti pantalla en blanco */
.fade-in { opacity: 1; transform: translateY(0); }

/* Diseño responsivo para móviles */
@media (max-width: 900px) {
    .hero-container { flex-direction: column-reverse; text-align: center; margin-top: 80px; }
    .hero-image { justify-content: center; width: 100%; margin-bottom: 30px; }
    .hero-text h1 { font-size: 3rem; }
    .profile-img-large { max-width: 100%; aspect-ratio: auto; height: 450px; }
    .nav-links { display: none; }
    .hero { padding: 0 20px; }
}
@media (max-width: 600px) {
    .cert-card { flex-direction: column; text-align: center; }
}