:root {
    --bk: #0a0a0b;
    --dk: #161618;
    --ch: #2D2E30;
    --g: #636569;
    --gm: #8A8B8E;
    --gl: #b0b1b3;
    --cr: #F1F1F1;
    --ow: #F8F8F8;
    --wh: #FFFFFF;
    --tg: #E2492F;
    --sr: 'Bricolage Grotesque', 'Outfit', system-ui, sans-serif;
    --sn: 'Bricolage Grotesque', 'Outfit', system-ui, sans-serif;
    --mn: 'JetBrains Mono', monospace;
    --e: cubic-bezier(.22, 1, .36, 1)
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--sn);
    color: var(--ch);
    background: var(--wh);
    overflow-x: hidden
}

::selection {
    background: rgba(226, 73, 47, .2)
}

a {
    text-decoration: none;
    color: inherit
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .5s var(--e)
}

nav.s {
    padding: 8px 40px;
    background: rgba(10, 10, 11, .5);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

nav img {
    height: 68px;
    transition: height .4s var(--e)
}

nav.s img {
    height: 55px
}

.nl {
    display: flex;
    align-items: center;
    gap: 32px
}

.nl a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gl);
    transition: color .3s
}

.nl a:hover {
    color: var(--wh)
}

.nc {
    width: 40px;
    height: 40px;
    background: var(--tg);
    color: var(--wh);
    border-radius: 50%;
    transition: all .3s var(--e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(226, 73, 47, 0.3);
}

.nc svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nc:hover {
    background: var(--wh) !important;
    color: var(--tg) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(226, 73, 47, 0.4);
}

.nc:hover svg {
    fill: var(--tg) !important;
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--bk);
    display: flex;
    align-items: center;
    overflow: hidden
}

/* --- Fondo Mesh Gradient Interactivo --- */
.bg-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(120px);
    opacity: 0.9;
    pointer-events: none;
}

.orb-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

html.noscroll,
body.noscroll {
    overflow: hidden !important;
    touch-action: none;
    overscroll-behavior: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: #E2492F;
    top: -15%;
    left: -5%;
    animation: move1 25s infinite alternate ease-in-out;
}

.orb-2 {
    width: 45vw;
    height: 45vw;
    background: #636569;
    bottom: -25%;
    right: -10%;
    animation: move2 30s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    width: 35vw;
    height: 35vw;
    background: #8c2819;
    top: 25%;
    left: 20%;
    animation: move3 22s infinite alternate ease-in-out;
}

@keyframes move1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30%, 20%) scale(1.2);
    }
}

@keyframes move2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-20%, -30%) scale(1.1);
    }
}

@keyframes move3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40%, -40%) scale(1.3);
    }
}

.hc {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 160px 40px 120px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 80px;
    align-items: center
}

.ho {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--tg);
    margin-bottom: 14px
}

.hero h1 {
    font-family: var(--sr);
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 700;
    color: var(--wh);
    line-height: 1.08;
    margin: 0 0 28px
}

.hero h1 i {
    color: var(--gm);
    font-weight: 700
}

.hero h1 b {
    color: var(--tg);
    font-weight: 700
}

.hs {
    font-size: 17px;
    font-weight: 300;
    color: var(--gm);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 0 44px
}

.hb {
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.bp {
    font-family: var(--sn);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--wh);
    padding: 16px 36px;
    background: var(--tg);
    display: inline-block;
    transition: background .3s;
    border: none;
    cursor: pointer;
}

.bp:hover {
    background: var(--wh) !important;
    color: var(--tg) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226, 73, 47, 0.4);
}

.bs {
    font-family: var(--sn);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--wh);
    padding: 16px 36px;
    border: 1px solid rgba(138, 139, 142, .3);
    display: inline-block;
    transition: border-color .3s
}

.bs:hover {
    border-color: var(--tg);
    background: var(--tg);
    color: var(--wh);
}

.stats {
    border-left: 1px solid rgba(255, 255, 255, .06);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 36px
}

.stat .n {
    font-family: var(--sr);
    font-size: 42px;
    color: var(--wh);
    line-height: 1.1;
    font-weight: 700
}

.stat .u {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--tg);
    margin-top: 4px
}

.stat .l {
    font-size: 13px;
    font-weight: 300;
    color: var(--gm);
    margin-top: 2px
}

/* METRICS */
.mbar {
    background: var(--dk);
    padding: 56px 40px;
    border-top: 1px solid rgba(255, 255, 255, .024);
    border-bottom: 1px solid rgba(255, 255, 255, .024)
}

.mg {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center
}

.mg .n {
    font-family: var(--sr);
    font-size: 36px;
    color: var(--wh);
    line-height: 1;
    font-weight: 700
}

.mg .l {
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--gm);
    margin-top: 10px;
    text-transform: uppercase
}

/* SECTIONS */
.sec {
    padding: 120px 40px;
    position: relative;
    overflow: hidden
}

.sec .in {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2
}

.ol {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--tg);
    margin-bottom: 14px
}

.st {
    font-family: var(--sr);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 16px
}

.st i {
    color: var(--g);
    font-weight: 700
}

.ln {
    width: 60px;
    height: 2px;
    background: var(--tg);
    margin-bottom: 24px
}

.sd {
    font-size: 16px;
    font-weight: 300;
    color: var(--g);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 0 56px
}

/* FORCES */
.fg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 72px
}

.fc {
    background: var(--wh);
    padding: 36px 28px;
    border-bottom: 2px solid transparent;
    transition: border-color .3s
}

.fc:hover {
    border-bottom-color: var(--tg)
}

.fc .nm {
    font-family: var(--mn);
    font-size: 12px;
    color: var(--tg);
    font-weight: 600;
    margin-bottom: 16px
}

.fc h3 {
    font-family: var(--sn);
    font-size: 16px;
    font-weight: 700;
    color: var(--ch);
    margin-bottom: 12px;
    line-height: 1.3
}

.fc p {
    font-size: 14px;
    font-weight: 300;
    color: var(--g);
    line-height: 1.65;
    margin: 0
}

/* LATAM */
.lc {
    background: var(--ch);
    padding: 56px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center
}

.lc h3 {
    font-family: var(--sr);
    font-size: 32px;
    color: var(--wh);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px
}

.lc>div:first-child p {
    font-size: 15px;
    font-weight: 300;
    color: var(--gl);
    line-height: 1.7;
    margin: 0
}

.ls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: center
}

.ls .v {
    font-family: var(--sr);
    font-size: 28px;
    color: var(--tg);
    line-height: 1;
    font-weight: 700
}

.ls .lb {
    font-size: 10px;
    color: var(--gm);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 6px
}

/* ABOUT */
.abg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start
}

.qb {
    border-left: 3px solid var(--tg);
    padding-left: 24px;
    margin-bottom: 40px
}

.qb p {
    font-family: var(--sr);
    font-size: 20px;
    font-style: italic;
    color: var(--ch);
    line-height: 1.5;
    margin: 0;
    font-weight: 700
}

.pr {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--cr)
}

.pr .nm {
    font-family: var(--mn);
    font-size: 13px;
    font-weight: 600;
    color: var(--tg);
    min-width: 28px;
    padding-top: 2px
}

.pr .pn {
    font-size: 15px;
    font-weight: 600;
    color: var(--ch);
    margin-bottom: 4px
}

.pr .pd {
    font-size: 14px;
    font-weight: 300;
    color: var(--g);
    line-height: 1.6
}

.mvg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 80px
}

.mvb {
    padding: 56px 48px
}

.mvb p {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    color: var(--wh);
    font-weight: 300;
    line-height: 1.5;
    margin: 0
}

/* TABS */
.pt {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--wh);
    min-height: 480px
}

.tn {
    border-right: 1px solid var(--cr)
}

.tb {
    display: block;
    width: 100%;
    text-align: left;
    padding: 24px 28px;
    cursor: pointer;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--cr);
    font-family: var(--sn);
    transition: all .3s
}

.tb.ac {
    background: var(--wh);
    border-left-color: var(--tg)
}

.tb .nm {
    font-family: var(--mn);
    font-size: 11px;
    color: var(--gm);
    margin-bottom: 4px;
    display: block
}

.tb.ac .nm {
    color: var(--tg)
}

.tb .pn {
    font-size: 14px;
    color: var(--g);
    display: block
}

.tb.ac .pn {
    font-weight: 600;
    color: var(--ch)
}

.tc {
    padding: 48px 56px
}

.tc .ph {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--tg);
    margin-bottom: 8px
}

.tc h3 {
    font-family: var(--sr);
    font-size: 32px;
    color: var(--ch);
    font-weight: 700;
    margin: 0 0 8px
}

.tc .tg {
    font-size: 13px;
    font-weight: 500;
    color: var(--gm);
    margin-bottom: 24px
}

.tc .ds {
    font-size: 15px;
    font-weight: 300;
    color: var(--g);
    line-height: 1.7;
    margin: 0 0 28px
}

.di {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px
}

.dd {
    width: 6px;
    height: 6px;
    background: var(--tg);
    transform: rotate(45deg);
    flex-shrink: 0
}

.di span {
    font-size: 14px;
    color: var(--ch)
}

/* INVESTMENT */
.ig {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px
}

.im {
    border-top: 2px solid var(--tg);
    padding-top: 24px
}

.im .l {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gm);
    margin-bottom: 8px
}

.im .v {
    font-family: var(--sr);
    font-size: 36px;
    color: var(--wh);
    line-height: 1;
    font-weight: 700
}

.im .c {
    font-size: 13px;
    font-weight: 300;
    color: var(--gm);
    margin-top: 8px
}

.isv {
    background: rgba(255, 255, 255, .024);
    border: 1px solid rgba(255, 255, 255, .03);
    padding: 48px
}

.isg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 24px
}

.is {
    display: flex;
    gap: 16px
}

.isb {
    width: 4px;
    background: var(--tg);
    border-radius: 2px;
    flex-shrink: 0
}

.is h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--wh);
    margin-bottom: 6px
}

.is p {
    font-size: 14px;
    font-weight: 300;
    color: var(--gm);
    line-height: 1.6;
    margin: 0
}

.iq {
    margin-top: 56px;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, .03)
}

.iq p {
    font-family: var(--sr);
    font-size: 20px;
    font-style: italic;
    color: var(--gl);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto 24px;
    font-weight: 700
}

/* CORPORATE */
.cg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center
}

.cmg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.cm {
    background: var(--wh);
    padding: 32px 28px;
    border-bottom: 2px solid var(--cr);
    transition: border-color .3s
}

.cm:hover {
    border-bottom-color: var(--tg)
}

.cm .cv {
    font-family: var(--sr);
    font-size: 32px;
    color: var(--ch);
    line-height: 1;
    font-weight: 700
}

.cm .cl {
    font-size: 13px;
    font-weight: 500;
    color: var(--g);
    margin-top: 8px
}

.cm .cs {
    font-family: var(--mn);
    font-size: 11px;
    color: var(--gm);
    margin-top: 4px
}

/* TEAM */
.tg2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px
}

.tc2 {
    padding: 36px 24px 32px;
    background: var(--ow);
    position: relative;
    overflow: hidden
}

.tc2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tg)
}

.tav {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ch);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--wh);
    letter-spacing: .05em
}

.tc2 h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--ch);
    margin: 0 0 4px
}

.tc2 .ro {
    font-size: 12px;
    font-weight: 500;
    color: var(--tg);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 4px
}

.tc2 .cr {
    font-size: 12px;
    color: var(--gm);
    margin-bottom: 16px
}

.tc2 .bi {
    font-size: 13px;
    font-weight: 300;
    color: var(--g);
    line-height: 1.6;
    margin: 0
}

.tm {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--cr);
    padding-top: 32px;
    text-align: center
}

.tm .v {
    font-family: var(--sr);
    font-size: 28px;
    color: var(--ch);
    font-weight: 700
}

.tm .l {
    font-size: 11px;
    color: var(--gm);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: 4px
}

/* ESG */
.eg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px
}

.ec {
    background: rgba(255, 255, 255, .024);
    border: 1px solid rgba(255, 255, 255, .03);
    padding: 40px 32px
}

.ec .lt {
    font-family: var(--sr);
    font-size: 48px;
    color: var(--tg);
    line-height: 1;
    margin-bottom: 16px;
    font-weight: 700
}

.ec .ti {
    font-size: 16px;
    font-weight: 600;
    color: var(--wh);
    margin-bottom: 20px
}

.ei {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px
}

.edt {
    width: 5px;
    height: 5px;
    background: var(--tg);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px
}

.ei span {
    font-size: 14px;
    font-weight: 300;
    color: var(--gl);
    line-height: 1.5
}

/* CONTACT */
.ccg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px
}

.cc {
    background: rgba(255, 255, 255, .016);
    border: 1px solid rgba(255, 255, 255, .03);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px
}

.cc .nm {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--tg);
    margin-bottom: 12px
}

.cc h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--wh);
    margin: 0 0 12px
}

.cc p {
    font-size: 14px;
    font-weight: 300;
    color: var(--gm);
    line-height: 1.6;
    margin: 0
}

.cc .ct {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tg);
    margin-top: 24px;
    cursor: pointer
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: var(--wh);
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.form-group input.input-error,
.form-group select.input-error {
    border-color: var(--g);
    background: rgba(246, 139, 41, 0.05);
}

.error-msg {
    color: var(--g);
    font-size: 13px;
    margin-top: 6px;
    display: none;
    animation: fadeIn 0.3s ease;
}

#contacto textarea {
    height: auto;
}

#contacto select {
    margin-bottom: 0px;
    /* Overridden for the flex layout inline styles */
    padding: 0 10px;
    /* Reduce padding to stop the text being cut off */
    color: transparent;
    /* Text is handled by JS overlay now */
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    height: 48px;
}

/* Ensure the options inside the select maintain their color and background despite the select being transparent */
#contacto select option {
    background: var(--bk) !important;
    /* dropdown menu contrast */
    color: var(--wh) !important;
}

#contacto input:focus,
#contacto select:focus,
#contacto textarea:focus {
    outline: none;
    border-color: var(--tg);
    background: rgba(255, 255, 255, 0.05);
}

#contacto label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .016);
    border: 1px solid rgba(255, 255, 255, .03);
    padding: 40px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media(max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* FOOTER */
.ft {
    background: var(--bk);
    border-top: 1px solid rgba(255, 255, 255, .024);
    padding: 48px 40px 32px
}

.ftg {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 48px;
    align-items: center;
}

.ftb p {
    font-size: 13px;
    font-weight: 300;
    color: var(--gm);
    line-height: 1.6;
    max-width: 280px
}

.ftc {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gm);
    margin-bottom: 16px
}

.fl {
    font-size: 13px;
    font-weight: 300;
    color: var(--gl);
    margin-bottom: 10px;
    cursor: pointer
}

.fbot {
    max-width: 1280px;
    margin: 48px auto 0;
    border-top: 1px solid rgba(255, 255, 255, .024);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.fbot span {
    font-size: 11px;
    color: var(--gm)
}

.fbl {
    display: flex;
    gap: 24px
}

@media(max-width:1024px) {

    .hc,
    .abg,
    .cg,
    .lc,
    .mvg {
        grid-template-columns: 1fr
    }

    .fg,
    .ig,
    .tg2 {
        grid-template-columns: repeat(2, 1fr)
    }

    .pt {
        grid-template-columns: 1fr
    }

    .tn {
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--cr)
    }

    .tb {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap
    }

    .tb.ac {
        border-bottom-color: var(--tg);
        border-left: none
    }

    .stats {
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .06);
        padding-top: 40px
    }

    .ftg {
        grid-template-columns: 1fr 1fr
    }

    .ccg,
    .eg,
    .isg {
        grid-template-columns: 1fr
    }
}

@media(max-width:640px) {
    .sec {
        padding: 80px 24px
    }

    nav {
        padding: 16px 20px
    }

    .nl a:not(.nc) {
        display: none
    }

    .hc {
        padding: 140px 24px 80px;
        grid-template-columns: 1fr
    }

    .fg,
    .ig,
    .tg2,
    .cmg,
    .tm,
    .mg {
        grid-template-columns: 1fr
    }

    .ftg {
        grid-template-columns: 1fr
    }

    .fbot {
        flex-direction: column;
        gap: 12px
    }

    .lc {
        padding: 40px 32px;
        grid-template-columns: 1fr
    }
}

/* --- 3D Flip Cards Section --- */
.flip-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.flip-card {
    background-color: transparent;
    height: 266px;
    cursor: pointer;
    perspective: 1200px;
    position: relative;
    z-index: 1;
}

.fc-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1), width 0.6s cubic-bezier(0.4, 0.2, 0.2, 1), height 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 12px;
}

.flip-card:not(.expanded):hover .fc-inner {
    transform: translateY(-8px);
}

.fc-front,
.fc-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.fc-front {
    background: var(--tg);
    color: var(--wh);
}

.fc-back {
    background: var(--bk);
    color: var(--wh);
    transform: rotateY(180deg);
    text-align: left;
    align-items: flex-start;
    border-color: rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 12px;
}

.fc-back::-webkit-scrollbar {
    display: none;
}

/* Compact rules to fit large content inside the modal without scrolling */
.fc-back .ol {
    font-size: 13px;
    margin-bottom: 4px;
}

.fc-back .st {
    font-size: 21px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.fc-back .ln {
    margin-bottom: 8px;
}

.fc-back .sd {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.fc-back .ig {
    margin: 12px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fc-back .ig .im {
    padding: 6px;
}

.fc-back .ig .im .l {
    font-size: 11px;
    margin-bottom: 2px;
}

.fc-back .ig .im .v {
    font-size: 21px;
    margin-bottom: 2px;
}

.fc-back .ig .im .c {
    font-size: 11px;
    line-height: 1.2;
}

.fc-back .isv {
    margin-top: 8px;
}

.fc-back .isg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
}

.fc-back .is h4 {
    font-size: 15px;
    margin-bottom: 2px;
}

.fc-back .is p {
    font-size: 13px;
    line-height: 1.4;
}

.fc-back .iq {
    margin-top: 16px;
}

.fc-back .iq p {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.fc-back .bs {
    padding: 10px 20px;
    font-size: 10px;
    display: inline-block;
}

.fc-front h3 {
    font-family: var(--sr);
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--wh);
}

.fc-front p {
    font-size: 15px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    line-height: 1.6;
}

.fc-front span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-top: auto;
}

.fc-back h3 {
    font-family: var(--sr);
    font-size: 24px;
    margin-bottom: 20px;
    color: #E2492F;
}

.fc-back p {
    font-size: 15px;
    color: var(--gl);
    line-height: 1.7;
}

.flip-card.expanded {
    z-index: 1000 !important;
}

.flip-card.expanded .fc-inner {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.close-card {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--wh);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    line-height: 1;
}

.close-card:hover {
    opacity: 1;
}

#card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#card-overlay.active {
    opacity: 1;
    pointer-events: auto;
}