/* ==========================================================================
   Innovate Academy Castellón — sistema de diseño
   HTML/CSS vanilla · sin dependencias · light only
   ========================================================================== */

/* ---------- Fuentes autoalojadas ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans-italic.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --navy: #142457;
  --navy-deep: #0c1734;
  --navy-soft: #24356e;
  --ink: #232941;
  --ink-soft: #4d5470;
  --paper: #fbf8f2;
  --paper-2: #f4efe4;
  --paper-3: #ede6d7;
  --white: #fff;

  --blue: #3f7fca;
  --sky: #2e9fc6;
  --orange: #ef8f1c;
  --green: #62a447;
  --pink: #d33f74;
  --yellow: #f6c445;
  --line: #e3dbc9;

  --font-display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --pop: 0.35rem 0.35rem 0 rgba(20, 36, 87, .13);
  --pop-lg: 0.6rem 0.6rem 0 rgba(20, 36, 87, .12);
  --soft: 0 1px 2px rgba(20,36,87,.05), 0 12px 34px -12px rgba(20,36,87,.18);
  --maxw: 76rem;
  --gap: clamp(1.1rem, 2.4vw, 1.9rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.06;
  color: var(--navy);
  letter-spacing: -.015em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.24rem; }
p { text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.narrow { max-width: 46rem; }
.center { text-align: center; margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0;
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Utilidades de marca ---------- */
.hl { position: relative; display: inline-block; padding-bottom: .18em; margin-bottom: -.18em; }
.hl > svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: .3em; }

.tag-pill {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: .8rem; letter-spacing: .05em; text-transform: uppercase;
  padding: .32rem .9rem; border-radius: 99px; border: 2px solid currentColor;
  background: #fff;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: .84rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--pink);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 3px; background: currentColor; border-radius: 2px; }
.eyebrow.c { justify-content: center; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .84rem; font-weight: 600; line-height: 1.3;
  padding: .34rem .75rem; border-radius: 99px; white-space: nowrap;
  background: var(--paper-2); color: var(--navy); border: 1px solid var(--line);
}
.chip svg { width: 1rem; height: 1rem; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; border-radius: 99px; padding: .82rem 1.6rem;
  border: 2.5px solid var(--navy); background: #fff; color: var(--navy);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn-solid { background: var(--navy); color: #fff; box-shadow: var(--pop); }
.btn-orange { background: var(--orange); color: var(--navy); box-shadow: var(--pop); }
.btn-white { background: #fff; color: var(--navy); box-shadow: var(--pop); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-solid:hover, .btn-orange:hover, .btn-white:hover { transform: translate(-2px, -2px); box-shadow: .55rem .55rem 0 rgba(20,36,87,.15); }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; border-width: 2px; }
.btn .arr { transition: transform .16s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-wa { background: #25d366; color: #06331a; border-color: #0f3b23; box-shadow: var(--pop); }
.btn-wa:hover { transform: translate(-2px,-2px); box-shadow: .55rem .55rem 0 rgba(20,36,87,.15); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.topline {
  background: var(--navy); color: #dfe6f7; font-size: .84rem;
  padding: .45rem 0;
}
.topline .wrap { display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.topline a { text-decoration: none; font-weight: 600; }
.topline a:hover { color: var(--yellow); }
.topline .tl-items { display: flex; gap: 1.3rem; flex-wrap: wrap; align-items: center; }
.topline .tl-items span, .topline .tl-items a { display: inline-flex; align-items: center; gap: .4rem; }
.topline svg { width: 1rem; height: 1rem; flex: none; }
@media (max-width: 48rem) {
  .topline .wrap { justify-content: center; }
  .topline .tl-items:first-child { display: none; }
  .topline .tl-items { gap: 1rem; font-size: .82rem; }
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
/* El desenfoque va en un pseudoelemento: si se aplicase al propio header,
   este pasaría a ser el bloque contenedor del menú móvil `position: fixed`. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251,248,242,.92);
  backdrop-filter: blur(10px);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(20,36,87,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: block; flex: none; text-decoration: none; }
.brand img { width: clamp(9.5rem, 17vw, 12.5rem); height: auto; }

.main-nav > ul { display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.5rem); }
.main-nav a {
  text-decoration: none; font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; color: var(--navy); padding: .35rem 0; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.15rem; height: 3px;
  background: var(--orange); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta a::after { display: none; }

.nav-toggle {
  display: none; width: 2.9rem; height: 2.9rem; border: 2.5px solid var(--navy);
  border-radius: 12px; background: #fff; position: relative; flex: none;
}
.nav-toggle span {
  display: block; width: 1.15rem; height: 2.5px; background: var(--navy); border-radius: 2px;
  margin: .22rem auto; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(.44rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.44rem) rotate(-45deg); }

@media (max-width: 62rem) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(21rem, 88vw);
    background: var(--paper); padding: 6rem 1.8rem 2rem;
    transform: translateX(100%); transition: transform .28s ease;
    box-shadow: -20px 0 50px -25px rgba(20,36,87,.5); overflow-y: auto;
  }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .main-nav a { display: block; font-size: 1.25rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-cta { margin-top: 1.4rem; }
  .nav-cta a { text-align: center; border-bottom: 0; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(12,23,52,.45); opacity: 0; pointer-events: none;
    transition: opacity .28s ease; z-index: 99;
  }
  .nav-backdrop.on { opacity: 1; pointer-events: auto; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(3.4rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2.4rem, 4.5vw, 3.6rem); }
.section-alt { background: var(--paper-2); }
.section-navy { background: var(--navy); color: #e7ecfa; position: relative; overflow: hidden; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #c3cded; }
.section-navy::after {
  content: ""; position: absolute; width: 34rem; height: 34rem; right: -12rem; top: -14rem;
  background: radial-gradient(circle, rgba(63,127,202,.4), transparent 68%); pointer-events: none;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.c { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: .9rem; }
.section-navy .section-head p { color: #b9c5e8; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.6rem, 5.5vw, 5rem) clamp(2.4rem, 5vw, 4rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem;
  right: -16rem; top: -20rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,154,46,.16), transparent 65%);
}
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center;
}
.hero h1 { margin-block: .9rem 1.1rem; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.24rem); color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.7rem; }
.hero-meta .item { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; color: var(--navy); }
.hero-meta .dot { width: .6rem; height: .6rem; border-radius: 50%; flex: none; }

.hero-art { position: relative; }
.hero-art .photo {
  border-radius: var(--r-xl); overflow: hidden; border: 3px solid var(--navy);
  box-shadow: var(--pop-lg); background: #fff; rotate: -1.4deg;
}
.hero-art .photo img { width: 100%; height: auto; }
.hero-art .mini {
  position: absolute; width: 44%; right: -1.2rem; bottom: -2.2rem;
  border-radius: var(--r-lg); overflow: hidden; border: 3px solid var(--navy);
  box-shadow: var(--pop); background: #fff; rotate: 3deg;
}
.badge-float {
  position: absolute; z-index: 2; background: #fff; border: 2.5px solid var(--navy);
  border-radius: 99px; padding: .5rem 1rem; font-family: var(--font-display);
  font-weight: 700; font-size: .88rem; color: var(--navy); box-shadow: var(--pop);
  display: inline-flex; align-items: center; gap: .45rem;
}
.badge-float svg { width: 1.05rem; height: 1.05rem; }
.badge-float.b1 { top: -1rem; left: -1rem; background: var(--yellow); rotate: -4deg; }
.badge-float.b2 { top: 38%; right: -1.1rem; background: var(--pink); color: #fff; rotate: 4deg; }
.badge-float.b2 svg { stroke: #fff; }

@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { margin-top: 1rem; max-width: 34rem; }
  .hero-art .mini { display: none; }
}

/* ---------- Barra de datos ---------- */
.factbar { background: var(--navy); color: #fff; }
.factbar ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.6rem; }
.factbar li { text-align: center; padding-inline: .5rem; }
.factbar strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--yellow); line-height: 1.1;
}
.factbar span { font-size: .9rem; color: #c3cded; }
@media (max-width: 48rem) { .factbar ul { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; } }

/* ---------- Marquesina ---------- */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding-block: .8rem; border-block: 3px solid var(--navy); }
.marquee-track {
  display: inline-flex; white-space: nowrap; animation: slide 34s linear infinite;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; font-size: .95rem;
}
.marquee .star { color: var(--yellow); margin-inline: .9rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Tarjetas de curso ---------- */
.courses-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
}
.course-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 2.5px solid var(--navy); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--pop); transition: transform .18s ease, box-shadow .18s ease;
}
.course-card:hover { transform: translate(-3px, -3px); box-shadow: .65rem .65rem 0 rgba(20,36,87,.14); }
.course-card .thumb {
  position: relative; flex: none; background: color-mix(in srgb, var(--cc) 14%, #fff);
  border-bottom: 2.5px solid var(--navy); padding: 1.1rem 1.1rem 0;
}
.course-card .thumb img { width: 100%; height: auto; mix-blend-mode: multiply; }
.course-card .age {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--cc);
  padding: .28rem .7rem; border-radius: 99px; border: 2px solid var(--navy);
}
.course-card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; gap: .55rem; }
.course-card h3 { font-size: 1.3rem; }
.course-card p { color: var(--ink-soft); font-size: .97rem; }
.course-card .when {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .87rem;
  font-weight: 600; color: var(--navy); margin-top: .1rem;
}
.course-card .when svg { width: 1rem; height: 1rem; flex: none; }
.course-card .go {
  margin-top: auto; padding-top: .8rem; font-family: var(--font-display); font-weight: 700;
  color: var(--navy); display: inline-flex; align-items: center; gap: .4rem;
}
.course-card:hover .arr { transform: translateX(4px); }
.course-card .arr { transition: transform .16s ease; }

/* ---------- Lista de valores ---------- */
.value-list { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.value-list li { display: flex; gap: .95rem; }
.value-list .ic {
  flex: none; width: 2.9rem; height: 2.9rem; border-radius: 14px; background: var(--vc);
  display: grid; place-items: center; border: 2.5px solid var(--navy);
}
.value-list .ic svg { width: 1.5rem; height: 1.5rem; stroke: var(--navy); }
.value-list h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.value-list p { font-size: .96rem; color: var(--ink-soft); }
.section-navy .value-list p { color: #b9c5e8; }

/* ---------- Pasos numerados ---------- */
.steps { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: s; }
.step {
  background: #fff; border: 2.5px solid var(--navy); border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem; box-shadow: var(--pop); position: relative;
}
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1;
  color: var(--orange); display: block; margin-bottom: .6rem;
}
.step h3 { font-size: 1.14rem; margin-bottom: .4rem; }
.step p { font-size: .96rem; color: var(--ink-soft); }

/* ---------- Split imagen + texto ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: center; }
.split.rev > .media { order: 2; }
.split .media img {
  width: 100%; border-radius: var(--r-xl); border: 3px solid var(--navy); box-shadow: var(--pop-lg);
}
.split ul.ticks { margin-top: 1.4rem; display: grid; gap: .7rem; }
.split ul.ticks li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; }
.split ul.ticks svg { width: 1.35rem; height: 1.35rem; flex: none; margin-top: .18rem; stroke: var(--green); }
@media (max-width: 58rem) {
  .split { grid-template-columns: 1fr; }
  .split.rev > .media { order: 0; }
}

/* ---------- Bloques de contenido de curso ---------- */
.blocks { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.block-card {
  background: #fff; border: 2.5px solid var(--navy); border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem; box-shadow: var(--pop);
}
.block-card .n {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .76rem;
  letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--cc);
  padding: .22rem .6rem; border-radius: 99px; margin-bottom: .8rem;
}
.block-card h3 { font-size: 1.14rem; margin-bottom: .45rem; }
.block-card p { font-size: .96rem; color: var(--ink-soft); }

/* ---------- Hero de curso ---------- */
.course-hero { padding-block: clamp(1.4rem, 3vw, 2.6rem) clamp(2.4rem, 5vw, 4rem); }
.course-hero .grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.course-hero h1 { margin-block: .8rem .9rem; }
.course-hero .lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-soft); }
.course-hero .art {
  border-radius: var(--r-xl); border: 3px solid var(--navy); box-shadow: var(--pop-lg);
  background: color-mix(in srgb, var(--cc) 13%, #fff); padding: 1.2rem; overflow: hidden;
}
.course-hero .art img { width: 100%; mix-blend-mode: multiply; }
.course-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
@media (max-width: 58rem) { .course-hero .grid { grid-template-columns: 1fr; } }

/* ---------- Horario ---------- */
.timetable-wrap { overflow-x: auto; border: 2.5px solid var(--navy); border-radius: var(--r-lg); background: #fff; box-shadow: var(--pop); }
.timetable { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: .95rem; }
.timetable caption { text-align: left; padding: 1rem 1.2rem; font-family: var(--font-display); font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--line); }
.timetable th, .timetable td { padding: .8rem .7rem; text-align: center; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.timetable thead th { font-family: var(--font-display); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; background: var(--paper-2); color: var(--navy); }
.timetable tbody th { font-weight: 700; background: var(--paper-2); color: var(--navy); white-space: nowrap; font-size: .88rem; }
.timetable td.on { background: color-mix(in srgb, var(--tc) 20%, #fff); font-weight: 700; color: var(--navy); }
.timetable tr:last-child th, .timetable tr:last-child td { border-bottom: 0; }
.timetable th:last-child, .timetable td:last-child { border-right: 0; }

.course-nav { display: flex; flex-wrap: wrap; gap: .7rem; }
.course-nav a {
  text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: .6rem 1.15rem; border-radius: 99px; border: 2.5px solid var(--navy); background: #fff; color: var(--navy);
}
.course-nav a:hover { background: var(--navy); color: #fff; }
.course-nav a[aria-current="page"] { background: var(--orange); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 52rem; }
.faq details {
  background: #fff; border: 2.5px solid var(--navy); border-radius: var(--r);
  box-shadow: var(--pop); overflow: hidden;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.3rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; line-height: 1; color: var(--orange); flex: none; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 1.3rem 1.2rem; }
.faq .a p { color: var(--ink-soft); }
.faq .a p + p { margin-top: .7rem; }

/* ---------- Blog ---------- */
.posts-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); }
.post-card {
  display: flex; flex-direction: column; text-decoration: none; background: #fff;
  border: 2.5px solid var(--navy); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--pop); transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translate(-3px,-3px); box-shadow: .65rem .65rem 0 rgba(20,36,87,.14); }
.post-card figure { margin: 0; flex: none; border-bottom: 2.5px solid var(--navy); background: var(--paper-2); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card .body { padding: 1.15rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card .cat {
  font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--pink);
}
.post-card h2, .post-card h3 { font-size: 1.22rem; }
.post-card p { font-size: .95rem; color: var(--ink-soft); }
.post-card .go { margin-top: auto; padding-top: .7rem; font-family: var(--font-display); font-weight: 700; color: var(--navy); }

.article-hero { padding-block: 1.2rem 1.6rem; max-width: 50rem; }
.article-hero h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); margin-block: .9rem .9rem; }
.article-hero .meta { display: flex; flex-wrap: wrap; gap: .6rem; color: var(--ink-soft); font-size: .93rem; }
.article-cover { max-width: 54rem; }
.article-cover img { width: 100%; border-radius: var(--r-xl); border: 3px solid var(--navy); box-shadow: var(--pop-lg); }
.article-body { max-width: 44rem; padding-block: clamp(2rem, 4vw, 3rem); }

/* ---------- Prosa ---------- */
.prose { font-size: 1.08rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .55rem; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: .3rem; }
.prose ul li::before {
  content: ""; position: absolute; left: -1rem; top: .62em; width: .5rem; height: .5rem;
  border-radius: 50%; background: var(--orange);
}
.prose ol { list-style: decimal; }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose blockquote {
  border-left: 4px solid var(--orange); padding: .3rem 0 .3rem 1.3rem;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--navy);
}
.prose strong { color: var(--navy); }

.legal { max-width: 44rem; margin-inline: auto; padding-block: clamp(2rem, 5vw, 3.5rem); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.4rem; }

/* ---------- Migas ---------- */
.breadcrumbs { padding-block: 1rem .2rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .88rem; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: "›"; margin-right: .45rem; color: var(--line); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Equipo ---------- */
.founders { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); max-width: 52rem; }
.founder-card {
  background: #fff; border: 2.5px solid var(--navy); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--pop);
}
.founder-card figure { margin: 0; background: linear-gradient(180deg, #dbe8f7, #f2f6fc); border-bottom: 2.5px solid var(--navy); }
.founder-card img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; object-position: top center; }
.founder-card .body { padding: 1.2rem 1.35rem 1.5rem; }
.founder-card .role {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--pink); margin-bottom: .6rem;
}
.founder-card p:last-child { font-size: .96rem; color: var(--ink-soft); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 58rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 2.5px solid var(--navy); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--pop);
}
.contact-card h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.contact-list { display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ic {
  flex: none; width: 2.7rem; height: 2.7rem; border-radius: 13px; background: var(--blue);
  display: grid; place-items: center; border: 2.5px solid var(--navy);
}
.contact-list .ic svg { width: 1.4rem; height: 1.4rem; stroke: var(--navy); }
.contact-list strong { font-family: var(--font-display); color: var(--navy); }
.contact-list a { color: var(--blue); }

.map-frame, .form-frame {
  border: 2.5px solid var(--navy); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--pop); background: #fff;
}
.map-frame iframe { width: 100%; height: 26rem; border: 0; display: block; }
.form-frame iframe { width: 100%; height: 44rem; border: 0; display: block; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin-top: .8rem; }

.hours { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: .4rem; }
.hours th, .hours td { padding: .45rem .2rem; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 600; color: var(--navy); }
.hours td { text-align: right; color: var(--ink-soft); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* ---------- Banda CTA ---------- */
.cta-band .inner {
  background: var(--navy); color: #fff; border-radius: var(--r-xl);
  padding: clamp(1.8rem, 4vw, 3.2rem); display: grid; gap: 1.6rem;
  grid-template-columns: 1.4fr 1fr; align-items: center;
  border: 3px solid var(--navy); box-shadow: var(--pop-lg); position: relative; overflow: hidden;
}
.cta-band .inner::after {
  content: ""; position: absolute; width: 22rem; height: 22rem; right: -8rem; bottom: -12rem;
  background: radial-gradient(circle, rgba(242,154,46,.42), transparent 68%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: #c3cded; margin-top: .7rem; max-width: 34em; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; z-index: 1; }
@media (max-width: 54rem) { .cta-band .inner { grid-template-columns: 1fr; } }

/* ---------- Zonas / SEO local ---------- */
.zones { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.zones span {
  font-size: .9rem; font-weight: 600; padding: .38rem .85rem; border-radius: 99px;
  background: #fff; border: 2px solid var(--navy); color: var(--navy);
}

/* ---------- Barra de acción móvil ---------- */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: none;
  gap: .5rem; padding: .6rem clamp(.7rem, 3vw, 1rem);
  background: rgba(251,248,242,.96); backdrop-filter: blur(10px);
  border-top: 2px solid var(--navy);
}
.mobile-cta .btn { flex: 1; padding: .7rem .8rem; font-size: .95rem; }
@media (max-width: 48rem) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 4.5rem; }
}

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); color: #c6d0ea; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-top {
  display: grid; gap: 2.2rem; padding-bottom: 2.5rem;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
}
.footer-brand .logo-card {
  display: inline-block; background: #fff; border-radius: 14px;
  padding: .7rem .9rem; margin-bottom: 1.1rem;
}
.footer-brand img { width: 11rem; height: auto; }
.footer-brand p { font-size: .95rem; max-width: 26em; }
.site-footer ul small { white-space: nowrap; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .6rem; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer small { color: #8f9dc4; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between;
  padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.13); font-size: .88rem;
}
@media (max-width: 62rem) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 38rem) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
