/* =========================================================
   FORO 3 — Sistema visual compartido
   Hoja base para las seis páginas del sitio.
   ========================================================= */

:root {
  color-scheme: dark;
  --color-black: #090909;
  --color-charcoal: #111112;
  --color-panel: #19191b;
  --color-panel-soft: #202023;
  --color-white: #f7f5f2;
  --color-muted: #b7b3b0;
  --color-muted-dark: #85817f;
  --color-red: #c8102e;
  --color-red-light: #e12b48;
  --color-line: rgba(255, 255, 255, 0.13);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", Arial, sans-serif;
  --container: 1160px;
  --header-height: 82px;
  --section-space: clamp(4.5rem, 8vw, 7.5rem);
  --radius-sm: 5px;
  --radius-md: 10px;
  --shadow-card: 0 18px 55px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  background: var(--color-black);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-red-light);
  outline-offset: 4px;
}

::selection {
  color: #fff;
  background: var(--color-red);
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section--dark {
  background: var(--color-charcoal);
}

.section--black {
  background: var(--color-black);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--color-red-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 30px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section-title {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-title em {
  color: var(--color-red-light);
  font-weight: 500;
}

.section-intro {
  max-width: 650px;
  margin: 1.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-heading-row .section-intro {
  max-width: 390px;
  margin: 0 0 0.25rem;
}

/* Header & navigation */
.site-header {
  position: absolute;
  z-index: 50;
  inset: 0 0 auto;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 9, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 48px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 0.08rem;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.brand-tagline {
  color: var(--color-muted);
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.7vw, 1.6rem);
}

.primary-nav a:not(.button) {
  position: relative;
  padding-block: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.primary-nav a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--color-red-light);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:not(.button):hover,
.primary-nav a[aria-current="page"] {
  color: #fff;
}

.primary-nav a:not(.button):hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  border-color: var(--color-red);
  background: var(--color-red);
  color: #fff;
}

.button--primary:hover {
  border-color: var(--color-red-light);
  background: var(--color-red-light);
}

.button--outline {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}

.button--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.button--dark-outline {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.button--dark-outline:hover {
  border-color: var(--color-red-light);
  background: rgba(200, 16, 46, 0.1);
}

.button--small {
  min-height: 42px;
  padding: 0.65rem 1rem;
  font-size: 0.64rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link span {
  color: var(--color-red-light);
  font-size: 1.2rem;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  min-height: min(900px, 100svh);
  min-height: max(700px, 100svh);
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  background: #151515 url("assets/hero-sample.jpg") center 45% / cover no-repeat;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
}

.hero::before {
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.7) 0%, rgba(5, 5, 6, 0.3) 38%, rgba(5, 5, 6, 0.78) 100%),
    linear-gradient(90deg, rgba(5, 5, 6, 0.68) 0%, rgba(5, 5, 6, 0.26) 48%, rgba(5, 5, 6, 0.62) 100%);
}

.hero::after {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.34) 76%);
}

.hero-content {
  width: min(850px, calc(100% - 2.5rem));
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 5rem;
  text-align: center;
}

.hero-symbol {
  width: clamp(92px, 13vw, 160px);
  height: clamp(132px, 18vw, 220px);
  margin: 0 auto 1.35rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
}

.hero-kicker {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.3vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.42);
}

.hero-title span {
  display: block;
  margin-top: 0.3em;
  color: var(--color-red-light);
  font-size: 0.43em;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-description {
  max-width: 590px;
  margin: 1.35rem auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-scroll {
  position: absolute;
  right: 50%;
  bottom: 1.7rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(50%);
}

.hero-scroll::after {
  width: 34px;
  height: 1px;
  background: var(--color-red-light);
  content: "";
}

/* Programs */
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.program-card {
  position: relative;
  display: flex;
  min-height: 490px;
  overflow: hidden;
  flex-direction: column;
  justify-content: end;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: #242426 url("assets/hero-sample.jpg") center / cover no-repeat;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.program-card--workshops {
  background-position: 28% center;
}

.program-card--training {
  background-position: 72% center;
}

.program-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 9, 0.08) 0%, rgba(8, 8, 9, 0.45) 38%, rgba(8, 8, 9, 0.96) 100%);
  content: "";
  transition: background 220ms ease;
}

.program-card:hover::before {
  background: linear-gradient(180deg, rgba(8, 8, 9, 0.1) 0%, rgba(8, 8, 9, 0.5) 34%, rgba(8, 8, 9, 0.98) 100%);
}

.program-number {
  position: absolute;
  top: 1.5rem;
  right: 1.6rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
}

.program-label {
  margin: 0 0 0.65rem;
  color: var(--color-red-light);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.program-title {
  max-width: 500px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.program-copy {
  max-width: 500px;
  margin: 1rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.program-meta li {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.program-card .text-link {
  align-self: flex-start;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.about-visual {
  position: relative;
  min-height: 520px;
}

.about-photo {
  position: absolute;
  inset: 0 2.2rem 2.2rem 0;
  width: calc(100% - 2.2rem);
  height: calc(100% - 2.2rem);
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: 56% center;
  filter: saturate(0.75);
}

.about-visual::after {
  position: absolute;
  z-index: 1;
  inset: 0 2.2rem 2.2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  content: "";
  pointer-events: none;
}

.about-note {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: min(245px, 68%);
  padding: 1.5rem;
  border-left: 3px solid var(--color-red);
  background: var(--color-panel-soft);
  box-shadow: var(--shadow-card);
}

.about-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
}

.about-note span {
  display: block;
  margin-top: 0.55rem;
  color: var(--color-muted);
  font-size: 0.7rem;
}

.about-copy .section-title {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
}

.about-copy > p:not(.section-kicker) {
  margin: 1.35rem 0 0;
  color: var(--color-muted);
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 2.2rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.87rem;
}

.feature-list li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 0.62rem;
  background: var(--color-red-light);
  content: "";
  transform: rotate(45deg);
}

/* News / announcements */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 1.7rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #1b1b1d, #111112 78%);
  transition: border-color 180ms ease, transform 180ms ease;
}

.news-card:hover {
  border-color: rgba(225, 43, 72, 0.65);
  transform: translateY(-4px);
}

.news-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.news-category {
  color: var(--color-red-light);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-date {
  color: var(--color-muted-dark);
  font-size: 0.65rem;
}

.news-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
}

.news-copy {
  margin: 0.9rem 0 1.5rem;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.news-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}

/* Testimonials */
.testimonials-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(200, 16, 46, 0.12), transparent 38%),
    var(--color-charcoal);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.testimonial-card {
  min-height: 225px;
  padding: 1.6rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.testimonial-mark {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--color-red-light);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.8;
}

.testimonial-placeholder {
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
}

.testimonial-author {
  display: block;
  margin-top: 1.3rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--color-red);
}

.cta-band::after {
  position: absolute;
  top: -90px;
  right: -30px;
  width: 300px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  content: "";
  transform: rotate(18deg);
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  max-width: 700px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.cta-band p {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
}

.cta-band .button {
  flex: 0 0 auto;
  border-color: #fff;
  background: #fff;
  color: var(--color-red);
}

.cta-band .button:hover {
  background: #f3e8e9;
}

/* Footer */
.site-footer {
  padding: 4rem 0 1.5rem;
  background: #070707;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand-copy {
  max-width: 290px;
  margin: 1.2rem 0 0;
  color: var(--color-muted-dark);
  font-size: 0.78rem;
}

.footer-heading {
  margin: 0 0 1.15rem;
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--color-muted-dark);
  font-size: 0.76rem;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.social-link:hover {
  border-color: var(--color-red-light);
  background: rgba(200, 16, 46, 0.16);
  color: #fff;
}

.social-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.social-link--fill svg {
  fill: currentColor;
  stroke: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.footer-legal p {
  margin: 0;
  color: var(--color-muted-dark);
  font-size: 0.7rem;
}

.footer-legal a {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.3rem;
  color: #6f6b69;
  font-size: 0.65rem;
}

/* WhatsApp floating action */
.whatsapp-float {
  position: fixed;
  z-index: 40;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: #159b55;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.whatsapp-float:hover {
  background: #0f8849;
  transform: translateY(-3px);
}

.whatsapp-float svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

/* Utility / accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #111;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Responsive layouts */
@media (max-width: 1050px) {
  :root { --header-height: 76px; }

  .primary-nav { gap: 0.85rem; }
  .primary-nav a:not(.button) { font-size: 0.66rem; }
  .primary-nav .button { padding-inline: 0.9rem; }
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-social { grid-column: 2 / -1; }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    z-index: 60;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: flex;
    max-height: calc(100svh - var(--header-height));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-line);
    background: rgba(9, 9, 10, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a:not(.button) {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
  }

  .primary-nav a:not(.button)::after { display: none; }
  .primary-nav .button { margin-top: 1rem; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .section-heading-row .section-intro { max-width: 620px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 450px; }
  .about-copy { max-width: 700px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card:last-child { grid-column: 1 / -1; min-height: 250px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card:last-child { grid-column: 1 / -1; }
  .cta-band-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  :root {
    --header-height: 70px;
    --section-space: 4.4rem;
  }

  body { font-size: 14px; }
  .container { width: min(var(--container), calc(100% - 2rem)); }
  .brand-mark { width: 29px; height: 42px; }
  .brand-name { font-size: 1rem; }
  .brand-tagline { font-size: 0.43rem; }
  .hero {
    min-height: 760px;
    min-height: max(760px, 100svh);
    background-position: 48% center;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(5, 5, 6, 0.68), rgba(5, 5, 6, 0.48) 43%, rgba(5, 5, 6, 0.86));
  }
  .hero-content {
    width: calc(100% - 2rem);
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 5rem;
  }
  .hero-symbol { width: 92px; height: 135px; margin-bottom: 1.2rem; }
  .hero-kicker { font-size: 0.58rem; letter-spacing: 0.18em; }
  .hero-title { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .hero-description { max-width: 440px; font-size: 0.88rem; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; margin-top: 1.7rem; }
  .hero-actions .button { width: 100%; }
  .hero-scroll { bottom: 1.2rem; font-size: 0.52rem; }
  .section-title { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .section-intro { font-size: 0.88rem; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 440px; padding: 1.5rem; }
  .program-title { font-size: 2.5rem; }
  .about-visual { min-height: 370px; }
  .about-photo, .about-visual::after { inset: 0 1.2rem 1.5rem 0; width: calc(100% - 1.2rem); height: calc(100% - 1.5rem); }
  .about-note { width: min(215px, 70%); padding: 1.1rem; }
  .about-note strong { font-size: 1.2rem; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card, .news-card:last-child { grid-column: auto; min-height: 260px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card:last-child { grid-column: auto; }
  .testimonial-card { min-height: 190px; }
  .cta-band-inner { gap: 1.5rem; }
  .cta-band .button { width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-social { grid-column: auto; }
  .footer-legal { align-items: flex-start; flex-direction: column; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .whatsapp-float { right: 0.8rem; bottom: 0.8rem; min-height: 50px; padding: 0.7rem 0.9rem; }
  .whatsapp-float span { display: none; }
  .whatsapp-float svg { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
