@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: #111;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a73e8;
}
.logo span {
    color: #111;
}

.nav-links {
    display: flex;
    gap: 25px;
}
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links a:hover {
    color: #1a73e8;
}

/* HERO */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 150px 7% 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
}

.hero-content {
    max-width: 55%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
}

.blue {
    color: #1a73e8;
}

#typing {
    font-size: 1.4rem;
    color: #1a73e8;
    font-weight: 600;
    margin-top: 8px;
    display: inline-block;
}

.description {
    margin-top: 15px;
    max-width: 550px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

.btn-container {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

/* BUTTONS */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.primary {
    background: #1a73e8;
    color: white;
}
.primary:hover {
    background: #155ec0;
}

.secondary {
    border: 2px solid #1a73e8;
    color: #1a73e8;
}
.secondary:hover {
    background: #e8f0ff;
}

.small {
    padding: 10px 20px;
}

/* HERO IMAGE */
.hero-img img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 4px solid #1a73e8;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contact-info {
    margin-top: 20px;
    color: #444;
    font-size: 0.95rem;
}

/* SECTIONS GENERALES */
section {
    padding: 80px 7%;
}

h2 {
    font-size: 2.3rem;
    margin-bottom: 35px;
    text-align: center;
}

/* SKILLS */
.skills {
    background: #ffffff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.skill-category {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.05);
}

.skill-category h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    margin: 7px 0;
    font-size: 0.95rem;
}

/* CERTIFICATIONS */
.certifications {
    background: #fafafa;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.cert-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.cert-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.cert-card p {
    font-size: 0.93rem;
    opacity: 0.9;
    margin-bottom: 12px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: #1a73e8;
    color: white;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.projects {
    padding: 80px 0;
    text-align: center;
}

.projects h2 {
    font-size: 38px;
    margin-bottom: 50px;
    font-weight: 700;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 0 50px;
}

.project-card {
    background: #f5f9ff;
    padding: 25px;
    border-radius: 18px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.07);
}

.project-card h3 {
    color: #0066ff;
    margin-bottom: 15px;
    font-weight: 700;
}

.project-card p {
    color: #333;
    margin-bottom: 20px;
    font-size: 15px;
}

.project-card .btn {
    display: inline-block;
    background: #0066ff;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.project-card .btn:hover {
    background: #004ecc;
}


/* ABOUT */
.about {
    background: #ffffff;
    text-align: center;
}

.about p {
    max-width: 850px;
    margin: 0 auto 10px auto;
    line-height: 1.7;
    color: #444;
    font-size: 0.98rem;
}

/* CONTACT */
.contact {
    background: #f3f7ff;
    text-align: center;
}

.contact p {
    margin-bottom: 8px;
    font-size: 0.98rem;
}

.contact a {
    color: #1a73e8;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero-img img {
        width: 220px;
        height: 220px;
    }

    .btn-container {
        justify-content: center;
    }

    .nav-links {
        gap: 15px;
    }
}
