* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Bai Jamjuree", sans-serif;
    color: #333;
    line-height: 1.6;
}

.parallax-section {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.container-center-parallax {
    position: relative;
    margin-top: var(--header-height);
    width: 1280px;
    max-width: 100%;
    height: 35vh;
    min-height: 225px;
    background-image: url('../img/Careers.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.parallax-content {
    position: relative;
    z-index: 2;
    padding: 28px 45px;
    width: auto;
    max-width: 900px;
    background: rgba(24, 50, 84, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
    animation: heroFadeIn 0.8s ease-out;
    text-align: center;
}
.parallax-content h1 {
    margin: 0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.07em;
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.careers-story {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    z-index: 3;
}
.center-container {
    width: 1280px;
    background: #ffffff;
    padding: 50px 0;
}
.careers-story::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgba(41, 82, 186, 0.045);
    border-radius: 50%;
    right: -220px;
    top: 50%;
    transform: translateY(-50%);
}
.careers-story-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 90px;
    position: relative;
    z-index: 2;
}
.careers-content {
    max-width: 570px;
}
.careers-label {
    display: block;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #005da4;
    margin-bottom: 12px;
}
.careers-content h2 {
    margin: 0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    font-weight: 600;
    color: #183254;
    letter-spacing: 0.03em;
}
.careers-content h2 span {
    display: block;
    color: #005da4;
    font-weight: 300;
}
.careers-intro {
    margin: 0 0 15px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #374151;
    font-weight: 500;
}
.careers-description {
    margin: 0 0 30px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6b7280;
}
.careers-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 32px;
}
.careers-highlight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 14px;
    background: #f8f9fb;
    border: 1px solid rgba(23, 48, 96, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.careers-highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(23, 48, 96, 0.08);
}
.careers-highlight .highlight-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #183254, #005da4);
    color: #ffffff;
}
.careers-highlight .highlight-icon i {
    font-size: 0.9rem;
    color: #ffffff;
}
.careers-highlight strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #183254;
}
.careers-highlight span {
    display: block;
    margin-top: 3px;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #6b7280;
}
.careers-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #005da4;
    color: #005da4;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.careers-button i {
    color: #005da4;
    transition: transform 0.3s ease, color 0.3s ease;
}
.careers-button:hover {
    background: #005da4;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(41, 82, 186, 0.22);
}
.careers-button:hover i {
    color: #ffffff;
    transform: translateX(4px);
}
.careers-image-wrapper {
    position: relative;
    padding: 0 0 35px 25px;
}
.careers-image {
    position: relative;
    height: 500px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(23, 48, 96, 0.16);
}
.careers-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(23, 48, 96, 0.15), transparent 60%);
    pointer-events: none;
}
.careers-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}
.careers-image:hover img {
    transform: scale(1.04);
}
.careers-image-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25px;
    width: 100%;
    height: 100%;
    border: 2px solid #005da4;
    z-index: -1;
}
.careers-badge {
    position: absolute;
    left: -25px;
    bottom: 0;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, #183254, #005da4);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(23, 48, 96, 0.25);
    border: 6px solid #ffffff;
    text-align: center;
}
.careers-badge span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    opacity: 0.8;
    color: #ffffff;
}
.careers-badge strong {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #ffffff;
}

/* ============================================
   SECTION 2: CAREER OPPORTUNITIES
   ============================================ */
.opportunities-section {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 3;
}
.opportunities-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 0;
}
.opportunities-header {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.opportunities-title-wrapper {
    width: 100%;
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 24px;
    margin-bottom: 40px;
}
.opportunities-title-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.opportunities-subtitle {
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #005da4;
    opacity: 0.7;
}
.opportunities-title {
    font-family: "Bai Jamjuree", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #183254;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.2;
    position: relative;
}
.opportunities-title-text {
    position: relative;
    z-index: 1;
    color: #183254;
}
.opportunities-view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #005da4;
    text-decoration: none;
    padding: 10px 24px;
    border: 2px solid #005da4;
    transition: all 0.3s ease;
    background: transparent;
    white-space: nowrap;
}
.opportunities-view-more i {
    color: #005da4;
    transition: color 0.3s ease, transform 0.3s ease;
}
.opportunities-view-more:hover {
    background: #005da4;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(41, 82, 186, 0.25);
}
.opportunities-view-more:hover i {
    color: #ffffff;
    transform: translateX(4px);
}

/* ===== GRID DE CARDS ===== */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 10px;
}
.career-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(23, 48, 96, 0.05);
    text-align: center;
}
.career-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(23, 48, 96, 0.15);
    border-color: rgba(41, 82, 186, 0.15);
}

/* Icono circular */
.career-card-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #183254, #005da4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 18px;
    flex-shrink: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 30px rgba(23, 48, 96, 0.2);
    position: relative;
}
.career-card-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(41, 82, 186, 0.15);
    transition: all 0.4s ease;
}
.career-card:hover .career-card-icon {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(23, 48, 96, 0.3);
}
.career-card:hover .career-card-icon::after {
    border-color: #005da4;
    inset: -6px;
}
.career-card-icon i {
    font-size: 3rem;
    color: #ffffff;
    transition: transform 0.4s ease;
}
.career-card:hover .career-card-icon i {
    transform: scale(1.1) rotate(-5deg);
}

/* Cuerpo */
.career-card-body {
    padding: 0 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.career-card-body .career-title {
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #183254;
    margin: 0 0 6px 0;
}
.career-card-body .career-subtitle {
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #005da4;
    font-weight: 600;
    margin-bottom: 10px;
}
.career-card-body .career-description {
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* Tags */
.career-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
}
.career-tags span {
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 30px;
    background: rgba(41, 82, 186, 0.08);
    color: #005da4;
    border: 1px solid rgba(41, 82, 186, 0.1);
    transition: all 0.3s ease;
}
.career-card:hover .career-tags span {
    background: rgba(41, 82, 186, 0.15);
    border-color: rgba(41, 82, 186, 0.2);
}

/* Botón */
.career-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #183254, #005da4);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 82, 186, 0.25);
    margin-top: auto;
    width: 70%;
    justify-content: center;
}
.career-card-link i {
    transition: transform 0.3s ease;
}
.career-card-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(41, 82, 186, 0.35);
}
.career-card-link:hover i {
    transform: translateX(4px);
}

/* Badge Hiring */
.career-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #e74c3c;
    color: #ffffff;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    z-index: 5;
    border: 2px solid #ffffff;
}
.career-card-badge.hiring {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* ============================================
   RESPONSIVE - TABLET LANDSCAPE (≤ 992px)
   Cards cuadradas con 2 columnas
   ============================================ */
@media (max-width: 992px) {
    .careers-story-container {
        grid-template-columns: 1fr;
        gap: 55px;
        max-width: 720px;
    }
    .careers-image-wrapper {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
    }
    .careers-image {
        height: 430px;
    }
    .careers-content {
        max-width: 100%;
    }
    .careers-highlights {
        grid-template-columns: repeat(3, 1fr);
    }
    .opportunities-wrapper {
        padding: 30px 20px 0;
    }
    .opportunities-title-wrapper {
        padding: 0 0 20px 0;
        flex-wrap: wrap;
        gap: 16px;
    }
    .opportunities-title {
        font-size: 1.9rem;
    }

    /* 2 columnas → cada card casi cuadrada */
    .opportunities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
    }

    /* Forzar proporción cuadrada */
    .opportunities-grid .career-card {
        aspect-ratio: 1 / 1;
    }

    /* 3ª card centrada con el mismo ancho que una columna */
    .opportunities-grid .career-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: calc(50% - 13px);
        margin: 0 auto;
        width: 100%;
    }

    .career-card-icon {
        width: 88px;
        height: 88px;
        margin: 26px auto 14px;
    }
    .career-card-icon i {
        font-size: 2.3rem;
    }
    .career-card-body {
        padding: 0 18px 20px;
    }
    .career-card-body .career-title {
        font-size: 1.05rem;
        line-height: 1.3;
    }
    .career-card-body .career-description {
        font-size: 0.78rem;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .career-card-link {
        padding: 10px 20px;
        font-size: 0.75rem;
    }
}

/* ============================================
   RESPONSIVE - TABLET PORTRAIT (≤ 820px)
   Mantiene 2 columnas cuadradas
   ============================================ */
@media (max-width: 820px) {
    .opportunities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .opportunities-grid .career-card {
        aspect-ratio: 1 / 1;
    }
    .opportunities-grid .career-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: calc(50% - 10px);
        margin: 0 auto;
        width: 100%;
    }
    .career-card:hover {
        transform: translateY(-6px); /* sin scale para evitar overflow */
    }
    .career-card-icon {
        width: 72px;
        height: 72px;
        margin: 20px auto 10px;
    }
    .career-card-icon i {
        font-size: 1.9rem;
    }
    .career-card-body {
        padding: 0 14px 16px;
    }
    .career-card-body .career-title {
        font-size: 0.95rem;
        line-height: 1.25;
    }
    .career-card-body .career-subtitle {
        font-size: 0.62rem;
    }
    .career-card-body .career-description {
        font-size: 0.72rem;
        line-height: 1.5;
        -webkit-line-clamp: 4;
    }
    .career-card-link {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
    .career-card-badge {
        top: 12px;
        right: 12px;
        font-size: 0.48rem;
        padding: 3px 9px;
    }
}

/* ============================================
   RESPONSIVE - GENERAL (≤ 768px)
   Móvil: 1 columna, SIN cuadrado forzado
   ============================================ */
@media (max-width: 768px) {
     .parallax-section {
        width: 100%;
    }

    .container-center-parallax {
        width: 100%;
        height: 35vh;
        min-height: 225px;
        margin-top: var(--header-height);

        background-position: center 70%;
        background-size: cover;
    }

    .parallax-content {
        width: auto;
        max-width: calc(100% - 30px);
        padding: 28px 20px;
    }

    .parallax-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        letter-spacing: 0.07em;
    }
    .careers-story-container {
        width: calc(100% - 32px);
        gap: 45px;
    }
    .careers-image-wrapper {
        padding: 0 0 25px 12px;
    }
    .careers-image {
        height: 330px;
        border-radius: 14px;
    }
    .careers-image-wrapper::before {
        top: 15px;
        border-radius: 14px;
    }
    .careers-badge {
        width: 95px;
        height: 95px;
        left: -5px;
        bottom: 0;
        border-width: 4px;
    }
    .careers-badge strong {
        font-size: 0.95rem;
        color: #ffffff;
    }
    .careers-badge span {
        font-size: 0.5rem;
        color: #ffffff;
    }
    .careers-content h2 {
        font-size: 2rem;
    }
    .careers-intro {
        font-size: 0.98rem;
    }
    .careers-description {
        font-size: 0.88rem;
    }
    .careers-highlights {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .careers-highlight {
        flex-direction: row;
        align-items: center;
        padding: 12px;
    }
    .careers-highlight .highlight-icon {
        flex-shrink: 0;
    }
    .careers-button {
        width: 100%;
        justify-content: center;
    }
    .opportunities-wrapper {
        padding: 20px 16px 0;
    }
    .opportunities-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0 0 16px 0;
        margin-bottom: 30px;
    }
    .opportunities-title {
        font-size: 1.4rem;
    }
    .opportunities-subtitle {
        font-size: 0.7rem;
    }
    .opportunities-view-more {
        font-size: 0.8rem;
        padding: 8px 18px;
        align-self: flex-start;
    }

    /* 1 columna, sin cuadrado */
    .opportunities-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .opportunities-grid .career-card,
    .opportunities-grid .career-card:nth-child(3) {
        aspect-ratio: auto;
        grid-column: auto;
        max-width: none;
        margin: 0;
    }
    .career-card {
        border-radius: 16px;
    }
    .career-card:hover {
        transform: none;
    }
    .career-card-icon {
        width: 75px;
        height: 75px;
        margin: 26px auto 12px;
    }
    .career-card-icon i {
        font-size: 2rem;
    }
    .career-card-body {
        padding: 0 18px 18px;
    }
    .career-card-body .career-title {
        font-size: 1.05rem;
    }
    .career-card-body .career-subtitle {
        font-size: 0.65rem;
    }
    .career-card-body .career-description {
        font-size: 0.8rem;
        margin-bottom: 14px;
        -webkit-line-clamp: unset; /* mostrar descripción completa en móvil */
        display: block;
        overflow: visible;
    }
    .career-tags span {
        font-size: 0.55rem;
        padding: 3px 10px;
    }
    .career-card-link {
        padding: 10px 20px;
        font-size: 0.75rem;
    }
    .career-card-badge {
        top: 12px;
        right: 12px;
        font-size: 0.5rem;
        padding: 4px 10px;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL GRANDE (≤ 640px)
   ============================================ */
@media (max-width: 640px) {
    .careers-image {
        height: 280px;
    }
    .careers-badge {
        width: 80px;
        height: 80px;
    }
    .careers-badge strong {
        font-size: 0.8rem;
        color: #ffffff;
    }
    .careers-badge span {
        font-size: 0.45rem;
        color: #ffffff;
    }
    .career-card-icon {
        width: 70px;
        height: 70px;
        margin: 24px auto 10px;
    }
    .career-card-icon i {
        font-size: 1.85rem;
    }
    .career-card-body {
        padding: 0 20px 20px;
    }
    .career-card-body .career-title {
        font-size: 1rem;
    }
    .career-card-body .career-description {
        font-size: 0.78rem;
    }
    .career-card-link {
        padding: 10px 18px;
        font-size: 0.72rem;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL PEQUEÑO (≤ 380px)
   ============================================ */
@media (max-width: 380px) {
    .opportunities-wrapper {
        padding: 16px 12px 0;
    }
    .opportunities-title {
        font-size: 1.2rem;
    }
    .career-card-icon {
        width: 62px;
        height: 62px;
        margin: 20px auto 10px;
    }
    .career-card-icon i {
        font-size: 1.6rem;
    }
    .career-card-body {
        padding: 0 16px 16px;
    }
    .career-card-body .career-title {
        font-size: 0.95rem;
    }
    .career-card-body .career-description {
        font-size: 0.72rem;
    }
    .career-card-link {
        padding: 9px 16px;
        font-size: 0.68rem;
    }
    .career-card-badge {
        top: 10px;
        right: 10px;
        font-size: 0.45rem;
        padding: 3px 8px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {

    .container-center-parallax {
        width: 100%;
        height: 35vh;
        min-height: 225px;
        background-position: center 70%;
    }

}