:root {
  --brand: #ff6249;
  --brand-dark: #c33f2d;
  --ink: #222222;
  --muted: #6f7378;
  --line: #e6e8eb;
  --surface: #ffffff;
  --soft: #f7f8fa;
  --shadow: 0 18px 45px rgba(31, 35, 41, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 8px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.9);
  border-top: 8px solid var(--brand);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
  transition: min-height 220ms ease, padding 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-compact {
  min-height: 62px;
  padding-top: 4px;
  padding-bottom: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: clamp(90px, 7vw, 118px);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.14));
  transition: width 220ms ease;
}

.site-header.is-compact .brand img {
  width: clamp(64px, 5vw, 82px);
}

.main-nav {
  display: flex;
  gap: clamp(10px, 1.5vw, 22px);
  align-items: center;
}

.main-nav a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  padding: 9px 0;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}

.hero {
  position: relative;
  min-height: 720px;
  height: 100vh;
  max-height: 980px;
  overflow: hidden;
  border: 8px solid var(--brand);
  border-bottom: 0;
  background: #ffffff;
}

.slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px) scale(1.015);
  transition: opacity 780ms ease, transform 780ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.035);
  transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1), filter 900ms ease;
  filter: saturate(0.96);
  will-change: transform;
}

.slide.is-active .slide-bg {
  transform: scale(1);
  filter: saturate(1);
}

.slide-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(980px, calc(100% - 170px));
  transform: translate(-50%, -45%);
  text-align: center;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #ffffff;
  opacity: 0;
  transition: opacity 620ms ease 160ms, transform 780ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
  will-change: opacity, transform;
}

.slide.is-active .slide-copy {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.slide-copy h1 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(42px, 5.2vw, 92px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.slide-copy p {
  margin: 28px auto 34px;
  color: #777777;
  font-size: clamp(24px, 3vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  max-width: 1180px;
  overflow-wrap: anywhere;
}

.primary-action,
.process-tabs button,
.frame-toolbar a {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  padding: 14px 26px;
  color: #ffffff;
  background: var(--brand);
  box-shadow: var(--shadow);
  text-transform: none;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--brand-dark);
}

.slider-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-top: -38px;
  color: #000000;
  background: rgba(255, 255, 255, 0.82);
  border: 4px solid #000000;
  border-radius: 50%;
  cursor: pointer;
}

.slider-arrow span {
  display: block;
  margin-top: -6px;
  font-size: 74px;
  line-height: 1;
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.slide-dots {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.68);
}

.slide-dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slide-dots button.is-active {
  background: var(--brand);
  border-color: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slide,
  .slide-bg,
  .slide-copy,
  .site-header,
  .brand img {
    transition: none;
  }

  .slide,
  .slide-bg,
  .slide-copy,
  .slide.is-active,
  .slide.is-active .slide-bg,
  .slide.is-active .slide-copy {
    transform: none;
  }

  .slide-copy,
  .slide.is-active .slide-copy {
    transform: translate(-50%, -45%);
  }
}

.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.process-section {
  padding: 70px 0;
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2,
.activities-section h2,
.about-section h2,
.areas-section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  font-weight: 300;
  text-transform: uppercase;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.process-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.process-tabs button {
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
}

.process-tabs button.is-active,
.process-tabs button:hover,
.process-tabs button:focus-visible {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.frame-shell {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.frame-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid var(--line);
}

.frame-toolbar span {
  font-weight: 800;
}

.frame-toolbar a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #ffffff;
  background: #2b2f35;
  text-decoration: none;
}

.frame-toolbar a.is-hidden {
  display: none;
}

.frame-toolbar a:hover,
.frame-toolbar a:focus-visible {
  background: var(--brand-dark);
}

#process-frame {
  display: block;
  width: 100%;
  height: min(1500px, 82vh);
  min-height: 720px;
  border: 0;
  background: #ffffff;
}

#process-frame.is-hidden,
.external-panel.is-hidden,
.frame-loader.is-hidden {
  display: none;
}

.frame-loader {
  position: absolute;
  z-index: 2;
  top: 58px;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 220px;
  padding: 32px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.92);
}

.frame-loader span {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 98, 73, 0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: loader-spin 820ms linear infinite;
}

.frame-loader strong {
  color: var(--ink);
  font-size: 18px;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.external-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 360px;
  padding: clamp(28px, 6vw, 78px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.92)),
    url("../img/banner_pagoss.jpg") center / cover;
}

.external-panel h3 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  text-transform: uppercase;
}

.external-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  font-weight: 700;
}

.external-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  color: #ffffff;
  background: var(--brand);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.external-action:hover,
.external-action:focus-visible {
  background: var(--brand-dark);
}

.activities-section {
  padding: 90px 0;
  background: #ffffff;
}

.activities-heading {
  align-items: start;
}

.activities-heading > div {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.activities-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 30px;
}

.activity-photo {
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.activity-photo img,
.activity-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reasons-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding: clamp(28px, 4vw, 54px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(138, 36, 30, 0.96), rgba(162, 49, 38, 0.94)),
    var(--brand-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-kicker {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #7f241f;
  background: #f4d175;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.reasons-panel h3 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  text-transform: uppercase;
}

.reasons-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reasons-panel li {
  position: relative;
  min-height: 48px;
  padding: 13px 16px 13px 50px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 900;
  text-transform: uppercase;
}

.reasons-panel li::before {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: #7f241f;
  background: #f4d175;
  border-radius: 50%;
  content: "✓";
  font-size: 16px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.activity-grid article {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(31, 35, 41, 0.08);
}

.activity-grid article:not(.activity-note) {
  display: grid;
  grid-template-rows: 210px auto;
}

.activity-grid article > div {
  padding: 22px;
}

.activity-grid h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.1;
}

.activity-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.activity-grid .activity-note {
  display: flex;
  align-items: center;
  min-height: 100%;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 98, 73, 0.9), rgba(127, 36, 31, 0.96)),
    var(--brand);
}

.activity-grid .activity-note span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  color: #7f241f;
  background: #ffffff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.activity-grid .activity-note p {
  color: rgba(255, 255, 255, 0.86);
}

.about-section {
  padding: 90px 0;
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.about-grid p {
  margin: 24px 0 0;
  color: #555b62;
  font-size: 19px;
  line-height: 1.75;
}

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.founders figure {
  margin: 0;
  text-align: center;
}

.founders img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.founders figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
}

.history-section {
  padding: 90px 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(34, 34, 34, 0.92), rgba(127, 36, 31, 0.92)),
    url("../img/actividad-cultura.jpg") center / cover;
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.history-grid h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  font-weight: 300;
  text-transform: uppercase;
}

.history-grid p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

.history-timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.history-timeline span {
  color: #f4d175;
  font-size: 24px;
  font-weight: 900;
}

.history-timeline p {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

.areas-section {
  padding: 94px 0;
  color: #ffffff;
  background:
    linear-gradient(rgba(20, 22, 25, 0.68), rgba(20, 22, 25, 0.72)),
    url("../img/areas.jpg") center / cover fixed;
}

.areas-section > .section-inner > p {
  margin: 18px 0 36px;
  font-size: 22px;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.areas-grid article {
  min-height: 190px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.area-icon {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: #ffffff;
  background: rgba(255, 98, 73, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.area-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.areas-grid h3 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.areas-grid p {
  margin: 0;
  line-height: 1.45;
}

.contact-section {
  padding: 76px 0;
  background: #080808;
}

.contact-section h2 {
  margin: 0 0 26px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 300;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.contact-grid a {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 22px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.contact-grid a:hover,
.contact-grid a:focus-visible {
  border-color: var(--brand);
  background: rgba(255, 98, 73, 0.12);
}

.contact-grid span {
  color: var(--brand);
  font-size: 32px;
  line-height: 1;
}

.contact-grid strong {
  font-size: 18px;
  text-transform: uppercase;
}

.contact-grid em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 28px 16px;
  text-align: center;
  color: #ffffff;
  background: #111111;
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 68px;
  }

  .brand img {
    width: 70px;
  }

  .site-header.is-compact .brand img {
    width: 58px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 620px;
    height: 88vh;
    border-width: 5px;
  }

  .slide-copy {
    width: calc(100% - 150px);
    transform: translate(-50%, -42%);
  }

  .slide-copy h1 {
    font-size: clamp(26px, 8vw, 32px);
  }

  .slide-copy p {
    margin: 18px auto 24px;
    font-size: clamp(17px, 5.3vw, 22px);
    max-width: 220px;
  }

  .slider-arrow {
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border-width: 3px;
  }

  .slider-arrow span {
    font-size: 50px;
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }

  .section-heading,
  .frame-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .process-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .process-tabs button {
    width: 100%;
  }

  #process-frame {
    min-height: 680px;
    height: 78vh;
  }

  .external-panel {
    align-items: stretch;
    flex-direction: column;
    min-height: 320px;
  }

  .external-action {
    width: 100%;
  }

  .about-grid,
  .activities-feature,
  .history-grid,
  .areas-grid {
    grid-template-columns: 1fr;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }

  .activity-photo,
  .reasons-panel {
    min-height: 360px;
  }

  .founders {
    max-width: 460px;
  }

  .areas-section {
    background-attachment: scroll;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .history-timeline li {
    grid-template-columns: 1fr;
  }
}
