/* Profile */

.profile-info-container {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 60px;
    row-gap: 20px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.portfolio-image {
    max-width: 180px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-enlaces-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-info {
    color: var(--color-texto-blanco);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.profile-name {
    font-size: 2.5rem;
    margin: 0 0 5px 0;
    line-height: 1.1;
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-texto-blanco);
    margin: 10px 0 2px 0;
    opacity: 0.6;
}

.profile-email {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-enlaces-base);
    margin: 0 0 10px 0;
    transition: opacity 0.2s ease;
}

.profile-email:hover {
    opacity: 0.8;
}

.profile-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-texto-blanco);
    margin: 0 0 15px 0;
}

.profile-description {
    grid-column: 1 / -1;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-texto-blanco);
    margin: 0;
    text-align: justify;
}

/* Projects section */

.projects-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.section-title {
    color: var(--color-texto-blanco);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.projects-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Card */

.project-card {
    background-color: var(--color-fondo-oscuro);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card-content {
    display: flex;
    flex-direction: column;
    padding: 25px;
    height: 100%;
    box-sizing: border-box;
}

.project-name {
    color: var(--color-texto-blanco);
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.card-content img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.project-description {
    color: var(--color-texto-blanco);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 25px 0;
    text-align: justify;
}

.project-link {
    display: inline-block;
    text-align: center;
    background-color: transparent;
    color: var(--color-enlaces-base);
    border: 1px solid var(--color-enlaces-base);
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.project-link:hover {
    background-color: var(--color-enlaces-base);
    color: var(--color-fondo-oscuro);
}

/* Responsive */

@media (min-width: 769px) and (max-width: 1024px) {
    .profile-info-container {
        column-gap: 40px;
        padding: 0 30px;
    }

    .projects-section {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .profile-info-container {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        row-gap: 20px;
        padding: 0 20px;
    }

    .profile-description {
        text-align: center;
    }

    .projects-section {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .profile-info-container {
        margin: 40px auto;
        row-gap: 15px;
    }

    .portfolio-image {
        max-width: 140px;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .projects-section {
        margin: 60px auto;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
