/* Issue #2: tipografía, navegación y portada. Se carga después del tema Creative. */
@font-face { font-family: Poppins; src: url('../media/fonts/poppins-400-latin.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url('../media/fonts/poppins-500-latin.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url('../media/fonts/poppins-600-latin.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url('../media/fonts/poppins-700-latin.woff2') format('woff2'); font-style: normal; font-weight: 700 900; font-display: swap; }
:root {
    --gm-navy: #112c4b;
    --gm-blue: #174a76;
    --gm-orange: #bd5131;
    --gm-orange-brand: #f4623a;
    --gm-text-light: #e4edf6;
    --gm-canvas: #f6f9fc;
    --gm-line: #dce6ef;
}

html,
body,
button,
input,
textarea,
select,
.btn,
#mainNav .navbar-brand,
#mainNav .navbar-nav .nav-item .nav-link,
.body_contacto,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
}

body { overflow-x: hidden; }

section[id] { scroll-margin-top: 4.15rem; }

.skip-link {
    position: fixed;
    z-index: 1200;
    top: .7rem;
    left: .7rem;
    padding: .7rem 1rem;
    border-radius: 8px;
    background: #fff;
    color: #112c4b;
    font-weight: 700;
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

#mainNav {
    padding: .8rem 0;
    background: linear-gradient(100deg, #092846 0%, #0e3d6b 57%, #0b3158 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    box-shadow: none;
    transition: padding .25s ease, background-color .25s ease, box-shadow .25s ease;
}

#mainNav.navbar-scrolled {
    padding: .55rem 0;
    background: linear-gradient(100deg, #092846 0%, #0e3d6b 57%, #0b3158 100%);
    box-shadow: 0 12px 28px rgba(8, 34, 61, .18);
}

#mainNav .nav-shell { gap: 1rem; }

#mainNav .navbar-brand,
#mainNav.navbar-scrolled .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-right: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.02em;
    white-space: nowrap;
}

#mainNav .navbar-brand img { object-fit: contain; }

#mainNav .navbar-brand:hover,
#mainNav.navbar-scrolled .navbar-brand:hover { color: #fff; }

#mainNav .navbar-nav { align-items: center; gap: .15rem; }

#mainNav .navbar-nav .nav-item .nav-link,
#mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link {
    position: relative;
    padding: .68rem .72rem;
    color: rgba(255, 255, 255, .84);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: color .2s ease;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link:focus,
#mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
    color: #fff !important;
}

#mainNav .navbar-nav .nav-item:not(.nav-contact) .nav-link::after {
    content: '';
    position: absolute;
    left: .72rem;
    right: .72rem;
    bottom: .32rem;
    height: 2px;
    background: var(--gm-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

#mainNav .navbar-nav .nav-item:not(.nav-contact) .nav-link:hover::after,
#mainNav .navbar-nav .nav-item:not(.nav-contact) .nav-link.active::after {
    transform: scaleX(1);
}

#mainNav .navbar-nav .nav-contact { margin-left: .7rem; }

#mainNav .navbar-nav .nav-item.nav-contact > .nav-link,
#mainNav.navbar-scrolled .navbar-nav .nav-item.nav-contact > .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .7rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #fff;
    background: transparent;
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px rgba(189, 81, 49, .65);
    line-height: 1;
    white-space: nowrap;
}

#mainNav .navbar-nav .nav-item.nav-contact > .nav-link:hover,
#mainNav .navbar-nav .nav-item.nav-contact > .nav-link.active {
    color: #fff !important;
    border-color: var(--gm-orange);
    background: var(--gm-orange);
    box-shadow: none;
}

#mainNav .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 10px;
    padding: .45rem .6rem;
}
#mainNav .navbar-toggler-icon { filter: none; }

#mainNav .navbar-toggler:focus,
#mainNav a:focus-visible,
.hero-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

header.masthead {
    height: auto;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: clamp(6.2rem, 10svh, 7.5rem) 0 clamp(1.4rem, 2.5svh, 2rem);
    color: #fff;
    background: radial-gradient(circle at 83% 23%, rgba(107, 185, 226, .34), transparent 38%),
                linear-gradient(145deg, #155b94 0%, #1767a7 55%, #0b396a 100%);
    overflow: hidden;
}

.hero-container { position: relative; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
}

.hero-copy,
.hero-visual,
.hero-detail-heading,
.hero-detail-text {
    min-width: 0;
}

header.masthead .hero-eyebrow,
.hero-detail-label {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: #ffb198;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero-eyebrow { margin: 0 0 clamp(.75rem, 1.6svh, 1.3rem); }

.hero-eyebrow-line {
    width: 1.6rem;
    height: 2px;
    background: var(--gm-orange);
}

header.masthead h1 {
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(2.15rem, min(3.2vw, 5.6svh), 3.65rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.045em;
    overflow-wrap: break-word;
    text-wrap: balance;
}

header.masthead .hero-values {
    max-width: 38rem;
    margin: clamp(.8rem, 2svh, 1.5rem) 0 0;
    color: var(--gm-text-light);
    font-size: clamp(.96rem, 1.12vw, 1.08rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: clamp(1rem, 2.2svh, 1.7rem);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 3.25rem;
    padding: .85rem 1.35rem;
    border-radius: 12px;
    font-size: .83rem;
    font-weight: 700;
    text-transform: none;
    transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.hero-button:hover { transform: translateY(-2px); }
.hero-button-primary,
.hero-button-primary:hover {
    color: #fff;
    background: var(--gm-orange);
    border: 1px solid var(--gm-orange);
}
.hero-button-primary:hover { background: #a83e22; border-color: #a83e22; box-shadow: 0 12px 26px rgba(8, 25, 49, .25); }
.hero-button-outline,
.hero-button-outline:hover {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .65);
}
.hero-button-outline:hover { background: rgba(255, 255, 255, .12); }

.hero-visual { position: relative; }
.hero-image-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 28px;
    height: min(41svh, 29rem);
    box-shadow: 0 32px 70px rgba(0, 8, 25, .3);
}
.hero-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-visual-caption {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    max-width: calc(100% - 2rem);
    padding: .85rem 1rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    background: #113a60;
    box-shadow: 0 18px 36px rgba(0, 8, 25, .26);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
}
.hero-caption-dot {
    width: .52rem;
    height: .52rem;
    flex: none;
    border-radius: 50%;
    background: var(--gm-orange);
}

.hero-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: clamp(1.2rem, 3svh, 2.5rem);
}

.hero-detail-heading,
.hero-detail-text {
    padding: clamp(1.1rem, min(2vw, 2.3svh), 2rem);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 16px 38px rgba(0, 11, 34, .12);
    transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.hero-detail-heading:hover,
.hero-detail-text:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .14);
    box-shadow: 0 22px 45px rgba(0, 11, 34, .2);
}

.hero-detail-heading { border-top: 3px solid var(--gm-orange); }
.hero-detail-label { margin-bottom: .7rem; }
.hero-detail h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, min(2vw, 2.8svh), 2.1rem);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -.03em;
}
header.masthead .hero-detail-text p {
    margin: 0 0 1rem;
    color: var(--gm-text-light);
    font-size: .89rem;
    line-height: 1.55;
}
.hero-detail-text .hero-detail-closing {
    margin: .7rem 0 0;
    padding-top: .65rem;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .045em;
}

@keyframes gm-enter {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes gm-hero-card-enter {
    from { opacity: 0; transform: translateY(64px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-copy { animation: gm-enter 1.05s .1s ease-out both; }
.hero-visual { animation: gm-enter 1.1s .28s ease-out both; }

.reveal-ready .reveal-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .78s ease-out, transform .78s cubic-bezier(.2, .7, .2, 1);
}

.reveal-ready .reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-ready .hero-detail .reveal-card.is-visible {
    animation: gm-hero-card-enter 1.05s cubic-bezier(.16, 1, .3, 1) backwards;
}
.reveal-ready .hero-detail .hero-detail-heading.is-visible { animation-delay: .45s; }
.reveal-ready .hero-detail .hero-detail-text.is-visible { animation-delay: .8s; }
.reveal-ready .hero-detail .reveal-card.is-visible:hover {
    transform: translateY(-4px) scale(1);
}

.about-section {
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
    background: var(--gm-orange-brand);
}

.about-section::before {
    content: '';
    position: absolute;
    width: 35rem;
    height: 35rem;
    right: -19rem;
    top: -19rem;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 50%;
    pointer-events: none;
}

.about-intro {
    max-width: 55rem;
    margin: 0 auto;
    text-align: center;
}

.about-eyebrow,
.contact-eyebrow {
    margin-bottom: 1.2rem;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.about-eyebrow { color: #0b2c4d; }

.about-intro h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.about-summary {
    max-width: 44rem;
    margin: 1.5rem auto 0;
    color: #102f4f;
    font-size: 1rem;
    line-height: 1.8;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 3.4rem;
}

.about-card {
    min-width: 0;
    min-height: 20rem;
    padding: clamp(1.8rem, 3vw, 2.7rem);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(88, 27, 16, .16);
}

.about-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    margin-bottom: 1.7rem;
    border-radius: 11px;
    background: #fff0ea;
    color: #d65331;
    font-size: .77rem;
    font-weight: 800;
}

.about-card h3 {
    max-width: 21ch;
    margin: 0 0 1rem;
    color: var(--gm-navy);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.35;
}

.about-card p {
    margin: 0;
    color: #40516a;
    font-size: .95rem;
    line-height: 1.8;
}

.about-action { margin-top: 2.5rem; text-align: center; }

.service-intro {
    max-width: 57rem;
    margin: -.25rem auto 1.2rem;
    color: #425a74;
    font-size: clamp(.85rem, 1.1vw, 1rem);
    line-height: 1.55;
    text-align: center;
    text-wrap: balance;
}
.about-button,
.about-button:hover {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: var(--gm-navy);
    color: #fff;
    font-size: .83rem;
    font-weight: 700;
    text-transform: none;
}
.about-button:hover { background: #123963; transform: translateY(-2px); }

.media-section { padding: 6.8rem 0 7.3rem; background: #eaf3fa; color: var(--gm-navy); }
.media-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.5rem; }
.media-heading > div:first-child { max-width: 42rem; }
.media-eyebrow, .media-kicker, .media-modal-kicker { color: #c54e30; font-size: .69rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.media-heading h2 { margin: .5rem 0 1rem; color: var(--gm-navy); font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 800; letter-spacing: -.045em; }
.media-heading p:last-child { margin: 0; color: #465a74; line-height: 1.8; }
.media-heading-aside { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border: 1px solid #d4dfeb; border-radius: 15px; background: #fff; white-space: nowrap; }
.media-heading-aside span { color: var(--gm-orange); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.media-heading-aside small { color: #53657a; font-size: .68rem; font-weight: 600; line-height: 1.45; }
.media-feature { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); overflow: hidden; border: 1px solid #dbe5ef; border-radius: 24px; background: #fff; box-shadow: 0 26px 58px rgba(6, 34, 71, .1); }
.media-feature-art { position: relative; min-height: 23rem; background: #061b36; }
.media-feature-art img { display: block; width: 100%; height: 100%; min-height: 23rem; object-fit: cover; }
.media-feature-art img[hidden], .media-feature-art video[hidden], .media-feature-art .media-play[hidden], .media-feature-selection[hidden] { display: none !important; }
.media-feature-art video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; background: #03142b; object-fit: contain; }
.media-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 4.8rem; height: 4.8rem; padding: 0; border: 1px solid #fff9; border-radius: 50%; background: #174a76ee; color: #fff; font-size: 1.3rem; cursor: pointer; transform: translate(-50%, -50%); box-shadow: 0 16px 42px #0005; transition: background .2s ease, box-shadow .2s ease; }
.media-play:hover, .media-play:focus-visible { background: #f4623a; box-shadow: 0 18px 46px #0008; }
.media-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.media-feature-selection { position: absolute; right: .8rem; bottom: .8rem; max-width: calc(100% - 1.6rem); padding: .4rem .65rem; border: 1px solid #ffffff69; border-radius: 7px; background: #061b36df; color: #fff; font-size: .66rem; font-weight: 700; line-height: 1.3; text-align: right; }
.media-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 4vw, 3.5rem); }
.media-feature-copy h3 { margin: .8rem 0 1rem; color: var(--gm-navy); font-size: clamp(1.55rem, 2.4vw, 2.5rem); font-weight: 800; line-height: 1.22; letter-spacing: -.035em; }
.media-feature-copy p { margin-bottom: 1.7rem; color: #4c5d72; font-size: .91rem; line-height: 1.8; }
.media-feature-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.media-primary, .media-secondary, .media-primary:hover, .media-secondary:hover { padding: .9rem 1.15rem; border-radius: 10px; font-size: .78rem; font-weight: 700; text-transform: none; }
.media-primary, .media-primary:hover { background: var(--gm-blue); border: 1px solid var(--gm-blue); color: #fff; }
.media-secondary, .media-secondary:hover { background: #fff; border: 1px solid #c6d4e3; color: var(--gm-navy); }
.media-primary:hover, .media-secondary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px #09254418; }
.media-library-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin: 4.3rem 0 1.5rem; }
.media-library-heading h3 { margin: 0; color: var(--gm-navy); font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 800; letter-spacing: -.035em; }
.media-library-heading p { max-width: 31rem; margin: 0; color: #566a81; font-size: .82rem; line-height: 1.65; }
.media-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.media-topic { display: flex; flex-direction: column; min-width: 0; min-height: 16.5rem; padding: 1.55rem; border: 1px solid #dbe5ef; border-radius: 17px; background: #fff; box-shadow: 0 12px 30px #102e510b; transition: box-shadow .25s ease, border-color .25s ease; }
.media-topic:hover { border-color: #f4b39f; box-shadow: 0 20px 40px #102e511c; }
.media-topic.is-selected { border-color: #e27351; box-shadow: 0 0 0 2px #f4623a29, 0 20px 40px #102e511c; }
.media-topic-top { display: flex; justify-content: space-between; gap: .5rem; color: #bd4d30; font-size: .67rem; font-weight: 800; letter-spacing: .06em; }
.media-topic-status { color: #698096; text-align: right; font-size: .58rem; }
.media-topic h4 { margin: 1.2rem 0 .5rem; color: var(--gm-navy); font-size: 1.06rem; font-weight: 700; }
.media-topic p { margin: 0; color: #53677e; font-size: .78rem; line-height: 1.7; }
.media-topic-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1.25rem; }
.media-topic-actions button { padding: .55rem .7rem; border: 1px solid #d8e3ee; border-radius: 7px; background: #f7f9fc; color: #0c3764; font-size: .67rem; font-weight: 700; cursor: pointer; }
.media-topic-actions button:first-child { border-color: #e8b3a1; background: #fff5f0; color: #a44228; }
.media-topic-actions button:hover { background: #e9f1fa; }
.media-topic-actions button:first-child:hover { background: #ffe2d8; }
.media-topic-actions .media-topic-select[aria-pressed="true"] { border-color: #f4623a; background: #f4623a; color: #fff; }
.media-topic-actions .media-topic-select[aria-pressed="true"]:hover { background: #d94e28; color: #fff; }
.media-topic-actions button:focus:not(:focus-visible) { outline: none; }
.media-topic-actions button:focus-visible { outline: 2px solid #174a76; outline-offset: 2px; }
.media-pending { max-width: 52rem; margin: 1.5rem auto 0; color: #62758a; font-size: .73rem; line-height: 1.7; text-align: center; }
.media-modal .modal-dialog { max-width: min(1050px, calc(100% - 2rem)); }
.media-modal .modal-content { overflow: hidden; border: 0; border-radius: 18px; background: #f3f7fb; box-shadow: 0 25px 75px #0006; }
.media-modal .modal-header { align-items: center; border-bottom: 1px solid #d9e4ef; padding: 1.2rem 1.5rem; }
.media-modal .modal-title { margin: .2rem 0 0; color: var(--gm-navy); font-size: 1.25rem; font-weight: 700; }
.media-modal .modal-body { padding: 1rem; max-height: calc(100vh - 11rem); overflow: auto; }
.media-modal video { display: block; width: 100%; max-height: calc(100vh - 13rem); background: #03142b; border-radius: 10px; }
.media-video-frame { position: relative; }
.media-video-frame[hidden], .media-volume-notice[hidden], .media-brochure-viewer[hidden], .media-modal-topic[hidden], .media-pdf-link[hidden] { display: none !important; }
.media-modal-topic { margin: .35rem 0 0; color: #4c6078; font-size: .72rem; font-weight: 600; }
.media-volume-notice { position: absolute; z-index: 2; top: 1rem; left: 50%; width: min(37rem, calc(100% - 2rem)); padding: .8rem 1.1rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(7, 28, 55, .94); box-shadow: 0 12px 32px rgba(0, 10, 28, .25); color: #fff; font-size: .82rem; font-weight: 600; line-height: 1.5; text-align: center; pointer-events: none; opacity: 0; transform: translate(-50%, -.4rem); transition: opacity .3s ease, transform .3s ease; }
.media-volume-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }
.media-brochure-document { display: block; width: 100%; height: clamp(18rem, calc(100dvh - 15rem), 47.5rem); border: 1px solid #d6e2ed; border-radius: 10px; background: #fff; }
.media-modal .modal-footer { position: relative; justify-content: center; gap: 1rem; padding: .8rem 1.5rem; color: #5d7086; font-size: .7rem; }
.media-modal-dismiss { min-width: 8rem; padding: .55rem 1.25rem; border: 1px solid #c8d8e6; border-radius: 9px; background: #fff; color: var(--gm-navy); font-size: .76rem; font-weight: 700; cursor: pointer; }
.media-modal-dismiss:hover { border-color: var(--gm-blue); background: #edf4f9; }
.media-modal-dismiss:focus-visible { outline: 2px solid var(--gm-blue); outline-offset: 2px; }
.media-pdf-link { color: #b34428; font-size: .75rem; font-weight: 700; }
.media-pdf-link:hover { color: #8d2c15; }
.media-modal-footer .media-pdf-link { position: absolute; right: 1.5rem; }

.representation-section { padding: 6.7rem 0 7.3rem; background: radial-gradient(circle at 93% 8%, #c9ddea 0, transparent 38%), linear-gradient(145deg, #e5f0f7 0%, #edf5fa 100%); border-top: 1px solid #dce7f1; }
.representation-heading { max-width: 46rem; margin: 0 auto 2.1rem; text-align: center; }
.representation-heading > p { margin: 0 0 .5rem; color: #b94527; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.representation-heading h2 { margin: 0 0 .65rem; color: var(--gm-navy); font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; }
.representation-heading > span { color: #405a73; font-size: .9rem; line-height: 1.65; }
.representation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.representation-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; min-height: 21rem; border: 1px solid #c9dce9; border-radius: 18px; background: #fff; box-shadow: 0 18px 35px rgba(4, 30, 62, .07); transition: transform .25s ease, box-shadow .25s ease; }
.representation-card:hover { transform: translateY(-4px); box-shadow: 0 24px 45px rgba(4, 30, 62, .14); }
.representation-card-image { position: relative; height: clamp(7rem, 15svh, 10rem); overflow: hidden; background: #e3edf4; }
.representation-card-image::after { position: absolute; inset: 35% 0 0; content: ''; background: linear-gradient(transparent, rgba(5, 26, 52, .42)); pointer-events: none; }
.representation-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.representation-card-image span { position: absolute; z-index: 1; right: 1rem; bottom: .8rem; padding: .3rem .55rem; border: 1px solid rgba(255,255,255,.55); border-radius: 5px; background: rgba(5, 26, 52, .82); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .09em; }
.representation-card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.3rem 1.55rem 1.4rem; }
.representation-card-label { margin-bottom: .45rem; color: #b94527; font-size: .63rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.representation-card h3 { margin: 0 0 .55rem; color: var(--gm-navy); font-size: 1.28rem; line-height: 1.25; font-weight: 700; }
.representation-card p { margin: 0; color: #425870; font-size: .78rem; line-height: 1.6; }
.representation-card button { margin-top: auto; padding: .9rem 0 0; border: 0; background: none; color: #ad3d21; font-size: .76rem; font-weight: 800; cursor: pointer; }
.representation-card button:hover { color: #842711; text-decoration: underline; text-underline-offset: 4px; }
.representation-card button:focus { outline: none; }
.representation-card button:focus-visible { outline: 2px solid var(--gm-orange); outline-offset: 4px; }

.representation-modal { --representation-gap: clamp(1rem, 3.2svh, 2.25rem); width: 100vw; padding-right: 0 !important; overflow-x: hidden; overflow-y: hidden; }
.representation-modal .modal-dialog { width: calc(100% - var(--representation-gap) - var(--representation-gap)); max-width: 1180px; margin: max(var(--representation-gap), calc((100svh - 760px) * .5)) auto; }
.representation-modal .modal-content { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(760px, calc(100svh - var(--representation-gap) - var(--representation-gap))); max-height: calc(100svh - var(--representation-gap) - var(--representation-gap)); overflow: hidden; border: 0; border-radius: 20px; background: #f4f8fb; box-shadow: 0 32px 90px rgba(0, 12, 29, .42); }
.representation-modal-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .52fr); align-items: center; gap: clamp(1rem, 3vw, 3rem); padding: clamp(1.1rem, 2.2vw, 2rem) clamp(4rem, 6vw, 6rem) clamp(1.1rem, 2.2vw, 2rem) clamp(1.5rem, 3vw, 3rem); background: linear-gradient(110deg, #082441, #123e68); color: #fff; }
.representation-modal-kicker { display: flex; align-items: center; gap: .8rem; margin-bottom: .45rem; color: #ffa284; font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.representation-modal-kicker span + span { padding-left: .8rem; border-left: 1px solid rgba(255,255,255,.35); color: #c4d8e9; }
.representation-modal .modal-title { margin: 0 0 .35rem; color: #fff; font-size: clamp(1.6rem, 2.7vw, 2.65rem); font-weight: 800; line-height: 1.17; letter-spacing: -.035em; }
.representation-modal-description { max-width: 58ch; margin: 0; color: #e3edf5; font-size: .84rem; line-height: 1.5; }
.representation-modal-details { min-width: 0; }
.representation-modal-area-label { display: block; margin-bottom: .4rem; color: #bbd1e4; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.representation-modal-areas { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .65rem; padding: 0; list-style: none; }
.representation-modal-areas li { padding: .27rem .48rem; border: 1px solid rgba(219,235,247,.35); border-radius: 5px; color: #fff; font-size: .63rem; font-weight: 600; }
.representation-modal-contact { display: inline-flex; align-items: center; gap: .45rem; color: #ffb49c; font-size: .74rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.representation-modal-contact:hover { color: #fff; }
.representation-modal-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: #092843; color: #fff; font-size: 1.6rem; line-height: 1; }
.representation-modal-close:hover { background: var(--gm-orange); }
.representation-modal-close:focus-visible, .representation-modal-contact:focus-visible, .representation-modal-dismiss:focus-visible { outline: 3px solid #ffae94; outline-offset: 3px; }
.representation-modal-media { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; margin: clamp(.55rem, 1.2vw, 1.1rem); overflow: hidden; border: 1px solid #cbdde9; border-radius: 12px; background: #e9f1f7; }
.representation-modal-image-scroll { display: flex; justify-content: center; align-items: center; min-height: 0; overflow: auto; }
.representation-modal-image-scroll img { display: block; width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; box-shadow: 0 4px 18px rgba(9, 39, 69, .11); }
.representation-modal-media figcaption { padding: .35rem .7rem; border-top: 1px solid #e0e9f0; color: #52677c; font-size: .62rem; text-align: center; }
.representation-modal-footer { display: flex; justify-content: center; padding: .55rem 1rem .85rem; }
.representation-modal-dismiss { min-width: 9rem; padding: .48rem 1rem; border: 1px solid #a8c0d3; border-radius: 8px; background: #fff; color: var(--gm-navy); font-size: .74rem; font-weight: 700; cursor: pointer; }
.representation-modal-dismiss:hover { border-color: var(--gm-blue); background: #e6f0f7; }


.contact-section {
    padding: 7rem 0;
    background: linear-gradient(105deg, rgba(4, 23, 48, .68), rgba(6, 39, 72, .43)), url('../assets/img/Santiago.jpg') center / cover;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}
.contact-grid > * { min-width: 0; }

.contact-eyebrow { color: #ffad92; }
.contact-intro h2 {
    margin: 0 0 1.5rem;
    color: #fff;
    font-size: clamp(2.5rem, 4.4vw, 4rem);
    font-weight: 800;
    letter-spacing: -.04em;
    text-shadow: 0 2px 14px rgba(0, 12, 28, .45);
}
.contact-intro > p:not(.contact-eyebrow) {
    max-width: 34rem;
    color: #e2ebf4;
    font-size: 1rem;
    line-height: 1.9;
    text-shadow: 0 1px 8px rgba(0, 12, 28, .55);
}
.contact-topics {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.35rem;
    margin: 1.8rem 0 0;
    padding: 1.15rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .28);
    list-style: none;
}
.contact-topics li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #eef5fb;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0, 12, 28, .5);
}
.contact-topics li::before {
    content: '';
    flex: none;
    width: .35rem;
    height: .35rem;
    border-radius: 50%;
    background: #ff9a77;
}

.contacto.contact-card {
    width: 100%;
    margin: 0;
    padding: clamp(1.6rem, 3.6vw, 3rem);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 65px rgba(0, 8, 27, .28);
}
.contact-card h3 {
    margin: 0;
    color: var(--gm-navy);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -.025em;
}
.contact-card .contact-card-intro {
    margin: .7rem 0 1.8rem;
    color: #5a687a;
    font-size: .85rem;
    line-height: 1.7;
}
.contact-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 1.1rem;
}
.contacto .contact-field {
    min-width: 0;
    margin: 0;
}
.contact-field:nth-child(n + 3) { grid-column: 1 / -1; }
.contact-card .contact-field label {
    display: block;
    margin-bottom: .45rem;
    color: #243751;
    font-size: .78rem;
    font-weight: 600;
}
.contact-field label span { color: #ce4e2f; }
.contact-card .contact-field input,
.contact-card .contact-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 3rem;
    padding: .75rem .9rem;
    border: 1px solid #cbd5e0;
    border-radius: 9px;
    background: #f8fafc;
    box-shadow: none;
    color: var(--gm-navy);
    font-size: .9rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.contact-card .contact-field input:focus,
.contact-card .contact-field textarea:focus {
    outline: none;
    border-color: var(--gm-orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(244, 98, 58, .16);
}
.contact-card .contact-field [aria-invalid='true'] { border-color: #c84030; }
.contact-card .contact-required {
    margin: 1.1rem 0 0;
    color: #637389;
    font-size: .73rem;
}
.contact-card .contact-feedback { display: none; margin: 1rem 0 0; padding: .75rem .9rem; border-radius: 8px; font-size: .78rem; line-height: 1.5; }
.contact-card .contact-feedback.is-error { display: block; background: #fff0eb; color: #9a351d; }
.contact-card .contact-feedback.is-success { display: block; background: #eaf6ee; color: #20643a; }
.contact-submit,
.contact-submit:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    margin-top: 1.3rem;
    padding: .85rem 1.3rem;
    border: 1px solid var(--gm-blue);
    border-radius: 10px;
    background: var(--gm-blue);
    color: #fff;
    font-size: .84rem;
    font-weight: 700;
}
.contact-submit:hover { background: var(--gm-navy); border-color: var(--gm-navy); }
.contact-submit:disabled { opacity: .7; cursor: wait; }

.site-footer {
    padding: 1.5rem 0;
    background: #05162b;
    color: #dae4ef;
}
.site-footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem 2rem;
    text-align: center;
    font-size: .76rem;
}
.site-version {
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.section-jump-rail {
    position: fixed;
    z-index: 1020;
    right: clamp(.65rem, 1.6vw, 1.4rem);
    bottom: clamp(.5rem, 2vh, 1.25rem);
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: .28rem;
    border: 1px solid #d8e6f1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 14px 36px rgba(7, 28, 55, .18);
    font-family: 'Poppins', sans-serif;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(.65rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.section-jump-rail.is-visible { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.section-jump-rail a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    min-height: 2.65rem;
    padding: .55rem .78rem;
    border-radius: 999px;
    color: var(--gm-navy);
    font-size: .74rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}
.section-jump-rail a:hover { background: #edf4f9; color: #b84224; text-decoration: none; }
.section-jump-rail a:focus-visible { outline: 2px solid var(--gm-orange); outline-offset: 2px; }
.section-jump-rail svg { width: 1rem; height: 1rem; flex: none; }
.section-jump-rail svg.is-return { transform: rotate(180deg); }

@media (max-width: 991.98px) {
    .section-jump-rail { bottom: calc(.25rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
    .section-jump-rail { right: .65rem; gap: .1rem; padding: .2rem; }
    .section-jump-rail a { width: 2.6rem; min-height: 2.6rem; padding: 0; }
    .section-jump-rail a span { display: none; }
    .section-jump-rail svg { width: 1.1rem; height: 1.1rem; }
}

@media (min-width: 992px) {
    #about, #services, #media, #portfolio, #contact {
        display: grid;
        align-items: center;
        min-height: calc(100svh - 4.15rem);
    }
    .about-section { padding: clamp(2rem, 4svh, 3rem) 0; }
    .about-cards { margin-top: 1rem; }
    .about-card { min-height: 12rem; padding: 1.5rem; }
    .about-card-number { margin-bottom: .8rem; }
    .about-action { margin-top: .9rem; }
    #services { padding: clamp(2.5rem, 5svh, 3.8rem) 0; }
    #services .row > div { display: flex; }
    #services .row > div > .mt-5 { width: 100%; margin-top: .85rem !important; padding: 1rem .7rem; border: 1px solid #dfe7ef; border-radius: 14px; background: #f8fafc; }
    #services .fa-4x { font-size: 2.25rem; }
    #services .mb-4 { margin-bottom: .6rem !important; }
    #services h3 { font-size: 1rem; font-weight: 700; }
    #services p { font-size: .77rem; line-height: 1.5; }
    .media-section { padding: clamp(2.3rem, 5svh, 3rem) 0; }
    .media-heading { margin-bottom: 1.1rem; }
    .media-heading h2 { margin: .2rem 0 .4rem; font-size: 2.2rem; }
    .media-heading p:last-child { font-size: .78rem; line-height: 1.5; }
    .media-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 1rem; }
    .media-feature { grid-template-columns: 1fr; }
    .media-feature-art, .media-feature-art img { height: clamp(10rem, 22svh, 12rem); min-height: 0; }
    .media-play { width: 3.2rem; height: 3.2rem; font-size: .9rem; }
    .media-feature-copy { padding: 1rem 1.2rem; }
    .media-feature-copy h3 { margin: .4rem 0; font-size: 1.25rem; line-height: 1.25; }
    .media-feature-copy p { margin: 0 0 .7rem; font-size: .72rem; line-height: 1.45; }
    .media-primary, .media-secondary, .media-primary:hover, .media-secondary:hover { padding: .55rem .8rem; font-size: .68rem; }
    .media-library-heading { display: block; margin: 0 0 .6rem; }
    .media-library-heading h3 { font-size: 1.18rem; }
    .media-library-heading p { display: block; max-width: none; margin-top: .2rem; font-size: .64rem; line-height: 1.4; }
    .media-library { grid-template-columns: 1fr; gap: .45rem; }
    .media-topic { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; min-height: 0; padding: .55rem .75rem; border-radius: 10px; }
    .media-topic-top { grid-column: 1; font-size: .58rem; }
    .media-topic-status, .media-topic p { display: none; }
    .media-topic h4 { grid-column: 1; margin: .1rem 0 0; font-size: .86rem; }
    .media-topic-actions { grid-column: 2; grid-row: 1 / 3; flex-wrap: nowrap; align-items: center; margin: 0; padding: 0; gap: .25rem; }
    .media-topic-actions button { padding: .35rem .45rem; font-size: .62rem; white-space: nowrap; }
    .media-pending { margin-top: .9rem; font-size: .67rem; }
    .representation-section { padding: clamp(2.5rem, 5svh, 3.4rem) 0; }
    .representation-heading { margin-bottom: 1.5rem; }
    .representation-card { min-height: 20rem; }
    .representation-card-image { height: 7rem; }
    .contact-section { padding: clamp(2.5rem, 5svh, 3rem) 0; }
    .contacto.contact-card { padding: clamp(1.4rem, 2.5vw, 2rem); }
    .contact-card .contact-card-intro { margin-bottom: 1.2rem; }
    .contact-fields { gap: .85rem; }
}

@media (min-width: 992px) and (max-height: 800px) {
    header.masthead { padding-top: clamp(5rem, 9svh, 6.2rem); padding-bottom: 1rem; }
}

@media (min-width: 992px) and (max-height: 760px) {
    .about-section, .contact-section { padding-top: 1.5rem; padding-bottom: 1.5rem; }
}

@media (min-width: 992px) and (max-height: 680px) {
    header.masthead { padding-top: 4.6rem; padding-bottom: .75rem; }
    .hero-detail { margin-top: .85rem; }
    #media > .container { margin-bottom: 2.5rem; }

    .about-section, #services, .media-section, .representation-section, .contact-section { padding-top: 1rem; padding-bottom: 1rem; }
    #services .divider { margin-top: .55rem !important; margin-bottom: .65rem !important; }
    #services .service-intro { margin-bottom: .55rem; }
    .about-eyebrow { margin-bottom: .5rem; }
    .about-intro h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); line-height: 1.15; }
    .about-summary { margin-top: .5rem; font-size: .9rem; line-height: 1.5; }
    .about-cards { margin-top: .7rem; }
    .about-card { min-height: 0; padding: 1rem; }
    .about-card-number { margin-bottom: .5rem; }
    .about-card h3 { margin-bottom: .5rem; font-size: 1.15rem; line-height: 1.25; }
    .about-card p { font-size: .84rem; line-height: 1.5; }
    .about-action { margin-top: .6rem; }
    .about-button, .about-button:hover { padding: .65rem 1rem; }

    .media-heading { margin-bottom: .5rem; }
    .media-heading h2 { font-size: 1.7rem; }
    .media-heading p:last-child { font-size: .72rem; line-height: 1.4; }
    .media-feature-art, .media-feature-art img { height: 7.5rem; }
    .media-feature-copy { padding: .75rem 1rem; }
    .media-feature-copy h3 { font-size: 1.05rem; }
    .media-feature-copy p { margin-bottom: .4rem; font-size: .68rem; }
    .media-library-heading h3 { font-size: 1rem; }
    .media-library { gap: .35rem; }
    .media-topic { padding: .35rem .6rem; }
    .media-topic h4 { font-size: .78rem; }
    .media-topic-actions button { padding: .25rem .35rem; font-size: .58rem; }
    .media-pending { margin-top: .5rem; font-size: .62rem; line-height: 1.45; }

    .contact-grid { gap: 2rem; }
    .contacto.contact-card { padding: 1.1rem; }
    .contact-card .contact-card-intro { margin: .3rem 0 .7rem; }
    .contact-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
    .contact-field:nth-child(n + 3) { grid-column: auto; }
    .contact-field:nth-child(4) { grid-column: 1 / -1; }
    .contact-card .contact-field label { margin-bottom: .2rem; font-size: .72rem; }
    .contact-card .contact-field input, .contact-card .contact-field textarea { min-height: 2.4rem; padding: .5rem .65rem; }
    .contact-card .contact-field textarea { height: 5rem; }
    .contact-card .contact-required { margin-top: .5rem; }
    .contact-submit, .contact-submit:hover { margin-top: .6rem; padding: .6rem 1rem; }
}

@media (max-width: 991.98px) {
    section[id] { scroll-margin-top: 4.5rem; }
    #mainNav .nav-shell { flex-wrap: wrap; }
    #mainNav .navbar-collapse { width: 100%; }
    #mainNav .navbar-nav {
        align-items: stretch;
        gap: .2rem;
        margin: .85rem 0 .2rem !important;
        padding: .55rem;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 14px;
        background: #103c68;
        box-shadow: 0 16px 38px rgba(8, 34, 61, .22);
    }
    #mainNav .navbar-nav .nav-item .nav-link,
    #mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link {
        padding: .75rem .85rem;
        font-size: .9rem;
    }
    #mainNav .navbar-nav .nav-contact { margin: .35rem 0 0; }
    #mainNav .navbar-nav .nav-item.nav-contact > .nav-link { width: 100%; text-align: center; }
    header.masthead { display: block; min-height: 0; padding: 8rem 0 4rem; }
    .hero-grid { grid-template-columns: 1fr; }
    header.masthead h1 { max-width: 18ch; }
    .hero-visual { max-width: 39rem; }
    .hero-image-frame { height: auto; aspect-ratio: 1.25 / 1; }
    .hero-detail { margin-top: 4rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-intro { max-width: 40rem; }
    .media-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .representation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    #mainNav .navbar-brand,
    #mainNav.navbar-scrolled .navbar-brand { font-size: .98rem; }
    #mainNav .navbar-brand img { width: 32px; height: 32px; }
    header.masthead { padding: 7.2rem 0 3.5rem; }
    header.masthead h1 { max-width: none; font-size: clamp(1.65rem, 8vw, 3.1rem); }
    header.masthead .hero-eyebrow { font-size: .63rem; letter-spacing: .09em; }
    header.masthead .hero-values { line-height: 1.7; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-visual-caption { right: .55rem; bottom: -.8rem; }
    .hero-detail { grid-template-columns: 1fr; gap: .85rem; margin-top: 3.25rem; }
    .page-section h2 { font-size: clamp(1.45rem, 6.5vw, 2rem); }
    .about-section,
    .contact-section { padding: 5rem 0; }
    .about-cards { grid-template-columns: 1fr; margin-top: 2.5rem; }
    .about-card { min-height: 0; }
    .media-section { padding: 5rem 0; }
    .media-heading, .media-library-heading { display: block; }
    .media-heading-aside { width: max-content; margin-top: 1.5rem; }
    .media-feature { grid-template-columns: 1fr; }
    .media-feature-art, .media-feature-art img { min-height: 15rem; }
    .media-library-heading p { margin-top: .6rem; }
    .media-library { grid-template-columns: 1fr; }
    .media-topic { min-height: 0; }
    .media-modal .modal-dialog { max-width: calc(100% - 1rem); margin: .5rem auto; }
    .media-modal-footer { flex-direction: column; }
    .media-modal-footer .media-pdf-link { position: static; }
    .media-volume-notice { top: .55rem; width: calc(100% - 1rem); padding: .6rem .7rem; font-size: .69rem; }
    .representation-section { padding: 5rem 0; }
    .representation-grid { grid-template-columns: 1fr; }
    .representation-card { min-height: 0; }
    .representation-modal .modal-dialog { margin: var(--representation-gap) auto; }
    .representation-modal .modal-content { height: calc(100svh - var(--representation-gap) - var(--representation-gap)); border-radius: 14px; }
    .representation-modal-header { grid-template-columns: 1fr; gap: .55rem; padding: 1rem 3.5rem .9rem 1rem; }
    .representation-modal .modal-title { font-size: 1.55rem; }
    .representation-modal-description { font-size: .76rem; line-height: 1.4; }
    .representation-modal-area-label { margin-bottom: .25rem; }
    .representation-modal-areas { margin-bottom: .4rem; }
    .representation-modal-close { top: .7rem; right: .7rem; width: 2.25rem; height: 2.25rem; }
    .representation-modal-image-scroll { justify-content: flex-start; align-items: flex-start; }
    .representation-modal-image-scroll img { width: max(100%, 900px); max-width: none; max-height: none; }
    .representation-modal-media figcaption { font-size: .58rem; }
    .contact-fields { grid-template-columns: 1fr; }
    .contact-field:nth-child(n + 3) { grid-column: auto; }
    .contact-submit { width: 100%; }
    .site-footer-content { justify-content: center; text-align: center; }
}

@media (max-width: 991.98px) {
    .mobile-page-hidden { display: none !important; }
    header.masthead.mobile-paged-section {
        display: grid;
        align-items: center;
        min-height: 100svh;
        padding: 5.1rem 0 1rem;
    }
    .page-section.mobile-paged-section {
        display: grid;
        align-items: center;
        min-height: calc(100svh - 4rem);
        padding: 1rem 0;
    }
    .mobile-paged-section > .container { width: 100%; }
    .mobile-paged-section .hero-detail { margin-top: 0; }
    .mobile-paged-section .hero-image-frame { aspect-ratio: 1.5 / 1; }
    .mobile-paged-section .about-cards { margin-top: .9rem; }
    .mobile-paged-section .about-card { padding: 1.15rem; }
    .mobile-paged-section .about-card-number { margin-bottom: .6rem; }
    .mobile-paged-section .about-card h3 { margin-bottom: .5rem; font-size: 1.16rem; }
    .mobile-paged-section .about-card p { font-size: .84rem; line-height: 1.5; }
    .mobile-paged-section .about-summary { margin-top: .65rem; font-size: .88rem; line-height: 1.5; }
    .mobile-paged-section .about-action { margin-top: .85rem; }
    .mobile-paged-section .about-button, .mobile-paged-section .about-button:hover { padding: .7rem 1rem; }
    .mobile-paged-section .media-heading { margin-bottom: .75rem; }
    .mobile-paged-section .media-heading h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    .mobile-paged-section .media-heading p:last-child { font-size: .76rem; line-height: 1.45; }
    .mobile-paged-section .media-heading-aside { margin-top: .5rem; padding: .5rem .7rem; }
    .mobile-paged-section .media-feature-art, .mobile-paged-section .media-feature-art img { height: 9rem; min-height: 0; }
    .mobile-paged-section .media-feature-copy { padding: 1rem; }
    .mobile-paged-section .media-feature-copy h3 { font-size: 1.16rem; }
    .mobile-paged-section .media-feature-copy p { margin-bottom: .75rem; font-size: .76rem; line-height: 1.5; }
    .mobile-paged-section .media-library-heading { margin: 0 0 .7rem; }
    .mobile-paged-section .media-library-heading h3 { font-size: 1.12rem; }
    .mobile-paged-section .media-library-heading p { margin-top: .35rem; font-size: .72rem; line-height: 1.4; }
    .mobile-paged-section .media-library { gap: .6rem; }
    .mobile-paged-section .media-topic { padding: 1rem; }
    .mobile-paged-section .media-topic h4 { margin: .65rem 0 .35rem; }
    .mobile-paged-section .media-topic p { font-size: .72rem; line-height: 1.45; }
    .mobile-paged-section .media-topic-actions { padding-top: .7rem; }
    .mobile-paged-section .media-pending { margin-top: .7rem; font-size: .65rem; line-height: 1.45; }
    .mobile-paged-section .representation-heading { margin-bottom: 1rem; }
    .mobile-paged-section .contact-grid { gap: 0; }
    .mobile-paged-section .contacto.contact-card { padding: 1rem; }
    .mobile-paged-section .contact-card .contact-card-intro { margin: .4rem 0 .8rem; }
    .mobile-paged-section .contact-fields { gap: .65rem; }
    .mobile-paged-section .contact-card .contact-field textarea { height: 6rem; }
    .mobile-paged-section .contact-card .contact-required { margin-top: .55rem; }
    .mobile-paged-section .contact-submit { margin-top: .75rem; }

    .section-pager { display: flex; align-items: center; justify-content: center; gap: .65rem; margin-top: .8rem; }
    .section-pager[hidden] { display: none !important; }
    .section-pager button { min-height: 2.75rem; padding: .55rem .75rem; border: 1px solid #b8c9d9; border-radius: 9px; background: #fff; color: var(--gm-navy); font-size: .72rem; font-weight: 700; cursor: pointer; }
    .section-pager button:hover:not(:disabled) { border-color: var(--gm-orange); color: #b84224; }
    .section-pager button:disabled { opacity: .45; cursor: default; }
    .section-pager button:focus-visible { outline: 2px solid var(--gm-orange); outline-offset: 2px; }
    .section-pager-status { min-width: 3.3rem; color: #53677e; font-size: .72rem; font-weight: 700; text-align: center; }
    header.masthead .section-pager button, .about-section .section-pager button { border-color: rgba(255,255,255,.5); background: rgba(8,31,59,.42); color: #fff; }
    header.masthead .section-pager-status, .about-section .section-pager-status { color: #fff; }
    .contact-section .section-pager button { border-color: rgba(255,255,255,.5); background: rgba(8,31,59,.42); color: #fff; }
    .contact-section .section-pager-status { color: #fff; }
}

@media (max-width: 359px), (max-height: 759px) and (max-width: 991.98px) {
    header.masthead.mobile-paged-section { padding-top: 4.5rem; }
    .mobile-paged-section .media-heading { margin-bottom: .35rem; }
    .mobile-paged-section .media-heading p:last-child { font-size: .7rem; line-height: 1.35; }
    .mobile-paged-section .media-heading-aside { margin-top: .3rem; padding: .3rem .5rem; }
    .mobile-paged-section .media-heading-aside span { font-size: 1.1rem; }
    .mobile-paged-section .media-feature-art, .mobile-paged-section .media-feature-art img { height: 5rem; }
    .mobile-paged-section .media-feature-copy { padding: .55rem; }
    .mobile-paged-section .media-feature-copy h3 { margin: .3rem 0 .45rem; font-size: 1rem; }
    .mobile-paged-section .media-feature-copy p { margin-bottom: .45rem; font-size: .72rem; }
    .mobile-paged-section .media-feature-actions { flex-wrap: nowrap; gap: .35rem; }
    .mobile-paged-section .media-feature-actions button { min-height: 2.75rem; padding: .55rem .4rem; font-size: .62rem; }
    .mobile-paged-section .media-pending { margin-top: .4rem; font-size: .6rem; line-height: 1.3; }
    .mobile-paged-section .section-pager { margin-top: .4rem; }
    .mobile-paged-section .contacto.contact-card { padding: .75rem; }
    .mobile-paged-section .contact-fields { gap: .4rem; }
    .mobile-paged-section .contact-card .contact-field input { min-height: 2.75rem; }
    .mobile-paged-section .contact-card .contact-field textarea { height: 5rem; }
    .mobile-paged-section .contact-submit { margin-top: .5rem; }
}

@media (min-width: 640px) and (max-width: 991.98px) {
    .page-section.mobile-paged-section { min-height: calc(100svh - 4.15rem); }
}

@media (min-width: 640px) and (max-width: 991.98px) and (max-height: 760px) {
    .mobile-paged-section .representation-grid { grid-template-columns: 1fr; max-width: 42rem; margin-inline: auto; }
    .mobile-paged-section .representation-card { min-height: 0; }
    .mobile-paged-section .representation-card-image { height: 6rem; }
}

@media (max-width: 359px) and (max-height: 619px) {
    .mobile-paged-section .representation-heading { margin-bottom: .5rem; }
    .mobile-paged-section .representation-card-image { height: 5rem; }
    .mobile-paged-section .representation-card-content { padding: 1rem; }
    .mobile-paged-section .representation-card h3 { font-size: 1.05rem; }
    .mobile-paged-section .representation-card p { font-size: .75rem; line-height: 1.5; }
    .mobile-paged-section .representation-card button { padding-top: .7rem; }
}

@media (max-width: 479px) and (max-height: 719px) {
    .mobile-paged-section .media-feature-art,
    .mobile-paged-section .media-feature-art img { height: clamp(9rem, 27svh, 11rem); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy,
    .hero-visual,
    .hero-detail-heading,
    .hero-detail-text { animation: none; }
    .reveal-ready .reveal-card,
    .reveal-ready .hero-detail .reveal-card { opacity: 1; transform: none; transition: none; }
    .reveal-ready .hero-detail .reveal-card.is-visible { animation: none; }
    .hero-button,
    .hero-detail-heading,
    .hero-detail-text,
    #mainNav,
    #mainNav .navbar-nav .nav-item .nav-link,
    .representation-modal-contact { transition: none; }
    .representation-modal-contact:hover { transform: none; }
    .section-jump-rail, .section-jump-rail a { transition: none; }
    .media-volume-notice { transition: none; }
}
