/* ==========================================================================
   Fenix Academy — Taekwon-Do ITF
   Paleta: Rojo #DA291C · Oro #FFC72C · Negro #000 · Crema #F5F5DC
   ========================================================================== */

:root {
  --rojo: #da291c;
  --rojo-oscuro: #9e160e;
  --oro: #ffc72c;
  --oro-suave: #ffe08a;
  --negro: #000000;
  --carbon: #0d0d0d;
  --humo: #161616;
  --crema: #f5f5dc;
  --crema-2: #efe9c6;
  --papel: #fffdf4;
  --texto: #141414;
  --texto-suave: #4a4538;
  --linea: rgba(218, 41, 28, 0.22);
  --sombra: 0 18px 40px rgba(0, 0, 0, 0.16);
  --radio: 4px;
  --max: 1180px;
  --header: 84px;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-ko: "Noto Serif KR", "Apple SD Gothic Neo", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--texto);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(218, 41, 28, 0.08), transparent 50%),
    var(--crema);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--oro);
  color: var(--negro);
  padding: 0.6rem 1rem;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.25rem;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-cta {
  background: var(--rojo);
  color: #fff;
  border-color: var(--rojo);
}
.btn-cta:hover,
.btn-cta:focus-visible {
  background: var(--oro);
  border-color: var(--oro);
  color: var(--negro);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: var(--oro);
}
.btn-ghost:hover {
  background: var(--oro);
  color: var(--negro);
}

.btn-lg { padding: 1rem 1.55rem; font-size: 0.82rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2.4rem));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.brand img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(255, 199, 44, 0.55), 0 4px 12px rgba(0, 0, 0, 0.45);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-text small {
  color: var(--oro);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.site-nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: #f3edd4;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.55rem;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.15rem;
  height: 1px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn):focus-visible::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--oro); }

.site-header.is-solid {
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--oro);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--header);
  overflow: hidden;
}
body.home .hero { min-height: 100svh; }

.hero-media,
.hero-overlay { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 42%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 7.5rem;
  padding-top: 4rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--oro);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 1rem;
}
.eyebrow span[lang="ko"] {
  font-family: var(--font-ko);
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--rojo);
  background: rgba(255, 199, 44, 0.12);
  border: 1px solid rgba(255, 199, 44, 0.35);
  padding: 0.15rem 0.45rem;
}
.section .eyebrow span[lang="ko"] {
  color: var(--rojo);
  background: rgba(218, 41, 28, 0.08);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 1.1rem;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  max-width: 38rem;
  font-size: 1.05rem;
  color: #f2ead0;
  margin: 0 0 1.6rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-seal {
  justify-self: end;
  width: min(340px, 38vw);
  animation: floatSeal 7s ease-in-out infinite;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
}
.hero-seal img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.72);
  border-top: 1px solid rgba(255, 199, 44, 0.35);
}
.hero-stats li {
  padding: 1.1rem 1.2rem;
  border-right: 1px solid rgba(255, 199, 44, 0.18);
}
.hero-stats li:last-child { border-right: 0; }
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--oro);
  letter-spacing: 0.08em;
}
.hero-stats span {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8d0b4;
}

.scroll-hint {
  position: absolute;
  right: 1.6rem;
  bottom: 6.4rem;
  z-index: 2;
  color: var(--oro);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 5.5rem 0; }
.section-head { max-width: 42rem; margin-bottom: 2.6rem; }
.section-head.compact { margin-bottom: 1.6rem; }
.section-head h2,
.section-head h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 0.7rem;
  letter-spacing: 0.03em;
}
.section-lead { margin: 0; color: var(--texto-suave); }
.on-dark { color: #fff; }
.on-dark .section-lead { color: #d8d0b4; }
.on-dark .eyebrow { color: var(--oro); }

.section-head h2::after,
.tenets .section-head h3::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 0.85rem;
  background: linear-gradient(90deg, var(--rojo), var(--oro));
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.4rem;
  align-items: start;
  margin-bottom: 4rem;
}
.about-photo {
  margin: 0;
  position: relative;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--oro);
  z-index: 0;
}
.about-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}
.about-photo img.logo-frame {
  object-fit: contain;
  background: transparent;
  filter: none;
  padding: 0;
  border-radius: 50%;
}
.about-photo figcaption {
  position: relative;
  z-index: 1;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-suave);
}
.about-copy > h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 0.8rem;
  letter-spacing: 0.03em;
}
.about-copy > h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 0.85rem;
  background: linear-gradient(90deg, var(--rojo), var(--oro));
}
.about-copy .drop { font-size: 1.08rem; margin-top: 0; }
.mv {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.mv article {
  padding: 1.1rem 1.15rem 1.15rem;
  background: var(--papel);
  border-left: 4px solid var(--rojo);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.mv h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.mv p { margin: 0; color: var(--texto-suave); }

.tenet-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}
.tenet-card {
  background: var(--papel);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1rem 1.3rem;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}
.tenet-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 90px;
  height: 90px;
  background: url("../images/phoenix.jpg") center / cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.tenet-card:hover {
  transform: translateY(-4px);
  border-color: var(--oro);
  box-shadow: var(--sombra);
}
.tenet-ko {
  display: block;
  font-family: var(--font-ko);
  font-size: 1.55rem;
  color: var(--rojo);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.tenet-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.tenet-card em {
  display: block;
  font-style: normal;
  color: #8a6d10;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin: 0.15rem 0 0.55rem;
}
.tenet-card p { margin: 0; font-size: 0.9rem; color: var(--texto-suave); }
.tenet-card.featured {
  background: var(--negro);
  color: #fff;
  border-color: var(--oro);
}
.tenet-card.featured em { color: var(--oro); }
.tenet-card.featured p { color: #d8d0b4; }
.tenet-card.featured::after { opacity: 0.16; }

/* Classes */
.classes { background: linear-gradient(180deg, var(--crema) 0%, #fff8dc 100%); }
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.class-card {
  background: var(--papel);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.class-card:hover { transform: translateY(-5px); box-shadow: var(--sombra); }
.class-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.class-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.class-card:hover img { transform: scale(1.05); }
.class-age {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--rojo);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
}
.class-body { padding: 1.15rem 1.15rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.class-body h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.class-body p { margin: 0 0 0.7rem; color: var(--texto-suave); font-size: 0.95rem; }
.class-body ul {
  margin: 0 0 1rem;
  padding-left: 1.05rem;
  color: var(--texto);
  font-size: 0.9rem;
}
.class-time {
  margin-top: auto !important;
  padding-top: 0.7rem;
  border-top: 1px solid var(--linea);
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--rojo-oscuro) !important;
}

/* Instructors */
.instructors { background: var(--carbon); color: #fff; }
.instructors .section-head { color: #fff; }
.instructors .section-lead { color: #d8d0b4; }
.instructors .eyebrow span[lang="ko"],
.schedule .eyebrow span[lang="ko"] {
  color: var(--oro);
  background: rgba(255, 199, 44, 0.1);
  border-color: rgba(255, 199, 44, 0.4);
}
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.instructor-card {
  background: var(--humo);
  border: 1px solid rgba(255, 199, 44, 0.18);
}
.instructor-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.92);
}
.instructor-card div { padding: 1rem 1rem 1.2rem; }
.rank {
  margin: 0 0 0.25rem;
  color: var(--oro);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.instructor-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
  line-height: 1.2;
}
.instructor-card p { margin: 0 0 0.8rem; color: #d5ccb0; font-size: 0.9rem; }
.cert {
  display: inline-block;
  border: 1px solid var(--oro);
  color: var(--oro);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
}
.instructor-feature { background: var(--carbon); color: #fff; }
.instructor-feature-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
}
.instructor-feature .instructor-seal {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 0 2px rgba(255, 199, 44, 0.45), 0 10px 24px rgba(0, 0, 0, 0.4);
}
.instructor-feature h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: 0.03em;
}
.instructor-feature .rank { margin-bottom: 0.9rem; }
.instructor-feature p:not(.rank):not(.eyebrow) {
  color: #d8d0b4;
  max-width: 42rem;
  margin: 0 0 1rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: stretch;
}
.visit-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 0.8rem;
  letter-spacing: 0.03em;
}
.visit-copy address { margin: 0 0 0.85rem; }
.how-to {
  margin: 0 0 1.1rem;
  color: var(--texto-suave);
}
.hours-list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  font-size: 0.92rem;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--linea);
}
.hours-list span { font-weight: 600; }
.hours-list li:last-child { border-bottom: 0; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.visit-copy .btn-ghost {
  color: var(--negro);
  border-color: var(--negro);
}
.visit-copy .btn-ghost:hover { color: var(--negro); }

.schedule-preview .table-wrap { display: none; }
.schedule-preview .schedule-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.schedule-preview .home-more a:not(.btn) { color: var(--oro); }
.schedule-preview .home-more a:not(.btn):hover { color: #fff; }

.form-row .optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--texto-suave);
}

.photo-note {
  margin: 1.4rem 0 0;
  font-size: 0.8rem;
  color: #9a9278;
}
.gallery .photo-note,
.instructors .photo-note { opacity: 0.85; }
.gallery .photo-note { color: var(--texto-suave); }

/* Schedule */
.schedule {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.9)),
    url("../images/phoenix.jpg") center 20% / 680px no-repeat,
    var(--negro);
  color: #fff;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 199, 44, 0.28);
  background: rgba(0, 0, 0, 0.45);
  -webkit-overflow-scrolling: touch;
}
.schedule-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.schedule-table th,
.schedule-table td {
  padding: 0.95rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 199, 44, 0.14);
}
.schedule-table thead th {
  background: #111;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--oro);
  vertical-align: bottom;
}
.schedule-table thead span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  color: #b7ad8c;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}
.schedule-table tbody th {
  font-family: var(--font-display);
  color: #fff;
  white-space: nowrap;
}
.schedule-table tbody tr:hover td,
.schedule-table tbody tr:hover th { background: rgba(218, 41, 28, 0.12); }
.schedule-table .empty { color: #6d6756; }
.schedule-note {
  margin: 1rem 0 0;
  color: #d8d0b4;
  font-size: 0.9rem;
}
.schedule-cards { display: none; gap: 0.9rem; }
.schedule-cards article {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 199, 44, 0.28);
  padding: 1.1rem 1.15rem;
}
.schedule-cards h3 {
  font-family: var(--font-display);
  color: var(--oro);
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}
.schedule-cards ul { list-style: none; margin: 0; padding: 0; }
.schedule-cards li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 199, 44, 0.12);
  font-size: 0.92rem;
}
.schedule-cards li span { color: #efe6c4; font-weight: 600; }
.schedule-cards em { color: #9a9278; font-style: normal; font-size: 0.8rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 0.7rem;
}
.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #111;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: saturate(0.9);
}
.gallery-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.05);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* Testimonials */
.testimonials { background: var(--crema-2); }
.carousel { max-width: 760px; }
.quote {
  display: none;
  margin: 0;
  padding: 2rem 1.6rem;
  background: var(--papel);
  border-left: 5px solid var(--rojo);
  box-shadow: var(--sombra);
}
.quote.is-active { display: block; animation: fadeUp 0.45s ease; }
.quote blockquote {
  margin: 0 0 1.2rem;
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 500;
}
.quote figcaption strong { display: block; font-family: var(--font-display); }
.quote figcaption span { color: var(--texto-suave); font-size: 0.88rem; }
.carousel-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--negro);
  background: var(--negro);
  color: var(--oro);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.dots { display: flex; gap: 0.4rem; }
.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #b7ad8c;
  padding: 0;
  cursor: pointer;
}
.dots button[aria-current="true"] { background: var(--rojo); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
}
.contact-form,
.contact-card {
  background: var(--papel);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.4rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.95rem; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-row label { font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid #cfc6a2;
  background: #fff;
  padding: 0.72rem 0.75rem;
  color: var(--texto);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--oro);
  border-color: var(--oro);
}
.form-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.contact-form .btn-ghost { color: var(--negro); }
.form-status { min-height: 1.3rem; font-weight: 600; color: var(--rojo-oscuro); }
.form-status.is-ok { color: #1b6b2a; }
.form-hint { font-size: 0.8rem; color: var(--texto-suave); margin: 0.4rem 0 0; }
.contact-aside { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
}
.contact-card p, .contact-card address { margin: 0 0 0.55rem; }
.contact-card a { color: var(--rojo-oscuro); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--rojo); text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.8rem; }
.social a {
  border: 1px solid var(--negro);
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.social a:hover { background: var(--negro); color: var(--oro); text-decoration: none; }
.map-wrap {
  min-height: 280px;
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

/* Footer */
.site-footer {
  background: var(--negro);
  color: #d8d0b4;
  padding-top: 3rem;
  border-top: 3px solid var(--rojo);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 1.6rem;
  padding-bottom: 2.2rem;
}
.footer-brand img {
  width: 88px;
  height: 88px;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(255, 199, 44, 0.4);
}
.site-footer h2 {
  font-family: var(--font-display);
  color: var(--oro);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.28rem 0; }
.site-footer a { color: #efe6c4; text-decoration: none; }
.site-footer a:hover { color: var(--oro); }
.footer-bar {
  border-top: 1px solid rgba(255, 199, 44, 0.18);
  padding: 0.9rem 0;
  font-size: 0.82rem;
}
.footer-bar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bar p { margin: 0; }

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1ebd4a;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); background: #17a341; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--oro);
  font-size: 2.2rem;
  cursor: pointer;
}

/* Inner pages */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding: calc(var(--header) + 3.4rem) 0 2.7rem;
  overflow: hidden;
}
.page-hero-media,
.page-hero-overlay { position: absolute; inset: 0; }
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.page-hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35)),
    linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  line-height: 0.98;
  margin: 0;
  letter-spacing: 0.03em;
}
.page-hero .section-lead { color: #efe6c4; max-width: 36rem; margin: 0.7rem 0 0; }

.cta-band {
  background: var(--negro);
  color: #fff;
  padding: 3.2rem 0;
  text-align: center;
  border-top: 3px solid var(--rojo);
}
.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.cta-band p { margin: 0 0 1.2rem; color: #d8d0b4; }
.cta-band .btn-ghost { color: #fff; }
.cta-band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.home-more { margin-top: 1.8rem; }
.home-more a:not(.btn) {
  font-weight: 700;
  color: var(--rojo-oscuro);
  text-decoration: none;
}
.home-more a:not(.btn):hover { color: var(--rojo); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.8s ease forwards;
  animation-play-state: paused;
}
.reveal.is-in { animation-play-state: running; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}
@keyframes floatSeal {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .quote.is-active { animation: none; opacity: 1; transform: none; }
  .hero-seal { animation: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 8.5rem; }
  .hero-seal { display: none; }
  .about-grid,
  .contact-grid,
  .footer-grid,
  .visit-grid,
  .instructor-feature-grid { grid-template-columns: 1fr; }
  .tenet-grid { grid-template-columns: repeat(2, 1fr); }
  .tenet-card.featured { grid-column: 1 / -1; }
  .class-grid { grid-template-columns: 1fr 1fr; }
  .instructor-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats li:nth-child(odd) { border-right: 1px solid rgba(255, 199, 44, 0.18); }
  .scroll-hint { display: none; }
}

@media (max-width: 760px) {
  :root { --header: 76px; }
  .table-wrap { display: none; }
  .schedule-cards { display: grid; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto;
    background: #000;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.2rem 1.3rem;
    border-bottom: 2px solid var(--rojo);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav .btn { margin-top: 0.5rem; width: 100%; }
  .class-grid,
  .instructor-grid,
  .form-split,
  .schedule-preview .schedule-cards { grid-template-columns: 1fr; }
  .instructor-feature-grid { justify-items: center; text-align: center; }
  .instructor-feature p:not(.rank):not(.eyebrow) { margin-inline: auto; }
  .gallery-item.wide { grid-column: auto; }
  .hero h1 { font-size: 2.4rem; }
  .brand-text { display: none; }
  .section { padding: 3.6rem 0; }
}

@media (max-width: 520px) {
  .tenet-grid { grid-template-columns: 1fr; }
  .tenet-card.featured { grid-column: auto; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-auto-rows: 160px; }
}
