* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e2a3a, #2c3e50);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #ffffff;
    max-width: 800px;
    width: 100%;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: left;
}

/* ===== CABECERA CON FOTO A LA IZQUIERDA ===== */
.header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2c3e50;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
}

/* ===== TEXTO ===== */
h1 {
    font-size: 35px;      /* +1 (antes 34px) */
    color: #1e2a3a;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 17px;      /* +1 (antes 16px) */
    color: #555;
    line-height: 1.5;
}

hr {
    border: 1px solid #eee;
    margin: 20px 0;
}

h2 {
    font-size: 21px;      /* +1 (antes 20px) */
    color: #1e2a3a;
    margin-bottom: 10px;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 5px;
}

/* ===== LISTAS ===== */
.tech-list, .experience-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.tech-list li, .experience-list li {
    background: #f8f9fa;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 15px;      /* +1 (antes 14px) */
    color: #333;
}

.tech-list li strong {
    color: #1e2a3a;
}

.experience-list li {
    background: #f8f9fa;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 15px;      /* +1 (antes 14px) */
    color: #333;
}

/* ===== BOTONES ===== */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 25px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 25px;
    border-radius: 50px;
    font-size: 17px;      /* +1 (antes 16px) */
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-primary {
    background: #2c3e50;
    color: #fff;
}

.btn-primary:hover {
    background: #1e2a3a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #d5dbdb;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ===== CONTACTO ===== */
.contact {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contact a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;      /* +1 (antes 15px) */
    font-weight: 500;
    transition: 0.3s;
}

.contact a:hover {
    color: #1a252f;
    transform: scale(1.05);
}

.footer {
    font-size: 15px;      /* +1 (antes 14px) */
    color: #888;
    margin-top: 5px;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    .header-text {
        text-align: center;
    }
    .container {
        padding: 25px 18px;
    }
    h1 {
        font-size: 24px;
    }
    .btn {
        font-size: 14px;
        padding: 12px 18px;
    }
    .contact {
        gap: 15px;
    }
    .avatar {
        width: 100px;
        height: 100px;
    }
}

/* ===== SOBRE MÍ ===== */
.about {
    background: #f5f5f5;
    padding: 18px 22px;
    border-radius: 12px;
    border-left: 5px solid #1a1a1a;
    margin: 15px 0 20px 0;
}

.about h2 {
    font-size: 19px;
    color: #1a1a1a;
    margin-bottom: 8px;
    border-bottom: none;
    padding-bottom: 0;
}

.about p {
    font-size: 17px;
    color: #1a1a1a;
    line-height: 1.7;
    margin-bottom: 6px;
}

.about p:last-child {
    margin-bottom: 0;
}

/* Proyectos */
.project {
    background: #f8f9fa;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid #2c3e50;
}

.project h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.project p {
    margin: 0.4rem 0 0.8rem 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-small {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    background: #ecf0f1;
    color: #2c3e50;
    border: 1px solid #d5d8dc;
    /* Sin hover */
}

.btn-github {
    background: #24292e;
    color: white;
    border-color: #24292e;
}

.contact .location {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
}
