/* Tokens: proposed visual direction, pending human approval. */
:root {
  --ink: #191b3c;
  --paper: #faf9f6;
  --blue-tint: #eceef6;
  --accent: #af1f35;
  --rose-tint: #f4e8e7;
  --muted: #595d73;
  --line: #d2d4df;
  --control-border: #73758b;
  --button-radius: 12px;
  --display: Georgia, 'Times New Roman', serif;
  --body: Arial, Helvetica, sans-serif;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button { color: inherit; border-radius: var(--button-radius); }
img, svg { display: block; max-width: 100%; }
button:disabled { cursor: not-allowed; }
button:not(:disabled), summary, select { cursor: pointer; }
button, a, summary, input, select { touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--display); letter-spacing: -.045em; }
h1 { font-size: clamp(46px, 5.5vw, 80px); line-height: 1.06; }
h2 { font-size: clamp(36px, 3.8vw, 54px); line-height: 1.12; }
h3 { font-family: var(--display); letter-spacing: -.035em; font-size: 34px; line-height: 1.2; }
em { font-weight: 400; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; box-shadow: 0 0 0 2px var(--paper); }
main:focus { outline: none; }
::selection { background: var(--blue-tint); color: var(--ink); }
.container { width: calc(100% - 96px); max-width: var(--container); margin-inline: auto; }
.section-space { padding-block: 100px; }
.eyebrow { font-size: 12px; line-height: 1.5; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-line { width: 32px; height: 1px; flex-shrink: 0; background: currentColor; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px 20px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Shared shell. Mobile navigation remains visible without JavaScript. */
.review-bar { background: #eceef6; border-bottom: 1px solid #d5d8e4; font-size: 12px; }
.review-bar__inner { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.review-bar__label { display: flex; align-items: center; gap: 10px; }
.review-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.review-bar a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; white-space: nowrap; }
.review-bar a:hover { text-decoration: underline; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 136px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand__logo { width: 112px; height: 112px; object-fit: contain; flex-shrink: 0; }
.brand__copy { display: flex; flex-direction: column; }
.brand__name { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.055em; }
.brand__context { font-size: 14px; letter-spacing: .005em; margin-top: 7px; line-height: 1.4; }
.primary-navigation { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.primary-navigation a { display: flex; align-items: center; min-height: 48px; white-space: nowrap; font-size: 14px; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.header-access { position: relative; flex-shrink: 0; z-index: 10; }
.header-access > summary { min-height: 48px; padding: 10px 14px; font-size: 14px; cursor: pointer; list-style: none; white-space: nowrap; gap: 12px; }
.header-access > summary::-webkit-details-marker { display: none; }
.access-chevron { display: block; width: 14px; height: 11px; flex: 0 0 14px; fill: currentColor; transition: transform .15s ease; }
.header-access[open] .access-chevron { transform: rotate(180deg); }
.access-dropdown { position: absolute; top: calc(100% + 12px); right: 0; width: 300px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 36px rgb(25 27 60 / 14%); }
.capec-access-link { display: flex; flex-direction: column; gap: 4px; min-height: 48px; padding: 14px; border-radius: 8px; text-decoration: none; }
.capec-access-link:hover { background: var(--blue-tint); }
.capec-access-name { font-size: 15px; font-weight: 700; }
.capec-access-description { color: var(--muted); font-size: 13px; line-height: 1.5; }
.access-heading { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.mobile-access { display: none; }
.menu-toggle { display: none; width: 48px; height: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 50%; background: transparent; align-items: center; justify-content: center; padding: 0; }
.menu-toggle:hover { background: var(--blue-tint); }
.menu-icon { display: flex; flex-direction: column; width: 20px; gap: 4px; }
.menu-icon span { display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor; }

/* Controls. Disabled WhatsApp is intentionally distinguishable. */
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border-radius: var(--button-radius); border: 1px solid transparent; padding: 13px 20px; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.4; }
.button--primary { color: var(--paper); background: var(--ink); }
.button--primary:not(:disabled):hover { background: #2b2e56; }
.button--primary:disabled { color: #646779; background: #e2e3ea; border-color: #c8cad5; }
.button--whatsapp { color: #646779; background: transparent; border-color: #b5b7c6; }
.button--whatsapp:disabled { border-style: dashed; }
.button--whatsapp-active { color: #fff; background: #246447; border-color: #246447; }
.button--whatsapp-active:hover { background: #194e35; border-color: #194e35; }
.button--outline { color: var(--ink); border-color: var(--control-border); background: transparent; }
.button--outline:hover { background: #e8eaf3; }
.button__arrow { margin-left: auto; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.text-link { border-radius: var(--button-radius); display: inline-flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 24px; font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Hero: editorial typography and a local abstract illustration. */
.hero { padding-block: 60px 72px; display: grid; grid-template-columns: 1.12fr 1fr; gap: 52px; align-items: center; }
.hero-copy { padding-block: 22px; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero h1 em { color: var(--accent); }
.hero-intro { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 445px; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-channel-note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.hero-caption { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin-top: 36px; }
.caption-mark { color: var(--accent); font-size: 24px; line-height: 1; }
.hero-art { position: relative; height: 565px; border-radius: 160px 4px 4px 4px; background: var(--blue-tint); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.hero-art img { position: absolute; width: 105%; max-width: none; left: -2.5%; top: 18px; height: calc(100% - 50px); object-fit: contain; }
.hero-art__top, .hero-art__bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.hero-art__top { margin: 48px 30px 0 64px; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.hero-art__bottom { padding: 0 32px 30px; }
.hero-art__bottom > span:first-child { font-family: var(--display); font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.art-arrow { font-size: 34px; }

/* Academic paths have equal visual weight. */
.offer-section { border-top: 1px solid var(--line); background: #f1f2f7; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-heading .eyebrow { margin-bottom: 16px; }
.section-heading > p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 5px; }
.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.program-card { padding: 30px 34px 26px; border-radius: 4px; min-width: 0; }
.program-card--blue { background: #e5e8f2; }
.program-card--rose { background: var(--rose-tint); }
.program-card__top { display: flex; align-items: center; justify-content: space-between; }
.program-symbol { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #959ab1; border-radius: 50%; font-size: 20px; }
.program-card__illustration { position: relative; height: 157px; margin-top: 18px; overflow: hidden; }
.illustration--steps { display: flex; align-items: flex-end; justify-content: center; }
.illustration--steps span { width: 56px; background: var(--paper); border: 1px solid #c1c6d8; border-bottom: 0; transform: skewY(-10deg); }
.illustration--steps span:nth-child(1) { height: 42px; }
.illustration--steps span:nth-child(2) { height: 72px; }
.illustration--steps span:nth-child(3) { height: 102px; }
.illustration--steps span:nth-child(4) { height: 132px; }
.illustration--steps i { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); left: calc(50% - 106px); top: 15px; }
.illustration--arch span { position: absolute; bottom: -37px; height: 175px; border-radius: 100px 100px 0 0; border: 1px solid #c9b1b6; background: var(--paper); }
.illustration--arch span:nth-child(1) { width: 224px; left: calc(50% - 112px); }
.illustration--arch span:nth-child(2) { width: 166px; height: 151px; left: calc(50% - 83px); background: var(--rose-tint); }
.illustration--arch span:nth-child(3) { width: 108px; height: 126px; left: calc(50% - 54px); background: var(--paper); }
.illustration--arch i { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); left: calc(50% + 93px); top: 14px; }
.program-card h3 { margin-top: 24px; font-size: 38px; }
.program-card > p { max-width: 350px; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.program-card > .text-link { display: flex; margin-top: 24px; padding-top: 20px; border-top: 1px solid #b9bfd2; }
.program-card--rose > .text-link { border-color: #d0b8bc; }
.editorial-note { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14px; margin-top: 24px; max-width: 800px; }
.status-dot { flex-shrink: 0; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }

/* Institutional and contact sections. */
.about-section { padding-block: 88px; background: var(--ink); color: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 100px; align-items: center; }
.about-grid .eyebrow { color: #eceef6; margin-bottom: 25px; }
.about-grid h2 { font-size: clamp(34px, 3.8vw, 54px); }
.about-grid h2 em { color: var(--blue-tint); }
.about-copy { max-width: 370px; }
.about-copy > p { font-size: 16px; color: #e5e7f0; }
.about-asterisk { font-size: 42px; color: var(--blue-tint); line-height: 1; display: block; margin-bottom: 22px; }
.about-copy > .about-pending { margin-top: 25px; padding-top: 18px; border-top: 1px solid #666b8b; font-size: 14px; }
.about-pending span { color: #eceef6; font-size: 14px; }
.faq-section { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; }
.faq-intro .eyebrow { margin-bottom: 18px; }
.faq-intro > p:last-child { color: var(--muted); font-size: 15px; margin-top: 22px; }
.faq-list { border-top: 1px solid #b8bfd1; }
.faq-list details { border-bottom: 1px solid #b8bfd1; }
.faq-list summary { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; font-size: 16px; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { width: 24px; text-align: center; flex-shrink: 0; font-size: 24px; font-weight: 400; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-answer { color: var(--muted); font-size: 15px; line-height: 1.8; padding: 0 34px 25px 0; }
.contact-section { padding-bottom: 80px; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 64px; padding: 52px 56px; border: 1px solid #b6bdd1; border-radius: 4px; background: #e9ecf5; }
.contact-panel .eyebrow { margin-bottom: 18px; }
.contact-panel h2 { font-size: clamp(32px, 3.4vw, 48px); }
.contact-panel h2 em { color: var(--accent); }
.contact-panel > div > p:last-child { margin-top: 20px; max-width: 470px; font-size: 15px; color: var(--muted); }
.contact-action { flex-shrink: 0; max-width: 230px; }
.contact-action .button { min-width: 208px; }
.contact-action .pending-note { font-size: 14px; line-height: 1.6; margin-top: 12px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; gap: 32px; padding-block: 52px; }
.footer-heading { font-family: var(--display); font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.footer-address { margin-top: 16px; color: var(--muted); font-size: 14px; font-style: normal; line-height: 1.7; }
.footer-address p { margin: 0; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-navigation { display: flex; flex-direction: column; gap: 22px; }
.footer-access { padding-top: 20px; border-top: 1px solid var(--line); }
.footer-access .access-heading { color: var(--muted); margin-bottom: 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; gap: 20px; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 22px; font-size: 12px; color: var(--muted); }

/* Representative academic page. */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 22px; font-size: 13px; }
.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }
.breadcrumb > span[aria-hidden] { color: #727990; }
.hero--academic { padding-top: 30px; }
.hero--academic h1 { font-size: clamp(46px, 5.3vw, 76px); }
.hero-art--academic { background: #f1e2e3; border-radius: 4px 160px 4px 4px; }
.hero-art--academic .hero-art__top { margin-left: 32px; margin-right: 64px; }
.academic-information { background: #f1f2f7; border-block: 1px solid var(--line); }
.information-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.information-grid article { padding: 30px; border: 1px solid #bfc5d8; border-radius: 4px; }
.information-index { font-size: 12px; color: var(--accent); font-weight: 700; }
.information-grid h3 { margin-top: 30px; font-size: 32px; }
.information-grid p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.pending-tag { display: inline-flex; align-items: center; min-height: 30px; color: #535c78; border: 1px solid #bfc5d8; border-radius: 3px; font-size: 12px; padding: 3px 10px; background: #e4e8f4; }
.information-grid .pending-tag { margin-top: 28px; }
.academic-journey { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; }
.journey-heading .eyebrow { margin-bottom: 20px; }
.journey-heading > p:last-child { margin-top: 24px; max-width: 350px; font-size: 15px; color: var(--muted); }
.journey-list { list-style: none; margin: 0; padding: 0; }
.journey-list li { display: flex; gap: 24px; border-top: 1px solid #bfc5d8; padding-block: 25px; }
.journey-list li > span { color: var(--accent); font-size: 12px; padding-top: 5px; }
.journey-list h3 { font-family: var(--body); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.journey-list p { font-size: 15px; margin-top: 8px; color: var(--muted); }
.return-link { padding-bottom: 56px; margin-top: -42px; }

/* Enrollment is a local preview; it never contains a native form. */
.enrollment-intro { padding-block: 35px 48px; }
.enrollment-intro .eyebrow { margin-bottom: 22px; }
.enrollment-intro h1 { font-size: clamp(44px, 4.8vw, 66px); }
.enrollment-intro h1 em { color: var(--accent); }
.enrollment-intro > p:last-child { margin-top: 24px; color: var(--muted); max-width: 620px; font-size: 17px; }
.enrollment-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: start; padding-bottom: 100px; }
.enrollment-panel { background: #fffefb; border: 1px solid #c9cede; border-radius: 4px; padding: 36px; }
.enrollment-panel__heading { display: flex; align-items: center; gap: 16px; }
.step-marker { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; background: #e8ebf5; font-size: 14px; border: 1px solid #c3cade; }
.enrollment-panel__heading .eyebrow { font-size: 10px; }
.enrollment-panel__heading h2 { font-size: 28px; margin-top: 5px; }
.enrollment-panel__heading > .pending-tag { margin-left: auto; flex-shrink: 0; }
.preview-warning { margin-top: 28px; padding: 16px; color: #83283c; border-left: 3px solid var(--accent); background: #f5e7e9; font-size: 14px; line-height: 1.7; }
.preview-fields { margin-top: 28px; }
.preview-fields legend { font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.field + .field { margin-top: 24px; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; margin-bottom: 9px; }
.field label span { font-weight: 400; font-size: 14px; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 52px; border: 1px solid var(--control-border); border-radius: 3px; padding: 12px 14px; background: #fffefb; color: var(--ink); font-size: 15px; }
.field input[readonly] { background: #eceef4; color: #595d73; }
.field > p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.field select[aria-invalid='true'] { border: 2px solid var(--accent); padding: 11px 13px; }
.field > .field-error { color: #a01c32; font-size: 14px; }
.preview-validation { margin-top: 24px; }
.preview-validation > p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.enrollment-submit { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.enrollment-submit .button { width: 100%; }
.enrollment-submit > p { margin-top: 10px; color: var(--muted); text-align: center; font-size: 14px; }
.preview-aside { padding-top: 34px; max-width: 370px; }
.aside-symbol { font-size: 52px; color: var(--accent); line-height: 1; margin-bottom: 34px; }
.preview-aside > .eyebrow { margin-bottom: 16px; }
.preview-aside h2 { font-size: 42px; }
.preview-aside > p { margin-top: 22px; color: var(--muted); font-size: 15px; }
.preview-aside ul { padding-left: 20px; margin: 22px 0; font-size: 15px; color: var(--muted); }
.preview-aside li { padding-left: 4px; margin-top: 10px; }
.preview-aside > .preview-aside__note { padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.preview-aside > .text-link { margin-top: 24px; }

@media (max-width: 1199px) {
  .header-inner { gap: 24px; }
  .primary-navigation { gap: 20px; }
  .brand__name { font-size: 31px; }
  .header-access > summary { padding-inline: 12px; gap: 10px; }
  .hero { gap: 36px; }
  .hero-art { height: 535px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { padding-inline: 15px; gap: 12px; }
  .footer-links { gap: 16px; }
  .about-grid { gap: 60px; }
}

/* Compact navigation also covers wide touch tablets in landscape. */
@media (max-width: 1199px), (hover: none) and (pointer: coarse) {
  .header-inner { min-height: 128px; flex-wrap: wrap; gap: 0; justify-content: space-between; }
  .header-inner > .brand { margin-block: 14px; }
  .js .header-inner > .brand { flex: 1 1 0; min-width: 0; }
  .header-inner .brand__copy { min-width: 0; }
  .header-inner .brand__logo { width: 100px; height: 100px; }
  .header-access { margin-left: 16px; }
  .primary-navigation { order: 3; flex-basis: 100%; margin: 0; padding: 0 0 18px; gap: 20px; flex-wrap: wrap; }
  .primary-navigation a { font-size: 15px; }
  .js .menu-toggle { display: flex; flex: 0 0 auto; }
  .js .primary-navigation { display: none; }
  .js .primary-navigation.is-open { display: flex; flex-direction: column; gap: 0; align-items: stretch; padding-bottom: 22px; }
  .js .primary-navigation.is-open a { min-height: 52px; border-top: 1px solid var(--line); }
}

@media (max-width: 767px) {
  .header-access { display: none; }
  .mobile-access { display: flex; flex-direction: column; width: 100%; margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
  .mobile-access .access-heading { margin-bottom: 10px; color: var(--muted); }
  .primary-navigation .mobile-access a { align-items: flex-start; white-space: normal; border: 0; padding: 14px; }
}

@media (max-width: 1023px) {
  .container { width: calc(100% - 64px); }
  .brand { margin-block: 14px; }
  .brand__logo { width: 100px; height: 100px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 64px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(52px, 8vw, 72px); }
  .hero-intro { max-width: 540px; }
  .hero-caption { margin-top: 24px; }
  .hero-art { width: 100%; height: 470px; border-top-left-radius: 130px; }
  .hero-art img { width: 75%; height: 100%; left: 12.5%; top: -5px; }
  .hero-art__top { margin-top: 38px; }
  .hero-art__bottom { padding-inline: 38px; }
  .section-space { padding-block: 72px; }
  .section-heading { gap: 28px; }
  .section-heading > p { max-width: 250px; }
  .program-card { padding: 24px; }
  .program-card h3 { font-size: 34px; }
  .program-card__illustration { height: 137px; }
  .illustration--steps span { width: 43px; }
  .illustration--steps span:nth-child(4) { height: 120px; }
  .illustration--steps i { left: calc(50% - 92px); }
  .about-grid { gap: 42px; grid-template-columns: 1.2fr 1fr; }
  .about-grid h2 { font-size: 40px; }
  .faq-section { gap: 40px; grid-template-columns: .95fr 1.2fr; }
  .contact-panel { padding: 40px 32px; gap: 40px; }
  .contact-panel h2 { font-size: 38px; }
  .contact-action { max-width: 200px; }
  .contact-action .button { min-width: 180px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-navigation { grid-column: 1 / -1; }
  .footer-main .brand { margin: 0; }
  .footer-bottom { font-size: 12px; }
  .hero--academic { padding-top: 30px; }
  .hero--academic h1 { font-size: clamp(52px, 8vw, 72px); }
  .hero-art--academic { border-radius: 4px 130px 4px 4px; }
  .information-grid { gap: 16px; }
  .information-grid article { padding: 24px; }
  .information-grid h3 { font-size: 28px; }
  .academic-journey { gap: 48px; }
  .return-link { margin-top: -32px; }
  .enrollment-layout { grid-template-columns: 1fr; gap: 42px; }
  .enrollment-panel { padding: 32px; }
  .preview-aside { max-width: 100%; padding-top: 0; }
  .aside-symbol { margin-bottom: 22px; }
}

@media (max-width: 639px) {
  .container { width: calc(100% - 40px); }
  .review-bar { font-size: 10px; }
  .review-bar__inner { gap: 16px; min-height: 50px; }
  .review-bar__label { max-width: 205px; gap: 7px; line-height: 1.4; }
  .review-bar a { min-height: 48px; }
  .review-bar__preview { display: none; }
  .header-inner { min-height: 128px; }
  .brand { margin-block: 14px; gap: 10px; }
  .brand__copy { max-width: 124px; }
  .brand__name { font-size: 30px; }
  .brand__context { font-size: 14px; margin-top: 6px; }
  .hero { padding-block: 42px 48px; gap: 32px; }
  .hero-copy > .eyebrow { font-size: 10px; letter-spacing: .09em; gap: 9px; margin-bottom: 22px; }
  .eyebrow-line { width: 22px; }
  h1 { font-size: clamp(41px, 10.7vw, 60px); line-height: 1.09; }
  h2 { font-size: 38px; }
  .hero-intro { font-size: 16px; line-height: 1.7; margin-top: 24px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
  .hero-actions .button { width: 100%; justify-content: space-between; min-height: 52px; padding-inline: 18px; }
  .hero-actions .button--whatsapp { justify-content: flex-start; }
  .hero-channel-note { font-size: 13px; }
  .hero-caption { font-size: 11px; gap: 10px; margin-top: 22px; }
  .hero-art { height: 395px; border-top-left-radius: 105px; }
  .hero-art img { width: 108%; height: calc(100% - 50px); left: -4%; top: 10px; }
  .hero-art__top { margin: 36px 24px 0 55px; font-size: 8px; letter-spacing: .07em; }
  .hero-art__bottom { padding: 0 24px 24px; }
  .hero-art__bottom > span:first-child { font-size: 22px; }
  .art-arrow { font-size: 30px; }
  .section-space { padding-block: 56px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading > p { margin-top: 22px; max-width: 100%; font-size: 14px; }
  .section-heading > p br { display: none; }
  .eyebrow { font-size: 11px; }
  .program-grid { grid-template-columns: 1fr; gap: 20px; }
  .program-card { padding: 24px; }
  .program-card__illustration { height: 150px; }
  .illustration--steps span { width: 50px; }
  .program-card h3 { font-size: 36px; margin-top: 22px; }
  .program-card > p { font-size: 15px; }
  .editorial-note { font-size: 13px; gap: 10px; }
  .about-section { padding-block: 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-grid h2 { font-size: 38px; }
  .about-copy { max-width: 100%; }
  .about-asterisk { font-size: 34px; margin-bottom: 18px; }
  .about-copy > p { font-size: 15px; }
  .faq-section { grid-template-columns: 1fr; gap: 30px; }
  .faq-list summary { min-height: 80px; font-size: 15px; gap: 14px; }
  .faq-answer { font-size: 14px; padding-right: 18px; }
  .contact-section { padding-bottom: 56px; }
  .contact-panel { display: block; padding: 30px 24px; }
  .contact-panel h2 { font-size: 34px; }
  .contact-panel > div > p:last-child { font-size: 14px; }
  .contact-action { max-width: 100%; margin-top: 26px; }
  .contact-action .button { width: 100%; justify-content: flex-start; }
  .contact-action .pending-note { font-size: 13px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding-block: 38px; }
  .footer-heading { font-size: 26px; }
  .footer-links { flex-wrap: wrap; gap: 8px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; padding-block: 20px; }
  .breadcrumb { padding-top: 18px; font-size: 12px; }
  .hero--academic { padding-top: 24px; }
  .hero--academic h1 { font-size: clamp(39px, 10.4vw, 60px); }
  .hero-art--academic { border-radius: 4px 105px 4px 4px; }
  .hero-art--academic .hero-art__top { margin-left: 24px; margin-right: 55px; }
  .information-grid { grid-template-columns: 1fr; gap: 16px; }
  .information-grid article { padding: 24px; }
  .information-grid h3 { margin-top: 16px; font-size: 30px; }
  .information-grid .pending-tag { margin-top: 20px; }
  .academic-journey { grid-template-columns: 1fr; gap: 32px; }
  .journey-list li { gap: 20px; padding-block: 22px; }
  .return-link { margin-top: -24px; padding-bottom: 32px; }
  .return-link .text-link { font-size: 13px; }
  .enrollment-intro { padding-block: 24px 34px; }
  .enrollment-intro h1 { font-size: clamp(38px, 10vw, 54px); }
  .enrollment-intro > p:last-child { font-size: 15px; }
  .enrollment-layout { padding-bottom: 56px; gap: 36px; }
  .enrollment-panel { padding: 24px 20px; }
  .enrollment-panel__heading { gap: 12px; flex-wrap: wrap; }
  .enrollment-panel__heading h2 { font-size: 25px; }
  .enrollment-panel__heading > .pending-tag { margin-left: 54px; }
  .enrollment-panel__heading .eyebrow { font-size: 9px; }
  .preview-warning { font-size: 13px; padding: 14px; margin-top: 22px; }
  .field label { align-items: flex-start; flex-direction: column; gap: 2px; }
  .field input, .field select { font-size: 14px; padding-inline: 12px; }
  .preview-validation .button { width: 100%; gap: 10px; padding-inline: 12px; font-size: 13px; }
  .preview-validation > p { font-size: 13px; }
  .preview-aside h2 { font-size: 36px; }
}

@media (max-width: 359px) {
  .container { width: calc(100% - 32px); }
  .brand { gap: 8px; }
  .brand__copy { max-width: 96px; }
  .brand__name { font-size: 28px; }
  h1 { font-size: 39px; }
  .review-bar__label { max-width: 172px; }
  .hero-copy > .eyebrow { max-width: 280px; font-size: 9px; }
  .hero-caption { align-items: flex-start; font-size: 10px; }
  .hero-art { height: 350px; border-top-left-radius: 90px; }
  .hero-art__top { margin-top: 30px; margin-left: 48px; margin-right: 18px; font-size: 7px; }
  .hero-art__bottom { padding: 0 20px 20px; }
  .hero-art__bottom > span:first-child { font-size: 20px; }
  .program-card { padding: 22px; }
  .program-card h3 { font-size: 33px; }
  .about-grid h2, h2 { font-size: 34px; }
  .contact-panel { padding: 28px 20px; }
  .contact-panel h2 { font-size: 31px; }
  .hero--academic h1 { font-size: 37px; }
  .enrollment-panel { padding-inline: 16px; }
  .enrollment-panel__heading h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Full institutional iteration: native progressive disclosure and local media. */
.hero-photo { margin: 0; min-width: 0; background: transparent; }
.hero-photo img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 12px; }
.hero-photo figcaption { padding: 12px 0 0; font-size: 14px; color: var(--muted); }
.hero-photo--portrait { max-width: 360px; }
.hero-photo--portrait img { width: 100%; height: auto; }
.page-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding-block: 34px 64px; }
.page-intro h1 { font-size: clamp(48px, 5.2vw, 74px); margin-top: 24px; }
.page-intro h1 em, .contact-intro h1 em { color: var(--accent); }
.page-intro > div > p:not(.eyebrow) { max-width: 490px; color: var(--muted); margin-top: 24px; font-size: 17px; }
.page-intro .text-link { margin-top: 24px; }

.page-intro .hero-art { height: 380px; }
.degree-section { background: #f1f2f7; border-block: 1px solid var(--line); }
.degree-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.degree-card { min-width: 0; border: 1px solid #c3c8d8; background: #fffefb; border-radius: 4px; padding: 30px; }
.degree-card__visual { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 105px; margin-bottom: 24px; }
.degree-card__visual img { width: 100px; height: 100px; object-fit: contain; }
.degree-graphic { display: grid; place-items: center; width: 96px; height: 96px; font-family: var(--display); font-size: 60px; background: var(--blue-tint); border-radius: 50%; }
.degree-card:nth-child(2n) .degree-graphic { background: var(--rose-tint); }
.degree-card > h2 { font-size: 36px; line-height: 1.2; max-width: 400px; }
.degree-card__intro { margin-top: 18px; min-height: 100px; }
.source-block { font-size: 16px; line-height: 1.85; overflow-wrap: break-word; }
.source-block + .source-block { margin-top: 16px; }
.source-block--pending { border-left: 3px solid var(--accent); padding: 14px 18px; background: #f8eef0; margin-block: 16px; }
.editorial-badge { display: inline-block; font-family: var(--body); font-weight: 700; letter-spacing: .01em; font-size: 12px; line-height: 1.5; color: #912033; margin-bottom: 8px; }
.editorial-reason { display: block; font-size: 13px; color: #754451; line-height: 1.6; margin-bottom: 10px; }
.source-text { display: block; }
.degree-details { margin-top: 24px; border-top: 1px solid var(--control-border); }
.degree-details > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 20px; font-size: 15px; font-weight: 700; padding-block: 14px; list-style: none; }
.degree-details > summary::-webkit-details-marker, .content-details > summary::-webkit-details-marker { display: none; }
.details-sign { font-size: 24px; font-weight: 400; line-height: 1; flex-shrink: 0; }
.degree-details[open] > summary > .details-sign, .content-details[open] > summary > .details-sign { transform: rotate(45deg); }
.degree-details__body { padding-block: 10px 4px; }
.degree-description h3 { font-family: var(--body); font-size: 17px; font-weight: 700; letter-spacing: 0; margin-bottom: 16px; }
.content-details { border-bottom: 1px solid #bfc5d8; }
.content-details > summary { display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 18px 0; gap: 20px; font-weight: 700; font-size: 16px; list-style: none; }
.details-content { padding: 0 0 24px; min-width: 0; }
.degree-subdetails > summary { font-size: 15px; min-height: 60px; }
.degree-subdetails .source-block { font-size: 15px; }
.curriculum-list { margin: 0; padding-left: 24px; }
.curriculum-list > li { padding-left: 4px; }
.curriculum-list > li + li { margin-top: 10px; }
.accordion-stack { margin-top: 30px; border-top: 1px solid #bfc5d8; }
.accordion-stack > .content-details { padding-inline: 2px; }
.section-note, .neutral-note { font-size: 15px; color: var(--muted); line-height: 1.8; }
.section-note { max-width: 760px; margin-top: 22px; }
.editorial-section { padding-block: 28px; }
.editorial-section > details { padding: 0 24px; border: 1px solid #c7b3b9; border-radius: 4px; background: #faf0f1; }
.institution-lead { max-width: 860px; font-size: 24px; font-family: var(--display); line-height: 1.6; }
.institution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; align-items: start; }
.institution-grid > article { background: #eef0f7; padding: 26px; border-radius: 4px; min-width: 0; }
.institution-grid h3 { font-size: 30px; margin-bottom: 20px; }
.institution-grid .source-block { font-size: 15px; }
.director-section { padding-block: 72px; background: #eceef6; }
.director-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 72px; align-items: start; }
.director-grid h2 { margin: 16px 0 28px; }
.director-grid .hero-art { height: 440px; }
.director-grid .source-block { font-size: 16px; }
.director-grid .content-details { margin-top: 24px; }
.video-panel { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 36px; border: 1px solid #c3c8d8; border-radius: 4px; background: #eef0f7; }
.video-panel h2 { font-size: 36px; margin-block: 12px 16px; }
.video-panel .button { flex-shrink: 0; }
.video-panel .source-text { overflow-wrap: anywhere; }
.contact-intro { padding-block: 35px 64px; }
.contact-intro h1 { margin-top: 24px; }
.contact-intro > p:not(.eyebrow) { font-size: 18px; color: var(--muted); margin-top: 24px; }
.contact-intro__action { display: flex; gap: 24px; align-items: center; margin-top: 28px; }
.contact-intro__action .pending-note { color: var(--muted); font-size: 15px; }
.contact-information { background: #f1f2f7; border-block: 1px solid var(--line); }
.contact-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-source-grid .source-block { padding: 24px; border: 1px solid #c4cad9; border-radius: 4px; background: #fffefb; margin: 0; }
.enrollment-status > h2 { margin-top: 16px; }
.enrollment-status > p:not(.eyebrow) { margin-top: 22px; max-width: 700px; color: var(--muted); }
.enrollment-status .text-link { margin-top: 18px; }
.about-copy .text-link { color: var(--paper); }
.page-home .contact-section { padding-top: 72px; }
.page-highschool .contact-section, .page-university .contact-section, .page-about .contact-section { padding-top: 64px; }

@media (max-width: 1023px) {

  .hero-photo img { width: 100%; height: auto; }
  .page-intro { grid-template-columns: 1fr; gap: 36px; }
  .page-intro .hero-photo { min-height: 0; }
  .degree-grid { gap: 22px; }
  .degree-card { padding: 24px; }
  .degree-card > h2 { font-size: 32px; }
  .degree-card__visual { flex-direction: column; align-items: flex-start; min-height: 150px; gap: 16px; }
  .degree-card__intro { min-height: 145px; }
  .institution-grid { grid-template-columns: 1fr; }
  .director-grid { grid-template-columns: .8fr 1.2fr; gap: 36px; }
  .video-panel { padding: 28px; gap: 28px; flex-wrap: wrap; }
}

@media (max-width: 639px) {

  .hero-photo figcaption { padding: 12px 0 0; font-size: 13px; }
  .page-intro { padding-block: 24px 44px; }
  .page-intro h1 { font-size: 45px; }
  .page-intro > div > p:not(.eyebrow) { font-size: 16px; }
  .page-intro .hero-art { height: 350px; }
  .degree-grid { grid-template-columns: 1fr; gap: 24px; }
  .degree-card { padding: 24px 20px; }
  .degree-card__visual { min-height: 90px; flex-direction: row; align-items: center; gap: 12px; margin-bottom: 22px; }
  .degree-card__visual img { width: 80px; height: 80px; }
  .degree-card__visual > .eyebrow { font-size: 10px; }
  .degree-card > h2 { font-size: 32px; }
  .degree-card__intro { min-height: 0; }
  .source-block { font-size: 15px; }
  .source-block--pending { padding: 12px; }
  .content-details > summary { font-size: 15px; gap: 12px; }
  .degree-description h3 { font-size: 16px; }
  .degree-subdetails .source-block { font-size: 14px; }
  .curriculum-list { padding-left: 20px; }
  .editorial-section { padding-block: 22px; }
  .editorial-section > details { padding-inline: 18px; }
  .editorial-section .source-text { overflow-wrap: anywhere; }
  .institution-grid { gap: 20px; margin-top: 32px; }
  .institution-grid > article { padding: 24px 20px; }
  .institution-grid h3 { font-size: 30px; }
  .director-section { padding-block: 48px; }
  .director-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo--portrait { max-width: 290px; margin-inline: auto; }
  .director-grid h2 { font-size: 36px; }
  .director-grid .source-block { font-size: 15px; }
  .video-panel { padding: 24px 20px; gap: 24px; }
  .video-panel h2 { font-size: 32px; }
  .video-panel .button { width: 100%; }
  .contact-intro { padding-block: 24px 44px; }
  .contact-intro > p:not(.eyebrow) { font-size: 16px; }
  .contact-intro__action { align-items: stretch; flex-direction: column; gap: 14px; }
  .contact-intro__action .button { justify-content: flex-start; }
  .contact-source-grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-source-grid .source-block { padding: 20px; }
  .page-home .contact-section, .page-highschool .contact-section, .page-university .contact-section, .page-about .contact-section { padding-top: 48px; }
}

/* Approved home benefits, between the hero and academic paths. */
.benefits-section { padding-bottom: 80px; }
.benefits-section h2 { max-width: 720px; }
.benefits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; list-style: disc; margin: 36px 0 0; padding: 0 0 0 20px; }
.benefits-grid .source-block { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.75; }
.benefits-grid .source-block::marker { color: var(--ink); }
.benefits-grid strong { color: var(--ink); font-weight: 700; }
@media (max-width: 639px) {
  .benefits-section { padding-bottom: 56px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .benefits-grid .source-block { font-size: 16px; padding-top: 20px; }
}

/* Photos keep their native proportions; carousel controls overlay the image. */
.hero-carousel { position: relative; overflow: hidden; border-radius: 12px; }
.carousel-viewport { position: relative; aspect-ratio: 9 / 4; touch-action: pan-y pinch-zoom; }
.carousel-slide, .hero-carousel .carousel-slide img { width: 100%; height: 100%; }
.carousel-controls { z-index: 3; position: absolute; inset: 0; pointer-events: none; }
.carousel-controls button { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: white; border: 0; }
.carousel-arrow { position: absolute; width: 44px; height: 44px; background: rgb(15 20 35 / 78%); border-radius: var(--button-radius); }
.carousel-arrow { top: 50%; transform: translateY(-50%); font-size: 28px; line-height: 1; }
.carousel-arrow[data-carousel-previous] { left: 12px; }
.carousel-arrow[data-carousel-next] { right: 12px; }
.carousel-arrow:hover { background: rgb(15 20 35 / 95%); }
.carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; padding-inline: 4px; background: rgb(15 20 35 / 78%); border-radius: 24px; }
.carousel-dot { width: 32px; height: 36px; background: transparent; border-radius: 50%; }
.carousel-dot span { width: 9px; height: 9px; border: 1px solid white; border-radius: 50%; }
.carousel-dot[aria-pressed="true"] span { background: white; }
.carousel-controls button:focus-visible { outline: 2px solid white; outline-offset: -4px; box-shadow: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 639px) {
  .carousel-arrow[data-carousel-previous] { left: 6px; }
  .carousel-arrow[data-carousel-next] { right: 6px; }
  .carousel-dots { bottom: 4px; }
  .carousel-dot { height: 28px; }
}

.carousel-slide { position: absolute; inset: 0; }
.carousel-slide.is-entering { z-index: 2; animation: carousel-enter 400ms ease-in-out both; }
.carousel-slide.is-leaving { z-index: 1; animation: carousel-leave 400ms ease-in-out both; }
@keyframes carousel-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes carousel-leave { from { transform: translateX(0); } to { transform: translateX(-100%); } }
/* Shared lead images match the enlarged Home carousel without cropping. */
.hero-photo:not(.hero-photo--portrait) img { aspect-ratio: 9 / 4; }
@media (min-width: 1024px) {
  .page-home .hero, .page-highschool .hero, .page-university .page-intro, .page-about .page-intro {
    grid-template-columns: minmax(0, 23fr) minmax(0, 30fr);
    column-gap: 52px;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .page-home .hero, .page-highschool .hero, .page-university .page-intro, .page-about .page-intro { column-gap: 36px; }
}

/* Filiales: a readable directory with progressively enhanced local filters. */
.branches-page { padding-block: 34px 88px; }
.branches-intro h1 { margin-top: 22px; font-size: clamp(48px, 5.2vw, 74px); }
.branches-intro > p:last-child { margin-top: 22px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.branches-toolbar { display: flex; align-items: center; gap: 12px; margin-block: 36px 40px; }
.branches-search { position: relative; flex: 1 1 0; min-width: 0; }
.branches-search__icon { position: absolute; top: 50%; left: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.branches-search input { display: block; width: 100%; min-width: 0; min-height: 56px; padding: 14px 18px 14px 54px; border: 1px solid var(--control-border); border-radius: var(--button-radius); background: #fffefb; color: var(--ink); font-size: 16px; }
.branches-search input::placeholder { color: var(--muted); opacity: 1; }
.branches-search input:disabled { color: var(--muted); background: var(--blue-tint); opacity: 1; }
.branches-no-script { margin: -16px 0 32px; color: var(--muted); font-size: 14px; }
.branches-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.branch-filter-panel { position: sticky; top: 24px; display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.branch-filter-heading { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'title' 'reset'; align-items: center; gap: 4px 16px; flex-shrink: 0; }
.branch-filter-heading h2 { grid-area: title; min-width: 0; font-size: 28px; line-height: 1.16; letter-spacing: -.035em; }
.branch-filter-fields { flex: 1 1 auto; min-height: 0; margin: 22px -8px 0; padding: 8px; overflow: auto; overscroll-behavior: contain; }
.branches-state-list { display: grid; gap: 2px; }
.branch-state { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 48px; padding: 8px 4px; border-radius: 8px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.branch-state:hover { background: var(--blue-tint); }
.branch-state input { width: 20px; height: 20px; flex-shrink: 0; margin: 0; accent-color: var(--ink); }
.branch-state > span { min-width: 0; overflow-wrap: break-word; }
.branch-state__count { min-width: 26px; padding-inline: 5px; border: 1px solid var(--line); border-radius: 24px; color: var(--muted); background: #fffefb; text-align: center; font-size: 12px; line-height: 24px; }
.branch-reset { grid-area: reset; display: inline-flex; align-items: center; justify-content: flex-start; justify-self: start; min-height: 48px; margin: 0; padding: 8px 0; border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.branch-reset:disabled { opacity: .65; }
.branch-filter-toggle, .branch-filter-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 1px solid var(--control-border); border-radius: var(--button-radius); background: var(--paper); color: var(--ink); }
.branch-filter-toggle { position: relative; }
.branch-filter-toggle:hover, .branch-filter-close:hover { background: var(--blue-tint); }
.branch-filter-close { grid-area: close; margin-left: auto; }
.branch-filter-count { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 4px; border: 2px solid var(--paper); border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 11px; line-height: 1; }
.branch-filter-apply { flex-shrink: 0; width: 100%; margin-top: 12px; }
.branches-results { min-width: 0; }
.branches-count { margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.branches-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.branch-card { display: flex; flex-direction: column; aspect-ratio: 1; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fffefb; }
.branch-card > img { flex: 1 1 auto; width: 100%; height: 0; min-height: 0; object-fit: cover; object-position: center top; background: var(--blue-tint); }
.branch-card__caption { flex: 0 0 auto; min-height: 30%; padding: 18px 20px; }
.branch-card h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.18; letter-spacing: -.035em; overflow-wrap: break-word; }
.branch-card p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.branches-empty { padding: 48px 32px; border: 1px dashed var(--control-border); border-radius: 20px; background: var(--blue-tint); text-align: center; }
.branches-empty h2 { font-size: 36px; }
.branches-empty p { margin-top: 16px; color: var(--muted); }
.branches-empty .button { margin-top: 24px; }

@media (max-width: 1199px), (hover: none) and (pointer: coarse) {
  .branches-page { padding-bottom: 64px; }
  .branches-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .branches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .branch-filter-panel { position: static; max-height: none; }
  .branch-filter-fields { overflow: visible; }
  .branches-state-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .branch-state { font-size: 15px; }
  .branch-card h2 { font-size: 28px; }
  .branches-enhanced.is-filter-open .branch-filter-panel { position: fixed; inset: auto 0 0; z-index: 40; width: 100%; max-height: min(88vh, 780px); max-height: min(88dvh, 780px); margin: 0; padding: 16px 28px calc(24px + env(safe-area-inset-bottom, 0px)); border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 60px rgb(25 27 60 / 18%); }
  .branches-enhanced.is-filter-open .branch-filter-panel::before { content: ''; display: block; flex-shrink: 0; width: 40px; height: 4px; margin: 0 auto 20px; border-radius: 4px; background: var(--line); }
  .branches-enhanced.is-filter-open .branch-filter-fields { margin-top: 18px; overflow: auto; }
  .branches-enhanced.is-filter-open .branch-filter-backdrop { position: fixed; inset: 0; z-index: 30; background: rgb(25 27 60 / 48%); }
  body.branch-filters-open { overflow: hidden; }
  .branch-filter-heading { grid-template-columns: minmax(0, 1fr) auto 48px; grid-template-areas: 'title reset close'; }
}

@media (max-width: 639px) {
  .branches-page { padding-block: 24px 56px; }
  .branches-intro h1 { margin-top: 18px; font-size: 46px; }
  .branches-intro > p:last-child { margin-top: 18px; font-size: 16px; }
  .branches-toolbar { gap: 12px; margin-block: 28px 28px; }
  .branches-search input { min-height: 52px; padding-left: 44px; padding-right: 12px; }
  .branches-search__icon { left: 14px; width: 20px; height: 20px; }
  .branches-layout { gap: 24px; }
  .branches-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .branches-count { margin-bottom: 18px; }
  .branches-state-list { grid-template-columns: minmax(0, 1fr); }
  .branch-filter-heading { grid-template-columns: minmax(0, 1fr) 48px; grid-template-areas: 'title close' 'reset reset'; }
  .branch-filter-heading h2 { font-size: 30px; }
  .branches-enhanced.is-filter-open .branch-filter-panel { padding-inline: 20px; }
  .branch-card__caption { padding: 18px 20px; }
  .branches-empty { padding: 36px 24px; }
  .branches-empty h2 { font-size: 32px; }
  .branches-empty .button { width: 100%; }
}
