/* =========================================================
   INVICTUS FORMACIÓN · Estilos
   Paleta: rojo imperial, negro, blanco mármol.
   ========================================================= */

:root {
  --red: #a50010;
  --red-2: #c3001a;
  --red-dark: #6e000a;
  --black: #0c0c0d;
  --ink: #161618;
  --gray: #5d5d63;
  --line: #e4e1dc;
  --paper: #f5f2ed;
  --white: #ffffff;
  --gold: #d8b46a;

  --serif: "Cinzel", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;

  /* Greca griega (meandro) en SVG */
  --meander-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Crect width='28' height='14' fill='%230c0c0d'/%3E%3Cpath d='M14 2L26 7 14 12 2 7z' fill='none' stroke='%23c3001a' stroke-width='1.8'/%3E%3Ccircle cx='14' cy='7' r='1.7' fill='%23ffffff'/%3E%3Cpath d='M0 7h2M26 7h2' stroke='%23c3001a' stroke-width='1.8'/%3E%3C/svg%3E");
  --meander-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='24' viewBox='0 0 32 24'%3E%3Cpath d='M0 21h28V3H8v14h14V9h-8' fill='none' stroke='%23a50010' stroke-width='2.4'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1rem; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.red { color: var(--red); }

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

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__ring {
  width: 130px; height: 130px; border-radius: 50%;
  padding: 6px; position: relative;
  background: conic-gradient(var(--red) 0 25%, transparent 25% 100%);
  animation: spin 1.1s linear infinite;
}
.preloader__ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  animation: spin 1.1s linear infinite reverse;
}
.preloader__text {
  font-family: var(--serif); color: #fff; letter-spacing: .6em; font-size: 14px; margin: 0;
  padding-left: .6em;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  z-index: 200;
}

/* ---------- Topbar ---------- */
.topbar { background: var(--black); color: #ddd; font-size: 12px; letter-spacing: .06em; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.topbar__brand { font-family: var(--serif); text-transform: uppercase; color: #fff; }
.topbar__online { display: flex; align-items: center; gap: 8px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #2ee66b; box-shadow: 0 0 0 0 rgba(46,230,107,.7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(46,230,107,0); } 100% { box-shadow: 0 0 0 0 rgba(46,230,107,0); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,12,13,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(12,12,13,.98); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand__logo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); transition: transform .6s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-12deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--serif); font-size: 21px; letter-spacing: .12em; }
.brand__text small { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #aaa; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  color: #ddd; font-size: 14px; font-weight: 500; position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red-2); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover, .nav a.is-active { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; background: none; border: 1px solid rgba(255,255,255,.25); width: 46px; height: 46px; border-radius: var(--radius); cursor: pointer; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px auto; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; font-weight: 700; font-size: 15px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; font-family: var(--sans);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s, color .25s, background .25s, border-color .25s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 25px -10px rgba(165,0,16,.8); }
.btn--red:hover { background: var(--red-2); }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); }
.btn--black { background: var(--black); color: #fff; }
.btn--black:hover { background: #222; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--black); }
.btn--outline-dark { border-color: var(--black); color: var(--black); background: transparent; }
.btn--outline-dark:hover { background: var(--black); color: #fff; }

/* ---------- Common section ---------- */
.section { padding: 120px 0; position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--black); color: #fff; }
.section--red { background: var(--red); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: var(--red-2); }
.section--red .eyebrow--light::before, .hero .eyebrow--light::before { background: #fff; }
.eyebrow--center { display: flex; justify-content: center; }

.title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -.005em; margin-bottom: 24px;
}
.title--center { text-align: center; }
.title--light { color: #fff; }
.section__lead { font-size: 18px; color: var(--gray); max-width: 640px; }
.section--dark .section__lead { color: #bdbdc2; }
.section__lead--center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Meander bands ---------- */
.meander {
  height: 24px; background-image: var(--meander-light); background-repeat: repeat-x; background-size: 32px 24px;
  background-color: var(--black);
  animation: meander 3s linear infinite;
}
.meander--dark { background-color: var(--black); }
.section--dark .meander, .stats .meander { background-color: var(--black); }
.meander--top { position: absolute; top: 0; left: 0; right: 0; }
.meander--bottom { position: absolute; bottom: 0; left: 0; right: 0; animation-direction: reverse; }
@keyframes meander { to { background-position: 32px 0; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: calc(100vh - 110px); color: #fff;
  background: var(--red); overflow: hidden;
  display: flex; align-items: center; padding: 90px 0 120px;
}
.hero__bg { position: absolute; inset: 0; }
.hero__glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(circle at 72% 45%, rgba(255,60,60,.55), transparent 40%),
    radial-gradient(circle at 15% 90%, rgba(0,0,0,.55), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(0,0,0,.45), transparent 40%);
  animation: glow 12s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-3%, 2%) scale(1.05); } }
.hero__grain {
  position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero__title {
  font-family: var(--serif); font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 4.7vw, 70px); line-height: 1.02; margin-bottom: 26px;
  text-shadow: 0 6px 30px rgba(0,0,0,.25);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) .word { transition-delay: .12s; }
.hero__title .line:nth-child(3) .word { transition-delay: .24s; }
body.is-ready .hero__title .word { transform: none; }
.word--outline { color: transparent; -webkit-text-stroke: 2px #fff; }

.hero__motto { font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: .04em; }
.hero__motto em { font-style: normal; color: var(--black); background: #fff; padding: 0 8px; }
.hero__lead { font-size: 18px; max-width: 580px; color: rgba(255,255,255,.9); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero__chips li { display: flex; align-items: center; gap: 8px; }
.hero__chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }

/* Emblema */
.hero__emblem { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: center; display: grid; place-items: center; }
.emblem__logo {
  width: 72%; border-radius: 50%; position: relative; z-index: 2;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 8px rgba(0,0,0,.25);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.emblem__ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.35); }
.emblem__ring--1 { inset: 4%; animation: spin 40s linear infinite; }
.emblem__ring--2 { inset: 13%; border-style: solid; border-color: rgba(0,0,0,.35); border-width: 2px; }
.emblem__text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite reverse; }
.emblem__text text { fill: #fff; stroke: none; font-family: var(--serif); font-size: 13.5px; letter-spacing: 4.2px; font-weight: 700; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.8);
}
.hero__scroll i { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; position: relative; }
.hero__scroll i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }

/* =========================================================
   STATS
   ========================================================= */
.stats { background: var(--black); color: #fff; padding: 74px 0; position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 10px 16px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); }
.stat > span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #aaa; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 20px 0; border-bottom: 4px solid var(--black); }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 32s linear infinite; align-items: center; }
.marquee span { font-family: var(--serif); font-size: clamp(22px, 3vw, 38px); font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.marquee b { font-size: 22px; color: var(--black); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   ONLINE
   ========================================================= */
.online__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.online__text p { color: var(--gray); font-size: 17px; }
.online__text strong { color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 36px; color: var(--gray); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center;
}
.online__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.online__cards .mini-card:nth-child(even) { transform: translateY(40px); }
.mini-card {
  background: var(--white); border: 1px solid var(--line); padding: 30px 26px; border-radius: var(--radius);
  position: relative; overflow: hidden; transition: box-shadow .4s, border-color .4s;
  transform-style: preserve-3d;
}
.mini-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.mini-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.mini-card:hover::after { transform: scaleX(1); }
.mini-card__icon { width: 50px; height: 50px; display: grid; place-items: center; background: var(--black); color: #fff; border-radius: var(--radius); margin-bottom: 18px; transition: background .3s, transform .4s var(--ease); }
.mini-card:hover .mini-card__icon { background: var(--red); transform: rotate(-8deg) scale(1.08); }
.mini-card__icon svg { width: 24px; height: 24px; }
.mini-card h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 10px; }
.mini-card p { color: var(--gray); font-size: 14.5px; margin: 0; }

/* =========================================================
   PROCESO
   ========================================================= */
.section__head { display: grid; grid-template-columns: 1.4fr .8fr; gap: 50px; align-items: end; margin-bottom: 56px; }
.note { background: #fff; border-left: 4px solid var(--red); padding: 22px 24px; font-size: 14.5px; color: var(--gray); box-shadow: 0 10px 30px -18px rgba(0,0,0,.3); }
.note strong { display: block; color: var(--ink); font-family: var(--serif); margin-bottom: 6px; }
.note p { margin: 0; }

.timeline { position: relative; margin-bottom: 36px; }
.timeline__bar { position: absolute; left: 4%; right: 4%; top: 28px; height: 3px; background: var(--line); }
.timeline__fill { height: 100%; width: 0; background: var(--red); transition: width .6s var(--ease); }
.timeline__steps { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.tstep { background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--sans); color: var(--gray); padding: 0; }
.tstep i {
  font-style: normal; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 3px solid var(--line); font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--ink);
  transition: all .35s var(--ease);
}
.tstep span { font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.tstep:hover i { border-color: var(--red); transform: translateY(-3px); }
.tstep.is-done i { background: var(--black); border-color: var(--black); color: #fff; }
.tstep.is-active i { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 8px rgba(165,0,16,.15); }
.tstep.is-active span { color: var(--red); }

.phase-panel {
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--red);
  display: grid; grid-template-columns: 1.1fr 1fr; min-height: 340px; box-shadow: var(--shadow);
}
.phase-panel__main { padding: 44px; }
.phase-panel__tag { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px; margin-bottom: 18px; }
.phase-panel__main h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.phase-panel__main p { color: var(--gray); font-size: 16.5px; }
.phase-panel__goal { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 18px; background: var(--paper); font-size: 14px; }
.phase-panel__goal b { color: var(--red); font-family: var(--serif); }
.phase-panel__side { background: var(--black); color: #fff; padding: 44px; position: relative; overflow: hidden; }
.phase-panel__side::before {
  content: attr(data-num); position: absolute; right: -10px; bottom: -40px;
  font-family: var(--serif); font-weight: 900; font-size: 220px; line-height: 1; color: rgba(255,255,255,.05);
}
.phase-panel__side h4 { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #aaa; margin-bottom: 20px; }
.phase-panel__side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
.phase-panel__side li { display: flex; gap: 12px; align-items: flex-start; }
.phase-panel__side li::before { content: "✓"; color: var(--red-2); font-weight: 800; }
.phase-panel .anim { animation: phaseIn .55s var(--ease) both; }
.phase-panel .anim:nth-child(2) { animation-delay: .05s; }
@keyframes phaseIn { from { opacity: 0; transform: translateY(14px); } }
.phase-panel__nav { display: flex; gap: 10px; margin-top: 26px; }
.phase-panel__nav button { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; border-radius: var(--radius); transition: background .2s, color .2s; }
.phase-panel__nav button:hover { background: var(--black); color: #fff; }

/* =========================================================
   INCLUYE
   ========================================================= */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature {
  padding: 42px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden; transition: color .45s; isolation: isolate;
}
.feature::before {
  content: ""; position: absolute; inset: 0; background: var(--red); z-index: -1;
  clip-path: circle(0% at 100% 0%); transition: clip-path .7s var(--ease);
}
.feature:hover { color: #fff; }
.feature:hover::before { clip-path: circle(150% at 100% 0%); }
.feature__num { position: absolute; top: 26px; right: 30px; font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--red); transition: color .45s; }
.feature:hover .feature__num { color: #fff; }
.feature__icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--black); color: #fff; margin-bottom: 24px; transition: background .45s, color .45s; }
.feature:hover .feature__icon { background: #fff; color: var(--red); }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 12px; }
.feature p { font-size: 15px; color: var(--gray); margin: 0; transition: color .45s; }
.feature:hover p { color: rgba(255,255,255,.88); }

/* =========================================================
   TEMARIO
   ========================================================= */
.temario__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 50px; align-items: start; }
.panel { background: #fff; border: 2px solid var(--black); box-shadow: 10px 10px 0 var(--black); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.panel:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 var(--black); }
.panel--red { box-shadow: 10px 10px 0 var(--red); border-color: var(--red); }
.panel--red:hover { box-shadow: 14px 14px 0 var(--red); }
.panel__head { padding: 26px 30px; color: #fff; background: var(--black); }
.panel--red .panel__head { background: var(--red); }
.panel__head small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.panel__head h3 { font-family: var(--serif); font-size: 26px; margin-top: 6px; }
.blocks { list-style: none; margin: 0; padding: 8px 30px 18px; }
.block { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block__check { flex: 0 0 28px; height: 28px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; transition: transform .4s var(--ease); }
.block:hover .block__check { transform: rotate(360deg); }
.block strong { display: block; font-size: 16px; }
.block p { margin: 2px 0 0; font-size: 14px; color: var(--gray); }
.table-wrap { overflow-x: auto; padding: 12px 30px 0; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ptable th { text-align: left; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); padding: 14px 8px 12px 0; border-bottom: 2px solid var(--black); }
.ptable td { padding: 15px 8px 15px 0; border-bottom: 1px solid var(--line); }
.ptable td:first-child { font-weight: 700; }
.ptable td:nth-child(2) { color: var(--gray); }
.ptable tr { transition: background .2s; }
.ptable tbody tr:hover { background: var(--paper); }
.tag { display: inline-block; background: var(--paper); border: 1px solid var(--line); font-size: 12px; font-weight: 700; padding: 4px 9px; white-space: nowrap; }
.panel__foot { padding: 20px 30px 0; font-size: 14px; color: var(--gray); }
.panel--red .btn { margin: 0 30px 30px; }

/* =========================================================
   MÉTODO
   ========================================================= */
.metodo { padding: 140px 0; overflow: hidden; }
.metodo::before {
  content: "INVICTUS"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--serif); font-weight: 900; font-size: 22vw; color: rgba(255,255,255,.025); white-space: nowrap; pointer-events: none;
}
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; position: relative; }
.pillar {
  border: 1px solid rgba(255,255,255,.12); padding: 34px 28px 36px; position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  transition: border-color .4s, transform .4s var(--ease), background .4s;
}
.pillar:hover { border-color: var(--red-2); transform: translateY(-8px); background: linear-gradient(180deg, rgba(165,0,16,.25), transparent); }
.pillar__roman { position: absolute; top: 24px; right: 26px; font-family: var(--serif); font-size: 30px; color: rgba(255,255,255,.18); transition: color .4s; }
.pillar:hover .pillar__roman { color: var(--red-2); }
.pillar__icon { width: 52px; height: 52px; background: var(--red); display: grid; place-items: center; margin-bottom: 30px; }
.pillar__icon svg { width: 24px; height: 24px; color: #fff; }
.pillar h3 { font-family: var(--serif); font-size: 23px; margin-bottom: 12px; }
.pillar p { font-size: 14.5px; color: #b9b9be; margin: 0; }
.method-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; position: relative; }
.method-strip div { background: #fff; color: var(--ink); text-align: center; padding: 26px; }
.method-strip strong { display: block; font-family: var(--serif); font-size: 32px; color: var(--red); }
.method-strip span { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

/* =========================================================
   SEMANA
   ========================================================= */
.semana__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.semana__grid > div p { color: var(--gray); font-size: 17px; margin-bottom: 28px; }
.week { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: d; }
.week li {
  display: flex; align-items: center; gap: 20px; padding: 14px 20px; background: var(--paper);
  border-left: 4px solid transparent; transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.week li:hover { border-color: var(--red); transform: translateX(10px); background: #fff; box-shadow: 0 10px 30px -20px rgba(0,0,0,.4); }
.week b { flex: 0 0 46px; height: 46px; display: grid; place-items: center; background: var(--black); color: #fff; font-family: var(--serif); font-size: 19px; }
.week li:nth-child(6) b { background: var(--red); }
.week li:last-child b { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.week strong { display: block; font-size: 15.5px; }
.week span { font-size: 14px; color: var(--gray); }

/* =========================================================
   PLANES
   ========================================================= */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 60px; align-items: stretch; }
.price {
  background: #fff; border: 2px solid var(--black); padding: 40px 34px; display: flex; flex-direction: column;
  position: relative; transition: transform .4s var(--ease), box-shadow .4s;
}
.price:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.price h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
.price__desc { color: var(--gray); font-size: 14.5px; min-height: 46px; }
.price__amount { font-size: 15px; font-weight: 600; margin: 10px 0 24px; }
.price__amount span { font-family: var(--serif); font-size: 58px; font-weight: 900; line-height: 1; }
.price ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; flex: 1; }
.price li { display: flex; gap: 10px; font-size: 15px; }
.price li::before { content: "✓"; color: var(--red); font-weight: 800; }
.price--featured { background: var(--red); color: #fff; border-color: var(--red); transform: scale(1.04); box-shadow: 0 30px 70px -25px rgba(165,0,16,.8); }
.price--featured:hover { transform: scale(1.04) translateY(-10px); }
.price--featured .price__desc { color: rgba(255,255,255,.85); }
.price--featured li::before { color: #fff; }
.price__badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--black); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; padding: 7px 14px; white-space: nowrap; }
.fineprint { text-align: center; font-size: 13px; color: var(--gray); margin-top: 40px; }

/* =========================================================
   QUOTE
   ========================================================= */
.quote { position: relative; padding: 130px 0; background: var(--black); color: #fff; text-align: center; overflow: hidden; }
.quote__bg { position: absolute; inset: -10%; background: url("../assets/img/logo.jpg") center / 600px no-repeat; opacity: .07; filter: grayscale(1); }
.quote blockquote { margin: 0 auto; max-width: 820px; position: relative; }
.quote__mark { font-family: var(--serif); font-size: 140px; line-height: .6; color: var(--red-2); display: block; }
.quote p { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 46px); font-weight: 700; line-height: 1.25; margin: 10px 0 24px; }
.quote cite { font-style: normal; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #aaa; }

/* =========================================================
   FAQ
   ========================================================= */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq__grid > div:first-child { position: sticky; top: 120px; }
.faq__grid > div:first-child p { color: var(--gray); font-size: 17px; margin-bottom: 28px; }
.accordion { display: grid; gap: 12px; }
.acc { border: 1px solid var(--line); background: #fff; transition: border-color .3s, box-shadow .3s; }
.acc[open] { border-color: var(--black); box-shadow: 6px 6px 0 var(--red); }
.acc summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font-weight: 700; font-size: 16.5px; position: relative;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center; background: var(--black); color: #fff; font-size: 20px; font-weight: 400;
  transition: transform .35s var(--ease), background .3s;
}
.acc[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--red); }
.acc__body { padding: 0 24px 22px; color: var(--gray); }
.acc__body p { margin: 0; }
.acc[open] .acc__body { animation: phaseIn .45s var(--ease); }

/* =========================================================
   CONTACTO
   ========================================================= */
.contacto { padding-top: 140px; overflow: hidden; }
.contacto::after {
  content: ""; position: absolute; right: -200px; bottom: -200px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,.35), transparent 70%);
}
.contacto__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; position: relative; z-index: 1; }
.contacto__info > p { font-size: 18px; color: rgba(255,255,255,.9); }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.contact-list span { width: 42px; height: 42px; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); font-size: 17px; }
.contact-list a { border-bottom: 1px solid rgba(255,255,255,.4); transition: border-color .2s; }
.contact-list a:hover { border-color: #fff; }

.form { background: #fff; color: var(--ink); padding: 42px; box-shadow: 18px 18px 0 var(--black); }
.form h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 26px; }
.form__row { margin-bottom: 16px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: block; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 2px solid var(--line); background: var(--paper);
  padding: 24px 14px 9px; font-family: var(--sans); font-size: 15px; color: var(--ink); outline: none; border-radius: 0;
  transition: border-color .25s, background .25s; resize: vertical; appearance: none; -webkit-appearance: none;
}
.field--select select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 26px, calc(100% - 14px) 26px; background-size: 6px 6px; background-repeat: no-repeat; }
.field span {
  position: absolute; left: 14px; top: 17px; font-size: 15px; color: var(--gray); pointer-events: none;
  transition: transform .2s var(--ease), font-size .2s, color .2s; transform-origin: left;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); background: #fff; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field--select span { transform: translateY(-11px); font-size: 11px; color: var(--red); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field.is-invalid input { border-color: #e0002a; background: #fff2f3; }
.form__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 9px 16px; border: 2px solid var(--line); font-size: 14px; font-weight: 600; transition: all .2s; }
.pills input:checked + span { background: var(--black); border-color: var(--black); color: #fff; }
.pills input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--gray); margin: 18px 0 22px; cursor: pointer; }
.consent input { accent-color: var(--red); width: 18px; height: 18px; margin-top: 2px; }
.consent.is-invalid span { color: #e0002a; }
.form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__msg { margin: 14px 0 0; font-size: 14px; font-weight: 600; min-height: 1.4em; }
.form__msg.is-error { color: #e0002a; }
.form__msg.is-ok { color: #14853b; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--black); color: #bbb; padding: 90px 0 0; position: relative; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__brand img { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 18px; border: 2px solid var(--red); }
.footer__brand strong { color: #fff; font-family: var(--serif); letter-spacing: .1em; }
.footer__motto { font-family: var(--serif); color: var(--red-2); font-weight: 700; }
.footer h4 { color: #fff; font-family: var(--serif); font-size: 16px; margin-bottom: 18px; letter-spacing: .06em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* ---------- Floating ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5);
  transition: transform .3s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ripple 2s infinite; }
@keyframes ripple { to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; stroke: none; }
.to-top {
  position: fixed; right: 30px; bottom: 96px; z-index: 90; width: 44px; height: 44px; border: 0; cursor: pointer;
  background: var(--black); color: #fff; font-size: 18px; border-radius: 50%; box-shadow: 0 8px 20px -6px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.online__cards .mini-card.reveal.is-visible:nth-child(even) { transform: translateY(40px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a:not(.btn) { font-size: 13px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .section { padding: 90px 0; }
  .burger { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 150;
    background: var(--black); flex-direction: column; align-items: stretch; gap: 0; padding: 100px 30px 30px;
    transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.5);
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { font-size: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--serif); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 24px; }
  .burger { position: relative; z-index: 160; }

  .hero__grid { grid-template-columns: 1fr; text-align: left; gap: 40px; }
  .hero__emblem { max-width: 320px; order: -1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .stat:nth-child(2) { border-right: 0; }
  .online__grid, .semana__grid, .faq__grid, .contacto__grid, .temario__grid { grid-template-columns: 1fr; gap: 50px; }
  .faq__grid > div:first-child { position: static; }
  .section__head { grid-template-columns: 1fr; gap: 24px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .price--featured { transform: none; }
  .price--featured:hover { transform: translateY(-10px); }
  .phase-panel { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar__brand { display: none; }
  .topbar__inner { justify-content: center; }
  .header__inner { height: 66px; }
  .brand__logo { width: 42px; height: 42px; }
  .brand__text strong { font-size: 18px; }
  .hero { padding: 50px 0 110px; }
  .hero__lead { font-size: 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .stat > span { font-size: 10.5px; }
  .online__cards { grid-template-columns: 1fr; }
  .online__cards .mini-card:nth-child(even),
  .online__cards .mini-card.reveal.is-visible:nth-child(even) { transform: none; }
  .timeline__bar { display: none; }
  .timeline__steps { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
  .tstep i { width: 50px; height: 50px; font-size: 15px; }
  .tstep span { font-size: 12.5px; }
  .phase-panel__main, .phase-panel__side { padding: 28px 22px; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 34px 24px; }
  .pillars, .method-strip { grid-template-columns: 1fr; }
  .panel { box-shadow: 6px 6px 0 var(--black); }
  .panel--red { box-shadow: 6px 6px 0 var(--red); }
  .blocks, .table-wrap { padding-left: 20px; padding-right: 20px; }
  .panel__head { padding: 22px 20px; }
  .panel__foot { padding-left: 20px; padding-right: 20px; }
  .panel--red .btn { margin: 0 20px 24px; width: calc(100% - 40px); }
  .form { padding: 28px 20px; box-shadow: 8px 8px 0 var(--black); }
  .form__row--2, .form__actions { grid-template-columns: 1fr; }
  .week li { padding: 12px 14px; gap: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .to-top { right: 21px; bottom: 82px; }
}

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

/* Cifras: Cinzel usa números de estilo antiguo; usamos Inter para que se lean grandes y claros */
.stat strong, .price__amount span, .method-strip strong, .tstep i, .feature__num, .phase-panel__side::before {
  font-family: var(--sans); font-weight: 800; letter-spacing: -.02em;
}
@media (min-width: 961px) { .hero__title .word { white-space: nowrap; } }
.contacto .title { font-size: clamp(30px, 3.4vw, 46px); }

/* =========================================================
   JORGE3 · componentes nuevos
   ========================================================= */
.topbar__provs { color: #8d8d93; }
.hero__title { font-size: clamp(34px, 4.7vw, 70px); line-height: 1.02; }
@media (min-width: 961px) { .hero__title .word { white-space: nowrap; } }

/* Equipo + vídeo */
.equipo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.lead { color: var(--gray); font-size: 17px; }
.coord { display: flex; gap: 22px; align-items: flex-start; margin-top: 30px; padding: 26px; background: var(--black); color: #fff; border-left: 5px solid var(--red); box-shadow: var(--shadow); }
.coord__img { width: 76px; height: 76px; border-radius: 50%; flex: none; border: 2px solid var(--red-2); }
.coord small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #aaa; }
.coord h3 { font-family: var(--serif); font-size: 26px; margin: 4px 0 12px; }
.coord ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: #d6d6da; }
.coord li { padding-left: 18px; position: relative; }
.coord li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--red-2); transform: rotate(45deg); }
.coord b { color: #fff; }
.video__facade, .video__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; cursor: pointer; overflow: hidden; box-shadow: 14px 14px 0 var(--red); }
.video__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .6s var(--ease), opacity .3s; }
.video__facade:hover img { transform: scale(1.04); opacity: .95; }
.video__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(165,0,16,.6); animation: playPulse 2s infinite; }
.video__play svg { width: 34px; height: 34px; fill: #fff; stroke: none; margin-left: 4px; }
@keyframes playPulse { 70% { box-shadow: 0 0 0 22px rgba(165,0,16,0); } 100% { box-shadow: 0 0 0 0 rgba(165,0,16,0); } }
.video__label { position: absolute; left: 16px; bottom: 14px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; }
.video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video__points { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.video__points li { padding-left: 34px; position: relative; color: var(--gray); font-size: 15.5px; }
.video__points li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.video__points strong { color: var(--ink); }

/* Stats con texto más largo */
.stat > span { display: block; max-width: 220px; margin: 6px auto 0; line-height: 1.5; }

/* Calculadora */
.calc { background: #fff; border: 2px solid var(--black); box-shadow: 10px 10px 0 var(--black); }
.calc__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 26px; background: var(--black); color: #fff; }
.seg { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px; }
.seg__b { border: 0; background: transparent; color: #ccc; padding: 9px 20px; border-radius: 999px; font-weight: 700; cursor: pointer; font-family: var(--sans); transition: background .25s, color .25s; }
.seg__b.is-on { background: var(--red); color: #fff; }
.swim { font-size: 14.5px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.swim input { width: 18px; height: 18px; accent-color: var(--red); }
.crow { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 110px; gap: 16px; align-items: center; padding: 15px 26px; border-bottom: 1px solid var(--line); transition: opacity .3s; }
.crow--head { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); background: var(--paper); }
.crow.off { opacity: .35; }
.crow strong { display: block; }
.crow small { color: var(--gray); font-size: 13.5px; }
.crow__mark { font-weight: 800; font-size: 20px; }
.crow__mark i { display: block; font-style: normal; font-size: 12px; color: var(--gray); font-weight: 600; }
.crow input { width: 100%; padding: 11px 12px; border: 0; border-bottom: 2px solid var(--line); background: var(--paper); font: inherit; font-size: 16px; outline: none; }
.crow input:focus { border-color: var(--red); background: #fff; }
.badge { justify-self: start; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; background: var(--paper); color: var(--gray); }
.badge.yes { background: #e2f3e8; color: #14853b; }
.badge.no { background: #fbe4e6; color: var(--red); }
.calc__result { padding: 20px 26px; font-weight: 600; }
.calc__result.all { background: #14853b; color: #fff; }
.calc__result.some { background: var(--red); color: #fff; }
.fineprint--left { text-align: left; max-width: 820px; }

/* Temario */
.temario { padding: 140px 0; }
.temario .section__lead { margin-bottom: 44px; }
.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.blk { border: 1px solid rgba(255,255,255,.14); transition: border-color .3s, background .3s; }
.blk[open] { border-color: var(--red-2); background: rgba(165,0,16,.12); }
.blk summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; }
.blk summary::-webkit-details-marker { display: none; }
.blk__n { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-2); white-space: nowrap; }
.blk[open] .blk__n { color: #ff6b74; }
.blk__t { font-family: var(--serif); font-weight: 700; font-size: 19px; }
.blk__i { width: 30px; height: 30px; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .3s; }
.blk__i::after { content: "+"; font-size: 20px; transition: transform .3s; }
.blk[open] .blk__i { background: var(--red); }
.blk[open] .blk__i::after { transform: rotate(45deg); }
.blk ol { list-style: none; margin: 0; padding: 0 22px 20px; display: grid; gap: 8px; animation: phaseIn .45s var(--ease); }
.blk li { display: grid; grid-template-columns: 32px 1fr; font-size: 14.5px; color: #c9c9ce; }
.blk li b { color: #fff; }

@media (max-width: 960px) {
  .equipo__grid, .blocks { grid-template-columns: 1fr; gap: 50px; }
  .blocks { gap: 14px; }
  .topbar__provs { display: none; }
}
@media (max-width: 640px) {
  .coord { flex-direction: column; padding: 22px 18px; }
  .video__facade, .video__frame { box-shadow: 8px 8px 0 var(--red); }
  .calc { box-shadow: 6px 6px 0 var(--black); }
  .calc__bar { padding: 14px 16px; }
  .crow { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 16px; }
  .crow--head { display: none; }
  .crow > div:first-child, .crow .badge { grid-column: 1 / -1; }
  .calc__result { padding: 18px 16px; }
  .blk summary { padding: 16px; gap: 10px; grid-template-columns: 1fr auto; }
  .blk__n { grid-column: 1 / -1; }
  .blk ol { padding: 0 16px 16px; }
  .tstep span { font-size: 11.5px; }
}

/* =========================================================
   JORGE3 · Multipágina, portada y detalles andaluces
   ========================================================= */
:root {
  --cobalto: #1d4f86; --albero: #c8901e; --verde: #1f6b45; --cal: #f6efe2;
  --azulejo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Crect width='64' height='64' fill='%23f6efe2'/%3E%3Cg fill='none' stroke='%231d4f86' stroke-width='2.2'%3E%3Crect x='14' y='14' width='36' height='36'/%3E%3Crect x='14' y='14' width='36' height='36' transform='rotate(45 32 32)'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='6' fill='%23c8901e'/%3E%3Cpath d='M0 0l10 10M64 0L54 10M0 64l10-10M64 64L54 54' stroke='%231f6b45' stroke-width='2.2'/%3E%3Ccircle r='5' fill='%23a50010'/%3E%3Ccircle cx='64' r='5' fill='%23a50010'/%3E%3Ccircle cy='64' r='5' fill='%23a50010'/%3E%3Ccircle cx='64' cy='64' r='5' fill='%23a50010'/%3E%3C/svg%3E");
}

/* Preloader: greca que se dibuja */
.preloader__greca { width: 220px; height: 40px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.preloader__text { animation: none; opacity: 0; animation: fadeIn .6s .6s forwards; letter-spacing: .6em; }
@keyframes fadeIn { to { opacity: 1; } }

/* Barra de progreso verdiblanca (bandera de Andalucía) */
.scroll-progress { background: linear-gradient(180deg, var(--verde) 0 33%, #fff 33% 66%, var(--verde) 66%); height: 4px; }

/* Rombo de "eyebrow" con estrella de ocho puntas */
.eyebrow::before { width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); box-shadow: 0 0 0 3px transparent; outline: 1px solid currentColor; outline-offset: 3px; margin: 0 6px 0 4px; }

/* Cenefa de azulejo */
.cenefa { height: 34px; background: var(--azulejo) 0 0 / 34px 34px repeat-x; border-top: 3px solid var(--black); border-bottom: 3px solid var(--black); }
.cenefa--top { position: absolute; top: 0; left: 0; right: 0; }
.footer { padding-top: 110px; }

/* Header en multipágina */
.nav a.is-active { color: #fff; }

/* ---------- Portada ---------- */
.page-index .hero { min-height: auto; padding: 80px 0 110px; }
.hroute {
  background: rgba(12,12,13,.92); color: #fff; padding: 26px 26px 22px; position: relative;
  box-shadow: 18px 18px 0 rgba(0,0,0,.35); border-top: 4px solid #fff; max-width: 440px; width: 100%; justify-self: end;
}
.hroute::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 10px; background: var(--meander-light) 0 0 / 14px 10px repeat-x; opacity: .9; }
.hroute__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.hroute__head span { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.hroute__head small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #aaa; }
.hroute__list { list-style: none; margin: 0; padding: 0; position: relative; }
.hroute__list::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: rgba(255,255,255,.15); }
.hroute__list li { display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; padding: 6px 0; position: relative; opacity: .45; transition: opacity .4s; }
.hroute__list li b { grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.35); background: var(--black); font-size: 12px; position: relative; z-index: 1; transition: background .4s, border-color .4s; }
.hroute__list li span { font-weight: 700; font-size: 15px; line-height: 1.2; }
.hroute__list li em { font-style: normal; font-size: 12.5px; color: #aaa; }
.hroute__list li.on { opacity: 1; }
.hroute__list li.on b { background: var(--red); border-color: var(--red); }
.hroute__goal { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; background: #fff; color: var(--black); transform: scale(.96); opacity: .5; transition: transform .5s var(--ease), opacity .5s; }
.hroute__goal img { width: 40px; height: 40px; border-radius: 50%; }
.hroute__goal strong { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.1; }
.hroute__goal small { color: var(--gray); font-size: 12px; }
.hroute__check { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; font-weight: 800; transform: scale(0); transition: transform .5s var(--ease) .1s; }
.hroute.done .hroute__goal { transform: none; opacity: 1; }
.hroute.done .hroute__check { transform: scale(1); }

/* Tarjetas de navegación */
.ecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.ecard { display: flex; flex-direction: column; padding: 32px 28px; background: #fff; border: 2px solid var(--black); text-decoration: none; color: var(--ink); position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ecard:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--red); }
.ecard__n { font-weight: 800; color: var(--red); font-size: 14px; margin-bottom: 14px; }
.ecard h3 { font-family: var(--serif); font-size: 23px; margin-bottom: 10px; }
.ecard p { color: var(--gray); font-size: 15px; flex: 1; }
.ecard__go { font-weight: 700; font-size: 14.5px; }
.ecard--red { background: var(--red); border-color: var(--red); color: #fff; }
.ecard--red .ecard__n, .ecard--red p { color: rgba(255,255,255,.85); }
.ecard--red:hover { box-shadow: 8px 8px 0 var(--black); }

/* Provincias (azulejos) */
.provs__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { aspect-ratio: 1; position: relative; display: grid; place-content: center; text-align: center; background: var(--azulejo) center / 50% 50%; border: 3px solid var(--black); overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 16%; background: var(--cal); border-radius: 50%; box-shadow: 0 0 0 3px var(--cobalto); transition: inset .4s var(--ease), border-radius .4s; }
.tile b, .tile i { position: relative; }
.tile b { font-family: var(--serif); font-size: 15px; }
.tile i { font-style: normal; font-size: 11.5px; color: var(--gray); max-height: 0; overflow: hidden; transition: max-height .4s; }
.tile:hover::before { inset: 6%; border-radius: 8px; }
.tile:hover i { max-height: 20px; }

/* Cabecera de páginas interiores */
.phero { background: var(--red); color: #fff; padding: 70px 0 90px; position: relative; overflow: hidden; }
.phero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; background: url("../assets/img/logo.jpg") center / cover; border-radius: 50%; opacity: .08; }
.phero__crumb { font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.phero__crumb a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.phero__crumb span { margin: 0 6px; }
.phero__title { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 5vw, 64px); margin: 10px 0 14px; text-transform: uppercase; }
.phero__lead { font-size: 18px; max-width: 640px; color: rgba(255,255,255,.9); margin: 0; }
.phero + .section, .phero + .stats { padding-top: 90px; }

/* Banda final de llamada a la acción */
.cta-band { background: var(--black); color: #fff; padding: 56px 0; border-top: 4px solid var(--red); }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-size: 32px; margin-bottom: 6px; }
.cta-band p { color: #bbb; margin: 0; }

/* Arco de herradura junto al director (detalle cordobés) */
.coord { position: relative; overflow: hidden; }
.coord::after { content: ""; position: absolute; right: -30px; bottom: -60px; width: 150px; height: 180px; border: 14px solid transparent; border-radius: 75px 75px 0 0 / 75px 75px 0 0; background: repeating-conic-gradient(from -90deg at 50% 42%, var(--red) 0 15deg, var(--cal) 15deg 30deg) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); opacity: .35; }

@media (max-width: 960px) {
  .hroute { justify-self: stretch; max-width: none; }
  .ecards { grid-template-columns: 1fr 1fr; }
  .provs__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .ecards { grid-template-columns: 1fr; }
  .tile b { font-size: 11.5px; }
  .tile::before { inset: 10%; }
  .phero { padding: 46px 0 70px; }
  .phero__lead { font-size: 16px; }
  .hroute { box-shadow: 8px 8px 0 rgba(0,0,0,.35); padding: 22px 18px 18px; }
}

/* =========================================================
   MEJORAS: transiciones, brillo, 3 pasos, test, ficha
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .35s ease both; }
::view-transition-new(root) { animation: vtIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }

/* Brillo que sigue al ratón */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(165, 0, 16, .12), transparent 65%);
}
.spot:hover::after { opacity: 1; }
.ecard--red.spot::after, .price--featured.spot::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 65%); }

.center { text-align: center; margin-top: 44px; }

/* Tres pasos */
.steps3 { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps3::before { content: ""; position: absolute; top: 46px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 18px); z-index: -1; }
.steps3 li { background: #fff; border: 1px solid var(--line); padding: 34px 28px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s; }
.steps3 li:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.steps3__n { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-size: 24px; border-radius: 50%; box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line); }
.steps3 h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.steps3 p { color: var(--gray); font-size: 15px; margin: 0; }

/* Test de nivel */
.quiz-sec { padding: 140px 0; }
.quiz-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.quiz { background: #fff; color: var(--ink); padding: 34px; box-shadow: 14px 14px 0 var(--red); min-height: 420px; }
.section--red .quiz { box-shadow: 14px 14px 0 var(--black); }
.quiz__top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.quiz__bar { height: 4px; background: var(--paper); margin: 12px 0 24px; }
.quiz__bar i { display: block; height: 100%; background: var(--red); transition: width .5s var(--ease); }
.quiz__q { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin-bottom: 20px; animation: phaseIn .45s var(--ease); }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; background: var(--paper); border: 2px solid transparent; font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.quiz__opt b { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: var(--black); color: #fff; font-size: 13px; }
.quiz__opt:hover:not(:disabled) { border-color: var(--black); transform: translateX(4px); }
.quiz__opt.ok { background: #e2f3e8; border-color: #14853b; }
.quiz__opt.ok b { background: #14853b; }
.quiz__opt.ko { background: #fbe4e6; border-color: var(--red); }
.quiz__opt.ko b { background: var(--red); }
.quiz__opt:disabled { cursor: default; }
.quiz__exp { margin: 18px 0 0; padding: 14px 16px; background: var(--paper); border-left: 4px solid var(--red); font-size: 14.5px; color: var(--ink); animation: phaseIn .4s var(--ease); }
.quiz__next { margin-top: 18px; border: 2px solid var(--black); }
.quiz__end { text-align: center; padding: 20px 0; animation: phaseIn .5s var(--ease); }
.quiz__ring { --p: 0; width: 150px; height: 150px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--red) calc(var(--p) * 1%), var(--paper) 0); }
.quiz__ring span { width: 118px; height: 118px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 800; }
.quiz__end h3 { font-family: var(--serif); font-size: 21px; max-width: 420px; margin: 0 auto 24px; line-height: 1.3; }
.quiz__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.quiz__actions .btn--ghost { color: var(--ink); border-color: var(--ink); }

/* Ficha rápida */
.ftable { border: 2px solid var(--black); background: #fff; box-shadow: 10px 10px 0 var(--black); margin-top: 40px; }
.ftable__row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px 26px; border-bottom: 1px solid var(--line); transition: background .2s; }
.ftable__row:last-child { border-bottom: 0; }
.ftable__row:nth-child(even) { background: var(--paper); }
.ftable__row:hover { background: #fdecee; }
.ftable__row span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); padding-top: 3px; }
.ftable__row strong { font-weight: 600; }

@media (max-width: 960px) {
  .quiz-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3::before { display: none; }
}
@media (max-width: 640px) {
  .quiz { padding: 24px 18px; box-shadow: 8px 8px 0 var(--red); }
  .quiz__q { font-size: 19px; }
  .ftable { box-shadow: 6px 6px 0 var(--black); }
  .ftable__row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
}

.quiz__opt:disabled { color: var(--ink); opacity: 1; }
.quiz__opt:disabled:not(.ok):not(.ko) { opacity: .55; }
.quiz-sec .title { font-size: clamp(32px, 3.8vw, 50px); }

/* La pantalla de carga se retira sola aunque tarde algún recurso externo */
.preloader { animation: preOut .5s 1.5s forwards; }
@keyframes preOut { to { opacity: 0; visibility: hidden; } }

/* =========================================================
   Formulario por pasos
   ========================================================= */
.wiz { background: #fff; color: var(--ink); padding: 34px; box-shadow: 18px 18px 0 var(--black); position: relative; }
.wiz.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.wiz__head { margin-bottom: 22px; }
.wiz__steps { display: flex; align-items: center; gap: 8px; }
.wiz__steps span { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--paper); color: var(--gray); border: 2px solid var(--line); transition: all .35s var(--ease); }
.wiz__steps span.on { background: var(--red); border-color: var(--red); color: #fff; }
.wiz__steps span.done { background: var(--black); border-color: var(--black); }
.wiz__steps i { flex: 1; height: 3px; background: var(--line); position: relative; overflow: hidden; }
.wiz__steps i::after { content: ""; position: absolute; inset: 0; background: var(--black); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.wiz__steps i.on::after { transform: scaleX(1); }
.wiz__label { margin: 12px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.wiz__step { border: 0; padding: 0; margin: 0; display: none; min-width: 0; }
.wiz__step.is-on { display: block; animation: phaseIn .45s var(--ease); }
.wiz__step legend { font-family: var(--serif); font-size: 26px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.wiz__hint { color: var(--gray); font-size: 14px; margin-bottom: 16px; }
.wiz__sub { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin: 22px 0 10px; }

.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.opt { cursor: pointer; position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; height: 100%; padding: 14px 14px 14px 44px; border: 2px solid var(--line); background: var(--paper); transition: border-color .2s, background .2s, transform .2s; position: relative; }
.opt span::before { content: ""; position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; border: 2px solid var(--gray); background: #fff; transition: all .2s; }
.opt input[type=radio] + span::before { border-radius: 50%; }
.opt b { display: block; font-size: 15px; }
.opt small { color: var(--gray); font-size: 13px; }
.opt:hover span { border-color: var(--black); }
.opt input:checked + span { border-color: var(--red); background: #fff; box-shadow: 0 8px 20px -14px var(--red); }
.opt input:checked + span::before { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 3px #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border: 2px solid var(--line); background: #fff; font-size: 14.5px; font-weight: 600; border-radius: 999px; transition: all .2s; }
.chips label:hover span { border-color: var(--black); }
.chips input:checked + span { background: var(--black); border-color: var(--black); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.wfield { display: block; margin-top: 16px; }
.wfield > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.wfield input, .wfield select, .wfield textarea { width: 100%; padding: 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 2px solid transparent; border-bottom-color: var(--line); outline: none; border-radius: 0; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none; }
.wfield select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.wfield input:focus, .wfield select:focus, .wfield textarea:focus { background: #fff; border-color: var(--red); }
.wfield.bad input, .wfield.bad select { border-color: var(--red); background: #fff4f5; }
.wrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wfield--range output { color: var(--red); font-weight: 800; }
.wfield--range input { padding: 0; height: 8px; border: 0; border-radius: 99px; background: linear-gradient(90deg, var(--red) var(--v, 20%), var(--line) var(--v, 20%)); margin-top: 10px; }
.wfield--range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--red); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.wfield--range input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--red); cursor: pointer; }

.wiz__sum { margin: 16px 0 0; border: 2px solid var(--black); }
.wiz__sum div { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.wiz__sum div:nth-child(even) { background: var(--paper); }
.wiz__sum div:last-child { border-bottom: 0; }
.wiz__sum dt { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.wiz__sum dd { margin: 0; font-weight: 600; word-break: break-word; }
.wiz__sum button { background: none; border: 0; color: var(--red); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.wiz .consent { margin: 18px 0 0; }
.wiz .consent.bad span { color: var(--red); }

.wiz__err { min-height: 1.4em; color: var(--red); font-weight: 700; font-size: 14px; margin: 14px 0 0; }
.wiz__nav { display: flex; gap: 10px; margin-top: 6px; }
.wiz__nav .btn { flex: 1; }
.wiz__nav #wizBack { flex: 0 0 auto; }
.wiz__secure { margin: 14px 0 0; font-size: 13px; color: var(--gray); text-align: center; }
.wiz__done { text-align: center; padding: 30px 0 10px; animation: phaseIn .5s var(--ease); }
.wiz__done svg { width: 90px; height: 90px; fill: none; stroke: #14853b; stroke-width: 3; }
.wiz__done circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s forwards; }
.wiz__done path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .4s .6s forwards; stroke-width: 4; }
.wiz__done h3 { font-family: var(--serif); font-size: 26px; margin: 14px 0 8px; }
.wiz__done p { color: var(--gray); }

.next { margin-top: 30px; background: rgba(0,0,0,.22); padding: 22px 24px; border-left: 4px solid #fff; }
.next__t { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin-bottom: 12px; }
.next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.next li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.next b { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-size: 13px; }
.page-contacto .contacto__grid { align-items: start; }

/* =========================================================
   Guía del opositor
   ========================================================= */
.guia__grid { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; }
.guia__toc { position: sticky; top: 110px; display: grid; gap: 4px; border-left: 3px solid var(--black); padding-left: 18px; }
.guia__toc-t { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.guia__toc a { text-decoration: none; color: var(--gray); font-weight: 600; padding: 6px 0; transition: color .2s, transform .2s; }
.guia__toc a:hover, .guia__toc a.on { color: var(--red); transform: translateX(4px); }
.guia__body { display: grid; gap: 30px; min-width: 0; }
.gblock { background: #fff; border: 1px solid var(--line); padding: 38px 40px; position: relative; scroll-margin-top: 100px; }
.gblock__n { position: absolute; top: 26px; right: 30px; font-weight: 900; font-size: 44px; color: var(--paper); line-height: 1; }
.gblock h2 { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 16px; padding-right: 60px; }
.gblock p { color: #3b3b40; }
.gtip { background: #fdecee; border-left: 4px solid var(--red); padding: 14px 18px; font-size: 15px; }
.gsteps { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 14px; }
.gsteps li { counter-increment: g; display: grid; grid-template-columns: 38px 1fr; gap: 14px; color: #3b3b40; }
.gsteps li::before { content: counter(g); width: 38px; height: 38px; display: grid; place-items: center; background: var(--black); color: #fff; font-weight: 800; }
.gdocs { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gdocs li { padding: 12px 14px 12px 42px; background: var(--paper); position: relative; font-weight: 600; font-size: 15px; }
.gdocs li::before { content: "✓"; position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; background: var(--red); color: #fff; font-size: 12px; display: grid; place-items: center; border-radius: 50%; }
.gnote { font-size: 14px; color: var(--gray) !important; margin: 0; }
.gcalc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.gcalc > div { flex: 1 1 140px; padding: 16px; background: var(--paper); text-align: center; border: 2px solid var(--black); }
.gcalc small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.gcalc strong { display: block; font-size: 30px; font-weight: 900; }
.gcalc span { font-size: 13px; color: var(--red); font-weight: 700; }
.gcalc > b { font-size: 24px; color: var(--red); }
.gcalc__r { background: var(--red) !important; color: #fff; border-color: var(--red) !important; }
.gcalc__r small, .gcalc__r span { color: rgba(255,255,255,.85); }
.gcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gcards div { padding: 22px; border: 2px solid var(--black); transition: transform .3s var(--ease), box-shadow .3s; }
.gcards div:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--red); }
.gcards h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 8px; }
.gcards p { font-size: 14.5px; margin: 0; color: var(--gray); }
.gloss { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--black); }
.gloss div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.gloss div:nth-child(odd) { padding-right: 22px; }
.gloss dt { font-weight: 800; color: var(--red); }
.gloss dd { margin: 2px 0 0; font-size: 14.5px; color: #3b3b40; }

/* =========================================================
   Ajustes móviles generales
   ========================================================= */
@media (max-width: 960px) {
  .guia__grid { grid-template-columns: 1fr; gap: 30px; }
  .guia__toc { position: static; display: flex; overflow-x: auto; gap: 8px; border: 0; padding: 0 0 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .guia__toc-t { display: none; }
  .guia__toc a { flex: none; padding: 9px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; white-space: nowrap; }
  .guia__toc a:hover { transform: none; }
}
@media (max-width: 640px) {
  .wiz { padding: 22px 16px; box-shadow: 8px 8px 0 var(--black); margin: 0 4px 0 0; }
  .wiz__step legend { font-size: 22px; }
  .opt-grid, .opt-grid--3, .wrow { grid-template-columns: 1fr; }
  .wiz__sum div { grid-template-columns: 1fr auto; }
  .wiz__sum dt { grid-column: 1 / -1; }
  .wiz__nav { position: sticky; bottom: 0; background: #fff; padding: 10px 0 4px; z-index: 3; }
  .gblock { padding: 26px 18px; }
  .gblock__n { font-size: 30px; top: 18px; right: 16px; }
  .gdocs, .gcards, .gloss { grid-template-columns: 1fr; }
  .gloss div:nth-child(odd) { padding-right: 0; }
  .gcalc > b { width: 100%; text-align: center; }
  /* Botones y toques más cómodos */
  .btn { min-height: 48px; }
  .nav a:not(.btn) { min-height: 44px; display: flex; align-items: center; }
  .section { padding: 70px 0; }
  .title { font-size: clamp(28px, 8vw, 38px); }
  .wa-float { bottom: 14px; }
  .to-top { display: none; }
  .hero__title { font-size: clamp(32px, 10vw, 44px); }
  .topbar { font-size: 11px; }
  .crow input { font-size: 16px; }
}

.contacto__grid > *, .equipo__grid > *, .quiz-grid > *, .provs__grid > *, .hero__grid > * { min-width: 0; }
.wiz { max-width: 100%; }
@media (max-width: 640px) { .wiz { margin: 0; box-shadow: 6px 6px 0 var(--black); } .wiz__steps span { width: 30px; height: 30px; } }

[hidden] { display: none !important; }

/* =========================================================
   Tildes en mayúsculas: más aire para que no se corten (Í, Ó, Á)
   ========================================================= */
.title, .phero__title, .hero__title, .quote p, .cta-band h2 { line-height: 1.2; }
.hero__title .line { padding-top: .16em; margin-top: -.12em; padding-bottom: .08em; }
.title { padding-top: .06em; }

/* =========================================================
   Marquesina doble cruzada
   ========================================================= */
.mq { position: relative; height: 170px; overflow: hidden; background: var(--paper); display: grid; place-items: center; }
.mq__band { position: absolute; left: -5%; right: -5%; overflow: hidden; padding: 16px 0; box-shadow: 0 10px 30px -12px rgba(0,0,0,.45);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq__band--red { background: var(--red); color: #fff; transform: rotate(-2.2deg); z-index: 2; }
.mq__band--dark { background: var(--black); color: #fff; transform: rotate(2.2deg); z-index: 1; padding: 12px 0; }
.mq__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: mqMove 38s linear infinite; }
.mq__track--rev { animation-direction: reverse; animation-duration: 46s; }
.mq__track span { font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 2.6vw, 34px); text-transform: uppercase; white-space: nowrap; letter-spacing: .02em; line-height: 1.25; }
.mq__band--red .mq__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px #fff; }
.mq__track .mq__s { font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .14em; color: #e9e9ec; }
.mq__star { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 9; opacity: .9; }
.mq__band--dark .mq__star { width: 12px; height: 12px; stroke: #ff5a64; }
.mq:hover .mq__track { animation-play-state: paused; }
@keyframes mqMove { to { transform: translateX(-50%); } }

/* =========================================================
   Guía del opositor: más legible y ordenada
   ========================================================= */
.guia { background: var(--paper); }
.guia__body { gap: 24px; }
.gblock { border: 0; border-top: 5px solid var(--red); box-shadow: 0 24px 50px -36px rgba(0,0,0,.45); padding: 40px 44px 38px; }
.gblock__n { position: static; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 30px; padding: 0 10px; margin-bottom: 14px;
  background: var(--black); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .1em; line-height: 1; }
.gblock h2 { font-family: var(--sans); font-weight: 800; text-transform: none; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.25; letter-spacing: -.015em; padding-right: 0; margin-bottom: 18px; }
.gblock p { font-size: 16.5px; line-height: 1.75; }
.gblock strong { color: var(--ink); }
.gcards h3 { font-family: var(--sans); font-weight: 800; font-size: 17px; line-height: 1.35; }
.gsteps li { font-size: 16px; line-height: 1.6; align-items: start; }
.gsteps li::before { border-radius: 50%; background: var(--red); }
.gdocs li { line-height: 1.45; }
.gloss dt { font-size: 15.5px; }
.gloss dd { line-height: 1.55; }
.gtip { line-height: 1.6; }
.guia__toc { background: #fff; padding: 22px 22px 18px; border-left: 0; border-top: 5px solid var(--black); box-shadow: 0 24px 50px -36px rgba(0,0,0,.45); }
.guia__toc a { border-left: 3px solid transparent; padding: 8px 0 8px 12px; margin-left: -12px; font-size: 15px; line-height: 1.35; }
.guia__toc a.on { color: var(--red); border-left-color: var(--red); transform: none; font-weight: 700; }
.guia__progress { height: 4px; background: var(--paper); margin-top: 14px; }
.guia__progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s linear; }

@media (max-width: 960px) {
  .guia__toc { position: sticky; top: 66px; z-index: 20; padding: 10px 12px; margin: 0 -16px; box-shadow: 0 8px 20px -14px rgba(0,0,0,.4); border-top: 0; }
  .guia__toc a { margin-left: 0; border-left: 0; padding: 8px 14px; }
  .guia__toc a.on { background: var(--red); color: #fff; border-color: var(--red); }
  .guia__progress { display: none; }
}
@media (max-width: 640px) {
  .mq { height: 130px; }
  .mq__band { padding: 11px 0; }
  .mq__band--dark { padding: 9px 0; }
  .mq__track { gap: 18px; }
  .mq__track span { font-size: 20px; }
  .mq__track .mq__s { font-size: 12.5px; }
  .gblock { padding: 26px 18px; }
  .gblock h2 { font-size: 21px; }
  .gblock p { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .mq__track { animation: none; } }

/* =========================================================
   Formulario "carta"
   ========================================================= */
.letter {
  position: relative; background: #fffdf9; color: var(--ink); padding: 40px 42px 34px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); border-top: 6px solid var(--black);
  background-image: repeating-linear-gradient(180deg, transparent 0 47px, rgba(0,0,0,.045) 47px 48px);
}
.letter::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: var(--meander-light) 0 0 / 12px 6px repeat-x, var(--black); }
.letter__top { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 2px solid var(--black); }
.letter__top img { border-radius: 50%; flex: none; }
.letter__top strong { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.letter__top small { color: var(--gray); font-size: 14px; }
.letter__text { font-size: clamp(18px, 1.7vw, 21px); line-height: 2.25; margin: 0 0 14px; color: #2b2b30; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.slot { display: inline-block; position: relative; vertical-align: baseline; }
.slot input, .slot select {
  font: inherit; font-weight: 700; color: var(--red); background: transparent; border: 0; border-bottom: 2px dashed #c9b8b9;
  padding: 0 4px 2px; min-width: 5ch; max-width: 100%; outline: none; border-radius: 0; line-height: 1.4;
  transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none; field-sizing: content;
}
.slot select { cursor: pointer; padding-right: 22px; background-image: linear-gradient(45deg, transparent 50%, var(--red) 50%), linear-gradient(135deg, var(--red) 50%, transparent 50%); background-position: calc(100% - 11px) 55%, calc(100% - 6px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.slot input::placeholder { color: #b9a9aa; font-weight: 600; }
.slot input:focus, .slot select:focus { border-bottom: 2px solid var(--red); background-color: #fdecee; }
.slot.bad input, .slot.bad select { border-bottom: 2px solid var(--red); background-color: #fde2e5; animation: shake .35s; }
.letter__more { display: block; margin-top: 8px; }
.letter__more span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.letter__more em { font-style: normal; color: var(--gray); font-weight: 500; }
.letter__more textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--line); background: #fff; resize: vertical; outline: none; transition: border-color .2s; }
.letter__more textarea:focus { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.letter__ok { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; font-size: 14.5px; color: #4a4a50; cursor: pointer; }
.letter__ok input { width: 20px; height: 20px; flex: none; accent-color: var(--red); margin-top: 1px; }
.letter__ok.bad span { color: var(--red); font-weight: 600; }
.letter__err { min-height: 1.4em; margin: 10px 0 4px; color: var(--red); font-weight: 700; font-size: 14.5px; }
.letter__send { width: 100%; padding: 18px; font-size: 17px; gap: 12px; }
.letter__send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; transition: transform .3s var(--ease); }
.letter__send:hover svg { transform: translateX(5px); }
.letter__secure { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 14px 0 0; font-size: 13px; color: var(--gray); text-align: center; }
.letter__secure svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #14853b; stroke-width: 2; }
.letter.sent > :not(.letter__done) { visibility: hidden; }
.letter__done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; background: #fffdf9; animation: phaseIn .5s var(--ease); }
.letter__done svg { width: 96px; height: 96px; fill: none; stroke: #14853b; stroke-width: 3; }
.letter__done circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s forwards; }
.letter__done path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .4s .6s forwards; stroke-width: 4; }
.letter__done h3 { font-family: var(--serif); font-size: 28px; margin: 16px 0 8px; line-height: 1.25; }
.letter__done p { color: var(--gray); max-width: 380px; }
@media (max-width: 640px) {
  .letter { padding: 26px 18px 24px; background-image: none; }
  .letter__text { font-size: 17.5px; line-height: 2.1; }
  .slot--wide, .slot--wide input { width: 100% !important; }
  .letter__top strong { font-size: 18px; }
}

/* =========================================================
   Formulario profesional
   ========================================================= */
.pform { position: relative; background: #fff; color: var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.65); }
.pform__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 30px; background: var(--black); color: #fff; }
.pform__head h2 { font-family: var(--sans); font-weight: 800; font-size: 22px; line-height: 1.25; margin: 0 0 4px; }
.pform__head p { margin: 0; color: #b9b9bf; font-size: 14.5px; }
.pform__badge { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 7px 12px; border-radius: 999px; background: rgba(37,211,102,.15); color: #3ddc84; font-size: 13px; font-weight: 700; }
.pform__badge svg { width: 18px; height: 18px; fill: currentColor; }
.pform__body { padding: 28px 30px 26px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.pf { display: flex; flex-direction: column; min-width: 0; position: relative; }
.pf--full { grid-column: 1 / -1; }
.pf > label, .pchips legend { font-size: 14px; font-weight: 700; color: #2d2d33; margin-bottom: 7px; }
.pf label i { color: var(--red); font-style: normal; }
.pf label em { color: var(--gray); font-style: normal; font-weight: 500; }
.pf input, .pf select, .pf textarea {
  width: 100%; height: 50px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #f7f7f8; border: 1.5px solid #dedee3; border-radius: 10px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.pf textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.5; }
.pf select { padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.pf input::placeholder, .pf textarea::placeholder { color: #a3a3ab; }
.pf input:hover, .pf select:hover, .pf textarea:hover { border-color: #b9b9c2; }
.pf input:focus, .pf select:focus, .pf textarea:focus { background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(165,0,16,.12); }
.pf__prefix { display: flex; }
.pf__prefix span { display: grid; place-items: center; padding: 0 12px; background: #ececef; border: 1.5px solid #dedee3; border-right: 0; border-radius: 10px 0 0 10px; font-weight: 700; color: #555; font-size: 15px; }
.pf__prefix input { border-radius: 0 10px 10px 0; }
.pf__err { display: none; color: var(--red); font-size: 13px; font-weight: 600; margin-top: 6px; }
.pf.bad input, .pf.bad select { border-color: var(--red); background: #fff6f7; }
.pf.bad .pf__err { display: block; }
.pf.good input, .pf.good select { border-color: #1f9d55; }
.pf__count { align-self: flex-end; color: var(--gray); font-size: 12px; margin-top: 4px; }

.pchips { border: 0; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pchips legend { padding: 0; width: 100%; }
.pchips label { cursor: pointer; }
.pchips input { position: absolute; opacity: 0; pointer-events: none; }
.pchips span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border: 1.5px solid #dedee3; border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 600; transition: all .2s; }
.pchips span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #bdbdc4; transition: all .2s; }
.pchips label:hover span { border-color: var(--black); }
.pchips input:checked + span { border-color: var(--red); background: #fff1f2; color: var(--red); }
.pchips input:checked + span::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center no-repeat; border-color: var(--red); }
.pchips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.pcheck { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 14px; color: #4a4a52; line-height: 1.5; cursor: pointer; }
.pcheck input { width: 20px; height: 20px; flex: none; accent-color: var(--red); margin-top: 1px; }
.pcheck a { color: var(--red); }
.pf__err--check { margin-left: 32px; }
.pform.bad-check .pf__err--check { display: block; }

.psend {
  margin-top: 20px; width: 100%; height: 58px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 12px; background: #25d366; color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; text-decoration: none;
  box-shadow: 0 14px 28px -14px rgba(37,211,102,.9); transition: transform .2s, box-shadow .2s, background .2s;
}
.psend:hover { background: #1ebe5b; transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(37,211,102,.9); }
.psend svg { width: 24px; height: 24px; fill: #fff; }
.psend--sm { width: auto; height: 50px; padding: 0 22px; margin-top: 8px; font-size: 15.5px; }
.ptrust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--gray); font-weight: 600; }
.ptrust li { color: #4a4a52; }

.pform.sent .pform__body { visibility: hidden; }
.pdone { position: absolute; left: 0; right: 0; bottom: 0; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; background: #fff; animation: phaseIn .5s var(--ease); }
.pform.sent .pform__head + .pform__body + .pdone, .pform.sent .pdone { top: 0; }
.pdone svg { width: 90px; height: 90px; fill: none; stroke: #1f9d55; stroke-width: 3; }
.pdone circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s forwards; }
.pdone path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .4s .6s forwards; stroke-width: 4; }
.pdone .psend svg { stroke: none; width: 22px; height: 22px; fill: #fff; animation: none; }
.pdone h3 { font-family: var(--sans); font-weight: 800; font-size: 26px; margin: 14px 0 6px; }
.pdone p { color: var(--gray); max-width: 360px; }
.pdone__back { margin-top: 14px; background: none; border: 0; color: var(--gray); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }

@media (max-width: 640px) {
  .pform { border-radius: 12px; }
  .pform__head { padding: 20px 18px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .pform__body { padding: 22px 18px; }
  .pgrid { grid-template-columns: 1fr; }
}

/* Guía: pasos con texto en una sola columna (antes caía en vertical) */
.gsteps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.gsteps li > span { min-width: 0; padding-top: 6px; }

/* Marquesinas: nunca se paran */
.mq:hover .mq__track { animation-play-state: running; }

/* =========================================================
   Portada: rejilla "bento"
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 18px; margin-top: 50px; }
.bx {
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid #e6e2dc; color: var(--ink); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.bx::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--red); transition: width .5s var(--ease); }
.bx:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(0,0,0,.45); border-color: transparent; }
.bx:hover::before { width: 100%; }
.bx--a { grid-column: span 2; }
.bx--f { grid-column: span 2; }
.bx__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fbeef0; color: var(--red); margin-bottom: 18px; transition: transform .4s var(--ease), background .3s, color .3s; }
.bx__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bx:hover .bx__ic { transform: rotate(-8deg) scale(1.08); background: var(--red); color: #fff; }
.bx__kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.bx__big { font-family: var(--sans); font-weight: 900; font-size: 56px; line-height: .9; letter-spacing: -.04em; color: var(--ink); }
.bx__unit { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); margin: 6px 0 14px; }
.bx h3 { font-family: var(--sans); font-weight: 800; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 8px; }
.bx--a h3, .bx--f h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; max-width: 460px; }
.bx p { margin: 0; color: var(--gray); font-size: 15px; line-height: 1.55; padding-right: 40px; }
.bx__go { position: absolute; right: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #dcd7d0; transition: background .3s, border-color .3s, transform .35s var(--ease); }
.bx__go svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; transition: stroke .3s, transform .35s var(--ease); }
.bx:hover .bx__go { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }
.bx:hover .bx__go svg { stroke: #fff; }

/* Tarjeta oscura: quiénes somos */
.bx--dark { background: var(--black); color: #fff; border-color: var(--black); }
.bx--dark::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; background: url("../assets/img/logo.jpg") center / cover; opacity: .12; transition: transform .8s var(--ease), opacity .4s; }
.bx--dark:hover::after { transform: rotate(-12deg) scale(1.05); opacity: .2; }
.bx--dark .bx__ic { background: rgba(255,255,255,.08); color: #fff; }
.bx--dark p { color: #c4c4ca; position: relative; z-index: 1; }
.bx--dark h3 { position: relative; z-index: 1; }
.bx--dark .bx__go { border-color: rgba(255,255,255,.3); }
.bx--dark .bx__go svg { stroke: #fff; }
.bx__stats { display: flex; gap: 22px; margin-top: auto; padding-top: 20px; position: relative; z-index: 1; flex-wrap: wrap; }
.bx__stats span { font-size: 13px; color: #a9a9b0; }
.bx__stats b { display: block; font-size: 28px; font-weight: 900; color: #fff; letter-spacing: -.02em; }

/* Tarjeta roja: clase gratuita */
.bx--red { background: var(--red); color: #fff; border-color: var(--red); background-image: radial-gradient(circle at 100% 0%, rgba(255,255,255,.18), transparent 55%); }
.bx--red .bx__kicker { color: #ffd2d6; }
.bx--red .bx__ic { background: rgba(255,255,255,.15); color: #fff; }
.bx--red p { color: rgba(255,255,255,.88); }
.bx--red p b { color: #fff; }
.bx__cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: #fff; color: var(--red); font-weight: 800; font-size: 15px; transition: gap .3s, box-shadow .3s; }
.bx__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.bx--red:hover .bx__cta { gap: 16px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.bx--red p { margin-bottom: 22px; }

/* =========================================================
   Cierre antes del pie (sustituye a la banda de azulejo)
   ========================================================= */
.fclose { background: var(--red); color: #fff; position: relative; }
.fclose__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.fclose__t { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; }
.fclose__t span { display: block; font-family: var(--sans); font-weight: 500; font-size: 16px; color: rgba(255,255,255,.85); margin-top: 4px; }
.fclose__btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: #fff; color: var(--red); font-weight: 800; text-decoration: none; transition: gap .3s, transform .3s; }
.fclose__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.fclose__btn:hover { gap: 16px; transform: translateY(-2px); }
.fclose__greca { height: 18px; background: var(--meander-light) 0 0 / 24px 18px repeat-x, var(--black); }
.footer { padding-top: 80px; }

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bx--a, .bx--f { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; gap: 14px; grid-auto-rows: auto; }
  .bx--a, .bx--f { grid-column: auto; }
  .bx { padding: 24px 20px 22px; border-radius: 16px; }
  .bx__big { font-size: 46px; }
  .fclose__in { flex-direction: column; align-items: flex-start; }
  .fclose__btn { width: 100%; justify-content: center; }
}

.bx--dark .bx__kicker { color: #ff7a83; position: relative; z-index: 1; }

html, body { overflow-x: clip; }
@media (max-width: 960px) { .nav { visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; } .nav.is-open { visibility: visible; transition: transform .45s var(--ease), visibility 0s; } }

/* =========================================================
   Bandas con cadena de rombos (sustituye a la greca)
   ========================================================= */
.meander { height: 14px; background-size: 28px 14px; background-color: var(--black); animation: rombos 6s linear infinite;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(255,255,255,.08); }
.meander--bottom { animation-direction: reverse; }
@keyframes rombos { to { background-position: 28px 0; } }
.hroute::before { height: 8px; top: -12px; background-size: 16px 8px; }
.fclose__greca { height: 14px; background-size: 28px 14px; animation: rombos 6s linear infinite; }

/* Pantalla de carga: estrella de ocho puntas que se dibuja */
.preloader__star { width: 74px; height: 74px; fill: none; stroke: var(--red-2); stroke-width: 3; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.2s ease forwards, spinSlow 6s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Accesibilidad: saltar al contenido */
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; }

/* Pequeños pulidos */
.price, .acc, .calc, .ftable, .gblock, .guia__toc, .coord, .video__facade, .quiz { border-radius: 14px; }
.calc, .ftable { overflow: hidden; }
.phase-panel { border-radius: 14px; overflow: hidden; }
img { -webkit-user-drag: none; }
::selection { background: var(--red); color: #fff; }

/* Página 404 */
.e404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.e404__n { font-family: var(--sans); font-weight: 900; font-size: clamp(90px, 18vw, 180px); line-height: .9; color: var(--red); letter-spacing: -.05em; }
.e404 h1 { font-family: var(--serif); font-size: clamp(26px, 4vw, 40px); margin: 10px 0 12px; line-height: 1.2; }
.e404 p { color: var(--gray); max-width: 460px; margin: 0 auto 26px; }
.e404__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.meander, .fclose__greca { height: 18px; background-size: 36px 18px; }
@keyframes rombos { to { background-position: 36px 0; } }

/* =========================================================
   Separadores limpios (sustituyen a la cadena de rombos)
   ========================================================= */
.meander, .fclose__greca {
  height: 7px !important; animation: none !important; box-shadow: none !important;
  background: linear-gradient(180deg, var(--red-2) 0 3px, #fff 3px 4px, var(--black) 4px 7px) !important;
}
.meander--bottom { background: linear-gradient(180deg, var(--black) 0 3px, #fff 3px 4px, var(--red-2) 4px 7px) !important; }
.hroute::before { display: none; }

/* =========================================================
   Marquesina de laurel (motivo de las ramas del escudo)
   ========================================================= */
:root {
  --laurel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='24' viewBox='0 0 56 24'%3E%3Crect width='56' height='24' fill='%230c0c0d'/%3E%3Cpath d='M0 12h56' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1'/%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='8' cy='7.4' rx='5.6' ry='2.1' transform='rotate(-28 8 7.4)'/%3E%3Cellipse cx='8' cy='16.6' rx='5.6' ry='2.1' transform='rotate(28 8 16.6)'/%3E%3Cellipse cx='22' cy='7.4' rx='5.6' ry='2.1' transform='rotate(-28 22 7.4)'/%3E%3Cellipse cx='22' cy='16.6' rx='5.6' ry='2.1' transform='rotate(28 22 16.6)'/%3E%3Cellipse cx='36' cy='7.4' rx='5.6' ry='2.1' transform='rotate(-28 36 7.4)'/%3E%3Cellipse cx='36' cy='16.6' rx='5.6' ry='2.1' transform='rotate(28 36 16.6)'/%3E%3C/g%3E%3Ccircle cx='47' cy='12' r='2.4' fill='%23c3001a'/%3E%3Ccircle cx='51.5' cy='12' r='1.3' fill='%23c3001a'/%3E%3C/svg%3E");
}
.meander, .fclose__greca {
  height: 30px !important; box-shadow: none !important;
  background: linear-gradient(var(--red-2), var(--red-2)) top / 100% 3px no-repeat,
              linear-gradient(var(--red-2), var(--red-2)) bottom / 100% 3px no-repeat,
              var(--laurel) 0 3px / 56px 24px repeat-x, var(--black) !important;
  animation: laurel 7s linear infinite !important;
}
.meander--bottom { animation-direction: reverse !important; }
@keyframes laurel { to { background-position: 0 0, 0 100%, 56px 3px, 0 0; } }
@media (prefers-reduced-motion: reduce) { .meander, .fclose__greca { animation: none !important; } }

/* =========================================================
   Marquesina de olas vitruvianas (postas) en movimiento
   ========================================================= */
:root {
  --olas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='24' viewBox='0 0 32 24'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M0 20Q8 20 10 13Q12 5 19 5Q26 5 26 11Q26 15 21.5 15Q18.5 15 18.5 12.2Q18.5 10 20.8 10'/%3E%3Cpath d='M26 11Q27.5 20 32 20'/%3E%3C/g%3E%3C/svg%3E");
}
.meander, .fclose__greca {
  height: 26px !important; box-shadow: none !important;
  background: var(--olas) 0 1px / 32px 24px repeat-x, var(--black) !important;
  animation: olas 3s linear infinite !important;
}
.meander--bottom { animation-direction: reverse !important; }
@keyframes olas { from { background-position: 0 1px, 0 0; } to { background-position: 32px 1px, 0 0; } }

/* =========================================================
   PORTADA PROPIA: negra y cinematográfica con panel rojo en diagonal
   ========================================================= */
.page-index .hero { background: #0b0b0c; padding: 90px 0 120px; isolation: isolate; }
.page-index .hero__glow { display: none; }
.page-index .hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 46%; z-index: -1;
  background: linear-gradient(155deg, var(--red-2) 0%, var(--red) 45%, #5a0008 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  animation: slashIn 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.page-index .hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 72% 45%, rgba(255,40,60,.22), transparent 70%),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(0deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 80px 80px;
  -webkit-mask-image: linear-gradient(90deg, #000 0 55%, transparent 80%); mask-image: linear-gradient(90deg, #000 0 55%, transparent 80%);
}
@keyframes slashIn { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } }
.page-index .hero__title { font-size: clamp(38px, 5.4vw, 80px); }
.page-index .word--outline { color: transparent; -webkit-text-stroke: 2px var(--red-2); }
.page-index .hero__motto em { background: var(--red); color: #fff; padding: 2px 10px; }
.page-index .eyebrow--light { color: #ff7a83; }
.page-index .hero__lead { color: #cfcfd4; }
.page-index .hero__lead strong { color: #fff; }
.page-index .hero__chips li::before { background: var(--red-2); }
.page-index .hroute { background: rgba(10,10,11,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-top-color: var(--red-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); border-radius: 14px; overflow: hidden; }
.page-index .hroute__goal { border-radius: 10px; }
/* Número de fondo gigante */
.page-index .hero__grid::before {
  content: "01"; position: absolute; left: -10px; bottom: -110px; font-family: var(--sans); font-weight: 900;
  font-size: 260px; line-height: 1; color: rgba(255,255,255,.03); letter-spacing: -.06em; pointer-events: none;
}
.price h3 small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-top: 6px; }
.price--featured h3 small { color: rgba(255,255,255,.75); }
@media (max-width: 960px) {
  .page-index .hero::before { width: 100%; top: auto; height: 46%; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
  .page-index .hero__grid::before { display: none; }
}

/* =========================================================
   Marquesina de hojas de laurel (como las del escudo)
   ========================================================= */
:root { --laurel2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='30' viewBox='0 0 72 30'%3E%3Cpath d='M2 15C20 14 40 14 60 15' fill='none' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M0 0C3.4-2.9 10-3.6 14.5 0C10 3.6 3.4 2.9 0 0z' transform='translate(6 14.6) rotate(-34)' fill='%23fff'/%3E%3Cpath d='M0 0C3.4-2.9 10-3.6 14.5 0C10 3.6 3.4 2.9 0 0z' transform='translate(11 15.2) rotate(30)' fill='%23fff' opacity='.82'/%3E%3Cpath d='M0 0C3.4-2.9 10-3.6 14.5 0C10 3.6 3.4 2.9 0 0z' transform='translate(19 14.6) rotate(-34)' fill='%23fff'/%3E%3Cpath d='M0 0C3.4-2.9 10-3.6 14.5 0C10 3.6 3.4 2.9 0 0z' transform='translate(24 15.2) rotate(30)' fill='%23fff' opacity='.82'/%3E%3Cpath d='M0 0C3.4-2.9 10-3.6 14.5 0C10 3.6 3.4 2.9 0 0z' transform='translate(32 14.6) rotate(-34)' fill='%23fff'/%3E%3Cpath d='M0 0C3.4-2.9 10-3.6 14.5 0C10 3.6 3.4 2.9 0 0z' transform='translate(37 15.2) rotate(30)' fill='%23fff' opacity='.82'/%3E%3Cpath d='M0 0C3.4-2.9 10-3.6 14.5 0C10 3.6 3.4 2.9 0 0z' transform='translate(45 14.6) rotate(-34)' fill='%23fff'/%3E%3Cpath d='M0 0C3.4-2.9 10-3.6 14.5 0C10 3.6 3.4 2.9 0 0z' transform='translate(50 15.2) rotate(30)' fill='%23fff' opacity='.82'/%3E%3Ccircle cx='63' cy='15' r='2.3' fill='%23c3001a'/%3E%3Ccircle cx='67.5' cy='12.5' r='1.4' fill='%23c3001a'/%3E%3C/svg%3E"); }
.meander, .fclose__greca {
  height: 34px !important; box-shadow: none !important;
  background:
    linear-gradient(90deg, var(--black), transparent 6%, transparent 94%, var(--black)) 0 0 / 100% 100% no-repeat,
    var(--laurel2) 0 2px / 72px 30px repeat-x,
    radial-gradient(ellipse 50% 140% at 50% 50%, #1b1b1d, var(--black)) !important;
  border-top: 1px solid rgba(195,0,26,.55); border-bottom: 1px solid rgba(195,0,26,.55);
  animation: laurel2 9s linear infinite !important;
}
.meander--bottom { animation-direction: reverse !important; }
@keyframes laurel2 { from { background-position: 0 0, 0 2px, 0 0; } to { background-position: 0 0, 72px 2px, 0 0; } }
@media (max-width: 640px) { .meander, .fclose__greca { height: 28px !important; background-size: 100% 100%, 58px 24px, auto !important; }
  @keyframes laurel2m { from { background-position: 0 0, 0 2px, 0 0; } to { background-position: 0 0, 58px 2px, 0 0; } }
  .meander, .fclose__greca { animation-name: laurel2m !important; } }
@media (prefers-reduced-motion: reduce) { .meander, .fclose__greca { animation: none !important; } }

@media (max-width: 640px) { .brand__text small { font-size: 11px; letter-spacing: .14em; } .stat > span { font-size: 12px; letter-spacing: .1em; } .hroute__list li em { font-size: 12.5px; } .bx__unit, .mq__track .mq__s { font-size: 12px; } }

/* =========================================================
   PORTADA · versión final pulida
   ========================================================= */
.page-index .hero { padding: 70px 0 110px; min-height: auto; }
.page-index .hero__grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 56px; align-items: center; }
.page-index .hero__grid::before { display: none; }
.page-index .hero__content { min-width: 0; }

/* Sello superior */
.hbadge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #e6e6ea; font-size: 13.5px; font-weight: 600; }
.hbadge__dot { width: 8px; height: 8px; border-radius: 50%; background: #2ee66b; box-shadow: 0 0 0 0 rgba(46,230,107,.7); animation: live 1.8s infinite; }
.hbadge b { background: var(--red); color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }

/* Título: sin cortes y con más fuerza */
.page-index .hero__title { font-size: clamp(36px, 4.5vw, 70px); line-height: 1.04; margin-bottom: 26px; letter-spacing: -.01em; }
.page-index .hero__title .word { white-space: normal; }
.page-index .hero__title .line { overflow: hidden; padding-right: .08em; }
.page-index .word--outline {
  -webkit-text-stroke: 0; color: transparent;
  background: linear-gradient(92deg, #ff4655 0%, var(--red-2) 45%, #ff7a83 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 8px 30px rgba(195,0,26,.45));
}
.page-index .hero__motto { font-size: clamp(16px, 1.5vw, 20px); margin-bottom: 18px; }
.page-index .hero__lead { font-size: 17.5px; max-width: 560px; }
.page-index .hero__ctas { margin: 30px 0 34px; }
.page-index .btn--ghost { border-color: rgba(255,255,255,.4); }
.page-index .btn--ghost:hover { border-color: #fff; }

/* Fila de confianza */
.htrust { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; max-width: 600px; }
.htrust div { display: flex; align-items: center; gap: 12px; padding: 0 22px; border-left: 1px solid rgba(255,255,255,.12); }
.htrust div:first-child { padding-left: 0; border-left: 0; }
.htrust strong { font-family: var(--sans); font-weight: 900; font-size: 34px; letter-spacing: -.03em; color: #fff; line-height: 1; }
.htrust span { font-size: 12.5px; line-height: 1.35; color: #a9a9b0; }

/* Tarjeta de la ruta con borde animado */
.page-index .hroute { position: relative; }
.page-index .hroute::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(255,90,100,.9) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 5s linear infinite;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spinBorder { to { --ang: 360deg; } }

@media (max-width: 960px) {
  .page-index .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .page-index .hero { padding: 44px 0 80px; }
}
@media (max-width: 640px) {
  .hbadge { font-size: 12px; gap: 8px; }
  .page-index .hero__title { font-size: clamp(32px, 9.6vw, 44px); }
  .htrust { grid-template-columns: 1fr 1fr 1fr; max-width: none; }
  .htrust div { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 10px; }
  .htrust strong { font-size: 26px; }
  .htrust span { font-size: 11.5px; }
  .htrust span br { display: none; }
}

.htrust { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; }
.htrust div { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 20px; }
.htrust span br { display: none; }
.htrust span { font-size: 13px; }

.hero__motto em { -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.9; }
@media (max-width: 640px) { .page-index .hero__motto { font-size: 15px; } .page-index .hero__motto em { display: inline-block; margin-top: 6px; } .hbadge { padding: 7px 7px 7px 12px; } }

/* =========================================================
   PORTADA · estilo anterior mejorado
   ========================================================= */
.page-index .hero { padding: 80px 0 120px; }
.page-index .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 60px; }
.page-index .eyebrow { margin-bottom: 22px; }
/* Título grande como antes, pero sin cortarse nunca */
.page-index .hero__title { font-size: clamp(38px, 5.3vw, 84px); line-height: 1.02; letter-spacing: -.005em; }
.page-index .hero__title .word { white-space: nowrap; }
@media (max-width: 1240px) { .page-index .hero__title { font-size: clamp(36px, 4.9vw, 64px); } }
/* "EMPIEZA AQUÍ" en contorno rojo con destello que lo recorre */
.page-index .word--outline {
  filter: none; color: transparent; -webkit-text-stroke: 2px var(--red-2);
  background: linear-gradient(100deg, transparent 0 40%, rgba(255,90,100,.95) 50%, transparent 60% 100%) -150% 0 / 250% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  animation: shine 4.5s ease-in-out 1.6s infinite;
  text-shadow: 0 0 28px rgba(195,0,26,.35);
}
@keyframes shine { 0% { background-position: -150% 0; } 45%, 100% { background-position: 250% 0; } }

/* Etiquetas en píldora */
.hpills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hpills li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #ececf0; font-size: 13.5px; font-weight: 600;
  transition: background .3s, border-color .3s, transform .3s; }
.hpills li:hover { background: rgba(195,0,26,.25); border-color: rgba(255,90,100,.6); transform: translateY(-2px); }
.hpills svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--red-2); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Partículas */
.page-index .hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page-index .hero__bg { z-index: 0; }
.page-index .hero__grid { position: relative; z-index: 1; }

/* Tarjeta + insignias flotantes */
.page-index .hroute { overflow: visible; }
.hfloat { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; box-shadow: 0 20px 40px -18px rgba(0,0,0,.7); white-space: nowrap;
  animation: bob 4.5s ease-in-out infinite; }
.hfloat b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--red); color: #fff; font-size: 13px; }
.hfloat--a { top: -18px; left: -34px; }
.hfloat--a b { background: #1f9d55; }
.hfloat--b { bottom: 76px; right: -30px; animation-delay: -2.2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
  .page-index .hero__grid { grid-template-columns: 1fr; gap: 50px; }
  .page-index .hero__title .word { white-space: normal; }
  .hfloat--a { left: 10px; top: -20px; }
  .hfloat--b { right: 10px; bottom: auto; top: -20px; }
}
@media (max-width: 640px) {
  .page-index .hero__title { font-size: clamp(32px, 9.8vw, 46px); }
  .page-index .word--outline { -webkit-text-stroke: 1.5px var(--red-2); }
  .hpills li { font-size: 12.5px; padding: 8px 12px 8px 8px; }
  .hfloat { font-size: 12px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .page-index .word--outline, .hfloat { animation: none; } }

@media (max-width: 1240px) { .page-index .hero__title { font-size: clamp(38px, 5.8vw, 84px); } }
@media (max-width: 1200px) { .topbar__provs { display: none; } }

.hfloat--b { right: auto; left: -40px; bottom: 120px; }
@media (max-width: 960px) { .hfloat--b { left: auto; right: 10px; bottom: auto; top: -20px; } }

@media (max-width: 960px) { .page-index .hroute { padding-top: 44px; margin-top: 10px; } }

/* =========================================================
   PORTADA · fondo limpio (sin partículas, cuadrícula ni brillos)
   ========================================================= */
.page-index .hero { background: #0d0d0e; }
.page-index .hero::after { display: none; }
.page-index .hero__grain, .page-index .hero__glow, .page-index .hero__embers { display: none; }
.page-index .hero::before {
  background: var(--red) url("../assets/img/logo.jpg") no-repeat right -120px center / 560px auto;
  background-blend-mode: multiply;
}
.page-index .word--outline { text-shadow: none; }
.page-index .hroute { box-shadow: 0 30px 60px -30px rgba(0,0,0,.75); }
.page-index .hroute::after { display: none; }
@media (max-width: 960px) { .page-index .hero::before { background-size: 380px auto; background-position: right -90px bottom -60px; } }

/* =========================================================
   Marquesinas: SIEMPRE en movimiento (también con el ratón encima
   y aunque el sistema tenga activado "Reducir movimiento")
   ========================================================= */
.mq__track { animation: mqMove 38s linear infinite !important; animation-play-state: running !important; }
.mq__track--rev { animation-direction: reverse !important; animation-duration: 46s !important; }
.mq:hover .mq__track, .marquee:hover .marquee__track { animation-play-state: running !important; }
.meander, .fclose__greca { animation: laurel2 9s linear infinite !important; animation-play-state: running !important; }
.meander--bottom { animation-direction: reverse !important; }
@media (max-width: 640px) { .meander, .fclose__greca { animation-name: laurel2m !important; } }
@media (prefers-reduced-motion: reduce) {
  .mq__track { animation: mqMove 38s linear infinite !important; }
  .mq__track--rev { animation-direction: reverse !important; animation-duration: 46s !important; }
  .meander, .fclose__greca { animation: laurel2 9s linear infinite !important; }
  .meander--bottom { animation-direction: reverse !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) { .meander, .fclose__greca { animation-name: laurel2m !important; } }

/* =========================================================
   Titulares pequeños: sin rombo, con línea roja fina
   ========================================================= */
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; transform: none; outline: 0; box-shadow: none; margin: 0; border-radius: 0; }

/* Frase de la portada animada: línea que se dibuja + letras una a una */
.htag { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: 13px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #ff7a83; }
.htag__line { width: 0; height: 2px; background: var(--red-2); flex: none; animation: tagLine .7s cubic-bezier(.2,.8,.2,1) 1.3s forwards; }
.htag__txt span { display: inline-block; opacity: 0; transform: translateY(10px); filter: blur(4px);
  animation: tagChar .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(1.6s + var(--i) * 28ms); }
.htag__txt { position: relative; }
.htag__txt::after { content: ""; position: absolute; left: 0; right: .26em; bottom: -6px; height: 1px; background: linear-gradient(90deg, var(--red-2), transparent);
  transform: scaleX(0); transform-origin: left; animation: tagUnder 1s cubic-bezier(.2,.8,.2,1) 2.9s forwards; }
@keyframes tagLine { to { width: 34px; } }
@keyframes tagChar { to { opacity: 1; transform: none; filter: none; } }
@keyframes tagUnder { to { transform: scaleX(1); } }
@media (max-width: 640px) { .htag { font-size: 11px; letter-spacing: .18em; gap: 10px; } }

/* =========================================================
   Bandas: vuelve la greca original, SIEMPRE en movimiento
   ========================================================= */
:root { --greca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='24' viewBox='0 0 32 24'%3E%3Cpath d='M0 21h28V3H8v14h14V9h-8' fill='none' stroke='%23ffffff' stroke-width='2.4'/%3E%3C/svg%3E"); }
.meander, .fclose__greca {
  height: 24px !important; border: 0 !important; box-shadow: none !important;
  background: var(--greca) 0 0 / 32px 24px repeat-x, var(--black) !important;
  animation: grecaMove 3s linear infinite !important; animation-play-state: running !important;
}
.meander--bottom { animation-direction: reverse !important; }
@keyframes grecaMove { from { background-position: 0 0, 0 0; } to { background-position: 32px 0, 0 0; } }
@media (max-width: 640px) { .meander, .fclose__greca { height: 24px !important; background-size: 32px 24px, auto !important; animation-name: grecaMove !important; } }
@media (prefers-reduced-motion: reduce) {
  .meander, .fclose__greca { animation: grecaMove 3s linear infinite !important; }
  .meander--bottom { animation-direction: reverse !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) { .meander, .fclose__greca { animation-name: grecaMove !important; } }

/* =========================================================
   GRECA ORIGINAL · clase nueva, siempre en movimiento
   (sin !important en la posición, para que la animación funcione)
   ========================================================= */
.greca {
  height: 24px; background-color: var(--black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='24' viewBox='0 0 32 24'%3E%3Cpath d='M0 21h28V3H8v14h14V9h-8' fill='none' stroke='%23ffffff' stroke-width='2.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 32px 24px; background-position: 0 0;
  animation: grecaRun 3s linear infinite;
}
.greca--top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.greca--bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; animation-direction: reverse; }
@keyframes grecaRun { from { background-position: 0 0; } to { background-position: 32px 0; } }
/* Siempre en movimiento, también con "Reducir movimiento" activado */
.greca { animation-duration: 3s !important; animation-iteration-count: infinite !important; animation-play-state: running !important; }

/* =========================================================
   PORTADA · credencial del formador (sustituye a la lista de fases)
   ========================================================= */
.cred {
  position: relative; justify-self: end; width: 100%; max-width: 430px; background: #fff; color: var(--ink);
  border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.75);
  transform: rotate(-1.5deg); transition: transform .5s var(--ease), box-shadow .5s;
}
.cred:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 50px 90px -30px rgba(0,0,0,.8); }
.cred__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; background: var(--black); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cred__live { display: inline-flex; align-items: center; gap: 7px; color: #3ddc84; letter-spacing: .08em; }
.cred__live i { width: 7px; height: 7px; border-radius: 50%; background: #2ee66b; animation: live 1.8s infinite; }
.cred__id { display: flex; align-items: center; gap: 16px; padding: 24px 22px 18px; border-bottom: 1px dashed #ddd6cc; }
.cred__id img { border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--red); flex: none; }
.cred__id small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.cred__id strong { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.cred__list { list-style: none; margin: 0; padding: 8px 22px; }
.cred__list li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f0ebe4; }
.cred__list li:last-child { border-bottom: 0; }
.cred__list b { width: 56px; flex: none; font-family: var(--sans); font-weight: 900; font-size: 28px; letter-spacing: -.03em; color: var(--red); line-height: 1; }
.cred__list span { font-size: 14px; line-height: 1.35; color: #44444b; }
.cred__quote { margin: 4px 22px 0; padding: 14px 16px; background: #faf6f0; border-left: 3px solid var(--red); border-radius: 0 10px 10px 0;
  font-family: var(--serif); font-size: 15px; line-height: 1.45; color: #2a2a2f; }
.cred__actions { display: flex; gap: 10px; padding: 18px 22px 18px; }
.cred__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 12px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 15.5px; text-decoration: none; transition: background .2s, gap .3s; }
.cred__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.cred__btn:hover { background: var(--red-2); gap: 14px; }
.cred__wa { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #25d366; transition: transform .2s; }
.cred__wa:hover { transform: scale(1.06); }
.cred__wa svg { width: 26px; height: 26px; fill: #fff; }
.cred__foot { display: flex; justify-content: space-between; padding: 11px 22px; background: #f5f1ea; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #77727a; }
@media (max-width: 960px) { .cred { justify-self: stretch; max-width: none; transform: none; } .cred:hover { transform: translateY(-4px); } }
@media (max-width: 640px) {
  .cred__id strong { font-size: 19px; }
  .cred__list b { width: 48px; font-size: 24px; }
  .cred__list span br, .cred__id strong br { display: none; }
  .cred__top { font-size: 10.5px; padding: 12px 16px; }
  .cred__id, .cred__list, .cred__actions, .cred__foot { padding-left: 16px; padding-right: 16px; }
  .cred__quote { margin: 4px 16px 0; }
}

.cred__quote { font-family: var(--sans); font-size: 14.5px; font-weight: 500; font-style: italic; color: #3a3a40; }

.cred__list span { max-width: 190px; }
.cred__id strong { max-width: 240px; }
@media (max-width: 640px) { .cred__list span { max-width: none; } .cred__top span { white-space: nowrap; } }

.cred__top { gap: 12px; }
@media (max-width: 640px) { .cred__top { letter-spacing: .08em; font-size: 10px; } }

/* =========================================================
   PORTADA · escudo protagonista (sin tarjeta)
   ========================================================= */
.show { position: relative; justify-self: center; width: min(100%, 480px); aspect-ratio: 1; display: grid; place-items: center; }
.show__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: showSpin 40s linear infinite; }
.show__ring text { fill: #fff; stroke: none; font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: 4px; }
.show__orbit { position: absolute; inset: 15%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.45); animation: showSpin 60s linear infinite reverse; }
.show__logo { position: relative; width: 62%; height: auto; border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(0,0,0,.35), 0 40px 80px -20px rgba(0,0,0,.75); animation: showFloat 6s ease-in-out infinite; }
@keyframes showSpin { to { transform: rotate(360deg); } }
@keyframes showFloat { 50% { transform: translateY(-12px); } }
.show__pill { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 18px 36px -16px rgba(0,0,0,.6);
  animation: showFloat 5s ease-in-out infinite; }
.show__pill b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13px; }
.show__pill--1 { top: 12%; left: -6%; }
.show__pill--2 { top: 48%; right: -10%; animation-delay: -1.7s; }
.show__pill--3 { bottom: 8%; left: 4%; animation-delay: -3.2s; }
.show__pill--3 b { background: #1f9d55; }
/* El escudo grabado del fondo pasa a ser un halo detrás del escudo principal */
.page-index .hero::before { background-position: right -60px center; background-size: 640px auto; }
@media (max-width: 960px) {
  .show { width: min(88%, 420px); margin-top: 10px; }
  .show__pill--1 { left: 0; } .show__pill--2 { right: -2%; }
}
@media (max-width: 640px) {
  .show__ring text { font-size: 16px; }
  .show__pill { font-size: 12px; padding: 7px 11px 7px 7px; }
  .show__pill b { min-width: 26px; height: 26px; font-size: 12px; }
  .show__pill--2 { right: 0; }
}
@media (prefers-reduced-motion: reduce) { .show__ring, .show__orbit, .show__logo, .show__pill { animation: none; } }

/* Un solo escudo: fuera el grabado del fondo; ondas sutiles detrás del escudo */
.page-index .hero::before { background-image: none; background-color: var(--red); }
.show::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.09) 0 1px, transparent 1.5px 34px);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%); mask-image: radial-gradient(circle, #000 35%, transparent 70%); }

/* =========================================================
   PORTADA · MEDALLA 3D
   ========================================================= */
.medal-stage { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1 / 1.12; display: grid; place-items: center; perspective: 1100px; }
.medal-vtext { position: absolute; right: -14%; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center;
  font-family: var(--serif); font-weight: 900; font-size: clamp(70px, 9vw, 140px); letter-spacing: .08em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.22); white-space: nowrap; pointer-events: none; user-select: none; }
.medal-tilt { position: relative; width: 78%; aspect-ratio: 1; transform-style: preserve-3d; transition: transform .25s ease-out; }
.medal { position: absolute; inset: 0; transform-style: preserve-3d; animation: medalSpin 12s cubic-bezier(.65,0,.35,1) infinite; }
.medal__face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  /* canto de acero */
  padding: 12px;
  background: conic-gradient(from 210deg, #f4f4f6, #8c8c93, #e9e9ec, #5d5d63, #d6d6da, #9a9aa1, #f4f4f6);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), inset 0 0 18px rgba(0,0,0,.45), 0 0 0 4px rgba(0,0,0,.35); }
.medal__front img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; box-shadow: inset 0 0 30px rgba(0,0,0,.6); }
.medal__back { transform: rotateY(180deg); }
.medal__back::before { content: ""; position: absolute; inset: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d11a26, #8a0010 70%); box-shadow: inset 0 0 0 6px rgba(0,0,0,.25), inset 0 0 40px rgba(0,0,0,.5); }
.medal__back > * { position: relative; }
.medal__back { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; gap: 4px; }
.medal__star { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 5; margin-bottom: 6px; opacity: .9; }
.medal__k { font-size: 12px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #ffd0d4; }
.medal__back strong { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 4.2vw, 54px); line-height: 1; text-transform: uppercase; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.medal__a { font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: .3em; text-transform: uppercase; }
.medal__d { margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd0d4; padding: 5px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
/* reflejo de luz */
.medal__shine { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; overflow: hidden; transform: translateZ(1px); }
.medal__shine::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-18deg); animation: medalShine 6s ease-in-out infinite; }
.medal-floor { position: absolute; bottom: 2%; left: 50%; width: 56%; height: 22px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%); animation: floorPulse 12s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes medalSpin {
  0%   { transform: rotateY(-16deg) translateY(0); }
  20%  { transform: rotateY(16deg) translateY(-10px); }
  35%  { transform: rotateY(-10deg) translateY(0); }
  50%  { transform: rotateY(180deg) translateY(-8px); }
  70%  { transform: rotateY(196deg) translateY(-14px); }
  85%  { transform: rotateY(170deg) translateY(-4px); }
  100% { transform: rotateY(344deg) translateY(0); }
}
@keyframes medalShine { 0%, 55% { left: -60%; } 80%, 100% { left: 130%; } }
@keyframes floorPulse { 20%, 70% { width: 48%; opacity: .75; } }
@media (max-width: 960px) {
  .medal-stage { width: min(80%, 380px); margin: 10px auto 0; }
  .medal-vtext { display: none; }
}
@media (prefers-reduced-motion: reduce) { .medal, .medal__shine::before, .medal-floor { animation: none; } }

.medal-vtext { right: auto; left: 50%; top: 46%; transform: translate(-50%, -50%); font-size: clamp(80px, 10vw, 170px); -webkit-text-stroke: 1.5px rgba(255,255,255,.2); letter-spacing: .04em; }

.medal-vtext { font-size: clamp(50px, 6vw, 96px); top: 50%; }

.medal-vtext { display: none; }

/* Fondo de antes: bloque rojo con el escudo grabado */
.page-index .hero::before {
  background: var(--red) url("../assets/img/logo.jpg") no-repeat right -120px center / 560px auto !important;
  background-blend-mode: multiply !important;
}
@media (max-width: 960px) { .page-index .hero::before { background-size: 380px auto !important; background-position: right -90px bottom -60px !important; } }

/* Escudo grabado fundido con el rojo (sin bordes) y desplazado hacia el borde */
.page-index .hero::before {
  background:
    radial-gradient(circle at calc(100% + 40px) 50%, transparent 0 22%, var(--red) 46%) ,
    url("../assets/img/logo.jpg") no-repeat right -230px center / 620px auto,
    var(--red) !important;
  background-blend-mode: normal, multiply, normal !important;
}
@media (max-width: 960px) {
  .page-index .hero::before {
    background:
      radial-gradient(circle at calc(100% + 30px) 100%, transparent 0 24%, var(--red) 50%),
      url("../assets/img/logo.jpg") no-repeat right -150px bottom -110px / 420px auto,
      var(--red) !important;
  }
}

/* Escudo de fondo exactamente como antes */
.page-index .hero::before {
  background: var(--red) url("../assets/img/logo.jpg") no-repeat right -120px center / 560px auto !important;
  background-blend-mode: multiply !important;
}
@media (max-width: 960px) {
  .page-index .hero::before { background: var(--red) url("../assets/img/logo.jpg") no-repeat right -90px bottom -60px / 380px auto !important; }
}

/* =========================================================
   PORTADA · cifras sobre el rojo (sin tarjeta)
   ========================================================= */
.hinfo { justify-self: end; width: 100%; max-width: 400px; color: #fff; position: relative; z-index: 1; }
.hinfo__k { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.8);
  opacity: 0; animation: hinfoIn .7s cubic-bezier(.2,.8,.2,1) 1.1s forwards; }
.hinfo__list { list-style: none; margin: 0; padding: 0; }
.hinfo__list li { display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.28);
  opacity: 0; transform: translateX(30px); animation: hinfoIn .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(1.3s + var(--d) * .15s); }
.hinfo__list li:last-child { border-bottom: 0; }
.hinfo__list b { font-family: var(--sans); font-weight: 900; font-size: 64px; line-height: .9; letter-spacing: -.04em; text-align: right;
  text-shadow: 0 6px 24px rgba(0,0,0,.35); font-variant-numeric: tabular-nums; }
.hinfo__list span { font-size: 15.5px; font-weight: 600; line-height: 1.35; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hinfo__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px 20px; border-radius: 999px;
  background: #fff; color: var(--red); font-weight: 800; font-size: 15px; text-decoration: none; transition: gap .3s, transform .3s;
  opacity: 0; animation: hinfoIn .7s cubic-bezier(.2,.8,.2,1) 2s forwards; }
.hinfo__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.hinfo__link:hover { gap: 16px; transform: translateY(-2px); }
@keyframes hinfoIn { to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .hinfo { justify-self: stretch; max-width: none; padding: 10px 0 20px; }
  .hinfo__list li { grid-template-columns: 92px 1fr; padding: 14px 0; }
  .hinfo__list b { font-size: 50px; }
}
@media (max-width: 640px) { .hinfo__list span br { display: none; } .hinfo__list span { font-size: 14.5px; } }
@media (prefers-reduced-motion: reduce) { .hinfo__k, .hinfo__list li, .hinfo__link { opacity: 1; transform: none; animation: none; } }

.hinfo__list span { max-width: 210px; }
@media (max-width: 640px) { .hinfo__list span { max-width: none; } }

/* =========================================================
   PORTADA · lo que incluye la preparación (iconos sobre el rojo)
   ========================================================= */
.hinc { justify-self: end; width: 100%; max-width: 470px; color: #fff; position: relative; z-index: 1; }
.hinc__k { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 12.5px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
  opacity: 0; animation: hincIn .7s cubic-bezier(.2,.8,.2,1) 1s forwards; }
.hinc__k::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.35); }
.hinc__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.hinc__grid li { display: flex; align-items: flex-start; gap: 14px; opacity: 0; transform: translateY(16px);
  animation: hincIn .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(1.15s + var(--d) * .12s); }
.hinc__ic { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--red);
  box-shadow: 0 12px 26px -12px rgba(0,0,0,.6); transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, color .3s; }
.hinc__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hinc__grid li:hover .hinc__ic { transform: rotate(-10deg) scale(1.08); background: var(--black); color: #fff; }
.hinc__grid strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.25; margin: 3px 0 3px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hinc__grid span { display: block; font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,.85); text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hinc__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.35);
  opacity: 0; animation: hincIn .7s cubic-bezier(.2,.8,.2,1) 2s forwards; }
.hinc__btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: #fff; color: var(--red);
  font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 14px 28px -14px rgba(0,0,0,.6); transition: gap .3s, transform .3s; }
.hinc__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.hinc__btn:hover { gap: 16px; transform: translateY(-2px); }
.hinc__foot > span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
@keyframes hincIn { to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .hinc { justify-self: stretch; max-width: none; padding: 6px 0 24px; } }
@media (max-width: 640px) {
  .hinc__grid { grid-template-columns: 1fr; gap: 18px; }
  .hinc__ic { width: 44px; height: 44px; }
  .hinc__btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .hinc__k, .hinc__grid li, .hinc__foot { opacity: 1; transform: none; animation: none; } }

.hinc__grid .hinc__ic { display: grid; color: var(--red); font-size: 0; text-shadow: none; }
.hinc__grid li:hover .hinc__ic { color: #fff; }

/* Bloque informativo SEO en Inicio */
.seoinfo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.seoinfo__text p { color: #3b3b40; font-size: 16.5px; line-height: 1.75; }
.seoinfo__text a:not(.btn) { color: var(--red); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(165,0,16,.3); }
.seoinfo__text a:not(.btn):hover { border-color: var(--red); }
.seoinfo__text .btn { margin-top: 10px; }
@media (max-width: 960px) { .seoinfo__grid { grid-template-columns: 1fr; gap: 36px; } }

/* =========================================================
   BLOG
   ========================================================= */
.btools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.bchips { display: flex; flex-wrap: wrap; gap: 8px; }
.bchip { border: 1.5px solid #dcd7d0; background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; }
.bchip:hover { border-color: var(--black); }
.bchip.on { background: var(--red); border-color: var(--red); color: #fff; }
.bsearch { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #dcd7d0; border-radius: 999px; padding: 0 16px; min-width: 260px; transition: border-color .2s, box-shadow .2s; }
.bsearch:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(165,0,16,.1); }
.bsearch svg { width: 18px; height: 18px; fill: none; stroke: var(--gray); stroke-width: 2; flex: none; }
.bsearch input { border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; padding: 12px 0; width: 100%; }
.bcount { color: var(--gray); font-size: 14px; margin: 0 0 22px; }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bfeat { grid-column: 1 / -1; }
.bempty { grid-column: 1 / -1; text-align: center; color: var(--gray); padding: 40px 0; }

.bcard { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e2dc; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s; animation: phaseIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.bcard:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(0,0,0,.45); }
.bcard__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--black); }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bcard:hover .bcard__img img, .bcard:hover .bcover__mark { transform: scale(1.06); }
.bcard__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.bcard__meta { font-size: 12.5px; color: var(--gray); }
.bcard__meta b { color: var(--red); text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; }
.bcard__title { font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.bcard__ex { font-size: 14.5px; color: var(--gray); line-height: 1.55; flex: 1; }
.bcard__go { font-weight: 800; font-size: 14px; color: var(--red); margin-top: 4px; }
/* Portada automática cuando la noticia no tiene imagen */
.bcover { position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 16px 18px;
  background: linear-gradient(135deg, var(--red-2), var(--red) 55%, #5e0009); overflow: hidden; }
.bcover::before { content: ""; position: absolute; inset: 0; background: var(--black); clip-path: polygon(0 0, 46% 0, 30% 100%, 0 100%); opacity: .92; }
.bcover__mark { position: absolute; right: -8%; top: 50%; width: 62%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%;
  background: url("../assets/img/logo-160.jpg") center / cover; box-shadow: 0 0 0 6px rgba(0,0,0,.25); transition: transform .6s var(--ease); }
.bcard .bcover__mark { transform: translateY(-50%); }
.bcard:hover .bcover__mark { transform: translateY(-50%) scale(1.06); }
.bcover__cat { position: relative; z-index: 1; color: #fff; font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.1; max-width: 45%; }
/* Noticia destacada */
.bcard--feat { flex-direction: row; }
.bcard--feat .bcard__img { flex: 0 0 55%; aspect-ratio: auto; min-height: 320px; }
.bcard--feat .bcard__body { padding: 34px 36px; justify-content: center; }
.bcard--feat .bcard__title { font-size: clamp(22px, 2.4vw, 30px); }
.bcard--feat .bcard__ex { flex: 0; font-size: 16px; }
.bcard--feat .bcover__cat { font-size: 28px; }

/* Últimas noticias en Inicio */
.latest__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.latest__head .title { margin-bottom: 0; }

/* Instagram */
.ig { position: relative; }
.ig__head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.ig__head .title { margin-bottom: 0; }
.ig__head .eyebrow { margin-bottom: 8px; }
.ig__icon { width: 58px; height: 58px; flex: none; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.ig__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; }
.ig__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ig__item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #1b1b1d; }
.ig__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ig__item span { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; font-size: 12.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); opacity: 0; transition: opacity .3s; }
.ig__item:hover img { transform: scale(1.06); }
.ig__item:hover span { opacity: 1; }
.ig__more { margin: 24px 0 0; text-align: center; }
.ig__empty { text-align: center; padding: 40px 20px; border: 1px dashed rgba(255,255,255,.25); border-radius: 16px; }
.ig__empty p { color: #c9c9ce; margin-bottom: 18px; }

/* Artículo */
.post__hero { padding-bottom: 80px; }
.post__meta { font-size: 13px; color: rgba(255,255,255,.85); margin: 14px 0 0; }
.post__meta b { text-transform: uppercase; letter-spacing: .1em; }
.post__title { font-size: clamp(28px, 3.8vw, 50px); max-width: 900px; text-transform: none; line-height: 1.15; }
.post__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: start; }
.post__body { font-size: 17.5px; line-height: 1.8; color: #2d2d33; }
.post__body h2 { font-family: var(--sans); font-weight: 800; font-size: 26px; letter-spacing: -.01em; margin: 34px 0 12px; color: var(--ink); line-height: 1.25; }
.post__body ul { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.post__body li { padding-left: 26px; position: relative; }
.post__body li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.post__body a { color: var(--red); font-weight: 700; }
.post__img { width: 100%; border-radius: 16px; margin-bottom: 24px; }
.post__ig a { display: inline-block; margin-top: 10px; }
.post__side { position: sticky; top: 100px; display: grid; gap: 18px; }
.post__share { background: #fff; border: 1px solid #e6e2dc; border-radius: 16px; padding: 20px; display: grid; gap: 8px; }
.post__share p { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.sh { display: block; text-align: center; padding: 11px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform .2s, filter .2s; }
.sh:hover { transform: translateY(-2px); filter: brightness(1.08); }
.sh--wa { background: #25d366; } .sh--fb { background: #1877f2; } .sh--x { background: #111; } .sh--in { background: #0a66c2; }
.sh--copy { background: var(--paper); color: var(--ink); }
.post__cta { background: var(--black); color: #fff; border-radius: 16px; padding: 22px; }
.post__cta strong { font-family: var(--serif); font-size: 20px; }
.post__cta p { color: #c9c9ce; font-size: 14.5px; margin: 8px 0 16px; }
.post__missing { padding: 100px 0; text-align: center; }

@media (max-width: 960px) {
  .bgrid { grid-template-columns: 1fr 1fr; }
  .bcard--feat { flex-direction: column; }
  .bcard--feat .bcard__img { min-height: 0; aspect-ratio: 16 / 9; }
  .post__grid { grid-template-columns: 1fr; gap: 36px; }
  .post__side { position: static; }
  .ig__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bgrid { grid-template-columns: 1fr; }
  .bsearch { min-width: 0; width: 100%; }
  .bcard--feat .bcard__body { padding: 22px; }
  .post__body { font-size: 16.5px; }
  .ig__head { align-items: flex-start; }
}

/* =========================================================
   BLOG · mejoras
   ========================================================= */
.bcard__img { position: relative; }
.bcard__tag { position: absolute; left: 14px; top: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(12,12,13,.85); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(4px); }
.bcard--feat .bcard__tag { background: var(--red); }
.bcard__img img { display: block; }

/* Artículo */
.post__progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--red-2); z-index: 300; box-shadow: 0 0 10px rgba(209,26,38,.6); }
.post__cover { margin: 0 0 28px; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0,0,0,.55); }
.post__cover img { width: 100%; height: auto; display: block; }
.post__sum { background: #fff7f7; border: 1px solid #f3d6d8; border-left: 5px solid var(--red); border-radius: 0 14px 14px 0; padding: 20px 24px; margin: 0 0 30px; }
.post__sum strong { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.post__sum ul { margin: 0; gap: 8px; }
.post__sum li { font-size: 16px; }
.post__body h2 { scroll-margin-top: 100px; }
.post__toc { background: #fff; border: 1px solid #e6e2dc; border-radius: 16px; padding: 20px; display: grid; gap: 4px; }
.post__toc p { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.post__toc a { text-decoration: none; color: #44444b; font-size: 14.5px; font-weight: 600; line-height: 1.35; padding: 7px 0 7px 12px; border-left: 3px solid transparent; transition: color .2s, border-color .2s; }
.post__toc a:hover, .post__toc a.on { color: var(--red); border-left-color: var(--red); }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 80px; }
.post__nav a { display: block; padding: 22px 24px; border: 1px solid #e6e2dc; border-radius: 16px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .3s, box-shadow .3s; }
.post__nav a:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(0,0,0,.45); }
.post__nav small { display: block; color: var(--red); font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.post__nav strong { font-size: 16.5px; line-height: 1.35; }
.post__navr { text-align: right; }
.post__wrap { padding-bottom: 50px; }
@media (max-width: 960px) { .post__toc { display: none; } }
@media (max-width: 640px) { .post__nav { grid-template-columns: 1fr; } .post__navr { text-align: left; } .post__sum { padding: 16px 18px; } }

/* =========================================================
   WhatsApp a la izquierda · Asistente a la derecha
   ========================================================= */
.wa-float { left: 22px !important; right: auto !important; }
.to-top { right: 30px; bottom: 100px; }

.chat { position: fixed; right: 22px; bottom: 22px; z-index: 120; font-family: var(--sans); }
.chat__fab { position: relative; width: 64px; height: 64px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: 0 14px 30px -10px rgba(165,0,16,.8), 0 0 0 4px rgba(255,255,255,.9); transition: transform .3s var(--ease), background .2s; }
.chat__fab:hover { transform: scale(1.07); background: var(--red-2); }
.chat__fab svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; position: absolute; transition: opacity .25s, transform .35s var(--ease); }
.chat__ico-close { opacity: 0; transform: rotate(-90deg); }
.chat.open .chat__ico-open { opacity: 0; transform: rotate(90deg); }
.chat.open .chat__ico-close { opacity: 1; transform: none; }
.chat__fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red-2); animation: ripple 2s infinite; }
.chat.open .chat__fab::before { display: none; }
.chat__dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: #2ee66b; border: 2px solid #fff; }
.chat.open .chat__dot { display: none; }

.chat__panel { position: absolute; right: 0; bottom: 80px; width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0,0,0,.55);
  transform-origin: bottom right; animation: chatIn .35s var(--ease); }
.chat__panel[hidden] { display: none !important; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--black); color: #fff; border-bottom: 3px solid var(--red); }
.chat__head img { border-radius: 50%; border: 2px solid var(--red-2); }
.chat__head strong { display: block; font-size: 15.5px; }
.chat__head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #bdbdc3; }
.chat__head small i { width: 7px; height: 7px; border-radius: 50%; background: #2ee66b; }
.chat__min { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); cursor: pointer; display: grid; place-items: center; }
.chat__min svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f6f3ee; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: phaseIn .3s var(--ease); word-wrap: break-word; }
.msg--bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid #ebe6de; border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.msg a { color: var(--red); font-weight: 700; }
.msg--user a { color: #fff; }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #b3aca3; animation: dot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .5; } }
.chat__chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; background: #fff; border-top: 1px solid #eee8df; scrollbar-width: none; }
.chat__chips button { flex: none; border: 1.5px solid #e2ddd5; background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); transition: all .2s; }
.chat__chips button:hover { border-color: var(--red); color: var(--red); }
.chat__form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; }
.chat__form input { flex: 1; min-width: 0; border: 1.5px solid #e2ddd5; border-radius: 999px; padding: 11px 16px; font: inherit; font-size: 16px; outline: none; }
.chat__form input:focus { border-color: var(--red); }
.chat__form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--red); cursor: pointer; display: grid; place-items: center; }
.chat__form button svg { width: 20px; height: 20px; fill: #fff; }
.chat__foot { margin: 0; padding: 0 14px 10px; font-size: 11px; color: var(--gray); background: #fff; text-align: center; }
.chat__foot a { color: var(--red); font-weight: 700; }

@media (max-width: 640px) {
  .chat { right: 14px; bottom: 14px; }
  .chat__fab { width: 56px; height: 56px; }
  .wa-float { left: 14px !important; bottom: 14px !important; }
    .chat__panel { position: fixed; right: 8px; left: 8px; bottom: 80px; width: auto; height: calc(100dvh - 100px); }
}
@media print { .chat { display: none; } }

.msg hr { border: 0; border-top: 1px dashed #e0d9cf; margin: 10px 0; }
.msg__next { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg__next button { border: 1.5px solid #f0c9cc; background: #fff7f7; color: var(--red); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .2s; }
.msg__next button:hover { background: var(--red); color: #fff; border-color: var(--red); }
.msg small { color: var(--gray); }

/* =========================================================
   PORTADA · versión clara (más blanco, menos negro)
   ========================================================= */
.page-index .hero { background: #faf8f5; color: var(--ink); }
.page-index .hero__title, .page-index .hero__title .word, .page-index .hero__motto, .page-index .hero__lead { color: #111114; text-shadow: none; filter: none; }
.page-index .word--outline { -webkit-text-stroke: 2px var(--red); text-shadow: none;
  background: linear-gradient(100deg, transparent 0 40%, rgba(209,26,38,.9) 50%, transparent 60% 100%) -150% 0 / 250% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; }
.page-index .htag { color: var(--red); }
.page-index .hero__motto { color: #111114; }
.page-index .hero .hero__lead { color: #4a4a50; }
.page-index .hero__lead strong { color: #111114; }
.page-index .hero .btn--white { background: var(--red); color: #fff; box-shadow: 0 14px 30px -14px rgba(165,0,16,.7); }
.page-index .hero .btn--white:hover { background: var(--red-2); }
.page-index .hero .btn--ghost { border-color: rgba(17,17,20,.25); color: #111114; }
.page-index .hero .btn--ghost:hover { background: #111114; border-color: #111114; color: #fff; }
.page-index .hpills li { background: #fff; border-color: #e7e1d8; color: #2b2b30; box-shadow: 0 6px 16px -12px rgba(0,0,0,.35); }
.page-index .hpills li:hover { background: #fff5f5; border-color: rgba(165,0,16,.35); }
.page-index .hero__grid::before { color: rgba(17,17,20,.035); }
.page-index .hero__title .word--outline { color: transparent; }
@media (max-width: 640px) { .page-index .htag { font-size: 10.5px; letter-spacing: .12em; gap: 8px; } .page-index .htag__txt { white-space: nowrap; } }
/* Móvil: el bloque rojo envuelve entero "Tu preparación incluye" */
@media (max-width: 960px) {
  .page-index .hero { padding-bottom: 0; }
  .page-index .hero::before { display: none; }
  .page-index .hinc { margin: 10px -24px 0; width: auto; max-width: none; padding: 70px 24px 70px;
    background: var(--red) url("../assets/img/logo.jpg") no-repeat right -90px bottom -60px / 380px auto; background-blend-mode: multiply;
    clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); }
}
@media (max-width: 640px) { .page-index .hinc { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; } }
/* Escritorio: el panel rojo empieza justo donde empieza la columna derecha (el título queda en blanco y los textos blancos sobre rojo) */
@media (min-width: 961px) {
  .page-index .hero::before { width: auto; right: 0; left: calc((100vw - min(100vw, 1200px)) / 2 + 24px + (min(100vw, 1200px) - 108px) * .6 + 10px);
    clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%); animation: none; }
}

/* =========================================================
   MENÚ · más atractivo y animado
   ========================================================= */
/* Escritorio: píldora roja que se desliza entre opciones */
@media (min-width: 961px) {
  .nav { gap: 2px; position: relative; }
  .nav a:not(.btn) { padding: 9px 13px; border-radius: 999px; color: #d6d6db; z-index: 1; transition: color .25s;
    opacity: 0; transform: translateY(-10px); animation: navIn .6s cubic-bezier(.2,.8,.2,1) forwards; }
  .nav a:not(.btn):nth-child(1) { animation-delay: .05s; } .nav a:not(.btn):nth-child(2) { animation-delay: .1s; }
  .nav a:not(.btn):nth-child(3) { animation-delay: .15s; } .nav a:not(.btn):nth-child(4) { animation-delay: .2s; }
  .nav a:not(.btn):nth-child(5) { animation-delay: .25s; } .nav a:not(.btn):nth-child(6) { animation-delay: .3s; }
  .nav a:not(.btn):nth-child(7) { animation-delay: .35s; } .nav a:not(.btn):nth-child(8) { animation-delay: .4s; }
  .nav a:not(.btn)::after { left: 50%; width: 5px; height: 5px; bottom: -3px; margin-left: -2.5px; border-radius: 50%; background: var(--red-2);
    transform: scale(0); transform-origin: center; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scale(0); }
  .nav a.is-active:not(.btn)::after { transform: scale(1); }
  .nav a:not(.btn):hover, .nav a.is-hot, .nav a.is-active { color: #fff; }
  .nav__ind { position: absolute; left: 0; top: 50%; height: 38px; margin-top: -19px; width: 0; border-radius: 999px; z-index: 0; pointer-events: none;
    background: linear-gradient(135deg, var(--red-2), var(--red)); box-shadow: 0 8px 20px -8px rgba(209,26,38,.8), inset 0 1px 0 rgba(255,255,255,.25);
    opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
  .nav__ind.on { opacity: 1; }
  .nav__cta { margin-left: 12px; opacity: 0; animation: navIn .6s cubic-bezier(.2,.8,.2,1) .5s forwards; }
  .nav__cta::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; animation: ctaPulse 2.6s ease-out 1.4s infinite; }
}
@keyframes navIn { to { opacity: 1; transform: none; } }
@keyframes ctaPulse { 0% { box-shadow: 0 0 0 0 rgba(209,26,38,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(209,26,38,0); } }

/* Hamburguesa animada */
.burger { transition: background .25s, border-color .25s, transform .25s; }
.burger:hover { background: rgba(209,26,38,.15); border-color: var(--red-2); }
.burger span { transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .25s, width .3s; }
.burger span:nth-child(2) { width: 14px; margin-left: auto; margin-right: 13px; }
.burger:hover span:nth-child(2) { width: 20px; margin-right: 13px; }
.burger[aria-expanded="true"] { background: var(--red); border-color: var(--red); }
.burger[aria-expanded="true"] span { background: #fff; }

/* Móvil: panel con opciones numeradas que entran una a una */
.nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(8,8,9,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .4s; }
.nav-backdrop.on { opacity: 1; pointer-events: auto; }
@media (max-width: 960px) {
  .nav { counter-reset: nav; padding: 96px 26px 30px; overflow-y: auto;
    background: radial-gradient(circle at 110% 105%, rgba(165,0,16,.55), transparent 55%), linear-gradient(180deg, #121214, #0b0b0c); }
  .nav::before { content: ""; position: absolute; right: -90px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%; pointer-events: none;
    background: url("../assets/img/logo-160.jpg") no-repeat center / 108% auto; opacity: .08; }
  .nav::after { content: "Menú"; position: absolute; left: 26px; top: 40px; font-size: 12px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--red-2); }
  .nav a:not(.btn) { counter-increment: nav; display: flex; align-items: center; gap: 14px; position: relative;
    opacity: 0; transform: translateX(40px); transition: opacity .45s, transform .55s cubic-bezier(.2,.8,.2,1), color .2s, padding-left .3s; }
  .nav a:not(.btn)::before { content: counter(nav, decimal-leading-zero); font-family: var(--sans); font-size: 12px; font-weight: 800; color: var(--red-2); min-width: 20px; }
  .nav a:not(.btn)::after { display: block !important; content: "→"; position: static; margin-left: auto; width: auto; height: auto; background: none; transform: translateX(-6px);
    opacity: 0; color: var(--red-2); font-family: var(--sans); transition: opacity .25s, transform .3s; }
  .nav a:not(.btn):hover, .nav a.is-active { color: #fff; padding-left: 6px; }
  .nav a:not(.btn):hover::after, .nav a.is-active::after { opacity: 1; transform: none; }
  .nav a.is-active { background: linear-gradient(90deg, rgba(209,26,38,.18), transparent); border-radius: 10px; }
  .nav.is-open a:not(.btn) { opacity: 1; transform: none; }
  .nav.is-open a:nth-child(1) { transition-delay: .08s; } .nav.is-open a:nth-child(2) { transition-delay: .13s; }
  .nav.is-open a:nth-child(3) { transition-delay: .18s; } .nav.is-open a:nth-child(4) { transition-delay: .23s; }
  .nav.is-open a:nth-child(5) { transition-delay: .28s; } .nav.is-open a:nth-child(6) { transition-delay: .33s; }
  .nav.is-open a:nth-child(7) { transition-delay: .38s; } .nav.is-open a:nth-child(8) { transition-delay: .43s; }
  .nav__cta { opacity: 0; transform: translateY(16px); transition: opacity .45s .5s, transform .55s cubic-bezier(.2,.8,.2,1) .5s; }
  .nav.is-open .nav__cta { opacity: 1; transform: none; }
  .nav__ind { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav a:not(.btn), .nav__cta { animation: none !important; opacity: 1 !important; transform: none !important; transition: color .2s !important; }
  .nav__cta::after { animation: none; }
}
@media (min-width: 961px) { .nav a:not(.btn), .nav__cta { white-space: nowrap; } .brand__text small { white-space: nowrap; } }
@media (min-width: 961px) and (max-width: 1240px) {
  .nav a:not(.btn) { padding: 8px 8px; font-size: 13px; }
  .nav__cta { margin-left: 6px; padding: 11px 14px; font-size: 13px; }
  .brand__text small { display: none; }
}
/* Arreglo: el desenfoque de la cabecera recortaba el menú del móvil a la altura de la barra */
@media (max-width: 960px) { .header, .header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12,12,13,.98); } }
/* Con el menú del móvil abierto, se ocultan WhatsApp, el chat y "subir" para que no tapen las opciones */
.wa-float, .chat, .to-top { transition: opacity .3s; }
body.menu-open .wa-float, body.menu-open .chat, body.menu-open .to-top { opacity: 0; pointer-events: none; }

/* =========================================================
   V2 · contenidos profesionales: equipo, avisos destacados,
   físicas motivadoras, temario, planes y WhatsApp 24 h
   ========================================================= */

/* ---------- Avisos destacados (estatura, certificado médico) ---------- */
.hl { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 16px; margin: 0 0 28px; position: relative; overflow: hidden; }
.hl::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; opacity: .12; background: currentColor; pointer-events: none; }
.hl__ic { width: 54px; height: 54px; flex: none; border-radius: 14px; display: grid; place-items: center; }
.hl__ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hl small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.hl strong { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.25; color: #111114; }
.hl p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; color: #3b3b40; }
.hl--ok { background: linear-gradient(135deg, #eaf7ef, #f6fbf8); border: 1px solid #bfe3cc; color: #14853b; }
.hl--ok .hl__ic { background: #14853b; color: #fff; box-shadow: 0 12px 24px -12px rgba(20,133,59,.7); }
.hl--warn { background: linear-gradient(135deg, #fff3f3, #fffafa); border: 1px solid #f3c7cb; border-left: 6px solid var(--red); color: var(--red); }
.hl--warn .hl__ic { background: var(--red); color: #fff; box-shadow: 0 12px 24px -12px rgba(165,0,16,.7); animation: hlPulse 2.4s ease-in-out infinite; }
.hl--big { padding: 26px 30px; margin-bottom: 50px; }
.hl--big strong { font-size: 24px; }
@keyframes hlPulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hl--warn .hl__ic { animation: none; } }
@media (max-width: 640px) { .hl { padding: 18px; gap: 14px; } .hl__ic { width: 44px; height: 44px; } .hl strong { font-size: 18px; } .hl--big strong { font-size: 19px; } }

.ftable__row--hl { background: #f1faf4; }
.tag-ok { display: inline-block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #14853b; color: #fff; padding: 3px 9px; border-radius: 999px; margin-right: 8px; vertical-align: 2px; }

/* ---------- Equipo ---------- */
.team { display: grid; gap: 14px; margin-top: 30px; }
.team__card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid #e8e2d9; border-left: 4px solid var(--red); border-radius: 14px;
  box-shadow: 0 18px 40px -30px rgba(0,0,0,.45); transition: transform .3s, box-shadow .3s; }
.team__card:hover { transform: translateX(6px); box-shadow: 0 24px 50px -30px rgba(165,0,16,.5); }
.team__ic { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; }
.team__ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.team__card small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.team__card h3 { margin: 2px 0 2px; font-size: 20px; }
.team__card p { margin: 0; color: #4a4a50; font-size: 15px; }
.team__card p b { color: #111114; }
.team__foot { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 14px 18px; background: #111114; color: #e8e8ec; border-radius: 12px; font-size: 14.5px; }
.team__foot strong { color: #fff; }
.team__foot svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #ff6b74; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Guía ---------- */
.gduo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 18px; }
.gduo > div { padding: 18px; border-radius: 12px; background: var(--paper); border-top: 4px solid var(--red); }
.gduo > div:last-child { background: #111114; color: #fff; }
.gduo small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.gduo > div:last-child small { color: #ff6b74; }
.gduo strong { display: block; font-size: 18px; margin: 4px 0; }
.gduo span { font-size: 14px; opacity: .8; }
.gtip--ok { background: #eaf7ef; border-left-color: #14853b; margin-top: 18px; }
.gtip--ok b { color: #14853b; }
.gdocs li em { font-style: normal; font-weight: 500; color: var(--gray); }
.gfinal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 10px; }
.gfinal > div { flex: 1 1 150px; padding: 16px; background: var(--paper); text-align: center; border-radius: 12px; }
.gfinal small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.gfinal strong { display: block; font-size: 17px; margin-top: 4px; }
.gfinal > b { font-size: 22px; color: var(--red); }
.gfinal__r { background: var(--red) !important; color: #fff; }
.gfinal__r small { color: rgba(255,255,255,.8); }
@media (max-width: 640px) { .gduo { grid-template-columns: 1fr; } .gfinal > b { width: 100%; text-align: center; } }

/* ---------- Físicas: niveles motivadores ---------- */
.crow { grid-template-columns: 1.5fr 1fr 1fr 170px; }
.badge { display: grid; gap: 2px; justify-self: stretch; text-transform: none; letter-spacing: 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.25; }
.badge b { font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.badge small { font-size: 12px; font-weight: 600; opacity: .85; color: inherit !important; }
.lv-top { background: #14853b; color: #fff; }
.lv-ok { background: #e2f3e8; color: #14853b; }
.lv-near { background: #fff4d6; color: #8a5a00; }
.lv-prog { background: #fde9d7; color: #a4470c; }
.lv-start { background: #eef0f6; color: #3a4a7a; }
.calc__result { line-height: 1.6; }
.calc__result a { color: #fff; font-weight: 800; }
.calc__legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 26px 20px; }
.calc__legend span { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
@media (max-width: 960px) { .crow { grid-template-columns: 1fr 1fr; } .calc__legend { padding: 14px 16px 18px; } }

.ftests__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.ftest { position: relative; padding: 26px 24px; background: #fff; border-radius: 16px; border: 1px solid #ebe5dc; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.ftest:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(165,0,16,.55); }
.ftest__n { position: absolute; right: 18px; top: 10px; font-weight: 900; font-size: 46px; color: rgba(165,0,16,.08); }
.ftest h3 { font-size: 19px; margin: 0 0 8px; }
.ftest__m { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: #fff1f2; color: var(--red); font-size: 14px; }
.ftest p { color: #4a4a50; font-size: 15px; line-height: 1.55; margin: 0; }
.ftest p.ftest__m { color: var(--red); }
.forient { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 40px; padding: 34px 38px; border-radius: 20px; color: #fff;
  background: radial-gradient(circle at 100% 0, rgba(255,255,255,.14), transparent 45%), linear-gradient(135deg, #c3001a, var(--red) 55%, #7d000c); box-shadow: 0 34px 70px -36px rgba(120,0,12,.7); }
.forient h3 { font-size: 26px; margin: 6px 0 10px; color: #fff; }
.forient p { margin: 0; color: rgba(255,255,255,.9); max-width: 640px; }
.forient .btn { flex: none; }
@media (max-width: 960px) { .ftests__grid { grid-template-columns: 1fr 1fr; } .forient { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }
@media (max-width: 640px) { .ftests__grid { grid-template-columns: 1fr; } .forient h3 { font-size: 21px; } }

/* ---------- Temario ---------- */
.temario { background: radial-gradient(ellipse 60% 50% at 100% 0, rgba(165,0,16,.35), transparent 70%), radial-gradient(ellipse 50% 40% at 0 100%, rgba(165,0,16,.22), transparent 70%), #0e0e10; position: relative; overflow: hidden; }
.temario::before { content: ""; position: absolute; right: -160px; top: 120px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: url("../assets/img/logo.jpg") no-repeat center / 108% auto; opacity: .05; }
.temario > .container { position: relative; }
.tstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 26px; }
.tstats div { padding: 20px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); text-align: center; backdrop-filter: blur(4px); }
.tstats strong { display: block; font-size: 40px; font-weight: 900; line-height: 1; color: #fff; }
.tstats span { font-size: 13px; color: #b9b9c0; font-weight: 600; letter-spacing: .04em; }
.tstats div:first-child { background: var(--red); border-color: var(--red); }
.tstats div:first-child span { color: rgba(255,255,255,.9); }
.tsearch { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 6px 8px 6px 18px; border-radius: 999px; background: #fff; box-shadow: 0 20px 40px -24px rgba(0,0,0,.7); }
.tsearch svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; }
.tsearch input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; padding: 12px 0; background: none; color: var(--ink); }
.tsearch span { flex: none; font-size: 12.5px; font-weight: 800; color: #fff; background: #111114; padding: 9px 14px; border-radius: 999px; }
.blk { border-radius: 16px; background: rgba(255,255,255,.035); }
.blk summary { grid-template-columns: auto 1fr auto auto; grid-template-areas: "ic n c i" "ic t c i"; row-gap: 2px; }
.blk__ic { grid-area: ic; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(165,0,16,.25); color: #ff8088; transition: background .3s, color .3s; }
.blk__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.blk[open] .blk__ic { background: var(--red); color: #fff; }
.blk__n { grid-area: n; font-size: 11px; }
.blk__t { grid-area: t; font-size: 18px; }
.blk__c { grid-area: c; font-size: 12px; font-weight: 700; color: #b9b9c0; background: rgba(255,255,255,.07); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.blk__i { grid-area: i; border-radius: 50%; }
.blk:hover { border-color: rgba(255,255,255,.3); }
.blk li { grid-template-columns: 34px 1fr; align-items: start; padding: 8px 10px; border-radius: 10px; transition: background .2s; }
.blk li:hover { background: rgba(255,255,255,.05); }
.blk li b { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; background: rgba(255,255,255,.08); }
.blk li.hit { background: rgba(165,0,16,.3); }
.blk li[hidden], .blk[hidden] { display: none !important; }
@media (max-width: 960px) { .tstats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .blk summary { grid-template-columns: auto 1fr auto; grid-template-areas: "ic n i" "ic t i" "ic c i"; }
  .blk__c { justify-self: start; margin-top: 4px; }
  .tstats strong { font-size: 32px; }
  .tsearch span { display: none; }
}

/* ---------- Test de nivel: fondo más atractivo ---------- */
.quiz-sec { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.12), transparent 40%), radial-gradient(circle at 85% 90%, rgba(0,0,0,.35), transparent 50%), linear-gradient(140deg, #c3001a 0%, var(--red) 45%, #6e000b 100%); }
.quiz-sec::before { content: ""; position: absolute; z-index: -1; left: -140px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: url("../assets/img/logo.jpg") no-repeat center / 108% auto; mix-blend-mode: multiply; opacity: .35; }
.quiz-sec::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.5px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.quiz-sec .quiz { border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(40,0,4,.75), 0 0 0 8px rgba(255,255,255,.08); }
.quiz-feats { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.quiz-feats li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.quiz-feats li::before { content: "✓"; width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--red); font-size: 13px; font-weight: 900; }

/* ---------- Planes ---------- */
.pricing--2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 34px; }
.price__save { margin: -6px 0 16px; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.16); padding: 8px 12px; border-radius: 10px; }
.wa24 { display: flex; align-items: center; gap: 22px; max-width: 880px; margin: 50px auto 0; padding: 24px 28px; border-radius: 20px; background: #fff; border: 1px solid #e6efe9; box-shadow: 0 30px 60px -40px rgba(0,0,0,.45); }
.wa24__ic { position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 28px -12px rgba(37,211,102,.8); }
.wa24__ic svg { width: 32px; height: 32px; fill: #fff; }
.wa24__ic b { position: absolute; right: -8px; bottom: -6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; padding: 3px 7px; border-radius: 999px; border: 2px solid #fff; }
.wa24 strong { display: block; font-size: 19px; }
.wa24 p { margin: 4px 0 0; color: #4a4a50; font-size: 15px; }
.wa24 .btn { margin-left: auto; flex: none; }
@media (max-width: 960px) { .pricing--2 { grid-template-columns: 1fr; } .wa24 { flex-direction: column; text-align: center; } .wa24 .btn { margin: 0; } }

/* ---------- Contacto: WhatsApp 24 h ---------- */
.contact-list__wa { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); }
.contact-list__wa span { background: #25d366 !important; border-color: #25d366 !important; color: #fff; font-size: 13px !important; font-weight: 900; border-radius: 50%; }
.contact-list__wa strong { font-size: 15px; }
.quiz-sec .section__lead { color: rgba(255,255,255,.92); }
.quiz-sec::before { opacity: .22; left: -200px; bottom: -220px; }

/* ---------- Inicio: claves de la oposición ---------- */
.claves { background: #faf8f5; }
.claves__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.clave { position: relative; display: block; padding: 26px 22px 24px; border-radius: 18px; background: #fff; border: 1px solid #ebe5dc; text-decoration: none; color: var(--ink); overflow: hidden;
  box-shadow: 0 24px 50px -40px rgba(0,0,0,.5); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .3s; }
.clave::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--red); }
.clave:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -36px rgba(165,0,16,.55); border-color: rgba(165,0,16,.3); }
.clave__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: #fff; margin-bottom: 16px; box-shadow: 0 12px 24px -12px rgba(165,0,16,.7); transition: transform .4s; }
.clave:hover .clave__ic { transform: rotate(-8deg) scale(1.06); }
.clave__ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clave small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.clave h3 { font-size: 20px; margin: 0 0 8px; line-height: 1.25; }
.clave p { margin: 0; font-size: 15px; line-height: 1.55; color: #4a4a50; }
.clave--ok::before { background: #14853b; }
.clave--ok .clave__ic { background: #14853b; box-shadow: 0 12px 24px -12px rgba(20,133,59,.7); }
.clave--ok small { color: #14853b; }
.clave--wa::before { background: #25d366; }
.clave--wa .clave__ic { background: #25d366; box-shadow: 0 12px 24px -12px rgba(37,211,102,.8); }
.clave--wa .clave__ic svg { fill: #fff; stroke: none; }
.clave--wa small { color: #128c4a; }
@media (max-width: 1100px) { .claves__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .claves__grid { grid-template-columns: 1fr; } .clave { padding: 22px 20px; } }

/* ---------- Físicas: valoración motivadora ---------- */
.calc { overflow: hidden; }
.crow { grid-template-columns: 1.5fr 1fr 1fr 190px; row-gap: 0; }
.badge b { display: flex; align-items: center; gap: 6px; }
.badge b i { font-style: normal; font-size: 12px; }
.crow__msg { grid-column: 1 / -1; margin: 0; max-height: 0; opacity: 0; overflow: hidden; font-size: 14.5px; line-height: 1.55; color: #3b3b40;
  border-left: 4px solid transparent; border-radius: 0 10px 10px 0; transition: max-height .45s ease, opacity .35s, margin .35s, padding .35s; }
.crow.has-msg .crow__msg { max-height: 160px; opacity: 1; margin-top: 12px; padding: 10px 14px; }
.crow__msg em { display: block; margin-top: 4px; font-style: normal; font-weight: 700; color: #111114; }
.crow__msg.lv-top { background: #eaf7ef; border-left-color: #14853b; color: #1f4d2f; }
.crow__msg.lv-ok { background: #f1faf4; border-left-color: #3aa35f; color: #1f4d2f; }
.crow__msg.lv-near { background: #fff8e6; border-left-color: #d79a00; color: #5c4300; }
.crow__msg.lv-prog { background: #fff1e6; border-left-color: #d9661f; color: #6b300b; }
.crow__msg.lv-start { background: #f0f2f8; border-left-color: #4a5a8a; color: #2c3657; }

.cres { display: flex; align-items: center; gap: 26px; padding: 28px 30px !important; background: #faf8f5 !important; color: var(--ink) !important; border-top: 1px solid var(--line); }
.cres__empty { font-weight: 500; color: #4a4a50; }
.cres__empty b { color: #111114; }
.cres__ring { --c: var(--red); position: relative; width: 118px; height: 118px; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), #e7e1d8 0); transition: background .4s; }
.cres__ring span { font-size: 16px; font-weight: 700; color: #6a6a70; line-height: 1; }
.cres__ring span b { font-size: 36px; font-weight: 900; color: #111114; }
.cres__ring small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a8a90; margin-top: 4px; }
.cres__ring.r-top { --c: #14853b; } .cres__ring.r-ok { --c: #3aa35f; } .cres__ring.r-near { --c: #d79a00; } .cres__ring.r-prog { --c: #d9661f; } .cres__ring.r-start { --c: #4a5a8a; } .cres__ring.r-partial { --c: #9a9aa2; }
.cres__txt h3 { margin: 0 0 6px; font-size: 22px; }
.cres.r-top .cres__txt h3, .cres.r-ok .cres__txt h3 { color: #14853b; }
.cres.r-near .cres__txt h3 { color: #a06f00; }
.cres.r-prog .cres__txt h3 { color: #b4520f; }
.cres.r-start .cres__txt h3 { color: #3a4a7a; }
.cres__txt p { margin: 0; color: #3b3b40; font-weight: 500; line-height: 1.6; }
.cres__list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.cres__list li { font-size: 15px; font-weight: 600; color: #111114; }
.cres__list li span { display: inline-block; min-width: 150px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.cres__list li small { color: #6a6a70; font-weight: 500; }
.cres__cta { display: inline-block; margin-top: 14px; color: var(--red) !important; font-weight: 800; text-decoration: none; border-bottom: 2px solid rgba(165,0,16,.25); }
.cres__cta:hover { border-color: var(--red); }
.calc__legend { display: block !important; padding: 20px 26px 24px !important; border-top: 1px solid var(--line); }
.calc__legend > p { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.calc__legend > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.calc__legend span { display: block; padding: 12px 14px !important; border-radius: 12px !important; font-size: 13px !important; font-weight: 500 !important; line-height: 1.4; }
.calc__legend span b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 4px; }
@media (max-width: 960px) {
  .crow { grid-template-columns: 1fr 1fr; }
  .calc__legend > div { grid-template-columns: 1fr 1fr; }
  .cres { flex-direction: column; align-items: flex-start; padding: 22px 18px !important; }
  .calc__legend { padding: 18px 16px 20px !important; }
}
@media (max-width: 640px) { .calc__legend > div { grid-template-columns: 1fr; } .cres__list li span { display: block; min-width: 0; } }
.cres__list li { display: grid; grid-template-columns: 190px 1fr; align-items: baseline; gap: 10px; }
.cres__list li span { min-width: 0; }
@media (max-width: 640px) { .cres__list li { grid-template-columns: 1fr; gap: 2px; } }
.crow.has-msg .crow__msg { max-height: 420px; }

/* ---------- Físicas: página renovada ---------- */
.fmot { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(ellipse 60% 70% at 100% 0, rgba(165,0,16,.55), transparent 70%), linear-gradient(160deg, #141416, #0b0b0c); }
.fmot::before { content: ""; position: absolute; z-index: -1; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: url("../assets/img/logo.jpg") no-repeat center / 108% auto; opacity: .07; }
.fmot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; align-items: center; }
.fmot__title { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; margin: 8px 0 0; color: #fff; }
.fmot__title span { color: #ff5a66; }
.fmot__text p { color: #d9d9de; font-size: 17px; line-height: 1.75; margin: 0 0 14px; }
.fmot__text strong { color: #fff; }
.fmot__stats { grid-column: 1 / -1; list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fmot__stats li { padding: 20px 22px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.fmot__stats strong { display: block; font-size: 34px; font-weight: 900; color: #fff; line-height: 1; }
.fmot__stats span { font-size: 14px; color: #b9b9c0; }
.fmot__stats li:first-child { background: var(--red); border-color: var(--red); }
.fmot__stats li:first-child span { color: rgba(255,255,255,.9); }

.fsteps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fsteps li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: #faf8f5; border: 1px solid #ebe5dc; }
.fsteps b { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 900; }
.fsteps strong { display: block; font-size: 16px; }
.fsteps span { font-size: 14px; color: #5a5a60; line-height: 1.5; }

.cres__motto { margin-top: 12px !important; font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--red) !important; letter-spacing: .02em; }

.fletter { background: linear-gradient(180deg, #faf8f5, #f3eee6); }
.fletter__card { position: relative; max-width: 900px; margin: 0 auto; padding: 54px 58px 46px; background: #fff; border-radius: 24px; border: 1px solid #ebe5dc;
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.45); overflow: hidden; }
.fletter__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--red-2), var(--red)); }
.fletter__mark { position: absolute; right: 34px; top: -10px; font-family: var(--serif); font-size: 190px; line-height: 1; color: rgba(165,0,16,.08); }
.fletter__title { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin: 6px 0 22px; }
.fletter__body p { font-size: 17px; line-height: 1.8; color: #3b3b40; margin: 0 0 16px; }
.fletter__body strong { color: #111114; }
.fletter__sign { display: flex; flex-direction: column; gap: 2px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid #ece6dd; }
.fletter__sign strong { font-size: 16px; }
.fletter__sign span { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--red); }
.fend { padding-top: 0; background: #f3eee6; }
.fend .forient { margin-top: 0; }

@media (max-width: 960px) {
  .fmot__grid { grid-template-columns: 1fr; }
  .fsteps { grid-template-columns: 1fr; }
  .fletter__card { padding: 40px 28px 34px; }
}
@media (max-width: 640px) {
  .fmot__stats { grid-template-columns: 1fr; }
  .fletter__body p, .fmot__text p { font-size: 16px; }
  .fletter__mark { font-size: 130px; right: 16px; }
}
.fmot__title, .fletter__title { font-family: var(--serif); font-weight: 700; }

/* ---------- Acceso al campus virtual (barra superior) ---------- */
.topbar__inner { align-items: center; }
.topbar__campus { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--red); color: #fff !important;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .2s; }
.topbar__campus::before { content: ""; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.topbar__campus:hover { background: var(--red-2); }
@media (max-width: 960px) { .topbar__inner { justify-content: space-between; } }

/* =========================================================
   MÓVIL · AJUSTES 28-11-2026
   ========================================================= */
/* La web es de tema claro: evita que el modo oscuro del teléfono la recoloree */
:root { color-scheme: only light; }
html { background: #faf8f5; }
/* Textos que quedaban oscuros sobre fondo oscuro o rojo (guía) */
.gduo > div:last-child strong, .gcalc__r strong, .gfinal__r strong { color: #fff; }
/* Escudo del bloque rojo en móvil: fundido en círculo, sin bordes cuadrados */
@media (max-width: 960px) {
  .page-index .hinc {
    background:
      radial-gradient(circle at calc(100% - 60px) calc(100% - 40px), rgba(165,0,16,0) 0 120px, var(--red) 190px),
      url("../assets/img/logo.jpg") no-repeat right -110px bottom -140px / 360px auto,
      var(--red);
    background-blend-mode: normal, multiply, normal;
  }
}
/* Calculadora de físicas en móvil: casillas más claras y cómodas */
@media (max-width: 640px) {
  .crow input { border: 1.5px solid #ddd5c9; border-radius: 10px; padding: 12px 14px; background: #fff; }
  .crow input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(165,0,16,.12); }
}
/* iPhone y Android: sin desplazamiento lateral en navegadores antiguos, tamaño de letra estable y toques limpios */
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: rgba(165,0,16,.15); }
@media (max-width: 960px) { body.menu-open { overflow: hidden; } .nav { overscroll-behavior: contain; height: 100dvh; } }

/* =========================================================
   DICIEMBRE 2026 · nuevos bloques
   ========================================================= */
/* Inicio: "Invictus no es una academia" destacado */
.hnot { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; padding: 16px 18px; max-width: 620px;
  background: #fff; border: 1px solid #eadfd6; border-left: 5px solid var(--red); border-radius: 14px;
  box-shadow: 0 18px 34px -24px rgba(165,0,16,.55); }
.hnot__ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; }
.hnot__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hnot p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #2b2b30; }
.hnot strong { display: block; font-family: var(--serif); font-size: 19px; color: var(--red); margin-bottom: 3px; letter-spacing: .01em; }
.hnot b { color: #111114; }
@media (max-width: 640px) { .hnot { padding: 14px; gap: 12px; } .hnot__ic { width: 36px; height: 36px; } .hnot p { font-size: 15px; } .hnot strong { font-size: 17px; } }

/* Claves: tarjeta de convocatorias */
.clave--info::before { background: #1d4f91; }
.clave--info .clave__ic { background: #1d4f91; box-shadow: 0 12px 24px -12px rgba(29,79,145,.7); }
.clave--info small { color: #1d4f91; }

/* Las claves de Invictus */
.kinv { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 85% 10%, rgba(209,26,38,.35), transparent 45%), radial-gradient(circle at 10% 95%, rgba(165,0,16,.3), transparent 40%), #0e0e10; }
.kinv::after { content: ""; position: absolute; right: -140px; bottom: -140px; width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
  background: url("../assets/img/logo-160.jpg") center / 108% auto no-repeat; opacity: .06; }
.kinv .container { position: relative; z-index: 1; }
.kinv__eyebrow { text-align: center; margin: 0 0 14px; font-size: 12.5px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: #ff6b74; }
.kinv__title { text-align: center; margin: 0; font-family: var(--serif); font-size: clamp(34px, 5vw, 58px); line-height: 1.05; color: #fff; }
.kinv__title span { color: #ff4d58; }
.kinv__lead { text-align: center; max-width: 560px; margin: 18px auto 0; color: rgba(255,255,255,.75); font-size: 17px; }
.kinv__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 50px; }
.kinv__item { position: relative; padding: 30px 26px 28px; border-radius: 20px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, background .3s; }
.kinv__item:hover { transform: translateY(-6px); border-color: rgba(255,77,88,.55); background: linear-gradient(160deg, rgba(209,26,38,.2), rgba(255,255,255,.03)); }
.kinv__num { position: absolute; right: 22px; top: 18px; font-family: var(--serif); font-size: 30px; font-weight: 700; color: rgba(255,255,255,.12); }
.kinv__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 14px 28px -14px rgba(209,26,38,.9); }
.kinv__ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kinv__item h3 { margin: 20px 0 8px; font-size: 19px; font-weight: 800; color: #fff; }
.kinv__item p { margin: 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.6; }
.kinv__cta { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 44px; }
.kinv__cta > span { color: rgba(255,255,255,.65); font-size: 14px; font-weight: 600; }
@media (max-width: 960px) { .kinv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kinv__grid { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; } .kinv__item { padding: 24px 20px; } .kinv__lead { font-size: 16px; } .kinv__cta .btn { width: 100%; } }

/* Nuestro equipo: panel del compromiso (sustituye al vídeo) */
.epanel { position: sticky; top: 110px; overflow: hidden; border-radius: 24px; padding: 32px 30px; color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(209,26,38,.55), transparent 50%), linear-gradient(165deg, #17171a, #0b0b0c);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 14px 14px 0 var(--red); }
.epanel::after { content: ""; position: absolute; right: -110px; bottom: -110px; width: 340px; height: 340px; border-radius: 50%; pointer-events: none;
  background: url("../assets/img/logo-160.jpg") center / 108% auto no-repeat; opacity: .07; }
.epanel > * { position: relative; z-index: 1; }
.epanel__top { display: flex; gap: 18px; align-items: center; }
.epanel__logo { flex: none; width: 76px; height: 76px; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 0 0 6px rgba(209,26,38,.35); object-fit: cover; }
.epanel__k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #ff6b74; }
.epanel h3 { margin: 6px 0 0; font-family: var(--serif); font-size: 26px; line-height: 1.15; color: #fff; }
.epanel__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 26px 0 8px; }
.epanel__stats div { padding: 14px 10px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); text-align: center; }
.epanel__stats b { display: block; font-size: 26px; font-weight: 800; line-height: 1; }
.epanel__stats span { display: block; margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.3; }
.epanel__list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.epanel__list li { position: relative; padding-left: 34px; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.55; }
.epanel__list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.epanel__list strong { color: #fff; }
.epanel__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.epanel__motto { margin: 0; font-family: var(--serif); font-size: 17px; color: #ff6b74; }
.epanel__btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: #fff; color: var(--red); font-weight: 800; text-decoration: none; transition: gap .3s, transform .3s; }
.epanel__btn:hover { gap: 16px; transform: translateY(-2px); }
@media (max-width: 960px) { .epanel { position: relative; top: 0; } }
@media (max-width: 640px) { .epanel { padding: 26px 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 8px 8px 0 var(--red); } .epanel h3 { font-size: 22px; } .epanel__logo { width: 62px; height: 62px; }
  .epanel__stats b { font-size: 22px; } .epanel__btn { width: 100%; justify-content: center; } }

/* Guía: banner de inscripciones */
.gbanner { display: flex; gap: 18px; align-items: flex-start; margin: 22px 0 6px; padding: 24px 26px; border-radius: 18px; color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(255,255,255,.16), transparent 45%), linear-gradient(135deg, #c3001a, #8c000e);
  box-shadow: 0 22px 40px -22px rgba(165,0,16,.8); }
.gbanner__ic { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--red); }
.gbanner__ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gbanner small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.gbanner strong { display: block; margin: 6px 0 6px; font-family: var(--serif); font-size: 23px; line-height: 1.2; color: #fff; }
.gbanner p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.9); }
@media (max-width: 640px) { .gbanner { flex-direction: column; gap: 14px; padding: 22px 20px; } .gbanner strong { font-size: 20px; } }
/* Inicio reorganizado */
.clave--dark::before { background: #111114; }
.clave--dark .clave__ic { background: #111114; box-shadow: 0 12px 24px -12px rgba(0,0,0,.6); }
.clave--dark small { color: #111114; }
.bx__roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-right: 54px; }
.bx__roles span { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.bx__roles span:first-child { background: var(--red); border-color: var(--red); }
.page-index .hero__ctas { margin-bottom: 0; }

/* Nuestro equipo: la carrera que le espera (escalas de la Policía Local) */
.career { position: sticky; top: 110px; overflow: hidden; border-radius: 24px; padding: 30px 28px 26px; color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(209,26,38,.5), transparent 50%), linear-gradient(165deg, #17171a, #0b0b0c);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 14px 14px 0 var(--red); }
.career::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: url("../assets/img/logo-160.jpg") center / 108% auto no-repeat; opacity: .06; }
.career > * { position: relative; z-index: 1; }
.career__k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #ff6b74; }
.career__head h3 { margin: 8px 0 10px; font-family: var(--serif); font-size: 27px; line-height: 1.15; color: #fff; }
.career__head p { margin: 0; color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.55; }
.career__head strong { color: #fff; }
.career__ladder { display: grid; gap: 10px; margin-top: 22px; }
.career__tier { display: grid; grid-template-columns: 54px 1fr; column-gap: 14px; align-items: center; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 16px; font: inherit; color: #fff; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: background .3s, border-color .3s, transform .3s cubic-bezier(.2,.8,.2,1); }
.career__tier:nth-child(1) { margin: 0 38px; width: calc(100% - 76px); }
.career__tier:nth-child(2) { margin: 0 19px; width: calc(100% - 38px); }
.career__tier:hover { border-color: rgba(255,77,88,.5); transform: translateY(-2px); }
.career__grp { grid-row: span 2; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 17px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background .3s; }
.career__name small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #ff6b74; }
.career__name b { display: block; margin-top: 3px; font-size: 16.5px; }
.career__desc { grid-column: 2; display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.78);
  transition: max-height .45s ease, opacity .35s, margin .35s; }
.career__tier.is-on { background: linear-gradient(135deg, rgba(209,26,38,.38), rgba(209,26,38,.12)); border-color: rgba(255,77,88,.7); }
.career__tier.is-on .career__grp { background: var(--red); border-color: var(--red); box-shadow: 0 12px 24px -12px rgba(209,26,38,.9); }
.career__tier.is-on .career__desc { max-height: 220px; opacity: 1; margin-top: 8px; }
.career__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.career__tag { font-style: normal; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; }
.career__tag--red { background: #fff; color: var(--red); }
.career__fun { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.career__sub { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.career__fun ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.career__fun li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.career__fun svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #ff6b74; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.career__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.career__foot small { flex: 1 1 200px; font-size: 11.5px; color: rgba(255,255,255,.5); line-height: 1.4; }
.career__btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--red); font-weight: 800; font-size: 14.5px; text-decoration: none; transition: gap .3s, transform .3s; }
.career__btn:hover { gap: 16px; transform: translateY(-2px); }
@media (max-width: 960px) { .career { position: relative; top: 0; } }
@media (max-width: 640px) {
  .career { padding: 24px 18px 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 8px 8px 0 var(--red); }
  .career__head h3 { font-size: 23px; }
  .career__tier:nth-child(1), .career__tier:nth-child(2) { margin: 0; width: 100%; }
  .career__tier { grid-template-columns: 46px 1fr; padding: 12px; }
  .career__grp { width: 46px; height: 46px; font-size: 15px; }
  .career__fun ul { grid-template-columns: 1fr; }
  .career__btn { width: 100%; justify-content: center; }
}

/* Nuestro equipo: el consejo de su equipo */
.advice { position: sticky; top: 110px; overflow: hidden; border-radius: 24px; padding: 30px 30px 26px; background: #fff;
  border: 1px solid #ece4da; box-shadow: 0 34px 70px -38px rgba(17,17,20,.45); }
.advice::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--red), #ff4d58, var(--red)); }
.advice::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; pointer-events: none;
  background: url("../assets/img/logo-160.jpg") center / 108% auto no-repeat; opacity: .05; }
.advice > * { position: relative; z-index: 1; }
.advice__head { display: flex; align-items: flex-start; justify-content: space-between; }
.advice__k { font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--red); padding-top: 8px; }
.advice__q { font-family: var(--serif); font-size: 110px; line-height: .7; color: var(--red); opacity: .14; margin-right: -6px; }
.advice__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.advice__tab { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 16px; cursor: pointer; font: inherit;
  background: #faf7f3; border: 1px solid #eee6dc; color: #4a4a50; transition: background .3s, border-color .3s, color .3s, transform .3s; }
.advice__tab:hover { transform: translateY(-2px); border-color: rgba(165,0,16,.35); }
.advice__tab.is-on { background: #111114; border-color: #111114; color: #fff; }
.advice__tn { font-size: 12.5px; font-weight: 800; line-height: 1.2; text-align: center; }
.advice__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--red); box-shadow: 0 8px 18px -10px rgba(0,0,0,.35); transition: background .3s, color .3s; }
.advice__tab.is-on .advice__av { background: var(--red); color: #fff; }
.advice__av svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.advice__stage { display: grid; margin-top: 24px; }
.advice__slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1), visibility 0s .5s; }
.advice__slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.advice__slide blockquote { margin: 0; font-family: var(--serif); font-size: 25px; line-height: 1.35; color: #111114; letter-spacing: .005em; }
.advice__slide figcaption { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.advice__av--lg { width: 50px; height: 50px; background: var(--red); color: #fff; }
.advice__av--lg svg { width: 24px; height: 24px; }
.advice__slide figcaption b { display: block; font-size: 16px; color: #111114; }
.advice__slide figcaption small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--gray); }
.advice__work { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed #e4dbd0; }
.advice__work span { width: 100%; font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); }
.advice__work em { font-style: normal; font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: #fdecee; color: var(--red); }
.advice__bar { height: 3px; margin-top: 24px; border-radius: 3px; background: #f0e9e1; overflow: hidden; }
.advice__bar i { display: block; height: 100%; width: 0; background: var(--red); }
.advice.run .advice__bar i { animation: adviceBar 8s linear forwards; }
.advice.paused .advice__bar i { animation-play-state: paused; }
@keyframes adviceBar { to { width: 100%; } }
.advice__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.advice__foot p { margin: 0; font-family: var(--serif); font-size: 17px; color: var(--red); }
.advice__btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 800; font-size: 14.5px; text-decoration: none;
  box-shadow: 0 14px 26px -14px rgba(165,0,16,.8); transition: gap .3s, transform .3s; }
.advice__btn:hover { gap: 16px; transform: translateY(-2px); }
@media (max-width: 960px) { .advice { position: relative; top: 0; } }
@media (max-width: 640px) {
  .advice { padding: 26px 18px 22px; }
  .advice__q { font-size: 84px; }
  .advice__tab { padding: 10px 4px; }
  .advice__tn { font-size: 11.5px; }
  .advice__slide blockquote { font-size: 21px; }
  .advice__btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .advice__bar { display: none; } }
.advice__slide blockquote { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 24px; line-height: 1.45; color: #1a1a1e; }
@media (max-width: 640px) { .advice__slide blockquote { font-size: 20px; } }

/* =========================================================
   CONTACTO · nuevo diseño
   ========================================================= */
.ct { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 0% 0%, rgba(209,26,38,.45), transparent 42%), radial-gradient(circle at 100% 100%, rgba(165,0,16,.35), transparent 45%), #0e0e10; }
.ct::before { content: ""; position: absolute; left: -160px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: url("../assets/img/logo-160.jpg") center / 108% auto no-repeat; opacity: .05; }
.ct__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.ct__eyebrow { margin: 0 0 14px; font-size: 12.5px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: #ff6b74; }
.ct__title { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; color: #fff; }
.ct__title span { color: #ff4d58; }
.ct__lead { margin: 18px 0 0; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.6; max-width: 460px; }
.ct__wa { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 32px; padding: 20px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(37,211,102,.16), rgba(255,255,255,.04)); border: 1px solid rgba(37,211,102,.35); }
.ct__wa-ic { position: relative; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: #25d366; box-shadow: 0 14px 28px -14px rgba(37,211,102,.9); }
.ct__wa-ic svg { width: 30px; height: 30px; fill: #fff; }
.ct__wa-ic b { position: absolute; right: -8px; top: -8px; padding: 3px 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; }
.ct__wa small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #6ee7a0; }
.ct__phone { display: inline-block; margin-top: 4px; font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; }
.ct__wa p { margin: 2px 0 0; font-size: 14px; color: rgba(255,255,255,.7); }
.ct__wa-btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; padding: 13px 18px; border-radius: 999px; background: #25d366; color: #0b3d1f; font-weight: 800; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.ct__wa-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(37,211,102,.9); }
.ct__steps { margin-top: 28px; }
.ct__steps-t { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ct__steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.ct__steps li { position: relative; display: flex; gap: 16px; padding-bottom: 18px; }
.ct__steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: linear-gradient(rgba(255,77,88,.6), rgba(255,255,255,.08)); }
.ct__steps b { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red); font-size: 14px; box-shadow: 0 0 0 5px rgba(209,26,38,.18); }
.ct__steps strong { display: block; font-size: 15.5px; }
.ct__steps span { display: block; font-size: 14px; color: rgba(255,255,255,.65); margin-top: 2px; }

/* Formulario por pasos */
.cf { --cfp: 0%; position: relative; background: #fff; color: var(--ink); border-radius: 26px; padding: 30px 30px 24px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
.cf::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 26px 26px 0 0; background: linear-gradient(90deg, var(--red), #ff4d58); }
.cf__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cf__head h2 { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.15; color: #111114; }
.cf__head p { margin: 6px 0 0; color: var(--gray); font-size: 14.5px; }
.cf__count { flex: none; font-size: 14px; font-weight: 700; color: var(--gray); padding: 8px 12px; border-radius: 999px; background: #f6f1eb; }
.cf__count b { color: var(--red); font-size: 18px; }
.cf__prog { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 24px; padding: 0; position: relative; }
.cf__prog::before, .cf__prog::after { content: ""; position: absolute; top: 15px; left: 16.66%; right: 16.66%; height: 3px; border-radius: 3px; background: #efe8df; }
.cf__prog::after { right: auto; width: calc(var(--cfp) * .6668); background: var(--red); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.cf__prog li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cf__prog i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 800; background: #fff; color: #9a948c; border: 2px solid #e6ded4; transition: all .35s; }
.cf__prog span { font-size: 12.5px; font-weight: 700; color: #9a948c; transition: color .3s; }
.cf__prog li.is-on i, .cf__prog li.is-done i { background: var(--red); border-color: var(--red); color: #fff; }
.cf__prog li.is-on i { box-shadow: 0 0 0 6px rgba(165,0,16,.14); }
.cf__prog li.is-on span, .cf__prog li.is-done span { color: #111114; }
.cf__step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.cf__step.is-on { display: grid; gap: 16px; animation: cfIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes cfIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.cf .pf label { font-size: 14px; font-weight: 700; color: #2b2b30; margin-bottom: 7px; }
.cf .pf label em { font-style: normal; font-weight: 500; color: var(--gray); }
.cf .pf input, .cf .pf select, .cf .pf textarea { width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: #111114; background: #faf8f5; border: 1.5px solid #e6ded4; border-radius: 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.cf .pf input:focus, .cf .pf select:focus, .cf .pf textarea:focus { border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(165,0,16,.1); }
.cf .pf__prefix span { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid #e6ded4; border-right: 0; border-radius: 14px 0 0 14px; background: #f1ebe3; font-weight: 700; color: #4a4a50; }
.cf .pf__prefix input { border-radius: 0 14px 14px 0; }
.cf .pf.good input, .cf .pf.good select { border-color: #1f9d55; background: #fff; }
.cf .pf.bad input, .cf .pf.bad select { border-color: var(--red); background: #fff6f7; }
.cf .pf__count { align-self: flex-end; margin-top: 4px; font-size: 12px; color: var(--gray); }
.cf__q { margin: 4px 0 -4px; font-size: 14px; font-weight: 800; color: #2b2b30; }
.cf__q em { font-style: normal; font-weight: 500; color: var(--gray); margin-left: 6px; }
.cf__cards, .cf__plans { display: grid; gap: 10px; }
.cf__plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cf__cards label, .cf__plans label, .cf__chips label { position: relative; cursor: pointer; }
.cf__cards input, .cf__plans input, .cf__chips input { position: absolute; opacity: 0; pointer-events: none; }
.cf__cards span, .cf__plans span { display: block; padding: 14px 16px 14px 48px; border-radius: 14px; border: 1.5px solid #e6ded4; background: #faf8f5; transition: all .25s; position: relative; }
.cf__cards span::before, .cf__plans span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid #cfc6ba; background: #fff; transition: all .25s; }
.cf__cards b, .cf__plans b { display: block; font-size: 15px; color: #111114; }
.cf__cards small, .cf__plans small { display: block; font-size: 13px; color: var(--gray); margin-top: 2px; }
.cf__plans span { padding: 14px 12px 14px 42px; }
.cf__plans span::before { left: 12px; }
.cf__plans b i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--gray); }
.cf__cards input:checked + span, .cf__plans input:checked + span { border-color: var(--red); background: #fff5f6; box-shadow: 0 10px 22px -16px rgba(165,0,16,.7); }
.cf__cards input:checked + span::before, .cf__plans input:checked + span::before { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 4px #fff; }
.cf__cards input:focus-visible + span, .cf__plans input:focus-visible + span, .cf__chips input:focus-visible + span { outline: 3px solid rgba(165,0,16,.35); outline-offset: 2px; }
.cf__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf__chips span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid #e6ded4; background: #faf8f5; font-size: 14px; font-weight: 700; color: #2b2b30; transition: all .25s; }
.cf__chips span::before { content: "+"; font-weight: 800; color: var(--red); }
.cf__chips input:checked + span { background: #111114; border-color: #111114; color: #fff; }
.cf__chips input:checked + span::before { content: "✓"; color: #ff6b74; }
.cf__chips--one span::before { content: none; }
.cf__chips--one input:checked + span { background: var(--red); border-color: var(--red); }
.cf__sum { border-radius: 16px; background: #f8f4ef; padding: 16px 18px; }
.cf__sum-t { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.cf__sum dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.cf__sum dt { color: var(--gray); }
.cf__sum dd { margin: 0; font-weight: 700; color: #111114; }
.cf .pcheck { margin-top: 0; }
.cf.bad-check .pf__err--check { display: block; }
.cf__nav { display: flex; gap: 10px; margin-top: 22px; }
.cf__nav [hidden] { display: none !important; }
.cf__back { padding: 15px 20px; border-radius: 999px; border: 1.5px solid #e6ded4; background: #fff; font: inherit; font-weight: 700; color: #4a4a50; cursor: pointer; transition: border-color .2s; }
.cf__back:hover { border-color: #111114; }
.cf__next, .cf__send { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 22px; border: 0; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.cf__next { background: var(--red); color: #fff; box-shadow: 0 16px 30px -16px rgba(165,0,16,.9); }
.cf__send { background: #25d366; color: #fff; box-shadow: 0 16px 30px -16px rgba(37,211,102,.9); }
.cf__send svg { width: 22px; height: 22px; fill: #fff; }
.cf__next:hover, .cf__send:hover { transform: translateY(-2px); }
@media (max-width: 960px) { .ct__grid { grid-template-columns: 1fr; gap: 40px; } .ct__info { order: 2; } .cf { order: 1; } }
@media (max-width: 640px) {
  .cf { padding: 24px 18px 20px; border-radius: 22px; }
  .cf__head h2 { font-size: 22px; }
  .cf__plans { grid-template-columns: 1fr; }
  .cf__prog span { font-size: 11.5px; }
  .ct__phone { font-size: 20px; }
  .ct__wa { padding: 16px; }
}

/* Pantalla de bienvenida */
body.welcome-open { overflow: hidden; }
.welcome { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: rgba(8,8,9,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.welcome.on { opacity: 1; }
.welcome__card { position: relative; width: min(520px, 100%); padding: 40px 34px 30px; border-radius: 28px; text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(209,26,38,.55), transparent 55%), linear-gradient(170deg, #17171a, #0b0b0c);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); transform: translateY(24px) scale(.96); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.welcome.on .welcome__card { transform: none; }
.welcome__card::before, .welcome__card::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 2px; background: #ff4d58; top: -10px; left: 20%;
  box-shadow: 60px 20px 0 #fff, 140px -6px 0 #ff4d58, 210px 30px 0 #fff, 280px 8px 0 #c3001a, 340px 26px 0 #fff, 30px 50px 0 #c3001a, 250px 60px 0 #ff6b74; opacity: 0; }
.welcome.on .welcome__card::before { animation: wfall 2.6s ease-in .3s forwards; }
.welcome.on .welcome__card::after { left: 8%; animation: wfall 3s ease-in .6s forwards; }
@keyframes wfall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(420px) rotate(260deg); } }
.welcome__seal { position: relative; width: 128px; height: 128px; margin: 0 auto 18px; display: grid; place-items: center; }
.welcome__seal img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; transform: scale(.6); opacity: 0; transition: transform .7s cubic-bezier(.2,1.4,.3,1) .25s, opacity .4s .25s; }
.welcome.on .welcome__seal img { transform: none; opacity: 1; }
.welcome__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.welcome__ring circle { fill: none; stroke: #ff4d58; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; }
.welcome.on .welcome__ring circle { animation: wring 1.1s cubic-bezier(.6,0,.2,1) .35s forwards; }
@keyframes wring { to { stroke-dashoffset: 0; } }
.welcome__check { position: absolute; right: 4px; bottom: 6px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #25d366; border: 3px solid #111114; transform: scale(0); transition: transform .5s cubic-bezier(.2,1.6,.3,1) 1.2s; }
.welcome.on .welcome__check { transform: scale(1); }
.welcome__check svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.welcome__k { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: #6ee7a0; }
.welcome h3 { margin: 10px 0 0; font-family: var(--serif); font-size: clamp(24px, 4vw, 30px); line-height: 1.2; color: #fff; }
.welcome__lead { margin: 14px auto 0; max-width: 420px; color: rgba(255,255,255,.78); font-size: 15.5px; line-height: 1.6; }
.welcome__lead strong { color: #fff; }
.welcome__next { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.welcome__next li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 14px; background: rgba(255,255,255,.06); font-size: 12.5px; font-weight: 700; line-height: 1.3; color: rgba(255,255,255,.85); }
.welcome__next b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 13px; }
.welcome__motto { margin: 20px 0 0; font-family: var(--serif); font-size: 18px; color: #ff6b74; }
.welcome__actions { display: grid; gap: 10px; margin-top: 20px; }
.welcome__actions .cf__send { width: 100%; }
.welcome__close { padding: 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.welcome__close:hover { background: rgba(255,255,255,.08); }
@media (max-width: 640px) { .welcome__card { padding: 32px 20px 22px; } .welcome__next li { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .welcome__card::before, .welcome__card::after { display: none; } }
.cf .pf input, .cf .pf select { height: 54px; padding: 0 16px; }
.cf .pf input, .cf .pf select, .cf .pf textarea { background-color: #faf8f5; }
.cf .pf select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a50010' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.cf .pf textarea { height: auto; padding: 14px 16px; }
.cf .pf input:focus, .cf .pf select:focus, .cf .pf textarea:focus, .cf .pf.good input, .cf .pf.good select { background-color: #fff; }
.cf .pf.bad input, .cf .pf.bad select { background-color: #fff6f7; }
/* Bienvenida: botón principal de envío destacado */
.welcome__actions .cf__send { padding: 18px 22px; font-size: 17px; animation: wpulse 2.2s ease-out 1.6s infinite; }
@keyframes wpulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .welcome__actions .cf__send { animation: none; } }

/* =========================================================
   PÁGINAS DE PROVINCIA
   ========================================================= */
.pv-hero { position: relative; overflow: hidden; color: #fff; padding: 70px 0 110px;
  background: radial-gradient(circle at 85% 30%, rgba(255,255,255,.14), transparent 40%), linear-gradient(135deg, #c3001a, #8c000e 60%, #5e0009); }
.pv-hero::before { content: ""; position: absolute; left: -140px; bottom: -160px; width: 480px; height: 480px; border-radius: 50%; pointer-events: none;
  background: url("../assets/img/logo-160.jpg") center / 108% auto no-repeat; opacity: .07; mix-blend-mode: luminosity; }
.pv-hero .greca--bottom { position: absolute; left: 0; right: 0; bottom: 0; }
.pv-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 50px; align-items: center; }
.pv-hero .phero__crumb, .pv-hero .phero__crumb a { color: rgba(255,255,255,.8); }
.pv-hero__k { margin: 18px 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.pv-hero__title { margin: 0; font-family: var(--serif); font-size: clamp(40px, 6vw, 76px); line-height: 1; color: #fff; }
.pv-hero__title span { color: #fff; -webkit-text-stroke: 0; text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.pv-hero__lead { margin: 20px 0 0; max-width: 560px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.88); }
.pv-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pv-seal { position: relative; justify-self: center; width: min(320px, 80vw); aspect-ratio: 1; }
.pv-seal__tile { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 28px; border: 5px solid #111114; overflow: hidden;
  background: var(--azulejo) center / 25% 25%; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); transform: rotate(-4deg); animation: pvFloat 7s ease-in-out infinite; }
.pv-seal__in { width: 70%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--cal); box-shadow: 0 0 0 5px var(--cobalto), 0 0 0 11px #fff; color: #111114; }
.pv-seal__in b { font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); }
.pv-seal__in i { font-style: normal; font-size: 14px; color: var(--gray); margin-top: 4px; }
.pv-seal__badge { position: absolute; right: -14px; bottom: -14px; width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: #111114; color: #fff; font-size: 30px; font-weight: 800; line-height: 1; border: 4px solid #fff; box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); }
.pv-seal__badge small { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }
@keyframes pvFloat { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-10px); } }
.pv-stats { background: #0e0e10; color: #fff; }
.pv-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pv-stats__grid div { padding: 30px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.pv-stats__grid div:last-child { border-right: 0; }
.pv-stats b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: #ff4d58; }
.pv-stats span { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.pv-intro__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 50px; align-items: center; }
.pv-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pv-card { position: relative; padding: 26px 22px; border-radius: 18px; background: #fff; border: 1px solid #ebe5dc; box-shadow: 0 20px 40px -30px rgba(0,0,0,.4); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.pv-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(165,0,16,.45); }
.pv-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 18px 18px 0 0; background: var(--red); }
.pv-card__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fdecee; color: var(--red); }
.pv-card__ic svg, .pv-help__ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-card small { display: block; margin-top: 18px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.pv-card h3 { margin: 6px 0 8px; font-size: 18px; line-height: 1.3; }
.pv-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--gray); }
.pv-help { display: flex; gap: 18px; align-items: center; margin-top: 26px; padding: 22px 24px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #c3001a, #8c000e); box-shadow: 0 22px 40px -22px rgba(165,0,16,.8); }
.pv-help__ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--red); }
.pv-help strong { display: block; font-family: var(--serif); font-size: 21px; }
.pv-help p { margin: 4px 0 0; color: rgba(255,255,255,.88); font-size: 15px; }
.pv-map__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 50px; align-items: start; }
.pv-towns { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pv-towns li { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; background: #faf7f3; border: 1px solid #eee6dc; font-weight: 700; font-size: 15px; transition: background .25s, border-color .25s, transform .25s; }
.pv-towns li:hover { background: #fff; border-color: rgba(165,0,16,.4); transform: translateX(4px); }
.pv-towns svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-zones { padding: 28px 26px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(209,26,38,.5), transparent 55%), linear-gradient(165deg, #17171a, #0b0b0c); box-shadow: 14px 14px 0 var(--red); }
.pv-zones__t { margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #ff6b74; }
.pv-zones ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pv-zones li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 16px; font-weight: 600; }
.pv-zones li:last-child { border-bottom: 0; }
.pv-zones li span { font-family: var(--serif); font-size: 15px; color: #ff4d58; min-width: 24px; }
.pv-tiles { max-width: 760px; margin: 36px auto 0; }
a.tile { color: var(--ink); text-decoration: none; }
a.tile i { max-height: 20px; }
.tile.is-here { outline: 4px solid var(--red); outline-offset: 3px; }
@media (max-width: 960px) {
  .pv-hero__grid, .pv-intro__grid, .pv-map__grid { grid-template-columns: 1fr; gap: 36px; }
  .pv-seal { width: min(260px, 70vw); }
  .pv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-stats__grid div:nth-child(2) { border-right: 0; }
  .pv-stats__grid div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 640px) {
  .pv-hero { padding: 40px 0 90px; }
  .pv-hero__lead { font-size: 16px; }
  .pv-hero__ctas .btn { flex: 1 1 100%; }
  .pv-seal__badge { width: 86px; height: 86px; font-size: 24px; right: -6px; bottom: -6px; }
  .pv-cards { grid-template-columns: 1fr; }
  .pv-towns { grid-template-columns: 1fr; }
  .pv-help { flex-direction: column; align-items: flex-start; }
  .pv-zones { box-shadow: 8px 8px 0 var(--red); }
}
@media (prefers-reduced-motion: reduce) { .pv-seal__tile { animation: none; } }
/* Pie: enlaces a provincias */
.footer__provs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 22px; padding-bottom: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.footer__provs span { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-right: 6px; }
.footer__provs a { font-size: 13.5px; color: #cfcfd4; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.footer__provs a:hover { background: var(--red); border-color: var(--red); color: #fff; }
