/* Estocada — Archetype 07 · Brutalist Swiss */
:root {
  --bg: #f2f0eb;
  --ink: #0c0c0c;
  --mute: #6d6a63;
  --line: #0c0c0c;
  --accent: #e10600;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono-f: "Space Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(14px, 2.4vw, 32px);
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-stretch: 100%; }
::selection { background: var(--accent); color: #fff; }
.mono { font-family: var(--mono-f); font-size: 12px; letter-spacing: .02em; }
.red { color: var(--accent); }
main > section { border-bottom: 2px solid var(--line); }

.h2 { font-weight: 900; font-stretch: 75%; font-size: clamp(44px, 8.6vw, 150px); line-height: .86; letter-spacing: -.02em; }
.sub, .lead { font-size: clamp(16px, 1.3vw, 19px); max-width: 52ch; line-height: 1.5; }
.sub { color: var(--mute); margin-top: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 26px; font-family: var(--mono-f); font-weight: 700; font-size: 14px; text-transform: uppercase; border: 2px solid var(--ink); transition: transform .3s var(--ease), background .2s, color .2s, box-shadow .2s; }
.btn-red { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-red:hover { box-shadow: 6px 6px 0 var(--ink); transform: translate(-3px, -3px); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-block { width: 100%; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; background: var(--bg); border-bottom: 2px solid var(--line); }
.nav-in { height: 62px; display: flex; align-items: stretch; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 var(--gut); font-weight: 900; font-stretch: 80%; font-size: 24px; letter-spacing: .02em; border-right: 2px solid var(--line); }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 18px; }
.menu { display: none; margin-left: auto; align-items: stretch; }
.menu a { display: flex; align-items: center; gap: 8px; padding: 0 20px; border-left: 2px solid var(--line); font-family: var(--mono-f); font-size: 13px; text-transform: uppercase; transition: background .2s, color .2s; }
.menu a i { font-style: normal; color: var(--accent); font-size: 10px; }
.menu a:hover { background: var(--ink); color: var(--bg); }
.menu-cta { background: var(--accent); color: #fff; font-weight: 700; }
.burger { margin-left: auto; padding: 0 var(--gut); border-left: 2px solid var(--line); font-family: var(--mono-f); font-weight: 700; font-size: 13px; }
.menu-open .burger { background: var(--ink); color: var(--bg); }
.menu-open .menu { display: flex; flex-direction: column; position: fixed; top: 62px; left: 0; right: 0; bottom: 0; background: var(--bg); }
.menu-open .menu a { border-left: 0; border-bottom: 2px solid var(--line); padding: 20px var(--gut); font-family: var(--sans); font-weight: 900; font-stretch: 75%; font-size: 44px; }
.menu-open .menu a i { font-family: var(--mono-f); font-size: 12px; }

/* Hero */
.hero { padding-top: 62px; }
.hero-grid { display: grid; grid-template-columns: 1fr; }
.hero-grid > * { border-bottom: 2px solid var(--line); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 14px var(--gut); }
.hero-meta span:nth-child(2) { color: var(--accent); }
.hero-title { font-weight: 900; font-stretch: 62%; font-size: clamp(120px, 33vw, 520px); line-height: .78; letter-spacing: -.04em; padding: 24px var(--gut) 14px; margin: 0; }
.hero-photo { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25); transition: filter .6s; }
.hero-photo:hover img { filter: grayscale(0) contrast(1.1); }
.hero-copy { padding: 26px var(--gut); display: grid; gap: 24px; align-content: end; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; background: var(--ink); color: var(--bg); padding: 22px var(--gut); }
.score small { display: block; font-size: 11px; opacity: .6; }
.score b { font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: clamp(64px, 9vw, 120px); line-height: .9; }
.score div:first-child b { color: var(--accent); }
.score-sep { font-size: 40px; opacity: .4; }
.score p { grid-column: 1 / -1; margin-top: 10px; font-size: 11px; opacity: .6; letter-spacing: .1em; }
.piste { position: relative; height: 54px; display: grid; grid-template-columns: 2fr 1fr 2fr 2fr 2fr 1fr 2fr; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 14 - 1px), rgba(12,12,12,.15) calc(100% / 14 - 1px) calc(100% / 14)); }
.piste span { border-right: 2px solid var(--line); }
.piste span:nth-child(4) { border-right-color: var(--accent); border-right-width: 3px; }
.piste i { position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%); font-style: normal; background: var(--bg); padding: 2px 8px; }

/* Cifras */
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding: 28px var(--gut); border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat b { display: block; font-weight: 900; font-stretch: 62%; font-size: clamp(64px, 9vw, 130px); line-height: .85; color: var(--accent); }
.stat .mono { display: block; margin-top: 12px; font-size: 11px; }

/* Encabezados de sección */
.sec-head { display: grid; gap: 14px; padding: clamp(40px, 6vw, 80px) var(--gut) clamp(28px, 4vw, 48px); position: relative; }
.num { position: absolute; top: 18px; right: var(--gut); font-size: 12px; padding: 4px 8px; background: var(--ink); color: var(--bg); }

/* Armas */
.w-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.w-tabs button { padding: 20px 8px; font-family: var(--mono-f); font-weight: 700; font-size: clamp(13px, 1.6vw, 18px); border-right: 2px solid var(--line); transition: background .2s, color .2s; }
.w-tabs button:last-child { border-right: 0; }
.w-tabs button:hover { background: rgba(225, 6, 0, .08); }
.w-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.w-body { display: grid; }
.w-body > * { border-bottom: 2px solid var(--line); }
.w-figure { padding: 30px var(--gut); display: grid; place-items: center; background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(12,12,12,.08) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, rgba(12,12,12,.08) 23px 24px); }
.fencer { width: min(220px, 60vw); height: auto; }
.fencer .z { fill: transparent; stroke: var(--ink); stroke-width: 2.5; transition: fill .45s var(--ease); }
.fencer[data-target="florete"] .z-torso { fill: var(--accent); }
.fencer[data-target="espada"] .z { fill: var(--accent); }
.fencer[data-target="sable"] .z-head, .fencer[data-target="sable"] .z-torso, .fencer[data-target="sable"] .z-arm-l, .fencer[data-target="sable"] .z-arm-r { fill: var(--accent); }
.w-caption { margin-top: 16px; color: var(--accent); }
.w-info { padding: 30px var(--gut); animation: fin .5s var(--ease); }
@keyframes fin { from { opacity: 0; transform: translateX(-10px); } }
.w-info h3 { font-weight: 900; font-stretch: 70%; font-size: clamp(56px, 7vw, 100px); line-height: .9; text-transform: uppercase; }
.w-info > p { margin-top: 14px; max-width: 46ch; }
.specs { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0; border: 2px solid var(--line); }
.specs div { padding: 12px 14px; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.specs div:nth-child(2n) { border-right: 0; }
.specs div:nth-last-child(-n+2) { border-bottom: 0; }
.specs dt { font-size: 10px; color: var(--mute); }
.specs dd { font-size: 16px; font-weight: 700; margin-top: 2px; }
.fit { font-weight: 700; border-left: 6px solid var(--accent); padding-left: 12px; }
.w-photo { margin: 0; overflow: hidden; max-height: 620px; }
.w-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); }

/* Programas */
.prog-list { border-top: 2px solid var(--line); }
.prog-list li { display: grid; grid-template-columns: 40px 1fr; gap: 6px 16px; padding: 22px var(--gut); border-bottom: 2px solid var(--line); transition: background .25s, color .25s; }
.prog-list li:hover { background: var(--ink); color: var(--bg); }
.prog-list li:hover .mono:first-child { color: var(--accent); }
.prog-list li > .mono { font-size: 14px; font-weight: 700; grid-row: span 3; }
.prog-list h3 { font-weight: 900; font-stretch: 75%; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; text-transform: uppercase; }
.prog-list p { color: inherit; opacity: .75; }
.prog-list b { font-size: 13px; color: var(--accent); }
.note { padding: 18px var(--gut); background: var(--accent); color: #fff; font-weight: 700; }

/* Foto ancha */
.bleed { position: relative; overflow: hidden; }
.bleed-img { height: clamp(360px, 70vw, 820px); }
.bleed-img img { filter: grayscale(1) contrast(1.3) brightness(.75); }
.bleed-quote { position: absolute; left: var(--gut); bottom: var(--gut); font-weight: 900; font-stretch: 62%; font-size: clamp(56px, 11vw, 190px); line-height: .82; color: #fff; mix-blend-mode: normal; text-shadow: 0 2px 30px rgba(0,0,0,.3); }

/* Horario */
.table-wrap { overflow-x: auto; border-top: 2px solid var(--line); }
.sched { width: 100%; min-width: 760px; border-collapse: collapse; }
.sched th, .sched td { border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 18px 12px; text-align: left; font-size: 12px; font-weight: 700; }
.sched th:last-child, .sched td:last-child { border-right: 0; }
.sched tbody tr:last-child th, .sched tbody tr:last-child td { border-bottom: 0; }
.sched thead th { background: var(--ink); color: var(--bg); }
.sched tbody th { width: 90px; }
.k-a { background: #fff; } .k-b { background: #e4e1d9; } .k-c { background: var(--accent); color: #fff; } .k-d { background: #cfcac0; } .k-e { background: repeating-linear-gradient(45deg, #fff 0 6px, #f0ede6 6px 12px); } .k-f { background: var(--ink); color: var(--bg); }

/* Academia */
.acad-grid { display: grid; border-top: 2px solid var(--line); }
.acad-photo { margin: 0; overflow: hidden; max-height: 640px; border-bottom: 2px solid var(--line); }
.acad-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); }
.acad-grid > div { padding: 30px var(--gut); }
.pillars { display: grid; margin-top: 30px; border: 2px solid var(--line); }
.pillars > div { padding: 20px; border-bottom: 2px solid var(--line); }
.pillars > div:last-child { border-bottom: 0; }
.pillars .mono { color: var(--accent); }
.pillars h3 { font-weight: 900; font-stretch: 75%; font-size: 32px; text-transform: uppercase; margin: 6px 0 4px; }

/* Testimonios */
.voices { display: grid; background: var(--ink); color: var(--bg); }
.voices blockquote { padding: 36px var(--gut); border-bottom: 2px solid #333; }
.voices p { font-weight: 700; font-stretch: 85%; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
.voices p::before { content: "«"; color: var(--accent); margin-right: 4px; }
.voices cite { display: block; margin-top: 18px; font-style: normal; color: var(--accent); }

/* FAQ */
.faq-list { border-top: 2px solid var(--line); }
.faq-list details { border-bottom: 2px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 64px 22px var(--gut); position: relative; font-weight: 800; font-stretch: 85%; font-size: clamp(19px, 1.8vw, 24px); text-transform: uppercase; transition: background .2s, color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); font-family: var(--mono-f); font-size: 26px; color: var(--accent); }
.faq-list details[open] summary { background: var(--ink); color: var(--bg); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 20px var(--gut) 26px; max-width: 70ch; }

/* Reservar */
.book { background: var(--accent); color: #fff; }
.book-title { font-weight: 900; font-stretch: 62%; font-size: clamp(120px, 30vw, 480px); line-height: .8; letter-spacing: -.04em; padding: 30px var(--gut) 10px; border-bottom: 2px solid var(--ink); }
.book-grid { display: grid; }
.book-grid > div { padding: 30px var(--gut); border-bottom: 2px solid var(--ink); }
.info { margin-top: 24px; display: grid; gap: 8px; }
.info a { text-decoration: underline; }
.form { display: grid; gap: 16px; padding: 30px var(--gut); background: var(--bg); color: var(--ink); }
.form label > span, .seg legend { display: block; font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.form input:not([type="radio"]), .form select { width: 100%; padding: 14px; border: 2px solid var(--ink); background: #fff; border-radius: 0; }
.form input:focus, .form select:focus { outline: none; box-shadow: 4px 4px 0 var(--accent); }
.seg { border: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.seg legend { grid-column: 1 / -1; }
.seg input { position: absolute; opacity: 0; }
.seg label span { display: block; text-align: center; padding: 14px 6px; border: 2px solid var(--ink); margin-left: -2px; font-family: var(--mono-f); font-weight: 700; font-size: 12px; cursor: pointer; }
.seg label:first-of-type span { margin-left: 0; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }
.form-ok { color: var(--accent); }

/* Footer */
.footer { padding: 0 0 20px; }
.foot-grid { display: grid; border-bottom: 2px solid var(--line); }
.foot-grid > * { padding: 16px var(--gut); border-bottom: 2px solid var(--line); display: flex; align-items: center; gap: 10px; }
.foot-grid > *:last-child { border-bottom: 0; }
.footer .brand { border: 0; padding: 16px var(--gut); font-family: var(--sans); }
.photo-credits { padding: 16px var(--gut) 0; }

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 2px solid var(--line); }
  .stat:last-child { border-right: 0; }
  .prog-list { display: grid; grid-template-columns: 1fr 1fr; }
  .prog-list li:nth-child(odd) { border-right: 2px solid var(--line); }
  .voices { grid-template-columns: repeat(3, 1fr); }
  .voices blockquote { border-bottom: 0; border-right: 2px solid #333; }
  .voices blockquote:last-child { border-right: 0; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillars > div { border-bottom: 0; border-right: 2px solid var(--line); }
  .pillars > div:last-child { border-right: 0; }
  .foot-grid { grid-template-columns: auto 1fr auto; }
  .foot-grid > * { border-bottom: 0; border-right: 2px solid var(--line); }
  .foot-grid > *:last-child { border-right: 0; }
}
@media (min-width: 960px) {
  .menu { display: flex; }
  .burger { display: none; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; grid-template-areas: "meta meta" "title photo" "copy score"; }
  .hero-meta { grid-area: meta; }
  .hero-title { grid-area: title; border-right: 2px solid var(--line); display: flex; align-items: flex-end; font-size: clamp(160px, 19vw, 360px); }
  .hero-photo { grid-area: photo; aspect-ratio: auto; }
  .hero-copy { grid-area: copy; border-right: 2px solid var(--line); border-bottom: 0; }
  .score { grid-area: score; border-bottom: 0; }
  .sec-head { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .w-body { grid-template-columns: 1fr 1.2fr 1fr; }
  .w-body > * { border-bottom: 0; }
  .w-figure { border-right: 2px solid var(--line); }
  .w-body > .w-info:not([hidden]) { border-right: 2px solid var(--line); }
  .acad-grid { grid-template-columns: 1fr 1.4fr; }
  .acad-photo { border-bottom: 0; border-right: 2px solid var(--line); }
  .book-grid { grid-template-columns: 1fr 1fr; }
  .book-grid > div { border-bottom: 0; border-right: 2px solid var(--ink); }
}
