/* Canvas / Alumbrados de Oriente. Identity: orange, amber, charcoal and local photography. */
:root {
  --orange: #c33d00;
  --orange-bright: #ff6b26;
  --amber: #f5b51b;
  --ink: #303033;
  --muted: #606064;
  --paper: #fff;
  --surface: #f3f3f2;
  --line: #dededb;
  --header-height: 88px;
  color-scheme: light;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; font-size: 15px; line-height: 1.8; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
figure, p { margin: 0; }
p + p { margin-top: 1.3em; }
a { color: var(--orange); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500; line-height: 1.22; margin: 0; }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 25px; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 12px; padding: 12px 20px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.territory-bar { background: var(--ink); color: #eee; font-size: 11px; letter-spacing: .04em; }
.territory-bar .container { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 12px; }
.territory-bar a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding-inline: 8px; color: #fff; text-decoration: none; }
.territory-bar a:hover { background: #ffffff12; }
.territory-bar .ui-icon { color: var(--amber); width: 14px; height: 14px; }
.ui-icon { flex: none; width: 18px; height: 18px; display: block; stroke-linecap: round; stroke-linejoin: round; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); gap: 32px; }
.brand { flex: 0 0 196px; display: flex; align-items: center; min-height: 52px; }
.brand img { width: 100%; }
.site-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav > a, .submenu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 12px; line-height: 20px; white-space: nowrap; border: 0; border-radius: 4px; background: transparent; position: relative; }
.site-nav > a:hover, .submenu-toggle:hover, .submenu-toggle[aria-expanded="true"] { background: var(--surface); color: var(--orange); }
.site-nav a[aria-current="location"], .submenu-toggle[data-current] { color: var(--orange); }
.site-nav > a[aria-current="location"]::after, .submenu-toggle[data-current]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-group { display: flex; align-items: center; position: relative; }
.submenu-toggle { color: var(--ink); font-weight: inherit; }
.chevron { width: 16px; height: 16px; transition: transform .18s; }
.submenu-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.submenu { position: absolute; top: calc(100% + (var(--header-height) - 44px) / 2 + 9px); left: 0; width: 272px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 28px #30303314; }
.submenu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; font-size: 13px; line-height: 20px; border-radius: 3px; }
.submenu a + a { margin-top: 4px; }
.submenu a:hover, .submenu a[aria-current="location"] { background: var(--surface); color: var(--orange); }
.submenu a:first-child { border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; padding-bottom: 14px; }
.site-nav:not([data-enhanced]) { flex-wrap: wrap; padding-block: 16px; }
.site-nav:not([data-enhanced]) .nav-group { flex-wrap: wrap; }
.site-nav:not([data-enhanced]) .submenu { position: static; box-shadow: none; width: auto; margin-inline: 0; border: 0; border-left: 2px solid var(--amber); }
.nav-toggle { display: none; flex-shrink: 0; align-items: center; justify-content: center; gap: 8px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 4px; height: 44px; width: 104px; padding: 0 12px; font-size: 14px; line-height: 20px; }
.menu-close-icon, .nav-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.nav-toggle[aria-expanded="true"] .menu-close-icon { display: block; }
.nav-toggle[aria-expanded="true"] { background: var(--surface); }
.hero { position: relative; isolation: isolate; overflow: clip; background: #292e29; color: white; padding: 78px 0 108px; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero[data-parallax] .hero-photo { inset: -38% 0; transform: translate3d(0, var(--hero-parallax, 0px), 0); will-change: transform; }
.hero[data-parallax] .hero-equipment picture { transform: translate3d(0, var(--equipment-parallax, 0px), 0); will-change: transform; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #171b19ed, #171b19aa 53%, #171b1920); z-index: -1; }
.hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 40px; background: var(--surface); clip-path: polygon(0 100%, 0 85%, 68% 0, 100% 85%, 100% 100%); }
.hero-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.eyebrow { color: var(--orange); text-transform: uppercase; font-weight: 700; font-size: 11px; letter-spacing: .14em; margin-bottom: 18px; }
.hero .eyebrow { color: var(--amber); }
.hero h1 { font-size: clamp(42px, 4.8vw, 66px); letter-spacing: -.025em; line-height: 1.1; }
.hero-motto { font-family: 'Oswald', sans-serif; font-size: clamp(25px, 2.7vw, 36px); color: #ff9b65; line-height: 1.3; margin-top: 24px; }
.hero-description { font-size: 14px; line-height: 1.9; color: #e4e5e3; margin-top: 24px; max-width: 570px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 13px 22px; min-height: 48px; font-size: 13px; font-weight: 700; border-radius: 3px; text-decoration: none; transition: background .2s, transform .2s; }
.button-amber { background: var(--amber); color: #292929; }
.button-amber:hover { background: #ffc744; transform: translateY(-2px); }
.hero-link { font-size: 13px; color: white; }
.hero-link span { margin-left: 10px; }
.hero-equipment { padding-bottom: 18px; }
.hero-equipment img { width: 100%; max-width: 516px; filter: drop-shadow(0 18px 18px #0005); }
.equipment-caption { display: block; border-top: 1px solid #ffffff40; padding-top: 17px; margin-top: 28px; text-align: center; color: #f0f0ef; font-size: 11px; letter-spacing: .05em; }
.section { padding-block: 80px; }
.section-heading { margin-bottom: 36px; }
.section-heading h2 { color: var(--orange); }
.section-heading h2 span { color: var(--ink); }
.section-heading > p:not(.eyebrow) { margin-top: 24px; max-width: 850px; color: var(--muted); }
.centered { text-align: center; }
.centered > p { margin-inline: auto; }
.heading-rule { display: block; width: 64px; height: 4px; background: var(--amber); margin-top: 24px; }
.about-section { background: var(--surface); }
.about-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 72px; }
.about-layout .section-heading { margin-bottom: 0; }
.about-layout h2 { color: var(--ink); font-size: clamp(28px, 3vw, 38px); }
.prose { color: var(--muted); }
.prose h3 { color: var(--ink); font-size: 30px; margin-bottom: 24px; }
.strategy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 52px; }
.institution-icon { flex: none; display: inline-grid; place-items: center; width: 56px; height: 56px; border: 1px solid #f2d5c5; border-radius: 50%; color: var(--orange); background: #fff6ef; box-shadow: 3px 3px 0 #f3f3f2; }
.institution-icon .ui-icon { width: 28px; height: 28px; }
.strategy-item h3, .policy-layout h3 { display: flex; align-items: center; gap: 16px; align-self: start; }
.strategy-item h3 { margin-bottom: 18px; }
.strategy-item p { font-size: 14px; color: var(--muted); }
.policy-layout { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; margin-top: 54px; }
.policy-layout h3 { color: var(--orange); }
.policy-layout .prose { font-size: 14px; }
.projects-section { position: relative; background: #faf0e6; }
.projects-section::before { content: ''; position: absolute; top: -24px; left: 0; right: 0; height: 25px; background: #faf0e6; clip-path: polygon(0 100%, 35% 0, 100% 100%); }
.projects-section > .container { max-width: 1140px; }
.projects-section .section-heading { text-align: center; margin-bottom: 64px; }
.projects-section h2 { font-size: 32px; }
.projects-section h2::after { content: ''; display: block; width: 82px; height: 1px; background: #555; margin: 16px auto 0; }
.projects-section .section-heading > p { max-width: 940px; margin: 28px auto 0; text-align: justify; font-size: 14px; }
.gallery-controls { display: flex; justify-content: center; margin-top: 8px; }
.gallery-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.gallery-dot::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #869791; opacity: .45; }
.gallery-dot[aria-current="true"]::before, .gallery-dot:hover::before { opacity: 1; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid currentColor; border-radius: 50%; color: inherit; font-size: 23px; line-height: 1; }
.icon-button:hover { background: var(--amber); color: var(--ink); }
.icon-button:disabled { opacity: .35; cursor: default; }
.gallery-stage { position: relative; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: #fffffff2; color: var(--ink); border: 1px solid #ffffff80; box-shadow: 0 2px 12px #0003; }
.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }
.gallery-arrow:disabled { opacity: .45; background: #fffffff2; }
.project-gallery { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #869791 transparent; }
.project-gallery[data-enhanced] { scrollbar-width: none; cursor: grab; user-select: none; }
.project-gallery[data-enhanced]::-webkit-scrollbar { display: none; }
.project-gallery[data-enhanced] .project { cursor: inherit; }
.project-gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.project-gallery.is-dragging .project::after { opacity: 0; }
.project { position: relative; flex: 0 0 calc((100% - 12px) / 3); min-width: 0; scroll-snap-align: start; color: var(--ink); text-decoration: none; }
.project picture { overflow: hidden; }
.project img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.project::after { content: ''; position: absolute; inset: 0; background: #222b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M8 6l2-3h4l2 3h4a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center / 48px no-repeat; opacity: 0; transition: opacity .2s; pointer-events: none; }
.project:focus-visible { outline-offset: -4px; }
.project:focus-visible::after { opacity: 1; }
@media (hover: hover) { .project:hover::after { opacity: 1; } }
.portal-section { background: white; }
.embed-panel { border: 1px solid var(--line); background: white; border-radius: 5px; overflow: hidden; }
.embed-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.embed-heading > span { display: flex; align-items: center; gap: 10px; }
.embed-heading > span::before { content: ''; width: 6px; height: 16px; background: var(--amber); }
.siap-portal-embed__frame, .siap-map-embed__frame { display: block; width: 100%; height: 700px; border: 0; background: #fafafa; }
.siap-portal-embed__frame { min-height: 360px; }
.siap-map-embed__frame { min-height: 420px; height: 600px; }
.embed-fallback { font-size: 12px; color: var(--muted); margin-top: 16px; text-align: right; }
.map-section { background: var(--surface); }
.contact-section { background: var(--ink); color: #fff; border-top: 5px solid var(--amber); }
.contact-section .section-heading h2 { color: #ff9b65; }
.contact-section .section-heading > p { color: #ccc; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 32px; margin-top: 48px; }
.contact-office h3 { display: flex; align-items: center; gap: 12px; font-size: 25px; margin-bottom: 20px; }
.office-icon { width: 26px; height: 26px; color: var(--amber); }
.contact-office address { font-size: 14px; font-style: normal; color: #ddd; line-height: 2; overflow-wrap: anywhere; }
.contact-office address p { margin: 16px 0; }
.contact-office a { color: #fff; }
.office-map { width: 100%; max-width: 100%; border: 0; }
.certificate { width: 220px; margin-top: 24px; background: white; }
.site-footer { background: var(--ink); color: #c5c5c5; font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 24px 0; border-top: 1px solid #ffffff25; }
.footer-bottom > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.footer-bottom a { color: #fff; }
.lightbox { width: min(1000px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 0; padding: 20px; background: #252527; color: white; border-radius: 6px; }
.lightbox::backdrop { background: #000c; }
.lightbox-toolbar, .lightbox-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-toolbar h2 { font-family: 'Open Sans', sans-serif; font-size: 14px; }
.lightbox-image { width: 100%; height: min(70dvh, 800px); object-fit: contain; margin: 16px 0; }
.lightbox-footer { justify-content: center; font-size: 12px; }
body:has(.lightbox[open]) { overflow: hidden; }
@media (min-width: 1100px) and (max-width: 1279px) {
  .site-nav { gap: 2px; font-size: 13px; }
  .site-nav > a, .submenu-toggle { padding-inline: 10px; }
  .nav-shell { gap: 24px; }
}
@media (max-width: 1099px) {
  :root { --header-height: 76px; }
  .nav-shell { height: var(--header-height); gap: 16px; }
  .brand { flex-basis: 184px; }
  .nav-toggle:not([hidden]) { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 40px 20px; max-height: calc(100dvh - var(--header-height) - 36px); overflow-y: auto; overscroll-behavior: contain; background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px #30303314; }
  .site-nav > a, .submenu-toggle { justify-content: space-between; width: 100%; min-height: 44px; height: 44px; padding-inline: 12px; }
  .nav-group { flex-direction: column; align-items: stretch; }
  .submenu { position: static; width: auto; box-shadow: none; border: 0; border-left: 2px solid var(--amber); border-radius: 0; margin: 4px 12px 8px; padding: 4px 0 4px 12px; }
  .site-nav:not([data-enhanced]) { position: static; max-height: none; box-shadow: none; padding-inline: 0; }
  .nav-shell:has(.site-nav:not([data-enhanced])) { height: auto; flex-wrap: wrap; padding-top: 12px; }
  .site-nav:not([data-enhanced]) { flex: 0 0 100%; }
  .hero-layout { gap: 24px; }
  .about-layout { gap: 40px; }
  .contact-grid { gap: 22px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  body { font-size: 14px; }
  .territory-bar { font-size: 10px; }
  .brand { flex: 0 1 172px; min-width: 140px; }
  .site-nav { padding-inline: 20px; }
  .hero { padding: 48px 0 56px; }
  .hero::before { background: #171b19c9; }
  .hero-photo img { object-position: 62% center; }
  .hero-layout { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(38px, 8.5vw, 58px); }
  .hero-description { font-size: 13px; }
  .hero-equipment { width: min(85%, 360px); justify-self: end; padding: 0; }
  .equipment-caption { font-size: 9px; padding-top: 12px; margin-top: 14px; }
  .actions { gap: 18px; }
  .section { padding-block: 56px; }
  .about-layout, .policy-layout { grid-template-columns: 1fr; gap: 28px; }
  .prose h3 { font-size: 26px; }
  .strategy-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 32px; }
  .strategy-item h3 { margin: 0 0 16px; }
  .policy-layout { margin-top: 36px; padding-top: 30px; }
  .project { flex-basis: calc((100% - 6px) / 2); }
  .projects-section .section-heading { margin-bottom: 36px; }
  .projects-section .section-heading > p { text-align: left; }
  .embed-heading { padding: 14px; }
  .embed-fallback { text-align: left; }
  .siap-portal-embed__frame { height: 800px; }
  .siap-map-embed__frame { height: 540px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-office address { font-size: 14px; }
  .office-map { order: 3; height: 280px; }
  .lightbox { padding: 14px; }
  .lightbox-toolbar h2 { max-width: 70%; }
}
@media (max-width: 479px) {
  .project { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero[data-parallax] .hero-photo { inset: 0; transform: none; will-change: auto; }
  .hero[data-parallax] .hero-equipment picture { transform: none; will-change: auto; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
