:root {
  --color-ink: #1d1d1b;
  --color-muted: #686868;
  --color-line: #dedede;
  --color-soft: #f6f5f3;
  --color-paper: #ffffff;
  --color-red: #d4312c;
  --color-steel: #273036;
  --shadow: 0 24px 70px rgba(29, 29, 27, 0.1);
  --max-width: 1500px;
  interpolate-size: allow-keywords;
}

@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: site-header;
}

.site-footer {
  view-transition-name: site-footer;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

main {
  flex: 1 0 auto;
}

body.menu-open {
  overflow: hidden;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 25;
  content: "";
  background: rgba(29, 29, 27, 0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 400ms;
  pointer-events: none;
}

body.menu-open::after {
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
  pointer-events: auto;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(222, 222, 222, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 124px;
  min-width: 124px;
}

.brand picture {
  display: flex;
  width: 100%;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-red);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.25);
  transform-origin: center;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--color-red);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle span + span {
  margin-top: 4.5px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 80svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 118px 0 64px;
  background: var(--color-paper);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(29, 29, 27, 0.18);
  pointer-events: none;
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url("Recursos/Biblioteca/Hero%20section.webp") center / cover no-repeat;
  border-radius: 0;
  opacity: 1;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.hero-media::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.88) 50%, rgba(255, 255, 255, 0.18) 100%);
  opacity: 0;
  animation: hero-soft-light-in 720ms ease 1100ms both;
}

.hero-media::after {
  display: none;
}

.hero-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  will-change: opacity, visibility;
}

.hero-intro-cover {
  fill: var(--color-paper);
}

.hero-intro-symbol {
  will-change: transform;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1240px);
  align-items: center;
  justify-content: center;
}

.hero-news-zone {
  position: absolute;
  top: 134px;
  left: 0;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 clamp(28px, 5vw, 72px);
  pointer-events: none;
}

.hero-copy,
.section-heading,
.about-copy {
  position: relative;
  padding-left: clamp(24px, 3.2vw, 42px);
}

.hero-copy {
  padding-left: 0;
  color: var(--color-ink);
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy::before,
.section-heading::before,
.about-copy::before {
  position: absolute;
  top: 0.08em;
  left: 0;
  width: clamp(12px, 1.8vw, 24px);
  height: clamp(48px, 5.8vw, 68px);
  content: "";
  background: var(--color-red);
  opacity: 0;
  transform: scaleY(0.28);
  transform-origin: top;
  transition: opacity 500ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.section-heading.is-visible::before,
.about-copy.is-visible::before {
  opacity: 1;
  transform: scaleY(1);
  animation: title-marker-settle 1200ms ease 650ms both;
}

.section-heading > .eyebrow,
.section-heading > h1,
.section-heading > h2,
.section-heading > p:not(.eyebrow),
.about-copy > .eyebrow,
.about-copy > h2,
.about-copy > p,
.about-copy > .about-list,
.trial-note {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 660ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.section-heading.is-visible > .eyebrow,
.about-copy.is-visible > .eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 80ms;
}

.section-heading.is-visible > h1,
.section-heading.is-visible > h2,
.about-copy.is-visible > h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 180ms;
}

.section-heading.is-visible > p:not(.eyebrow),
.about-copy.is-visible > p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 300ms;
}

.section-heading.is-visible > .trial-note,
.about-copy.is-visible > .about-list {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 420ms;
}

.hero-copy::before {
  display: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-copy h2 {
  margin: 0;
  max-width: 900px;
  font-weight: 500;
  line-height: 1.04;
}

.hero h1 {
  max-width: 1240px;
  font-weight: 500;
  font-size: clamp(3.2rem, 5.5vw, 5.8rem);
  letter-spacing: -0.02em;
}

.hero-title-line {
  display: block;
}

.hero-title-emphasis {
  font-weight: 700;
}

.hero-copy > .eyebrow,
.hero-title-line,
.hero-copy > p:not(.eyebrow),
.hero-news-alert,
.hero-actions a {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-text-item-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy > .eyebrow {
  animation-delay: 1100ms;
}

.hero-title-line:nth-child(1) {
  animation-delay: 1190ms;
}

.hero-title-line:nth-child(2) {
  animation-delay: 1300ms;
}

.hero-title-line:nth-child(3) {
  animation-delay: 1410ms;
}

.hero-copy > p:not(.eyebrow) {
  animation-delay: 1570ms;
}

.hero-news-alert {
  width: fit-content;
  max-width: min(760px, 100%);
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 29, 27, 0.22);
  border-radius: 8px;
  color: var(--color-ink);
  box-shadow: 0 18px 48px rgba(29, 29, 27, 0.12);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  animation-delay: 1650ms;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-news-alert:hover,
.hero-news-alert:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(212, 49, 44, 0.58);
  box-shadow: 0 22px 54px rgba(29, 29, 27, 0.13);
}

.hero-news-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  background: var(--color-red);
  border-radius: 6px;
  color: var(--color-paper);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-news-title {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 800;
}

.hero-news-arrow {
  color: var(--color-red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions a:nth-child(1) {
  animation-delay: 1810ms;
}

.hero-actions a:nth-child(2) {
  animation-delay: 1910ms;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 28px auto 0;
  color: var(--color-ink);
  opacity: 0.8;
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions .button {
  width: 220px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 18px;
  border: 1px solid var(--color-ink);
  border-radius: 8px;
  font-weight: 900;
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms ease,
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.button::before {
  display: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(29, 29, 27, 0.16);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-paper);
}

.button-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-paper);
  box-shadow: 0 18px 38px rgba(29, 29, 27, 0.2);
}


.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 820ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 920ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.intro-band {
  padding: 44px 0;
  background: var(--color-ink);
  color: var(--color-paper);
}

.intro-grid {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.intro-grid p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.02rem, 1.45vw, 1.36rem);
  font-weight: 400;
  line-height: 1.12;
}

.federation-logos {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  justify-content: center;
}

.federation-logos img {
  width: auto;
  height: clamp(50px, 4.6vw, 70px);
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.federation-logos img:hover {
  filter: grayscale(0%) opacity(1);
}


.section-heading {
  max-width: 780px;
}

.container.section-heading {
  max-width: var(--max-width);
}

.section-heading h2,
.about-copy h2 {
  font-size: clamp(1.8rem, 3.1vw, 3.2rem);
  font-weight: 500;
}

.section-heading > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 1.03rem;
}

.error-section {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.error-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.error-copy.section-heading h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
}

.error-copy.section-heading p {
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.error-section .button {
  margin-top: 34px;
}

/* Interactive Isotype Card and Particle Canvas on 404 Page */
.interactive-404-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  width: 100%;
}

.interactive-isotype-card {
  position: relative;
  width: 320px;
  height: 320px;
  background: var(--color-soft);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 44px rgba(29, 29, 27, 0.04);
  overflow: hidden;
  cursor: crosshair;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
  transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform;
  
  /* Prevent browser text selection when clicking rapidly */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.interactive-isotype-card:hover {
  border-color: rgba(212, 49, 44, 0.24);
  box-shadow: 0 24px 60px rgba(212, 49, 44, 0.06), 0 12px 30px rgba(29, 29, 27, 0.05);
}

.isotype-404-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  pointer-events: none;
  transform: translateZ(40px); /* 3D depth pop */
  transition: transform 0.25s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.06));
  
  /* Additional insurance to prevent image selection */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}


.isotype-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(212, 49, 44, 0.08) 0%, transparent 60%);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.interactive-hint {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin: 0;
  transition: color 0.3s ease;
}

.interactive-isotype-card:hover + .interactive-hint {
  color: var(--color-red);
}

@media (max-width: 980px) {
  .error-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .error-copy.section-heading {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .error-copy.section-heading::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .interactive-isotype-card {
    width: 280px;
    height: 280px;
  }
  
  .isotype-404-img {
    width: 120px;
    height: 120px;
  }
}


.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}

.discipline-card {
  position: relative;
  min-height: 320px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--color-paper);
  overflow: hidden;
}

.discipline-card::before {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 0;
  width: 3px;
  content: "";
  background: var(--color-red);
  transform: scaleY(0.18);
  transform-origin: top;
  transition: transform 450ms ease;
}

.discipline-card:hover::before {
  transform: scaleY(1);
}

.card-number {
  color: var(--color-red);
  font-weight: 800;
}

.discipline-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.6vw, 1.7rem);
  line-height: 1.08;
}

.discipline-card p {
  margin: 0;
  color: var(--color-muted);
}

.discipline-more {
  display: flex;
  justify-content: flex-start;
  margin-top: 28px;
}

.schedule-section {
  background: var(--color-soft);
  border-top: 1px solid rgba(29, 29, 27, 0.06);
}

.schedule-layout {
  display: block;
}

.schedule-panel {
  min-width: 0;
  margin-top: 34px;
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 18px;
}

.schedule-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 0 13px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-paper);
}

.schedule-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.schedule-table {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.schedule-bento[data-filter]:not([data-filter="all"]) {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}


.schedule-bento-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(29, 29, 27, 0.05);
}

.schedule-bento-card.is-hidden {
  display: none;
}

.schedule-bento-card-karate {
  grid-row: 1 / span 2;
}

.schedule-bento-title {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px 18px 14px;
  background: var(--color-paper);
  border-bottom: 1px solid rgba(29, 29, 27, 0.08);
}

.schedule-bento-title h3 {
  position: relative;
  max-width: 240px;
  margin: 0;
  padding-left: 16px;
  color: var(--color-ink);
  font-size: clamp(1.2rem, 1.65vw, 1.7rem);
  font-weight: 700;
  line-height: 1.04;
  text-align: left;
}

.schedule-bento-title h3::before {
  position: absolute;
  top: 0.1em;
  bottom: 0.1em;
  left: 0;
  width: 4px;
  content: "";
  background: var(--color-red);
}

.schedule-bento-rows {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(246, 245, 243, 0.42), rgba(255, 255, 255, 0));
}

.schedule-bento-card:not(.schedule-bento-card-karate) .schedule-bento-rows {
  align-content: center;
}

.schedule-bento-card-karate .schedule-bento-rows,
.schedule-bento[data-filter="karate"] .schedule-bento-rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 0;
  align-items: center;
  padding: 14px;
  background: rgba(246, 245, 243, 0.7);
  border: 1px solid rgba(29, 29, 27, 0.1);
  border-radius: 8px;
  box-shadow: none;
  
  /* Sizing, opacity, and transform defaults for dynamic transitions */
  opacity: 1;
  transform: scale(1) translateY(0);
  max-height: 250px;
  overflow: hidden;
  transition: border-color 180ms ease, 
              box-shadow 180ms ease, 
              transform 350ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 350ms cubic-bezier(0.16, 1, 0.3, 1),
              max-height 350ms cubic-bezier(0.16, 1, 0.3, 1),
              padding 350ms cubic-bezier(0.16, 1, 0.3, 1),
              margin 350ms cubic-bezier(0.16, 1, 0.3, 1),
              border-width 350ms cubic-bezier(0.16, 1, 0.3, 1),
              display 350ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
  will-change: opacity, transform, max-height;
}


.schedule-row[data-category]:hover,
.schedule-row[data-category]:focus-within {
  border-color: rgba(212, 49, 44, 0.36);
  box-shadow: 0 18px 44px rgba(29, 29, 27, 0.08);
  transform: translateY(-2px);
}

.schedule-row[data-category] {
  gap: 10px;
  min-height: 0;
  padding: 14px;
  background: rgba(246, 245, 243, 0.7);
  border: 1px solid rgba(29, 29, 27, 0.1);
  border-radius: 8px;
  box-shadow: none;
}

.schedule-row[data-category]::after {
  display: none;
}

.schedule-row[data-category]:hover::after,
.schedule-row[data-category]:focus-within::after {
  border-color: rgba(212, 49, 44, 0.36);
  box-shadow: 0 10px 26px rgba(29, 29, 27, 0.05);
}

.schedule-row[data-category] > span {
  position: relative;
  z-index: 1;
}

.schedule-row[data-category] > span:nth-child(1) {
  grid-column: auto;
  grid-row: auto;
}

.schedule-row[data-category] > span:nth-child(2) {
  grid-column: auto;
  grid-row: auto;
  padding-left: 0;
}

.schedule-row[data-category] > span:nth-child(3) {
  grid-column: auto;
  grid-row: auto;
  padding-left: 0;
}

.schedule-row[data-category] > span:nth-child(4) {
  display: none;
}

.schedule-row[data-category] > span:first-child {
  display: grid;
  gap: 5px;
  min-height: auto;
  align-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.schedule-row[data-category]:hover > span:first-child,
.schedule-row[data-category]:focus-within > span:first-child {
  border-color: rgba(212, 49, 44, 0.36);
  box-shadow: 0 10px 26px rgba(29, 29, 27, 0.05);
}

.schedule-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.schedule-row > span:first-child {
  font-weight: 800;
}

.schedule-row > span:not(:first-child),
.schedule-row > span:first-child b {
  color: var(--color-muted);
}

.schedule-row > span:first-child b {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--color-ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: normal;
}

.schedule-row > span:first-child b::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  content: "";
  background: var(--color-red);
}

.schedule-row .group-cell {
  display: grid;
  gap: 3px;
  padding-left: 0;
}

.schedule-row .group-cell strong {
  color: var(--color-ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.08;
}

.schedule-row .group-cell small {
  color: var(--color-red);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
}

.schedule-row > span:nth-child(2) {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}


.schedule-row > span:nth-child(3) {
  display: inline-flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(212, 49, 44, 0.28);
  border-left: 4px solid var(--color-red);
  border-radius: 8px;
  color: var(--color-ink);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.schedule-row > span:nth-child(4) {
  display: none;
}

.schedule-row.is-hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.95) translateY(8px);
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  pointer-events: none;
}

@starting-style {
  .schedule-row:not(.is-hidden) {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-row {
    transition: none !important;
  }
}


.schedule-head {
  min-height: 52px;
  background: var(--color-ink);
  color: var(--color-paper);
  border-color: var(--color-ink);
  box-shadow: none;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-head span:first-child,
.schedule-head span:nth-child(2),
.schedule-head span:nth-child(3) {
  display: block;
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--color-paper);
  font-size: 0.74rem;
  line-height: 1.2;
}

.schedule-head span:not(:first-child) {
  color: var(--color-paper);
}

.schedule-note {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  border-left: 5px solid var(--color-red);
  margin: 16px 0 0;
  background: var(--color-paper);
  border-radius: 0 8px 8px 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.schedule-note strong {
  color: var(--color-ink);
}

.news-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 245, 243, 0.72) 42%, rgba(255, 255, 255, 0.94)),
    var(--color-soft);
  color: var(--color-ink);
  border-top: 1px solid rgba(29, 29, 27, 0.06);
  border-bottom: 1px solid rgba(29, 29, 27, 0.06);
}

.news-section > .container {
  position: relative;
  z-index: 1;
}

.news-section .section-heading h2 {
  color: var(--color-ink);
}

.news-section .section-heading > p:not(.eyebrow) {
  color: var(--color-muted);
}

.news-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
}

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 14px;
  margin-top: 42px;
}

.news-more {
  margin-top: 36px;
}

.news-card {
  position: relative;
  min-height: 320px;
  display: grid;
  grid-template-rows: minmax(180px, 1fr) auto;
  overflow: hidden;
  background: var(--color-paper);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 8px;
  box-shadow: 0 22px 64px rgba(29, 29, 27, 0.09);
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover,
.news-card:focus-visible {
  border-color: rgba(212, 49, 44, 0.36);
  box-shadow: 0 32px 86px rgba(29, 29, 27, 0.15);
  transform: translateY(-6px);
}

.news-card-large {
  grid-row: span 2;
  min-height: 654px;
}

.news-image {
  position: relative;
  min-height: 210px;
  background:
    linear-gradient(rgba(29, 29, 27, 0.04), rgba(29, 29, 27, 0.04)),
    var(--news-image) center / cover no-repeat;
  transform: scale(1);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease;
  transform-origin: center;
}

.news-card:hover .news-image,
.news-card:focus-visible .news-image {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.035);
}

.news-card-large .news-image {
  min-height: 420px;
}

.news-image::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  height: 8px;
  content: "";
  background: var(--color-red);
  transform: scaleX(0.72);
  transform-origin: right;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-image::after,
.news-card:focus-visible .news-image::after {
  transform: scaleX(1);
}

.news-content {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(18px, 2.4vw, 28px);
  background: rgba(255, 255, 255, 0.92);
}

.news-meta {
  color: var(--color-red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-content strong {
  color: var(--color-ink);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.04;
  transition: color 220ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-content strong,
.news-card:focus-visible .news-content strong {
  color: var(--color-red);
  transform: translateY(-2px);
}

.news-content span:last-child {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.about-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 900px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.98) 0 28%, rgba(255, 255, 255, 0.82) 42%, rgba(246, 245, 243, 0.6) 100%),
    var(--color-soft);
}

.about-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(29, 29, 27, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 27, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 45%, transparent 0 26%, #000 72%);
  pointer-events: none;
}

.about-center {
  position: relative;
  z-index: 10000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}

.about-section .about-copy {
  position: relative;
  z-index: 0;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 0;
  text-align: center;
}

.about-section .about-copy::before {
  display: none;
}

.about-story-copy {
  position: relative;
}

.about-photo-collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-photo-collage-left {
  left: 0;
}

.about-photo-collage-right {
  right: 0;
}

.about-polaroid {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z);
  width: min(var(--w), 18vw);
  height: auto;
  padding: 9px 9px 24px;
  background: var(--color-paper);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 6px;
  box-shadow:
    0 24px 54px rgba(29, 29, 27, 0.14),
    0 6px 14px rgba(29, 29, 27, 0.08);
  object-fit: contain;
  cursor: grab;
  pointer-events: auto;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: none;
  transform:
    translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0)
    rotate(var(--r));
  transition:
    box-shadow 260ms ease,
    filter 260ms ease;
  will-change: transform;
}

.about-polaroid-featured {
  width: min(var(--w), 22vw);
}

.about-polaroid:hover,
.about-polaroid:focus-visible {
  filter: saturate(1.04) contrast(1.02);
  box-shadow:
    0 34px 70px rgba(29, 29, 27, 0.18),
    0 10px 20px rgba(29, 29, 27, 0.1);
}

.about-polaroid.is-dragging {
  cursor: grabbing;
  transition: box-shadow 160ms ease, filter 160ms ease;
  filter: saturate(1.05) contrast(1.03);
  box-shadow:
    0 40px 80px rgba(29, 29, 27, 0.2),
    0 12px 24px rgba(29, 29, 27, 0.12);
}

.about-copy p:not(.eyebrow) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-muted);
  font-size: 1.03rem;
}

.about-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  padding: 9px 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.about-achievements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
  max-width: 680px;
}

.achievement-card {
  background: var(--color-soft);
  border-left: 3px solid var(--color-red);
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease;
}

.achievement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(29, 29, 27, 0.04);
}

.achievement-number-wrapper {
  display: flex;
  align-items: baseline;
  color: var(--color-red);
}

.achievement-number {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
}

.achievement-plus {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  margin-left: 2px;
  color: var(--color-red);
}

.achievement-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.master-summary {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 18px;
  align-items: center;
  max-width: 760px;
  margin-top: 22px;
  padding: 24px;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 20px 54px rgba(29, 29, 27, 0.06);
}

.master-summary .button {
  pointer-events: auto;
}

.master-summary h3 {
  margin: 6px 0 10px;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1;
}

.master-summary p:not(.eyebrow) {
  margin: 0;
  font-size: 0.98rem;
}

.master-summary .button {
  white-space: nowrap;
}

.faq-section {
  background: var(--color-paper);
  border-top: 1px solid rgba(29, 29, 27, 0.06);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  background: var(--color-soft);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 420ms cubic-bezier(0.16, 1, 0.3, 1),
    content-visibility 420ms allow-discrete;
}

.faq-item[open] {
  background: var(--color-paper);
  border-color: rgba(212, 49, 44, 0.32);
  box-shadow: 0 14px 32px rgba(29, 29, 27, 0.06);
}

.faq-item[open]::details-content {
  block-size: auto;
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 16px 18px;
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  content: "";
  border-right: 2px solid var(--color-red);
  border-bottom: 2px solid var(--color-red);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.contact-section {
  position: relative;
  overflow: hidden;
  color: var(--color-paper);
  background:
    linear-gradient(90deg, rgba(212, 49, 44, 0.2) 0 1px, transparent 1px 42px),
    var(--color-ink);
  box-shadow: inset 0 8px 0 var(--color-red);
}

.contact-section .section-heading h2 {
  color: var(--color-paper);
}

.contact-section .section-heading > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.trial-note {
  display: inline-flex;
  max-width: 420px;
  margin-top: 26px;
  padding: 14px 18px;
  color: var(--color-paper);
  background: rgba(212, 49, 44, 0.22);
  border-left: 5px solid var(--color-red);
  border-radius: 0 8px 8px 0;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 500;
  line-height: 1.28;
}

.trial-cta {
  width: fit-content;
  margin-top: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.58fr) minmax(0, 1.25fr);
  gap: clamp(42px, 7vw, 120px);
  align-items: start;
}

.contact-side {
  display: grid;
  grid-template-columns: minmax(250px, 0.45fr) minmax(360px, 0.75fr);
  gap: 20px;
  align-items: stretch;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.contact-blocks {
  display: grid;
  gap: 12px;
}

.contact-block {
  display: grid;
  gap: 7px;
  min-height: auto;
  align-content: center;
  padding: 0 0 15px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  color: var(--color-paper);
  box-shadow: none;
  transition: color 180ms ease, transform 180ms ease;
}

.contact-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-block:hover,
.contact-block:focus-visible {
  color: var(--color-paper);
  transform: translateY(-2px);
}

.contact-block span {
  color: var(--color-red);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-block strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.12;
}

.contact-form {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 20px;
  background: var(--color-paper);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--color-ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label span {
  color: var(--color-red);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
  transform-origin: left center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  background: var(--color-soft);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form textarea {
  min-height: 126px;
  resize: vertical;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(212, 49, 44, 0.24);
  background-color: var(--color-paper);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-red);
  background-color: var(--color-paper);
  box-shadow: 0 0 0 4px rgba(212, 49, 44, 0.12), 0 4px 12px rgba(29, 29, 27, 0.04);
  outline: 0;
  transform: translateY(-1px);
}

/* Active Label Shifts using :has() */
.contact-form label:has(input:focus) span,
.contact-form label:has(textarea:focus) span {
  color: var(--color-ink);
  transform: translateX(4px);
}

/* Modern Validation Styling */
.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: #e53e3e !important;
  background-color: rgba(229, 62, 62, 0.02) !important;
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.08) !important;
}

.contact-form label:has(input:user-invalid) span,
.contact-form label:has(textarea:user-invalid) span {
  color: #e53e3e !important;
}


.contact-form .button {
  width: fit-content;
}

.form-status {
  min-height: 1.2em;
  margin: -4px 0 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.site-footer {
  padding: clamp(34px, 5vw, 54px) 0 28px;
  background: var(--color-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px clamp(28px, 6vw, 96px);
  font-size: 0.88rem;
}

.footer-grid > span:first-child {
  grid-column: 1;
  grid-row: 1;
  color: var(--color-paper);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-grid a {
  color: var(--color-paper);
}

.footer-grid > a:last-child {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--color-paper);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.footer-grid > a:last-child:hover,
.footer-grid > a:last-child:focus-visible {
  background: var(--color-paper);
  border-color: var(--color-paper);
  color: var(--color-ink);
}

.footer-credit {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-legal {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--color-paper);
}

.form-legal {
  max-width: 680px;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-legal a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.trial-floating-card {
  position: fixed;
  right: clamp(18px, 2.6vw, 42px);
  bottom: clamp(18px, 2.6vw, 42px);
  z-index: 24;
  width: min(360px, calc(100vw - 36px));
  overflow: hidden;
  padding: 22px 54px 22px 24px;
  background: var(--color-ink);
  border: 1px solid rgba(212, 49, 44, 0.6);
  border-radius: 8px;
  color: var(--color-paper);
  box-shadow: 0 24px 70px rgba(29, 29, 27, 0.28);
  backdrop-filter: blur(18px);
  animation: trial-card-in 520ms cubic-bezier(0.16, 1, 0.3, 1) 1700ms both;
}

.trial-floating-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  content: "";
  background: var(--color-red);
}

.trial-floating-card.is-closing {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.trial-floating-card p {
  position: relative;
  z-index: 1;
  margin: 10px 0 16px;
  max-width: 230px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.18;
}

.trial-floating-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  background: var(--color-red);
  border-radius: 6px;
  color: var(--color-paper);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trial-floating-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.trial-floating-link:hover,
.trial-floating-link:focus-visible {
  color: var(--color-paper);
  transform: translateX(3px);
}

.trial-floating-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.trial-floating-close:hover,
.trial-floating-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-paper);
  transform: scale(1.04);
}

@keyframes trial-card-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.legal-page {
  background: var(--color-paper);
}

.legal-hero {
  padding: 148px 0 48px;
  background: var(--color-soft);
}

.legal-content {
  max-width: 840px;
  padding: 72px 0 112px;
}

.legal-content h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.legal-content a {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Accordion Collapsible Cards for Legal Pages */
.legal-content {
  display: grid;
  gap: 16px;
}

.legal-collapsible {
  background: rgba(246, 245, 243, 0.4);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.legal-collapsible:hover {
  border-color: rgba(212, 49, 44, 0.2);
  background: var(--color-paper);
  box-shadow: 0 8px 24px rgba(29, 29, 27, 0.04);
}

.legal-collapsible[open] {
  background: var(--color-paper);
  border-color: var(--color-line);
  box-shadow: 0 12px 36px rgba(29, 29, 27, 0.05);
}

.legal-collapsible summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.legal-collapsible summary::-webkit-details-marker {
  display: none;
}

.legal-collapsible summary h2 {
  margin: 0 !important;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem) !important;
  font-weight: 800 !important;
  color: var(--color-ink) !important;
  transition: color 0.25s ease;
  letter-spacing: -0.01em;
}

.legal-collapsible:hover summary h2,
.legal-collapsible[open] summary h2 {
  color: var(--color-red) !important;
}

.legal-collapsible .collapsible-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 16px;
}

.legal-collapsible .collapsible-icon::before,
.legal-collapsible .collapsible-icon::after {
  content: '';
  position: absolute;
  background: var(--color-ink);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.legal-collapsible .collapsible-icon::before {
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
}

.legal-collapsible .collapsible-icon::after {
  top: 2px;
  left: 8px;
  width: 2px;
  height: 14px;
}

.legal-collapsible[open] .collapsible-icon::before {
  transform: rotate(180deg);
  background: var(--color-red);
}

.legal-collapsible[open] .collapsible-icon::after {
  transform: rotate(90deg) scale(0);
  background: var(--color-red);
}

.legal-collapsible:hover .collapsible-icon::before,
.legal-collapsible:hover .collapsible-icon::after {
  background: var(--color-red);
}

.legal-collapsible .collapsible-content {
  padding: 0 24px 24px;
  border-top: 1px solid transparent;
  animation: legal-slide-down 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.legal-collapsible .collapsible-content > *:first-child {
  margin-top: 20px;
}

.legal-collapsible[open] .collapsible-content {
  border-top-color: var(--color-line);
}

@keyframes legal-slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.news-article-hero {
  padding: 132px 0 64px;
  background: var(--color-soft);
}

.news-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 38px);
  max-width: 860px;
}

.news-article-copy h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(2.25rem, 3.9vw, 4.25rem);
  font-weight: 500;
  line-height: 1;
}

.news-article-copy p:not(.eyebrow) {
  max-width: 100%;
  margin-top: 28px;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.article-meta {
  display: grid;
  gap: 2px;
  margin-bottom: clamp(22px, 2.6vw, 36px);
  color: var(--color-muted);
  font-size: clamp(0.95rem, 1.08vw, 1.06rem);
  font-weight: 400;
}

.article-meta span {
  color: var(--color-muted);
  font-size: clamp(0.72rem, 0.82vw, 0.8rem);
  font-weight: 500;
  text-transform: uppercase;
}

.article-meta time {
  font: inherit;
  font-weight: 400;
}

.news-article-media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--color-soft);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(29, 29, 27, 0.12);
}

.news-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-slider-track {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.article-slider.is-touching .article-slider-track {
  cursor: grabbing;
}

.article-slider.is-dragging .article-slide.is-active {
  transform: scale(0.992);
}

.article-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition:
    opacity 700ms ease,
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 260ms ease;
}

.article-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.article-slider.is-dragging .article-slide.is-active {
  filter: brightness(0.96);
}

.article-slider-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  color: var(--color-ink);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(29, 29, 27, 0.12);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(29, 29, 27, 0.14);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.article-slider-button:hover,
.article-slider-button:focus-visible {
  background: var(--color-paper);
  border-color: rgba(212, 49, 44, 0.42);
  transform: translateY(-50%) scale(1.04);
}

.article-slider-prev {
  left: 18px;
}

.article-slider-next {
  right: 18px;
}

.article-slider-dots {
  position: absolute;
  right: 50%;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(29, 29, 27, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  transform: translateX(50%);
}

.article-slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(29, 29, 27, 0.26);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease, transform 220ms ease;
}

.article-slider-dots button.is-active {
  width: 24px;
  background: var(--color-red);
}

.article-slider-dots button:hover,
.article-slider-dots button:focus-visible {
  transform: scale(1.18);
}

.article-slider-count {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 2;
  padding: 8px 10px;
  color: rgba(29, 29, 27, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(29, 29, 27, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.news-article-media::after {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 10px;
  content: "";
  background: var(--color-red);
}

.news-article-body {
  padding-top: clamp(36px, 5vw, 64px);
  background: var(--color-paper);
}

.news-article-content {
  max-width: 860px;
}

.news-article-content p {
  color: var(--color-muted);
  font-size: 1.06rem;
}

.news-article-content h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.06;
}

.article-result-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 30px;
  padding: 0;
  color: var(--color-muted);
  font-size: 1.06rem;
  list-style: none;
}

.article-result-list li {
  position: relative;
  padding-left: 22px;
}

.article-result-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--color-red);
}

.article-result-list strong {
  color: var(--color-ink);
  font-weight: 700;
}

.news-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.master-hero {
  padding: 132px 0 72px;
  background: var(--color-soft);
}

.master-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: end;
}

.master-hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 7.4rem);
  font-weight: 500;
  line-height: 0.92;
}

.master-hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 28px;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
}

.master-hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: var(--color-paper);
  border-radius: 8px;
  box-shadow: 0 28px 78px rgba(29, 29, 27, 0.12);
}

.master-hero-media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64%;
  height: 10px;
  content: "";
  background: var(--color-red);
}

.master-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
}

.master-article-body {
  background: var(--color-paper);
}

.master-article-content {
  max-width: 920px;
}

.master-article-content > p {
  max-width: 760px;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
}

.master-article-content > h2 {
  margin: 54px 0 14px;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
}

/* ==========================================================================
   Master Timeline Section
   ========================================================================== */
.master-timeline {
  position: relative;
  max-width: 840px;
  margin: 64px auto 84px;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-line);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 50%;
  padding: 16px 40px 16px 0;
  box-sizing: border-box;
}

/* Alternar lados */
.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  margin-left: 50%;
  padding: 16px 0 16px 40px;
}

.timeline-badge {
  position: absolute;
  right: -6px;
  top: 32px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:nth-child(even) .timeline-badge {
  left: -6px;
  right: auto;
}

.badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-muted);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card {
  position: relative;
  width: 100%;
  padding: 28px;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  transition: all 450ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(29, 29, 27, 0.02);
  cursor: default;
}

.timeline-year {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--color-soft);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card h3 {
  margin: 0 0 10px;
  color: #1d1d1b;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.1;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Efectos de Hover y Enfoque Premium (Aura Glow HSL) */
.timeline-card:hover,
.timeline-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(212, 49, 44, 0.08);
}

.timeline-card:hover .timeline-year,
.timeline-card:focus-within .timeline-year {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.timeline-card:hover h3,
.timeline-card:focus-within h3 {
  color: var(--color-primary);
}

.timeline-item:hover .timeline-badge,
.timeline-item:focus-within .timeline-badge {
  border-color: var(--color-primary);
  background: var(--color-paper);
  box-shadow: 0 0 12px rgba(212, 49, 44, 0.4);
}

.timeline-item:hover .badge-dot,
.timeline-item:focus-within .badge-dot {
  background: var(--color-primary);
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
    transform: none;
  }
  
  .timeline-item {
    width: 100%;
    padding: 16px 0 16px 40px;
    justify-content: flex-start;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding: 16px 0 16px 40px;
  }
  
  .timeline-badge {
    left: 14px;
    right: auto;
    top: 28px;
  }
  
  .timeline-item:nth-child(even) .timeline-badge {
    left: 14px;
  }
}

/* ==========================================================================
   Master CV Bento / Tabs Section
   ========================================================================== */
.master-cv-section {
  margin: 92px auto 64px;
  max-width: 100%;
  background: var(--color-soft);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 16px;
  padding: 38px clamp(20px, 4vw, 42px) 44px;
  box-shadow: 0 16px 48px rgba(29, 29, 27, 0.03);
}

.cv-heading {
  margin: 0 0 28px !important;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem) !important;
  font-weight: 800 !important;
  color: var(--color-ink) !important;
  letter-spacing: -0.01em;
  text-align: center;
}

.cv-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
  width: 100%;
}

.cv-tabs {
  position: relative;
  display: flex;
  background: rgba(29, 29, 27, 0.04);
  padding: 5px;
  border-radius: 30px;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.cv-tabs::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.cv-tab-btn {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  padding: 10px 22px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 25px;
  white-space: nowrap;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
}

.cv-tab-btn.is-active {
  color: var(--color-red);
}

.cv-tabs-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  background: var(--color-paper);
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(29, 29, 27, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}

.cv-panels-container {
  position: relative;
  width: 100%;
}

.cv-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              display 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
}

.cv-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .cv-panel.is-active {
    opacity: 0;
    transform: translateY(10px);
  }
}

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

.cv-list li {
  position: relative;
  background: var(--color-paper);
  border: 1px solid rgba(29, 29, 27, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 3px;
  height: 18px;
  background: transparent;
  border-radius: 0 4px 4px 0;
  transition: background-color 0.25s ease;
}

.cv-list li:hover {
  border-color: rgba(212, 49, 44, 0.2);
  box-shadow: 0 10px 24px rgba(212, 49, 44, 0.03), 0 4px 12px rgba(29, 29, 27, 0.02);
  transform: translateY(-1px);
}

.cv-list li:hover::before {
  background-color: var(--color-red);
}

.cv-list li strong {
  font-size: 0.96rem;
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.25;
}

.cv-list li span {
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.45;
}

@media (max-width: 680px) {
  .master-cv-section {
    margin: 64px auto 44px;
    padding: 28px 16px 32px;
    border-radius: 12px;
  }
  
  .cv-tabs-container {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
  }
  
  .cv-tabs {
    width: max-content;
  }
  
  .cv-tab-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
  }
  
  .cv-list li {
    padding: 14px 16px;
  }
  
  .cv-list li strong {
    font-size: 0.9rem;
  }
  
  .cv-list li span {
    font-size: 0.8rem;
  }
}


.news-index-page {
  background: var(--color-soft);
  --max-width: 1200px;
}

.news-index-hero {
  padding: 136px 0 36px;
}

.news-index-heading {
  max-width: 1500px;
}

.news-index-heading h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.9rem, 5.8vw, 5.8rem);
  font-weight: 500;
  line-height: 0.96;
}

.news-index-heading p:not(.eyebrow) {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
}

.news-index-body {
  padding: 0 0 clamp(70px, 8vw, 118px);
}

.news-index-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}

.news-index-card {
  position: relative;
  grid-column: span 2;
  min-height: 0;
  display: grid;
  grid-template-rows: 260px minmax(230px, auto);
  overflow: hidden;
  background: var(--color-paper);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(29, 29, 27, 0.08);
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms ease,
    border-color 320ms ease;
}

.news-index-card:hover,
.news-index-card:focus-visible {
  border-color: rgba(212, 49, 44, 0.32);
  box-shadow: 0 34px 92px rgba(29, 29, 27, 0.14);
  transform: translateY(-7px);
}

.news-index-featured {
  aspect-ratio: 16 / 9;
  min-height: 0;
  grid-column: 1 / -1;
  grid-template-rows: 1fr;
  color: var(--color-paper);
}

.news-index-image {
  min-height: 0;
  background:
    linear-gradient(rgba(29, 29, 27, 0.04), rgba(29, 29, 27, 0.04)),
    var(--news-image) center / cover no-repeat;
  transform: scale(1);
  transition: transform 950ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease;
}

.news-index-card:hover .news-index-image,
.news-index-card:focus-visible .news-index-image {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.035);
}

.news-index-featured .news-index-image {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.news-index-featured .news-index-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(29, 29, 27, 0.82) 0%, rgba(29, 29, 27, 0.36) 48%, rgba(29, 29, 27, 0.06) 100%);
  transition: background 400ms ease;
}

.news-index-featured:hover .news-index-image::after,
.news-index-featured:focus-visible .news-index-image::after {
  background: linear-gradient(0deg, rgba(29, 29, 27, 0.88) 0%, rgba(29, 29, 27, 0.4) 50%, rgba(29, 29, 27, 0.08) 100%);
}

.news-index-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-content: end;
  padding: clamp(24px, 3vw, 38px);
}

.news-index-content strong {
  max-width: 860px;
  color: var(--color-ink);
  font-size: clamp(1.35rem, 1.9vw, 2rem);
  font-weight: 600;
  line-height: 1.02;
  transition: color 240ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.news-index-card:not(.news-index-featured):hover .news-index-content strong,
.news-index-card:not(.news-index-featured):focus-visible .news-index-content strong {
  color: var(--color-red);
  transform: translateY(-2px);
}

.news-index-featured .news-index-content strong {
  font-size: clamp(1.8rem, 3.2vw, 3.8rem);
  font-weight: 700;
}

.news-index-summary {
  max-width: 640px;
  color: var(--color-muted);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
}

.news-index-date {
  align-self: end;
  margin-top: auto;
  color: rgba(105, 105, 105, 0.9);
  font-size: clamp(0.86rem, 0.95vw, 0.96rem);
  font-weight: 500;
  line-height: 1.2;
}

.news-index-featured .news-index-content strong,
.news-index-featured .news-index-summary {
  color: var(--color-paper);
}

.news-index-featured .news-index-date {
  color: rgba(255, 255, 255, 0.86);
}

.news-index-featured .news-meta {
  color: var(--color-paper);
}

.news-index-card:not(.news-index-featured) .news-index-content {
  align-content: start;
  grid-template-rows: auto auto auto 1fr;
}

.news-index-card:not(.news-index-featured) {
  height: 100%;
}

.disciplines-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(680px, 84vh, 860px);
  display: grid;
  align-items: center;
  padding: 124px 0 72px;
  background: var(--color-paper);
}

.disciplines-hero::before {
  position: absolute;
  right: -90px;
  bottom: 10%;
  width: 260px;
  height: 260px;
  content: "";
  background: var(--color-red);
  border-radius: 50%;
  opacity: 0.92;
}

.disciplines-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.85fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}

.disciplines-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  font-weight: 500;
  line-height: 1;
}

.disciplines-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.brochure-composition {
  position: relative;
  min-height: 620px;
}

.brochure-logo {
  width: min(44%, 250px);
  margin: 0 auto 40px;
}

.brochure-logo img {
  width: 100%;
}

.circle {
  position: absolute;
  overflow: hidden;
  background:
    linear-gradient(rgba(29, 29, 27, 0.12), rgba(29, 29, 27, 0.12)),
    url("Recursos/Biblioteca/Hero%20section.webp") center / cover;
  border-radius: 50%;
  box-shadow: 0 22px 60px rgba(29, 29, 27, 0.13);
}

.circle-main {
  left: 50%;
  bottom: 34px;
  width: min(78%, 440px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background-position: 50% 93%;
  background-size: 190% auto;
}

.circle-small {
  bottom: 0;
  width: 220px;
  aspect-ratio: 1;
}

.circle-left {
  left: 0;
  background-position: 40% 93%;
  background-size: 210% auto;
}

.circle-right {
  right: 0;
  background-position: 64% 93%;
  background-size: 190% auto;
}

.circle-left::before,
.circle-right::before {
  position: absolute;
  inset: -30% -12% auto;
  height: 58%;
  content: "";
  background: var(--color-red);
  border-radius: 50%;
  z-index: -1;
}

.discipline-detail-section {
  background: var(--color-soft);
}

.discipline-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}

.discipline-detail-card {
  position: relative;
  min-height: 430px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--color-paper);
}

.discipline-detail-card::before {
  position: absolute;
  top: 44px;
  left: 0;
  width: 6px;
  height: 84px;
  content: "";
  background: var(--color-red);
}

.discipline-detail-card.is-large {
  grid-row: span 2;
}

.discipline-detail-card.is-accent {
  background: var(--color-ink);
  color: var(--color-paper);
}

.discipline-detail-card.is-accent .eyebrow,
.discipline-detail-card.is-accent .detail-number {
  color: var(--color-paper);
}

.discipline-detail-card.is-accent p {
  color: rgba(255, 255, 255, 0.78);
}

.detail-number {
  color: var(--color-red);
  font-size: 0.9rem;
  font-weight: 800;
}

.discipline-detail-card h2 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
}

.discipline-detail-card p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--color-muted);
  font-size: 1.02rem;
}

.discipline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.discipline-tags span {
  padding: 8px 10px;
  background: var(--color-soft);
  border-radius: 8px;
  color: var(--color-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.federation-band {
  background: var(--color-ink);
  color: var(--color-paper);
}

.federation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: end;
}

.federation-grid h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
}

.federation-grid p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
}

.brochure-pages {
  background: var(--color-paper);
  padding-top: 82px;
}

.brochure-page {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: clamp(72px, 9vw, 128px) 0;
  border-top: 1px solid var(--color-line);
}

.brochure-page:first-of-type {
  border-top: none;
}

.brochure-page::before {
  position: absolute;
  top: 13%;
  right: -110px;
  width: 260px;
  height: 260px;
  content: "";
  background: var(--color-red);
  border-radius: 50%;
  opacity: 0.95;
}

.brochure-page.is-reverse::before {
  right: auto;
  left: -110px;
}

.brochure-page-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.9fr);
  gap: clamp(38px, 7vw, 116px);
  align-items: center;
}

.brochure-page.is-reverse .brochure-text {
  order: 2;
}

.brochure-text {
  position: relative;
  padding-left: clamp(28px, 3.4vw, 46px);
}

.brochure-text::before {
  position: absolute;
  top: 34px;
  left: 0;
  width: clamp(12px, 1.7vw, 24px);
  height: 86px;
  content: "";
  background: var(--color-red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brochure-text.is-visible::before {
  transform: scaleY(1);
}

.brochure-text h2 {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: clamp(3rem, 6.4vw, 7rem);
  font-weight: 500;
  line-height: 0.92;
}

.brochure-text p:not(.eyebrow) {
  max-width: 650px;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.brochure-image-slot {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.image-orbit {
  position: absolute;
  z-index: 0;
  width: min(100%, 720px);
  aspect-ratio: 16 / 10;
  background: var(--color-red);
  border-radius: 0;
  clip-path: polygon(11% 0, 100% 0, 89% 100%, 0 100%);
  transform: translate(18px, 24px);
}

.image-orbit::before {
  position: absolute;
  inset: -20px 22px 22px -22px;
  content: "";
  border: 1px solid rgba(29, 29, 27, 0.16);
  clip-path: polygon(11% 0, 100% 0, 89% 100%, 0 100%);
}

.image-circle {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-paper);
  border: 0;
  border-radius: 0;
  clip-path: polygon(11% 0, 100% 0, 89% 100%, 0 100%);
  box-shadow: 0 24px 70px rgba(29, 29, 27, 0.12);
}

.brochure-page.is-reverse .image-orbit {
  clip-path: polygon(0 0, 89% 0, 100% 100%, 11% 100%);
  transform: translate(-18px, 24px);
}

.brochure-page.is-reverse .image-orbit::before {
  inset: -20px -22px 22px 22px;
  clip-path: polygon(0 0, 89% 0, 100% 100%, 11% 100%);
}

.brochure-page.is-reverse .image-circle {
  clip-path: polygon(0 0, 89% 0, 100% 100%, 11% 100%);
}

.discipline-photo {
  background:
    linear-gradient(rgba(29, 29, 27, 0.12), rgba(29, 29, 27, 0.12)),
    var(--discipline-image) center / cover no-repeat;
}

.photo-karate {
  --discipline-image: url("Recursos/Biblioteca/Disciplinas_Karate.webp");
  background-position: center;
}

.photo-kickboxing {
  --discipline-image: url("Recursos/Biblioteca/Disciplinas_Kickboxing.webp");
  background-position: 50% 36%;
}

.photo-dpp {
  --discipline-image: url("Recursos/Biblioteca/Disciplinas_DPP.webp");
  background-position: 50% 34%;
}

.image-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(212, 49, 44, 0.08) 0 25%, transparent 25% 50%, rgba(29, 29, 27, 0.05) 50% 75%, transparent 75%),
    var(--color-soft);
  background-size: 36px 36px;
}

.image-placeholder::before {
  width: 46%;
  height: 46%;
  content: "";
  border: 1px solid rgba(29, 29, 27, 0.22);
  border-radius: 50%;
}

.brochure-image-slot > span {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 10%;
  max-width: 190px;
  padding: 10px 12px;
  background: var(--color-paper);
  border-left: 5px solid var(--color-red);
  border-radius: 0 8px 8px 0;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes title-marker-settle {
  0% {
    box-shadow: 0 0 0 rgba(212, 49, 44, 0);
  }

  45% {
    box-shadow: 10px 0 0 rgba(212, 49, 44, 0.14);
  }

  100% {
    box-shadow: 0 0 0 rgba(212, 49, 44, 0);
  }
}

@keyframes hero-isotype-scale {
  0% {
    transform: scale(0.6);
  }

  100% {
    transform: scale(34);
  }
}

@keyframes hero-intro-fade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes hero-copy-in {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-text-item-in {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-soft-light-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-heading > .eyebrow,
  .section-heading > h1,
  .section-heading > h2,
  .section-heading > p:not(.eyebrow),
  .about-copy > .eyebrow,
  .about-copy > h2,
  .about-copy > p,
  .about-copy > .about-list,
  .belts-heading > .eyebrow,
  .belts-heading > h2,
  .belts-heading > p:not(.eyebrow),
  .trial-note,
  .reveal-item,
  .reveal-item.is-revealed,
  .trial-floating-card {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .news-card,
  .news-index-card,
  .news-image,
  .news-index-image,
  .news-content strong,
  .news-index-content strong,
  .button,
  .button::before,
  .article-slide,
  .article-slider-button,
  .article-slider-dots button,
  .about-polaroid {
    transition: none;
  }

  .news-card:hover,
  .news-card:focus-visible,
  .news-index-card:hover,
  .news-index-card:focus-visible,
  .news-card:hover .news-image,
  .news-card:focus-visible .news-image,
  .news-index-card:hover .news-index-image,
  .news-index-card:focus-visible .news-index-image,
  .news-card:hover .news-content strong,
  .news-card:focus-visible .news-content strong,
  .news-index-card:not(.news-index-featured):hover .news-index-content strong,
  .news-index-card:not(.news-index-featured):focus-visible .news-index-content strong,
  .about-polaroid:hover,
  .about-polaroid:focus-visible {
    transform: none;
  }

  .hero-intro {
    display: none;
  }

  .hero-copy {
    animation: none;
  }

  .hero-copy > .eyebrow,
  .hero-title-line,
  .hero-copy > p:not(.eyebrow),
  .hero-news-alert,
  .hero-actions a {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-media::before {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 79px 16px auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 300ms;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0s;
  }

  .site-nav a {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-ink);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 150ms ease, transform 150ms ease, background 180ms ease, color 180ms ease;
  }

  .site-nav.is-open a {
    opacity: 1;
    transform: translateX(0);
  }

  .site-nav.is-open a:nth-child(1) { transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1) 100ms, transform 400ms cubic-bezier(0.16, 1, 0.3, 1) 100ms, background 180ms ease, color 180ms ease; }
  .site-nav.is-open a:nth-child(2) { transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1) 140ms, transform 400ms cubic-bezier(0.16, 1, 0.3, 1) 140ms, background 180ms ease, color 180ms ease; }
  .site-nav.is-open a:nth-child(3) { transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1) 180ms, transform 400ms cubic-bezier(0.16, 1, 0.3, 1) 180ms, background 180ms ease, color 180ms ease; }
  .site-nav.is-open a:nth-child(4) { transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1) 220ms, transform 400ms cubic-bezier(0.16, 1, 0.3, 1) 220ms, background 180ms ease, color 180ms ease; }
  .site-nav.is-open a:nth-child(5) { transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1) 260ms, transform 400ms cubic-bezier(0.16, 1, 0.3, 1) 260ms, background 180ms ease, color 180ms ease; }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: var(--color-soft);
  }

  .master-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .master-summary .button {
    width: fit-content;
  }

  .master-hero-grid {
    grid-template-columns: 1fr;
  }

  .master-hero-media {
    max-width: 520px;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 80svh;
    align-items: end;
  }

  .hero-news-zone {
    top: 118px;
  }

  .hero-media {
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: 58% center;
  }

  .hero-media::after {
    display: none;
  }

  .hero-grid,
  .schedule-layout,
  .faq-grid,
  .news-grid,
  .news-index-grid,
  .news-article-grid,
  .master-hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .news-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-index-featured {
    grid-column: 1 / -1;
    min-height: 560px;
  }

  .news-index-card {
    grid-column: 1 / -1;
    min-height: 460px;
  }


  .news-card-large {
    grid-row: auto;
    min-height: 360px;
  }

  .news-card-large .news-image {
    min-height: 220px;
  }

  .contact-side {
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  }

  .discipline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .disciplines-hero {
    min-height: auto;
  }

  .disciplines-hero-grid,
  .brochure-page-grid,
  .discipline-detail-grid,
  .federation-grid {
    grid-template-columns: 1fr;
  }

  .brochure-page.is-reverse .brochure-text {
    order: 0;
  }

  .brochure-page {
    min-height: auto;
  }

  .brochure-composition {
    min-height: 520px;
  }

  .about-section {
    min-height: clamp(720px, 74vw, 900px);
    padding-bottom: clamp(120px, 18vw, 190px);
  }

  .about-section .about-copy {
    padding-left: 0;
  }

  .about-section .about-copy::before {
    display: none;
  }

  .about-photo-collage {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .about-photo-collage-left {
    left: 0;
  }

  .about-photo-collage-right {
    right: 0;
  }

  .about-polaroid {
    width: min(var(--w), 24vw);
    padding: 7px 7px 18px;
  }

  .about-polaroid-featured {
    width: min(var(--w), 30vw);
  }
}

@media (min-width: 681px) and (max-width: 1536px) {
  .hero {
    min-height: 86svh;
    align-items: end;
    padding: 112px 0 64px;
  }

  .hero h1 {
    font-size: clamp(3rem, 4.65vw, 4.65rem);
  }

  .hero-copy > p:not(.eyebrow) {
    margin-top: 22px;
  }

  .hero-actions {
    margin-top: 28px;
  }
}

@media (max-width: 680px) {
  .container,
  .hero-grid {
    width: min(calc(100% - 48px), var(--max-width));
  }

  .hero-grid {
    transform: none;
  }

  .site-header {
    padding: 14px 24px;
    height: 72px;
  }

  .brand {
    width: 28px;
    min-width: 28px;
  }

  .brand img {
    width: 100%;
    height: auto;
  }

  .hero {
    align-items: end;
    min-height: calc(100svh - 92px);
    padding: 112px 0 50px;
  }

  .hero-news-zone {
    top: 92px;
    padding: 0 20px;
  }

  .hero-copy,
  .section-heading,
  .about-copy {
    padding-left: 20px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-copy::before,
  .section-heading::before,
  .about-copy::before {
    width: 10px;
    height: 44px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.22rem, 8.95vw, 3.08rem);
  }

  .hero-actions {
    width: min(100%, 336px);
    flex-wrap: nowrap;
    gap: 8px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 28px;
  }

  .hero-actions .button {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero-news-alert {
    width: 100%;
    max-width: 360px;
    min-height: 42px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    justify-content: stretch;
    padding: 8px 10px;
  }

  .hero-news-title {
    width: auto;
    min-width: 0;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-news-kicker {
    min-height: 26px;
    padding: 0 9px;
    font-size: 0.64rem;
  }

  .hero-news-arrow {
    font-size: 0.68rem;
  }

  .trial-floating-card {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
    padding: 18px 50px 18px 20px;
  }

  .trial-floating-card p {
    max-width: none;
    margin: 8px 0 12px;
    font-size: 1rem;
  }

  .trial-floating-kicker {
    min-height: 26px;
    font-size: 0.64rem;
  }

  .hero-media {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    clip-path: none;
  }

  .hero-panel {
    transform: none;
  }


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

  .discipline-card {
    min-height: 260px;
  }

  .news-card {
    min-height: 0;
  }

  .news-image,
  .news-card-large .news-image {
    min-height: 190px;
  }

  .news-index-hero {
    padding: 112px 0 28px;
  }

  .news-index-heading h1 {
    font-size: clamp(2.45rem, 11vw, 3.7rem);
  }

  .news-index-card,
  .news-index-featured {
    min-height: 0;
    border-radius: 8px;
    grid-template-columns: minmax(0, 1fr);
  }

  .news-index-featured {
    aspect-ratio: auto;
    grid-template-rows: 260px minmax(230px, auto);
    color: var(--color-ink);
  }

  .news-index-featured .news-index-image {
    position: relative;
    min-height: 260px;
    aspect-ratio: auto;
  }

  .news-index-featured .news-index-image::after {
    display: none;
  }

  .news-index-featured .news-index-content {
    align-content: start;
    grid-template-rows: auto auto auto 1fr;
  }

  .news-index-featured .news-index-content strong {
    font-size: clamp(1.35rem, 1.9vw, 2rem);
    font-weight: 600;
    color: var(--color-ink);
  }

  .news-index-featured .news-index-summary,
  .news-index-featured .news-index-date {
    color: var(--color-muted);
  }

  .news-index-featured .news-meta {
    color: var(--color-red);
  }

  .news-index-image {
    min-height: 220px;
  }

  .news-article-hero {
    padding: 108px 0 56px;
  }

  .news-article-copy h1 {
    font-size: clamp(2rem, 8.6vw, 3rem);
  }

  .master-hero {
    padding: 108px 0 56px;
  }

  .master-hero-copy h1 {
    font-size: clamp(2.8rem, 12vw, 4.1rem);
  }

  .master-hero-media {
    aspect-ratio: 4 / 4.5;
  }

  .master-summary {
    padding: 20px;
  }

  .master-summary .button {
    width: 100%;
  }

  .master-fact-card {
    min-height: 0;
  }

  .article-meta {
    margin-bottom: 20px;
    gap: 2px;
    font-size: 0.95rem;
  }

  .news-article-media {
    min-height: 0;
  }

  .article-slider-button {
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }

  .article-slider-prev {
    left: 12px;
  }

  .article-slider-next {
    right: 12px;
  }

  .article-slider-dots {
    bottom: 16px;
  }

  .article-slider-count {
    display: none;
  }

  .disciplines-hero {
    padding: 112px 0 48px;
  }

  .disciplines-hero-copy h1 {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
  }

  .brochure-composition {
    min-height: 420px;
  }

  .brochure-logo {
    width: 170px;
  }

  .brochure-page {
    padding: 60px 0 68px;
  }

  .brochure-page::before {
    display: none;
  }

  .brochure-text {
    padding-left: 22px;
  }

  .brochure-text::before {
    top: 32px;
    width: 10px;
    height: 72px;
  }

  .brochure-text h2 {
    margin-bottom: 22px;
    font-size: clamp(2.35rem, 12vw, 3rem);
    overflow-wrap: anywhere;
  }

  .brochure-text p:not(.eyebrow) {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.48;
  }

  .discipline-tags {
    gap: 8px;
    margin-top: 20px;
  }

  .discipline-tags span {
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .brochure-image-slot {
    min-height: 300px;
    margin-top: 8px;
    overflow: visible;
  }

  .image-circle,
  .image-orbit {
    width: min(92vw, 340px);
  }

  .image-orbit {
    transform: translate(10px, 14px);
  }

  .brochure-page.is-reverse .image-orbit {
    transform: translate(-10px, 14px);
  }

  .brochure-image-slot > span {
    right: auto;
    bottom: 18px;
    left: 50%;
    max-width: min(240px, 76%);
    padding: 8px 10px;
    font-size: 0.68rem;
    line-height: 1.25;
    transform: translateX(-50%);
  }

  .circle-main {
    width: min(78%, 330px);
  }

  .circle-small {
    width: 150px;
  }

  .discipline-detail-card {
    min-height: auto;
  }

  .about-section {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 64px;
  }

  .about-center {
    order: 1;
  }

  .about-section .about-copy {
    padding-left: 0;
  }

  .about-section .about-copy::before {
    display: none;
  }

  .about-copy p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .about-list {
    gap: 8px;
  }

  .about-list li {
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .about-photo-collage {
    position: relative;
    order: 2;
    inset: auto;
    width: 100%;
    height: 260px;
    margin-top: 26px;
    overflow: visible;
  }

  .about-photo-collage-left {
    left: 0;
  }

  .about-photo-collage-right {
    order: 3;
    right: 0;
    height: 250px;
    margin-top: -66px;
  }

  .about-polaroid {
    width: clamp(76px, 24vw, 112px);
    padding: 6px 6px 16px;
    border-radius: 5px;
  }

  .about-polaroid-featured {
    width: clamp(118px, 36vw, 168px);
  }
  .about-photo-collage-left .about-polaroid:nth-of-type(1) { left: 6%; top: 4%; }
  .about-photo-collage-left .about-polaroid:nth-of-type(2) { left: 34%; top: 0; }
  .about-photo-collage-left .about-polaroid:nth-of-type(3) { left: 62%; top: 12%; }
  .about-photo-collage-left .about-polaroid:nth-of-type(4) { left: 18%; top: 34%; }
  .about-photo-collage-left .about-polaroid:nth-of-type(5) { left: 46%; top: 32%; }
  .about-photo-collage-left .about-polaroid:nth-of-type(6) { left: 68%; top: 42%; }
  .about-photo-collage-left .about-polaroid:nth-of-type(7) { left: 4%; top: 62%; }
  .about-photo-collage-left .about-polaroid:nth-of-type(8) { left: 32%; top: 68%; }
  .about-photo-collage-left .about-polaroid:nth-of-type(9) { left: 58%; top: 64%; }
  .about-photo-collage-left .about-polaroid:nth-of-type(10) { left: 20%; top: 50%; }
  .about-photo-collage-left .about-polaroid:nth-of-type(11) { left: 50%; top: 48%; }

  .about-photo-collage-right .about-polaroid:nth-of-type(1) { left: 10%; top: 2%; }
  .about-photo-collage-right .about-polaroid:nth-of-type(2) { left: 40%; top: 0; }
  .about-photo-collage-right .about-polaroid:nth-of-type(3) { left: 64%; top: 10%; }
  .about-photo-collage-right .about-polaroid:nth-of-type(4) { left: 4%; top: 36%; }
  .about-photo-collage-right .about-polaroid:nth-of-type(5) { left: 34%; top: 38%; }
  .about-photo-collage-right .about-polaroid:nth-of-type(6) { left: 62%; top: 40%; }
  .about-photo-collage-right .about-polaroid:nth-of-type(7) { left: 16%; top: 68%; }
  .about-photo-collage-right .about-polaroid:nth-of-type(8) { left: 46%; top: 68%; }
  .about-photo-collage-right .about-polaroid:nth-of-type(9) { left: 68%; top: 66%; }
  .about-photo-collage-right .about-polaroid:nth-of-type(10) { left: 25%; top: 52%; }
  .about-photo-collage-right .about-polaroid:nth-of-type(11) { left: 55%; top: 50%; }
  .about-photo-collage-right .about-polaroid:nth-of-type(12) { left: 38%; top: 22%; }

  .schedule-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-count {
    padding-left: 2px;
  }

  .schedule-table {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .schedule-bento-card,
  .schedule-bento-rows {
    display: contents;
  }

  .schedule-bento-card.is-hidden {
    display: none;
  }

  .schedule-bento-title {
    display: none;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 18px 16px 18px 22px;
  }

  .schedule-row[data-category] {
    display: grid;
    min-height: auto;
    padding: 18px 16px 18px 22px;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(29, 29, 27, 0.05);
  }

  .schedule-row[data-category]::after {
    display: none;
  }

  .schedule-row[data-category] > span:nth-child(1),
  .schedule-row[data-category] > span:nth-child(2),
  .schedule-row[data-category] > span:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    padding-right: 0;
    padding-left: 0;
  }

  .schedule-row[data-category] > span:first-child {
    display: block;
    min-height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .schedule-head {
    display: none;
  }

  .schedule-row > span:first-child b {
    display: inline-flex;
  }

  .schedule-row .group-cell {
    padding-left: 18px;
  }

  .schedule-row > span:not(:first-child)::before {
    display: none;
  }

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

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

  .footer-grid {
    align-items: center;
    justify-items: center;
    grid-template-columns: 1fr;
    gap: 13px;
    text-align: center;
  }

  .footer-grid > span:first-child,
  .footer-legal,
  .footer-credit,
  .footer-grid > a:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-credit,
  .footer-legal {
    width: 100%;
    justify-self: center;
  }

  .footer-grid > span:first-child {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .footer-legal {
    justify-content: center;
    gap: 8px 14px;
    font-size: 0.75rem;
  }

  .footer-credit {
    max-width: 280px;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .footer-grid > a:last-child {
    justify-self: center;
    margin-top: 4px;
    padding: 8px 13px;
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   CARRUSEL DE OPINIONES DE GOOGLE (IDEA 4)
   ========================================================================== */

.reviews-section {
  background: var(--color-soft);
  border-top: 1px solid var(--color-line);
}

.reviews-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.reviews-heading h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  font-weight: 500;
  line-height: 1.08;
}

.reviews-heading .reviews-lead {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.5;
}

.reviews-carousel-wrapper {
  position: relative;
  width: min(100%, 1180px);
  max-width: none;
  margin: 10px auto 0;
  min-height: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 40px 0 48px;
  overflow: hidden;
  pointer-events: none;
  --reviews-gap: 18px;
  --reviews-card-width: clamp(280px, 30vw, 360px);
  --reviews-shift: 0px;
}

.reviews-carousel-wrapper::before,
.reviews-carousel-wrapper::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(12vw, 140px);
  content: "";
  pointer-events: none;
}

.reviews-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-soft), rgba(246, 246, 244, 0));
}

.reviews-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-soft), rgba(246, 246, 244, 0));
}

.reviews-slides-container {
  position: relative;
  width: max-content;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: var(--reviews-gap);
  padding: 0 var(--reviews-gap);
  will-change: transform;
}

.reviews-slides-container.is-marquee-ready {
  animation: reviews-marquee 56s linear infinite;
}

.reviews-carousel-wrapper:hover .reviews-slides-container,
.reviews-carousel-wrapper:focus-within .reviews-slides-container {
  animation-play-state: paused;
}

.review-card-slide {
  flex: 0 0 var(--reviews-card-width);
  width: var(--reviews-card-width);
  min-height: 238px;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  gap: 16px;
  padding: 24px 24px 22px;
  background: var(--color-paper);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(29, 29, 27, 0.08);
}

.review-card-slide::before {
  width: 34px;
  height: 4px;
  content: "";
  background: var(--color-red);
  border-radius: 999px;
}

.review-card-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  box-shadow: 0 28px 78px rgba(29, 29, 27, 0.12);
}

.review-card-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 82px rgba(29, 29, 27, 0.14);
}

.review-card-stars {
  color: #fbcd0a;
  font-size: 1rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.review-card-text {
  font-size: clamp(0.92rem, 1.35vw, 1rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-ink);
  margin: 0;
  font-style: italic;
  letter-spacing: -0.01em;
}

.review-card-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-style: normal;
  margin-top: auto;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1.5px solid var(--color-line);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.review-avatar.avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.review-author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
}

.review-author-info strong,
.review-author-info a {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--color-ink);
  text-decoration: none;
}

.review-author-info span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reviews-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 22px;
  pointer-events: auto;
}

.reviews-google-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-muted);
}

.reviews-google-badge svg {
  width: 15px;
  height: 15px;
}

.reviews-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  pointer-events: auto;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.reviews-link:hover,
.reviews-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(212, 49, 44, 0.38);
  box-shadow: 0 12px 28px rgba(29, 29, 27, 0.08);
}

.reviews-slider-button {
  position: absolute;
  top: calc(50% - 24px);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: 1.8rem;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: all 220ms ease;
  user-select: none;
}

.reviews-slider-button:hover,
.reviews-slider-button:focus-visible {
  color: var(--color-red);
  background: var(--color-soft);
  border-color: var(--color-red);
}

.reviews-slider-prev {
  left: 0;
  padding: 0 2px 4px 0;
}

.reviews-slider-next {
  right: 0;
  padding: 0 0 4px 2px;
}

.reviews-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.reviews-slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: var(--color-line);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 220ms ease;
}

.reviews-slider-dots button.is-active {
  width: 24px;
  background: var(--color-red);
}

.reviews-slider-dots button:hover {
  background: var(--color-red);
}

@keyframes reviews-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(var(--reviews-shift), 0, 0);
  }
}

@media (max-width: 680px) {
  .reviews-carousel-wrapper {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 34px 0 38px;
    --reviews-gap: 12px;
    --reviews-card-width: min(82vw, 320px);
  }
  .review-card-slide {
    min-height: 238px;
  }
  .reviews-slider-button {
    display: none;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .reviews-carousel-wrapper {
    --reviews-card-width: clamp(300px, 42vw, 380px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-slides-container.is-marquee-ready {
    animation: none;
    transform: none;
  }
}

/* ==========================================================================
   NUEVAS SECCIONES WOW: EL CAMINO DEL TATAMI (CINTURONES)
   ========================================================================== */

.karate-belts {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: clamp(24px, 4vw, 54px);
}

.belts-section {
  background: transparent;
  border: 0;
}

.belts-heading {
  max-width: var(--max-width);
}

.belts-heading .eyebrow {
  margin-bottom: 8px;
}

.belts-heading h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.65rem, 2.25vw, 2.45rem);
  font-weight: 500;
  line-height: 1.05;
}

.belts-heading > p:not(.eyebrow) {
  max-width: 940px;
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
}

.belts-heading > .eyebrow,
.belts-heading > h2,
.belts-heading > p:not(.eyebrow) {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.belts-heading.is-visible > .eyebrow,
.belts-heading.is-visible > h2,
.belts-heading.is-visible > p:not(.eyebrow) {
  opacity: 1;
  transform: translateY(0);
}

.belts-heading.is-visible > h2 {
  transition-delay: 120ms;
}

.belts-heading.is-visible > p:not(.eyebrow) {
  transition-delay: 220ms;
}

.belts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 30px;
}

.belt-card {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(29, 29, 27, 0.02);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.belt-card:hover,
.belt-card.is-active {
  transform: translateY(-6px);
  border-color: var(--belt-color);
  box-shadow: 0 16px 36px rgba(29, 29, 27, 0.05),
              0 4px 20px var(--belt-glow);
}

/* Specific styling for white belt to ensure outline visibility */
.belt-card[data-belt="blanco"] {
  border-color: rgba(29, 29, 27, 0.08);
}
.belt-card[data-belt="blanco"]:hover,
.belt-card[data-belt="blanco"].is-active {
  border-color: #dcdad4;
}

.belt-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  gap: 18px;
  position: relative;
  outline: none;
}

.belt-kanji {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: "Georgia", serif;
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(29, 29, 27, 0.035);
  pointer-events: none;
  user-select: none;
  transition: color 400ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.belt-card:hover .belt-kanji,
.belt-card.is-active .belt-kanji {
  color: rgba(29, 29, 27, 0.07);
  transform: scale(1.1) rotate(5deg);
}

.belt-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.belt-strap {
  display: block;
  width: 56px;
  height: 18px;
  border-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12),
              0 1px 2px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* Nudo del cinturón o detalle bordado */
.belt-strap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
}

.belt-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.belt-title small {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 400;
}

.belt-arrow {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: rotate(45deg);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 300ms cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.belt-card:hover .belt-arrow {
  border-color: var(--color-red);
}

.belt-card.is-active .belt-arrow {
  transform: rotate(-135deg);
  border-color: var(--color-red);
}

.belt-details-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.belt-card.is-active .belt-details-wrapper {
  grid-template-rows: 1fr;
}

.belt-details {
  overflow: hidden;
}

.belt-details-content {
  padding: 0 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px dashed var(--color-line);
  padding-top: 20px;
  margin-top: -4px;
}

.belt-detail-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.belt-detail-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-ink);
}


/* ==========================================================================
   NUEVAS SECCIONES WOW: EL DOJO KUN (VALORES EN 3D)
   ========================================================================== */

.dojo-kun-section {
  background: var(--color-paper);
}

.dojo-kun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

@media (min-width: 1200px) {
  .dojo-kun-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.dojo-kun-card {
  perspective: 1200px;
  height: 340px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  width: 100%;
}

.dojo-kun-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 20px;
}

.dojo-kun-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

/* Disparar giro únicamente a través de la clase controlada por JS */
.dojo-kun-card.is-flipped .dojo-kun-card-inner {
  transform: rotateY(180deg);
}

.dojo-kun-front,
.dojo-kun-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(29, 29, 27, 0.015);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.dojo-kun-front {
  background: var(--color-soft);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotateY(0deg) translateZ(1px);
}

/* Efecto de marco de tinta tradicional */
.dojo-kun-front::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(29, 29, 27, 0.05);
  border-radius: 12px;
  pointer-events: none;
}

.dojo-kun-card:hover .dojo-kun-front {
  border-color: rgba(29, 29, 27, 0.15);
  box-shadow: 0 8px 24px rgba(29, 29, 27, 0.04);
}

.dojo-kun-back {
  background: var(--color-steel);
  color: #ffffff;
  transform: rotateY(180deg) translateZ(1px);
  border: 1px solid var(--color-steel);
  justify-content: flex-start;
  text-align: left;
  pointer-events: none; /* Por defecto la parte trasera no responde al puntero para evitar clics fantasma */
}

/* Solución de hit-testing 3D para navegadores WebKit/Safari: alternar pointer-events */
.dojo-kun-card:not(.is-flipped) .dojo-kun-front {
  pointer-events: auto;
}

.dojo-kun-card.is-flipped .dojo-kun-front {
  pointer-events: none;
}

.dojo-kun-card.is-flipped .dojo-kun-back {
  pointer-events: auto;
}

.dojo-kun-kanji {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: "Georgia", serif;
  font-size: 5rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(29, 29, 27, 0.04);
  pointer-events: none;
  user-select: none;
}

.dojo-kun-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.dojo-kun-front h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-ink);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.dojo-kun-japanese {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
}

.dojo-kun-back h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #ffffff;
  line-height: 1.4;
  border-bottom: 2px solid var(--color-red);
  padding-bottom: 10px;
}

.dojo-kun-back p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 680px) {
  .belts-grid,
  .dojo-kun-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dojo-kun-card {
    height: 280px;
  }
  .dojo-kun-front,
  .dojo-kun-back {
    padding: 24px;
  }
}

/* ==========================================================================
   Polaroid Zoom Modal & Floating Wind Animation
   ========================================================================== */

.polaroid-modal {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  visibility: hidden;
  user-select: none;
}

.polaroid-modal[data-active="true"] {
  visibility: visible;
  pointer-events: auto;
}

.polaroid-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 27, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.polaroid-modal[data-active="true"] .polaroid-modal-backdrop {
  opacity: 1;
}

.polaroid-modal-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  pointer-events: none;
}

/* Modal content styled like original Polaroid, but larger and floating */
.about-polaroid.about-polaroid-modal {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  margin: 0 !important;
  pointer-events: auto !important;
  z-index: 10000 !important;
  cursor: pointer !important;
  user-select: none !important;
  will-change: transform, opacity !important;
  transform-style: preserve-3d !important;
  transition: none !important;
  /* Premium double-layered shadow while floating in space */
  box-shadow:
    0 20px 45px rgba(29, 29, 27, 0.16),
    0 45px 110px rgba(29, 29, 27, 0.36) !important;
}

.polaroid-modal[data-active="true"],
.polaroid-modal[data-closing="true"] {
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   📌 FOTO SPOTLIGHT GESTURE HINT (OPCIÓN 2 - ANCLADA A ANTONIO)
   ========================================================================== */

/* --- Estilos base (Escritorio > 980px) --- */
.about-gesture-hint.is-anchored {
  position: absolute;
  /* Anclado a la derecha de la foto de Antonio (5% x + 280px de separación) */
  left: calc(5% + 280px);
  top: calc(1% + 140px);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 12px 34px rgba(29, 29, 27, 0.08),
    0 4px 12px rgba(29, 29, 27, 0.04);
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 600ms ease;
  visibility: hidden;
}

/* Tooltip visible */
.about-gesture-hint.is-anchored.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

/* Ocultación instantánea al interactuar */
.about-gesture-hint.is-anchored.is-hidden {
  opacity: 0 !important;
  transform: translateY(-8px) scale(0.96) !important;
  visibility: hidden !important;
  transition:
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 280ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 280ms ease !important;
}

/* Flecha apuntando a la foto de Antonio */
.about-gesture-hint.is-anchored::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  z-index: -1;
}

/* Texto del tooltip */
.about-gesture-copy {
  font-family: var(--font-primary, system-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-muted, #5c5c57);
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Punto rojo pulsante para llamar la atención */
.about-gesture-copy::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red, #e31c19);
  animation: aboutRedDotPulse 1.6s ease-in-out infinite;
}

@keyframes aboutRedDotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

/* Ocultar foto duplicada en escritorio */
.about-gesture-hint.is-anchored .about-gesture-photo {
  display: none;
}

/* Mano/Cursor virtual en escritorio */
.about-gesture-hint.is-anchored .about-gesture-cursor {
  position: absolute;
  left: -110px;
  top: 85px;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='28' height='28'%3E%3Cpath fill='%23ffffff' stroke='%23ffffff' stroke-width='2.5' stroke-linejoin='round' d='M10.3 22.8c-1.4 0-2.7-.6-3.7-1.6L1 15.6c-.6-.6-.6-1.5 0-2.1.6-.6 1.5-.6 2.1 0l3.2 3.2V3c0-1.1.9-2 2-2s2 .9 2 2v9.3c.3-.2.7-.3 1.1-.3.7 0 1.3.3 1.7.9.4-.4 1-.7 1.7-.7.9 0 1.6.6 1.9 1.4.3-.3.8-.5 1.3-.5 1.1 0 2 .9 2 2v4.8c0 3.3-2.7 6-6 6h-3.7z'/%3E%3Cpath fill='%231d1d1b' d='M10.3 22.8c-1.4 0-2.7-.6-3.7-1.6L1 15.6c-.6-.6-.6-1.5 0-2.1.6-.6 1.5-.6 2.1 0l3.2 3.2V3c0-1.1.9-2 2-2s2 .9 2 2v9.3c.3-.2.7-.3 1.1-.3.7 0 1.3.3 1.7.9.4-.4 1-.7 1.7-.7.9 0 1.6.6 1.9 1.4.3-.3.8-.5 1.3-.5 1.1 0 2 .9 2 2v4.8c0 3.3-2.7 6-6 6h-3.7z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 12;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  opacity: 0;
}

.about-gesture-hint.is-anchored.is-visible:not(.is-hidden) .about-gesture-cursor {
  animation: aboutTargetCursorDemo 2800ms 1.3s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* Aro de toque en escritorio */
.about-gesture-hint.is-anchored .about-gesture-tap {
  position: absolute;
  left: -110px;
  top: 85px;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-red, #e31c19);
  border-radius: 50%;
  background: rgba(227, 28, 25, 0.15);
  pointer-events: none;
  z-index: 11;
  opacity: 0;
}

.about-gesture-hint.is-anchored.is-visible:not(.is-hidden) .about-gesture-tap {
  animation: aboutTargetTapDemo 2800ms 1.3s ease-out infinite;
}

/* Animación física síncrona en la propia foto de Antonio */
.about-section:has(.about-gesture-hint.is-anchored.is-visible:not(.is-hidden)) [data-gesture-target] {
  animation: aboutTargetPhotoDemo 2800ms 1.3s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* ==========================================================================
   🎬 ANIMACIONES DE DEMOSTRACIÓN (ESCRITORIO)
   ========================================================================== */

/* La foto de Antonio se inclina y mueve en sincronía con el arrastre */
@keyframes aboutTargetPhotoDemo {
  0%, 100% {
    transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0) rotate(-10deg);
    box-shadow:
      0 24px 54px rgba(29, 29, 27, 0.14),
      0 6px 14px rgba(29, 29, 27, 0.08);
  }
  25% {
    /* Simula arrastre hacia la izquierda y levemente arriba */
    transform: translate3d(calc(var(--drag-x, 0px) - 24px), calc(var(--drag-y, 0px) + 6px), 0) rotate(-13deg) scale(1.02);
    box-shadow:
      0 34px 70px rgba(29, 29, 27, 0.18),
      0 10px 20px rgba(29, 29, 27, 0.10);
  }
  50% {
    transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0) rotate(-10deg);
    box-shadow:
      0 24px 54px rgba(29, 29, 27, 0.14),
      0 6px 14px rgba(29, 29, 27, 0.08);
  }
  65%, 78% {
    /* Pulso táctil (doble toque rápido) */
    transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0) scale(1.015) rotate(-10deg);
    box-shadow:
      0 30px 60px rgba(29, 29, 27, 0.16),
      0 8px 18px rgba(29, 29, 27, 0.09);
  }
}

/* El cursor simula el movimiento y el doble clic */
@keyframes aboutTargetCursorDemo {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0;
  }
  5%, 45% {
    opacity: 1;
  }
  25% {
    transform: translate3d(-24px, 6px, 0) scale(0.95);
  }
  50% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  58% {
    transform: translate3d(-12px, 0, 0) scale(1);
  }
  65% {
    transform: translate3d(-12px, 0, 0) scale(0.82); /* Primer clic */
  }
  72% {
    transform: translate3d(-12px, 0, 0) scale(1);
  }
  78% {
    transform: translate3d(-12px, 0, 0) scale(0.82); /* Segundo clic */
  }
  85% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  95% {
    opacity: 0;
  }
}

/* Ripples expansivas para simular doble clic */
@keyframes aboutTargetTapDemo {
  0%, 60%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  65% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.8);
  }
  72% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
  78% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.8);
  }
  85% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
}

/* ==========================================================================
   📱 CONFIGURACIONES DE RESPONSIVIDAD Y COMPATIBILIDAD
   ========================================================================== */

/* --- Ajuste para pantallas medianas/iPads (681px a 1366px) --- */
@media (min-width: 681px) and (max-width: 1366px) {
  .about-gesture-hint.is-anchored {
    left: calc(2% + 190px);
    top: calc(1% + 95px);
  }

  .about-gesture-hint.is-anchored .about-gesture-cursor,
  .about-gesture-hint.is-anchored .about-gesture-tap {
    left: -71px;
    top: 65px;
  }
}

/* --- Gesto sobre la foto real en dispositivos móviles (<= 980px) --- */
@media (max-width: 980px) {
  .about-gesture-hint.is-anchored {
    position: absolute;
    left: clamp(112px, 32vw, 166px);
    top: clamp(96px, 24vw, 128px);
    bottom: auto;
    transform: translate(-50%, 12px) scale(0.96);
    z-index: 2000;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(236px, calc(100vw - 40px));
    padding: 9px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
      0 14px 34px rgba(29, 29, 27, 0.14),
      0 4px 10px rgba(29, 29, 27, 0.05);
    transition:
      transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
      opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 600ms ease;
  }

  .about-gesture-hint.is-anchored.is-visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  .about-gesture-hint.is-anchored.is-hidden {
    opacity: 0 !important;
    transform: translate(-50%, 12px) scale(0.96) !important;
    visibility: hidden !important;
  }

  /* Quitar flecha en móvil */
  .about-gesture-hint.is-anchored::before {
    display: none !important;
  }

  /* No duplicar la foto: el gesto vive sobre la foto real */
  .about-gesture-hint.is-anchored .about-gesture-photo {
    display: none;
  }

  /* Mano virtual sobre la foto real */
  .about-gesture-hint.is-anchored .about-gesture-cursor {
    display: block;
    position: absolute;
    left: 28px;
    top: -24px;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='28' height='28'%3E%3Cpath fill='%23ffffff' stroke='%23ffffff' stroke-width='2.5' stroke-linejoin='round' d='M10.3 22.8c-1.4 0-2.7-.6-3.7-1.6L1 15.6c-.6-.6-.6-1.5 0-2.1.6-.6 1.5-.6 2.1 0l3.2 3.2V3c0-1.1.9-2 2-2s2 .9 2 2v9.3c.3-.2.7-.3 1.1-.3.7 0 1.3.3 1.7.9.4-.4 1-.7 1.7-.7.9 0 1.6.6 1.9 1.4.3-.3.8-.5 1.3-.5 1.1 0 2 .9 2 2v4.8c0 3.3-2.7 6-6 6h-3.7z'/%3E%3Cpath fill='%231d1d1b' d='M10.3 22.8c-1.4 0-2.7-.6-3.7-1.6L1 15.6c-.6-.6-.6-1.5 0-2.1.6-.6 1.5-.6 2.1 0l3.2 3.2V3c0-1.1.9-2 2-2s2 .9 2 2v9.3c.3-.2.7-.3 1.1-.3.7 0 1.3.3 1.7.9.4-.4 1-.7 1.7-.7.9 0 1.6.6 1.9 1.4.3-.3.8-.5 1.3-.5 1.1 0 2 .9 2 2v4.8c0 3.3-2.7 6-6 6h-3.7z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 12;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    opacity: 0;
  }

  /* Aro de toque sobre la foto real */
  .about-gesture-hint.is-anchored .about-gesture-tap {
    display: block;
    position: absolute;
    left: 28px;
    top: -24px;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 2px solid var(--color-red, #e31c19);
    border-radius: 50%;
    background: rgba(227, 28, 25, 0.15);
    pointer-events: none;
    z-index: 11;
    opacity: 0;
  }

  .about-gesture-hint.is-anchored.is-visible:not(.is-hidden) .about-gesture-cursor {
    animation: aboutMobileCursorDemo 2800ms 1.3s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  }

  .about-gesture-hint.is-anchored.is-visible:not(.is-hidden) .about-gesture-tap {
    animation: aboutMobileTapDemo 2800ms 1.3s ease-out infinite;
  }

  /* Ajustar texto largo en el tooltip móvil */
  .about-gesture-hint.is-anchored .about-gesture-copy {
    white-space: normal;
    text-align: left;
    justify-content: flex-start;
    font-size: 0.74rem;
    line-height: 1.25;
  }
}

@keyframes aboutMobileCursorDemo {
  0%, 100% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1);
    opacity: 0;
  }
  5%, 45% {
    opacity: 1;
  }
  25% {
    transform: translate(-50%, -50%) translate3d(-14px, 2px, 0) scale(0.95);
  }
  50% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1);
  }
  58% {
    transform: translate(-50%, -50%) translate3d(-5px, 0, 0) scale(1);
  }
  65% {
    transform: translate(-50%, -50%) translate3d(-5px, 0, 0) scale(0.82);
  }
  72% {
    transform: translate(-50%, -50%) translate3d(-5px, 0, 0) scale(1);
  }
  78% {
    transform: translate(-50%, -50%) translate3d(-5px, 0, 0) scale(0.82);
  }
  85% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1);
  }
  95% {
    opacity: 0;
  }
}

@keyframes aboutMobileTapDemo {
  0%, 60%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  65% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.8);
  }
  72% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
  78% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.8);
  }
  85% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-gesture-hint.is-anchored,
  .about-gesture-hint.is-anchored *,
  .about-section [data-gesture-target] {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   📌 READING PROGRESS BAR (CABECERAS DE ARTÍCULOS)
   ========================================================================== */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 99999;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-primary, #d4312c);
  transition: width 120ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(212, 49, 44, 0.6);
}

/* ==========================================================================
   📌 NAVEGACIÓN Y FILTRADO INTERACTIVO (DISCIPLINAS.HTML)
   ========================================================================== */
html:has(.disciplines-nav) {
  scroll-padding-top: 176px; /* Ajuste perfecto para header (108px) + tab bar (58px) + holgura */
}

.disciplines-nav {
  position: sticky;
  top: 108px; /* Justo debajo de la cabecera fija de la web */
  left: 0;
  width: 100%;
  background: rgba(253, 253, 251, 0.85); /* Cream paper traslúcido */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-line);
  z-index: 98;
  transition: background 300ms ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
}

.disciplines-nav-container {
  display: flex;
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none; /* Ocultar barra en Firefox */
}

.disciplines-nav-container::-webkit-scrollbar {
  display: none; /* Ocultar barra en Chrome/Safari */
}

.nav-tab {
  flex: 1;
  min-width: 130px;
  background: none;
  border: none;
  padding: 20px 12px;
  font-family: inherit;
  font-size: clamp(0.82rem, 1.1vw, 0.88rem);
  font-weight: 800;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: color 300ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--color-ink);
}

.nav-tab.active {
  color: var(--color-primary);
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--color-primary);
  z-index: 1;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pestañas de navegación e indicador deslizante */
html:has(.disciplines-nav) {
  scroll-padding-top: 176px; /* Ajuste perfecto para header (108px) + tab bar (58px) + holgura */
}

/* Responsividad para móviles y iPads */
@media (max-width: 980px) {
  .disciplines-nav {
    top: 108px;
  }
}

@media (max-width: 680px) {
  .disciplines-nav {
    top: 72px;
  }
  
  html:has(.disciplines-nav) {
    scroll-padding-top: 130px; /* Ajuste móvil para header (72px) + tab bar (48px) + holgura */
  }
  
  .nav-tab {
    padding: 16px 8px;
    font-size: 0.78rem;
    min-width: 105px;
  }
}

/* ==========================================================================
   Antonio Díaz CV Redesign Premium Styles
   ========================================================================== */

/* Hero Maestría Badges */
.hero-badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(29, 29, 27, 0.05);
  color: var(--color-ink);
  border: 1px solid rgba(29, 29, 27, 0.08);
}

.hero-badge.badge-highlight {
  background: rgba(212, 49, 44, 0.06);
  color: var(--color-red);
  border-color: rgba(212, 49, 44, 0.15);
}

/* Trayectoria en Cifras (Stats Grid) */
.master-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0 64px;
}

.stat-card {
  background: var(--color-soft);
  border: 1px solid rgba(29, 29, 27, 0.06);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(29, 29, 27, 0.01);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 29, 27, 0.12);
  box-shadow: 0 10px 24px rgba(29, 29, 27, 0.03);
}

.stat-card .stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.stat-card .stat-desc {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* Grados y Maestría Técnica Grid */
.master-grades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 28px 0 64px;
}

.grade-card {
  position: relative;
  background: var(--color-paper);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 16px;
  padding: 28px 24px 24px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(29, 29, 27, 0.02);
}

.grade-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 49, 44, 0.2);
  box-shadow: 0 12px 32px rgba(212, 49, 44, 0.04), 0 4px 12px rgba(29, 29, 27, 0.01);
}

/* Decoración superior de cinturón */
.grade-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #1c1c1a; /* Por defecto cinturón negro */
}

/* Cinturón Rojo-Blanco (7º y 6º Dan) */
.grade-card.belt-red-white::before {
  background: repeating-linear-gradient(90deg, 
    var(--color-red) 0, var(--color-red) 16px, 
    #f5f5f3 16px, #f5f5f3 32px
  );
}

.grade-card .grade-discipline {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}

.grade-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-ink);
  margin: 0 0 10px;
  line-height: 1.2;
}

.grade-card .grade-rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(29, 29, 27, 0.05);
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--color-ink);
  margin-bottom: 14px;
}

.grade-card .grade-rank.red-white-rank {
  background: rgba(212, 49, 44, 0.08);
  color: var(--color-red);
}

.grade-card .grade-rank .belt-bar-gold {
  display: inline-block;
  width: 4px;
  height: 10px;
  background: #d4af37;
  border-radius: 1px;
}

.grade-card p {
  font-size: 0.84rem;
  color: var(--color-muted);
  line-height: 1.45;
  margin: 0;
}

/* Condecoraciones y Distinciones Bento Section */
.master-honors-section {
  margin: 64px 0;
}

.honors-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.honor-card {
  background: var(--color-soft);
  border: 1px solid rgba(29, 29, 27, 0.06);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(29, 29, 27, 0.01);
}

.honor-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 49, 44, 0.15);
  box-shadow: 0 10px 24px rgba(212, 49, 44, 0.03);
}

.honor-icon {
  font-size: 1.35rem;
  background: rgba(212, 49, 44, 0.06);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-red);
  flex-shrink: 0;
}

.honor-content {
  flex: 1;
}

.honor-content h4 {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--color-ink);
  margin: 0 0 4px;
  line-height: 1.3;
}

.honor-content .honor-meta {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-muted);
  display: block;
  margin-bottom: 6px;
}

.honor-content p {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.45;
  margin: 0;
}

/* Ajustes Responsive */
@media (max-width: 768px) {
  .master-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .master-grades-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .honors-bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


