#header {
    position: relative;
    width: 100%;
    height: 35vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
    margin-top: 78px;
    background-color: #454565;
    box-shadow: 0 0 10px 5px var(--font-color);
}

#header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

#header .info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    box-sizing: border-box;
    color: var(--header-font-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.team {
    justify-content: center;
}

.team .wrapper-item {
    max-width: 35%;
    min-width: 350px;
}
.team .wrapper-item:hover {
    transform: none;
}

/* Texto de las tarjetas:
   escritorio alineado a la izquierda; móvil centrado */
.team .wrapper-item {
    text-align: left;
    padding: 0 18px 24px;
    box-sizing: border-box;
}

.team .item-title {
    font-size: var(--title-size);
    font-weight: var(--title-weight);
    color: var(--title-color);
}

.team .role {
    font-size: var(--subtitle-size);
    font-weight: var(--subtitle-weight);
    color: var(--subtitle-color);
}

.section .contact {
    width: fit-content;
}

.section .contact .list {
    list-style: none;
    font-size: 18px;
    padding: 0;
}

.section .contact .list-item {
    --padding-item: 5px;
    padding: var(--padding-item) 0;
}

.section .contact .link {
    text-decoration: none;
    color: var(--footer-link-color) !important;
    transition: .2s ease-in-out color;
    padding: var(--padding-item) 0;
}
.section .contact .link:hover {
    color: var(--primary-color) !important;
}
.section .contact .link.instagram:hover {
    color: var(--color-instagram) !important;
}
.section .contact .link.facebook:hover {
    color: var(--color-facebook) !important;
}
.section .contact .link.phone:hover {
    color: var(--color-phone) !important;
}
.section .contact .link.whatsapp:hover {
    color: var(--color-whatsapp) !important;
}
.section .contact .link.email:hover {
    color: var(--color-email) !important;
}

/* Vías de contacto: bloque centrado, líneas alineadas */
.section .contact {
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
}

.section .contact .list {
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.section .contact .list-item {
    display: flex;
    justify-content: flex-start;
}

.section .contact .link {
    display: grid;
    grid-template-columns: 28px auto;
    align-items: center;
    column-gap: 8px;
    width: max-content;
}

.section .contact .link i {
    width: 28px;
    text-align: center;
}

.item.presentation {
    flex-direction: column;
}

.item.presentation .item-image {
    width: 80%;
    align-self: center;
    aspect-ratio: 16 / 9;
}

.item.presentation .item-content {
    width: 95%;
}

@media (max-width: 800px) {
    .container .item {
        flex-direction: column;
        justify-self: center;
    }

    .container .item .item-image, .container .item .item-content {
        width: 95%;
    }
}

.about-intro {
    margin-top: 0px;
    margin-bottom: 40px;
}

.section.section-background.section-cta {
    margin-bottom: -110px;
}

.section.section-background.about-background {
    margin-bottom: 0px;
}

#header + .section {
    padding-top: 60px;
}

@media (max-width: 800px) {

    .team .wrapper-item {
        text-align: center;
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 20px;
    }

    #header {
        height: 35vh;
    }

    #header .info {
        width: 90%;
        max-width: 520px;
        gap: 12px;
        padding: 0 10px;
        text-align: center;
    }

    #header .info h1 {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 4px;
    }

    #header .info p {
        font-size: 17px;
        line-height: 1.45;
    }

}

@media (max-width: 800px) {
    #header + .section {
        text-align: center;
    }

    #header + .section .section-title,
    #header + .section .about-intro {
        text-align: center;
    }
}

.team .wrapper-item p {
    margin-bottom: 18px;
}