/* ============ Sergi Perez Garcia · estilos ============
   Inspiración: cabecera negra, fotos a sangre, títulos rojos en Poppins,
   secciones que alternan blanco / gris claro / negro. */
:root {
  --red: #e30613;
  --red-dark: #b8000c;
  --teal: #4cc7d3;
  --black: #000;
  --ink: #141414;
  --body: #3a3a3a;
  --grey: #6b6b6b;
  --grey-light: #a8a8a8;
  --line: #e4e4e1;
  --soft: #f4f4f1;
  --white: #fff;
  --max: 1240px;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.center { text-align: center; }
.title-red { color: var(--red); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin: 0 0 1rem; }

/* ---------- botones ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 2px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; letter-spacing: .02em; cursor: pointer;
  font-family: inherit; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.m-button { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.m-button.center { justify-content: center; }

/* ---------- cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(0,0,0,.35); transition: background .3s, box-shadow .3s;
}
.site-header.scrolled, body:not(.has-hero) .site-header { background: var(--black); box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 30px; width: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.main-nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .9rem; position: relative; }
.main-nav > a::after, .has-sub > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav > a:hover::after, .main-nav > a[aria-current]::after,
.has-sub:hover > a::after, .has-sub > a[aria-current]::after { transform: scaleX(1); }
.main-nav .nav-accent { color: var(--teal); }
.has-sub { position: relative; }
.has-sub > a { padding: 26px 0; }
.has-sub .sub {
  list-style: none; margin: 0; padding: 12px 0; position: absolute; top: 100%; left: -20px; min-width: 250px;
  background: var(--black); border-top: 2px solid var(--red);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 20px; font-weight: 500; }
.sub a:hover, .sub a[aria-current] { color: var(--red); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); transition: transform .25s, opacity .25s; }
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { min-height: 50vh; }
body:not(.has-hero) main { padding-top: var(--header-h); }

/* ---------- carrusel / portadas ---------- */
.slider { position: relative; overflow: hidden; background: #02121c; color: var(--white); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; min-width: 0; scroll-snap-align: start; position: relative;
  background-size: cover; background-position: center; display: flex; align-items: flex-end;
  min-height: 420px; padding: 140px 0 90px;
}
.slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%),
              linear-gradient(90deg, rgba(0,10,20,.85) 0%, rgba(0,10,20,.35) 60%, rgba(0,10,20,.1) 100%);
}
.slide:not(.has-bg) .slide-shade { display: none; }
.slide-inner { position: relative; z-index: 1; display: flex; gap: 40px; align-items: center; }
.slide-text { max-width: 640px; }
.slide-text h1, .slide-text h2 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-bottom: 1.2rem; }
.slide-text h1 a, .slide-text h2 a { text-decoration: none; }
.slide-desc { font-size: clamp(1rem, 1.5vw, 1.15rem); color: #e4e4e4; font-weight: 300; }
.slide-desc p:last-child { margin-bottom: 0; }
.slide-text .btn { margin-top: 1.6rem; }
.slide-img { max-width: 40%; }
.page-hero .slide { min-height: 62vh; }
.home-hero .slide { min-height: 100vh; min-height: 100svh; padding-bottom: 120px; }
.band-slider .slide { min-height: 340px; padding: 80px 0; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.slider-dots button { width: 34px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s; }
.slider-dots button[aria-selected="true"] { background: var(--red); }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px;
  border: 0; background: rgba(0,0,0,.35); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer;
}
.slider-arrow:hover { background: var(--red); }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

.page-title { background: var(--black); color: var(--white); padding: 80px 0 60px; }
.page-title h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }

/* ---------- secciones y columnas ---------- */
.sec { padding: clamp(64px, 8vw, 120px) 0; position: relative; }
.sec-soft { background: var(--soft); }
.sec-dark { background: var(--black); color: var(--white); }
.sec-image { background-size: cover; background-position: center; color: var(--white); }
.sec-image::before { content: ""; position: absolute; inset: 0; background: rgba(0,8,16,.72); }
.sec-image > .container { position: relative; }

.sec-dark .prose, .sec-image .prose { color: #d6d6d6; }
.sec-dark .prose h2, .sec-dark .prose h3, .sec-dark .prose h4, .sec-image .prose h2, .sec-image .prose h3, .sec-image .prose h4 { color: var(--white); }
.sec + .sec:not(.sec-soft):not(.sec-dark):not(.sec-image) { padding-top: 0; }

.row { display: grid; grid-template-columns: var(--cols, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.row + .row { margin-top: clamp(40px, 5vw, 72px); }
.col { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cols-1 .col { max-width: 920px; }
.row.cols-1 { justify-items: start; }

/* ---------- texto ---------- */
.prose { color: var(--body); font-size: 1rem; min-width: 0; overflow-wrap: break-word; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); color: var(--ink); margin: 0 0 1.1rem; }
.prose h2:not(:first-child) { margin-top: 2.2rem; }
.prose h3 { font-size: 1.35rem; color: var(--ink); margin: 1.8rem 0 .8rem; }
.prose h3:first-child, .prose h4:first-child { margin-top: 0; }
.prose h4 { font-size: 1.1rem; color: var(--ink); margin: 1.6rem 0 .6rem; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sec-dark .prose a, .sec-image .prose a { color: var(--white); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--red); font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.prose img { margin: 1.2em 0; }
.prose iframe { display: block; width: 100%; border: 0; margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .92rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose > :last-child { margin-bottom: 0; }
.lead { font-size: 1.2rem; color: var(--ink); font-weight: 500; line-height: 1.55; }
.lead-muted { color: var(--grey); }

/* ---------- módulos ---------- */
.m-image { margin: 0; }
.m-image img { width: 100%; }
.m-divider { border: 0; height: 2px; background: var(--red); width: 60px; margin: 0; }
.m-blurb { display: flex; flex-direction: column; gap: 18px; }
.m-blurb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.m-blurb h3 { font-size: 1.35rem; margin-bottom: .6rem; color: var(--red); }
.sec-dark .m-blurb h3, .sec-image .m-blurb h3 { color: var(--white); }
.m-blurb h3 a { text-decoration: none; }
.m-toggle { border-top: 1px solid var(--line); }
.m-toggle:last-of-type { border-bottom: 1px solid var(--line); }
.m-toggle summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.m-toggle summary::-webkit-details-marker { display: none; }
.m-toggle summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.6rem; color: var(--red); transition: transform .2s; }
.m-toggle[open] summary::after { transform: rotate(45deg); }
.m-toggle .prose { padding: 0 0 18px; }
.sec-dark .m-toggle, .sec-image .m-toggle { border-color: rgba(255,255,255,.2); }
.m-tabs .tab-list { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 22px; }
.m-tabs .tab-list button {
  font: inherit; font-weight: 600; font-size: .92rem; padding: 12px 18px; border: 0; background: none; cursor: pointer;
  color: var(--grey); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.m-tabs .tab-list button[aria-selected="true"] { color: var(--red); border-color: var(--red); }
.sec-dark .m-tabs .tab-list button, .sec-image .m-tabs .tab-list button { color: #bbb; }
.m-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.m-gallery figure { margin: 0; }
.m-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: opacity .2s; }
.m-gallery a:hover img { opacity: .85; }
.m-gallery figcaption { font-size: .82rem; color: var(--grey); margin-top: 6px; }
.m-video { position: relative; aspect-ratio: 16/9; background: #000; }
.m-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.m-embed iframe { width: 100%; border: 0; min-height: 352px; }
.m-code form table { display: table; width: auto; }
.m-code input[type="text"], .m-code select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); margin: 4px 0 10px; }

/* ---------- contacto ---------- */
.m-contact h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 1.4rem; }
.sec-contact .m-contact h2 { color: var(--white); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; }
.contact-form .full { grid-column: 1 / -1; margin: 0; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 2px;
  background: var(--white); color: var(--ink); width: 100%;
}
.sec-dark .contact-form input, .sec-dark .contact-form textarea, .sec-image .contact-form input, .sec-image .contact-form textarea { background: #121212; border-color: #333; color: var(--white); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
.form-note { font-size: .85rem; color: var(--teal); margin: 0; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .cf-turnstile { min-height: 65px; }
.form-status { font-size: .95rem; font-weight: 600; color: var(--teal); }
.form-status.is-error { color: var(--red); }
.contact-form button:disabled { opacity: .6; cursor: wait; }

/* ---------- portada: intro, estadísticas, biografía ---------- */
.home-intro .row { align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); }
.stat { padding: 28px 20px 0 0; }
.stat strong { display: block; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; line-height: 1; }
.stat span { display: block; margin-top: .6rem; color: var(--grey); font-size: .9rem; }
.bio-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.bio-photos { position: relative; padding-bottom: 18%; max-width: 560px; }
.bio-photos figure { margin: 0; overflow: hidden; }
.bio-photos img { width: 100%; height: 100%; object-fit: cover; }
.bio-photo-main { aspect-ratio: 4/5; }
.bio-photo-small { position: absolute; right: -6%; bottom: 0; width: 46%; aspect-ratio: 3/4; border: 8px solid var(--soft); }
.bio-badge { position: absolute; left: -14px; top: 28px; background: var(--red); color: var(--white); padding: 14px 20px; line-height: 1.1; }
.bio-badge span { display: block; font-weight: 800; font-size: 1.3rem; letter-spacing: .08em; }
.bio-badge small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.bio-text .bio-first { font-size: 1.2rem; color: var(--ink); font-weight: 500; line-height: 1.5; }
.timeline-title { margin: clamp(72px, 8vw, 110px) 0 28px; font-size: 1.6rem; }
.timeline-wrap { overflow-x: auto; scrollbar-width: thin; }
.timeline {
  list-style: none; margin: 0; padding: 0 var(--gutter) 24px; display: flex; width: max-content;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.timeline li { position: relative; width: 210px; padding: 34px 24px 0 0; border-top: 2px solid var(--black); }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; background: var(--red); border-radius: 50%; }
.timeline .year { display: block; font-weight: 800; font-size: 1.5rem; line-height: 1; margin-bottom: .5rem; }
.timeline .what { display: block; font-size: .9rem; color: var(--body); line-height: 1.45; }
.timeline em { color: var(--red); font-style: normal; font-size: .8rem; }

/* ---------- tarjetas ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.course-card { position: relative; aspect-ratio: 4/5; overflow: hidden; text-decoration: none; color: var(--white); background: #151515; }
.course-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .6s, opacity .3s; }
.course-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.9) 100%); }
.course-card:hover img { transform: scale(1.06); opacity: .9; }
.course-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; z-index: 1; }
.course-kicker { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: .6rem; }
.course-info h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.course-info p { margin: 0; font-size: .9rem; color: #d0d0d0; }
.course-card-cta { background: var(--red); transition: background .2s; }
.course-card-cta::after { display: none; }
.course-card-cta:hover { background: var(--red-dark); }
.course-card-cta .course-info { top: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.course-card-cta .course-kicker { color: rgba(255,255,255,.75); }
.course-card-cta p { color: rgba(255,255,255,.9); margin-bottom: 1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; color: var(--white); }
.link-arrow::after { content: "→"; transition: transform .2s; }
.course-card:hover .link-arrow::after { transform: translateX(5px); }

.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 16px; margin: clamp(40px, 5vw, 64px) 0 40px; }
.exp-card { position: relative; overflow: hidden; text-decoration: none; color: var(--white); background: #0b2230; }
.exp-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.exp-card:hover img { transform: scale(1.06); }
.exp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%); }
.exp-tall { grid-row: span 2; }
.exp-label { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.exp-label span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.exp-label h3 { font-size: 1.3rem; margin-top: .3rem; }

.logos-band { background: var(--black); padding: 56px 0; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; align-items: center; justify-items: center; }
.logos img { max-height: 60px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.logo-text { color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.6rem; letter-spacing: .12em; text-align: center; line-height: 1.1; }
.logo-text small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--red); margin-top: 4px; }

.school { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }
.school img { width: 160px; height: 160px; object-fit: cover; }

.mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 10px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic img:first-child { grid-row: span 2; }
.mosaic img:last-child { grid-column: span 2; }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(24px, 3vw, 36px); margin: clamp(32px, 4vw, 56px) 0 0; }
.post-card { min-width: 0; }
.post-card > a img, .post-noimg { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 16px; transition: opacity .3s; }
.post-noimg { background: linear-gradient(135deg, #0b2230, #000); }
.post-card > a:hover img { opacity: .85; }
.post-meta { font-size: .78rem; color: var(--grey-light); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .3rem; }
.post-card h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.post-card h3 a { text-decoration: none; transition: color .2s; }
.post-card h3 a:hover { color: var(--red); }
.post-excerpt { font-size: .92rem; color: var(--grey); }

.post-hero { position: relative; background: var(--black) center / cover; color: var(--white); padding: calc(var(--header-h) + 80px) 0 60px; }
.post-hero .slide-shade { background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.75)); }
.post-hero:not(.has-bg) .slide-shade { display: none; }
.post-hero .container { position: relative; }
.post-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; max-width: 900px; margin-bottom: 1rem; }
.post-cats, .post-cats a { color: var(--teal); text-decoration: none; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.post-meta-line { color: #cfcfcf; font-size: .9rem; margin: 0; }
.post-meta-line a { color: inherit; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 110px); }
.post-body { font-size: 1.05rem; max-width: 760px; }
.sidebar h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 .8rem; }
.sidebar ul { list-style: none; margin: 0 0 2.2rem; padding: 0; }
.sidebar li { border-bottom: 1px solid var(--line); }
.sidebar a { display: block; padding: 9px 0; text-decoration: none; font-size: .92rem; }
.sidebar a:hover { color: var(--red); }
.sec .sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.comments { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments h2 { font-size: 1.4rem; }
.comments ol { list-style: none; padding: 0; }
.comments li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.c-meta { font-size: .85rem; color: var(--grey); margin-bottom: .4rem; }
.c-meta strong { color: var(--ink); }

/* ---------- pie ---------- */
.site-footer { background: var(--black); color: #cfcfcf; padding: 48px 0; font-size: .88rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { height: 26px; width: auto; }
.footer-meta p { margin: 0; }
.footer-meta a { color: var(--white); }
.footer-social { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-social a { color: var(--white); text-decoration: none; font-weight: 600; }
.footer-social a:hover { color: var(--red); }

/* ---------- visor de fotos ---------- */
.lightbox-view { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox-view img { max-height: 90vh; width: auto; }

/* ---------- aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html, .slides { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .menu-toggle { display: block; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; background: var(--black); flex-direction: column; justify-content: flex-start; align-items: flex-start;
    gap: 18px; padding: calc(var(--header-h) + 20px) var(--gutter) 40px; overflow-y: auto;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .menu-open .main-nav { opacity: 1; pointer-events: auto; }
  .main-nav a { font-size: 1.3rem; }
  .has-sub > a { padding: 0; }
  .has-sub .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 8px 0 0 14px; background: none; min-width: 0; }
  .sub a { font-size: 1rem; padding: 6px 0; color: #bbb; }
  .main-nav > a::after, .has-sub > a::after { display: none; }

  .row, .bio-grid, .post-layout { grid-template-columns: 1fr !important; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .exp-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .logos { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .slide-inner { flex-direction: column; align-items: flex-start; }
  .slide-img { max-width: 70%; }
  .sec .sidebar { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .exp-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .exp-tall { grid-row: span 1; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { aspect-ratio: 4/3; }
  .contact-form { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px 150px; gap: 6px; }
  .mosaic img:first-child { grid-column: span 2; grid-row: auto; }
  .school { grid-template-columns: 1fr; }
  .school img { width: 100%; height: 200px; }
  .bio-photo-small { right: 0; }
  .bio-badge { left: 0; }
  .slider-arrow { display: none; }
  .slide { padding: 120px 0 80px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Artículos construidos con bloques */
.post-body .sec { padding: 0 0 2rem; background: none !important; color: inherit; }
.post-body .sec::before { display: none; }
.post-body .sec .container { padding: 0; }
.post-body .sec-dark .prose, .post-body .sec-image .prose { color: var(--body); }
.post-body .sec-dark .prose h2, .post-body .sec-image .prose h2, .post-body .sec-dark .prose h3, .post-body .sec-image .prose h3 { color: var(--ink); }
.post-body .page-hero, .post-body .band-slider { margin: 0 0 2rem; }
.post-body .slide { min-height: 320px; padding: 60px 0 50px; }
.prose .btn, .sec-dark .prose .btn, .sec-image .prose .btn { color: var(--white); text-decoration: none; }
.prose .btn-ghost:hover { color: var(--black); }
@media (max-width: 600px) {
  .slide-shade { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.8) 100%); }
  .slide-text h1, .slide-text h2 { font-size: 2.4rem; }
}
.slide .prose, .slide-desc.prose { color: #ececec; }
.slide .prose a { color: var(--white); }
