/* ========= Animaciones ========= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ========= Encabezado con imagen ========= */
.header-image-container {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.header-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

#typewriter {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

#typewriter-subtext {
    font-size: 2.8rem;
    line-height: 1.2;
    color: #fff;
}

.header-overlay h1 {
    margin: 0 0 20px
}

.header-overlay p {
    margin: 0
}

.header-overlay h1,
.header-overlay p {
    animation: fadeInUp 1.2s ease-out
}

@media(max-width:992px) {
    #typewriter {
        font-size: 4.5rem
    }

    #typewriter-subtext {
        font-size: 2.2rem
    }
}

@media(max-width:600px) {
    #typewriter {
        font-size: 3.2rem
    }

    #typewriter-subtext {
        font-size: 1.6rem
    }
}

/* ========= Visión · Misión · Valores ========= */
.values-section {
    background: #fff;
    padding: 80px 20px;
}

.values-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.value-card {
    position: relative;
    width: 300px;
    background: #9EF0EF;
    border-radius: 18px;
    padding: 80px 26px 32px;
    text-align: center;
    animation: fadeInUp 1s both;
}

.value-card .icon-circle {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

.value-card .icon-circle i {
    font-size: 2.8rem;
    color: #348CAB
}

.value-card .title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #003249;
}

.value-card p {
    font-size: 1.4rem;
    line-height: 1.55;
    color: #013;
    text-align: justify;
    margin: 0;
}

/* ========= Botones & Grid del equipo ========= */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 42px;
}

#loaderTeams {
    display: none;
    margin: 20px auto;
}

.teams-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.team-card {
    flex: 0 0 320px;
}

.team-card .card {
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.team-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-img {
    width: 100%;
    height: auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-body {
    padding: 24px;
    background: #fafafa;
}

/* ——— Textos aún más grandes ——— */
.card-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.card-subtitle {
    font-size: 1.6rem !important;
    color: #555 !important;
    margin-bottom: 12px !important;
}

.career-text,
.area-text {
    display: flex;
    align-items: center;
    font-size: 1.3rem !important;
    color: #333 !important;
    margin-bottom: 8px !important;
}

.career-text i,
.area-text i {
    margin-right: 6px;
    color: #348CAB !important;
}

.card-text {
    font-size: 1.2rem !important;
    color: #444 !important;
    line-height: 1.7 !important;
    margin-top: 12px !important;
}

@media(max-width:768px) {
    .team-card {
        flex: 0 0 100%
    }
}