/* ===========================================================
   LANGUAGES SECTION
   Cuatro destinos en franjas diagonales sobre el fondo bordo.
   =========================================================== */

.languages,
.languages * {
    box-sizing: border-box;
}

.languages {
    position: relative;
    display: flex;
    flex-direction: column;
    height: clamp(360px, 34vw, 500px);
    min-height: 0;
    padding: 26px 0;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(120% 140% at 15% 0%, #4d0d13 0%, #240509 68%, #170306 100%);
    font-family: var(--font-inter);
}

.languages-title {
    position: relative;
    top: auto;
    left: auto;
    z-index: 3;
    flex: 0 0 auto;
    margin: 0 0 22px;
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: var(--landing-section-title-size);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
}

.languages-grid {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1vw, 18px);
    width: 100%;
    height: auto;
    min-height: 0;
    margin-left: 0;
}

.language-card {
    position: relative;
    height: 100%;
    min-width: 0;
    margin-left: 0;
    overflow: hidden;
    isolation: isolate;
}

.language-card:first-child {
    margin-left: 0;
}

.language-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-card h3 {
    position: absolute;
    right: 12px;
    bottom: clamp(28px, 4vw, 58px);
    left: 0;
    z-index: 2;
    width: auto;
    margin: 0;
    color: #ffffff;
    font-family: var(--font-inter);
    font-size: clamp(20px, 1.7vw, 28px);
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

@media (max-width: 760px) {
    .languages {
        height: auto;
        min-height: 0;
        padding: 0 0 4px;
    }

    .languages-title {
        position: relative;
        top: auto;
        left: auto;
        margin: 0;
        padding: 30px 24px 26px;
        font-size: 27px;
        text-align: center;
    }

    .languages-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
        height: auto;
        min-height: 0;
        margin-left: 0;
    }

    .language-card {
        margin-left: 0;
        overflow: hidden;
        aspect-ratio: 3 / 4;
    }

    .language-card img {
        position: static;
        width: 100%;
    }

    .language-card h3 {
        right: 12px;
        bottom: 24px;
        left: 12px;
        width: auto;
        font-size: 20px;
    }
}
