/* ============ PLANEO — estilos ============ */
/* Tipografía de máquina de escribir para el Blog (si no carga, usa Courier) */
@import url("https://fonts.googleapis.com/css2?family=Special+Elite&display=swap");
:root {
  --blog: #c9d3df;      /* Blog: gris claro azulado */
  --blog-ink: #4f5f74;  /* Blog: tono para textos y botones sobre fondo claro */
  --type: "Special Elite", "Courier Prime", "Courier New", monospace;
  /* Colores de marca */
  --mag: #ff6c37;   /* Revista (Convergencias y Academia) */
  --lab: #655ec7;   /* LAB */
  --pod: #12ae8e;   /* Podcast */

  --ink: #14141f;
  --ink-2: #4a4a5a;
  --paper: #f7f6f3;
  --line: rgba(20, 20, 31, .12);
  --accent: var(--ink);
  --radius: 22px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: min(1240px, 100% - 2.5rem);
  --grad: linear-gradient(110deg, var(--mag), var(--lab) 50%, var(--pod));
}
body[data-theme="mag"] { --accent: var(--mag); }
body[data-theme="lab"] { --accent: var(--lab); }
body[data-theme="pod"] { --accent: var(--pod); }
body[data-theme="blog"] { --accent: var(--blog-ink); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0 0 1em; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Tipografía: Helvetica en mayúsculas, normal y bold */
.display {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: .95;
}
.display .light, .light { font-weight: 300; }
.kicker {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}
.kicker b { font-weight: 700; }
.lead { font-size: clamp(1.12rem, 1.7vw, 1.35rem); line-height: 1.5; max-width: 52ch; }

/* ---------- Degradado difuso (identidad) ---------- */
.mesh {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  --m0: var(--lab); --m1: var(--mag); --m2: var(--pod); --m3: #9a94ef; --m4: #ffe1d4;
  background: var(--m0);
}
.mesh.mag { --m0: #ff6c37; --m1: #ff8a55; --m2: #e4460f; --m3: #ff5e26; --m4: #ffc2a6; }
.mesh.lab { --m0: #655ec7; --m1: #7e78e0; --m2: #4740a6; --m3: #5a52c0; --m4: #c9c6f7; }
.mesh.pod { --m0: #12ae8e; --m1: #2fc6a4; --m2: #0a8a70; --m3: #0f9e81; --m4: #b5f3e4; }
.mesh { --m3: #7a73d9; }
.mesh .blobs { position: absolute; inset: -20%; z-index: -1; filter: blur(70px); }
.mesh .blob {
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: drift 18s ease-in-out infinite alternate;
}
.mesh .b1 { background: var(--m1); top: 0; left: -5%; }
.mesh .b2 { background: var(--m2); top: -5%; right: 0; animation-duration: 22s; animation-delay: -6s; }
.mesh .b3 { background: var(--m3); bottom: -10%; left: 30%; animation-duration: 26s; animation-delay: -3s; }
.mesh .b4 { background: var(--m4); width: 20%; bottom: 12%; left: 18%; opacity: .55; animation-duration: 15s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12%, 8%) scale(1.15); }
  100% { transform: translate(-8%, 14%) scale(.9); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 243, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 1.5rem; height: 84px; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.logo svg { height: 44px; width: auto; }
.nav { display: flex; gap: .2rem; margin-left: auto; }
.nav a {
  white-space: nowrap;
  text-decoration: none;
  font-size: .76rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .55rem .62rem;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(20, 20, 31, .07); }
.nav a[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 700; }
.nav a[data-key="nav.magazine"]:hover { color: var(--mag); }
.nav a[data-key="nav.podcast"]:hover { color: var(--pod); }
.nav a[data-key="nav.lab"]:hover { color: var(--lab); }
.nav a[aria-current="page"]:hover { color: #fff; }
.tools { display: flex; align-items: center; gap: .6rem; }
.lang { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px; }
.lang button {
  font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  border: 0; background: none; color: var(--ink);
  padding: .3rem .55rem; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ig-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff;
  transition: transform .25s;
}
.ig-btn:hover { transform: rotate(-12deg) scale(1.08); }
.ig-btn svg { width: 20px; height: 20px; }
.burger { display: none; border: 0; background: none; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 1240px) {
  .burger { display: block; order: 3; }
  .tools { margin-left: auto; }
  .nav {
    position: fixed; inset: 84px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    padding: 1rem 1.25rem 2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .35s ease;
    z-index: -1;
  }
  .nav a { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; border-radius: 12px; }
  .menu-open .nav { transform: none; }
  .menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; }
  .menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  transition: background .25s, color .25s, border-color .25s;
  cursor: pointer;
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: transparent; color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- Carrusel Home ---------- */
.hero-carousel { position: relative; height: min(86vh, 760px); min-height: 540px; overflow: hidden; background: var(--lab); }
.hero-carousel .slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide .wrap { height: 100%; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 3rem; padding-bottom: 3rem; }
.slide h2 { font-size: clamp(2.4rem, 5.6vw, 5.4rem); margin-bottom: 1.4rem; }
.slide p { max-width: 42ch; font-size: 1.15rem; margin-bottom: 2rem; }
.slide .copy > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.slide.is-active .copy > * { opacity: 1; transform: none; }
.slide.is-active .copy > :nth-child(2) { transition-delay: .1s; }
.slide.is-active .copy > :nth-child(3) { transition-delay: .2s; }
.slide.is-active .copy > :nth-child(4) { transition-delay: .3s; }
.slide-visual { justify-self: center; }
.slide-visual img {
  width: min(360px, 32vw);
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(20, 20, 31, .35);
  transform: rotate(4deg);
  transition: transform .8s;
}
.slide-visual.photo img { width: min(520px, 40vw); aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.slide.is-active .slide-visual img { transform: rotate(-2deg); }
.slide-visual.logo-mark svg { width: min(420px, 34vw); height: auto; color: rgba(255, 255, 255, .9); }
.carousel-ui { position: absolute; left: 0; right: 0; bottom: 2rem; z-index: 5; }
.carousel-ui .wrap { display: flex; align-items: center; gap: 1rem; }
.dots { display: flex; gap: .5rem; flex: 1; }
.dots button {
  position: relative; flex: 1; max-width: 120px; height: 4px;
  border: 0; padding: 0; border-radius: 4px; cursor: pointer;
  background: rgba(255, 255, 255, .35); overflow: hidden;
}
.dots button::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform: scaleX(0); transform-origin: left;
}
.dots button.is-active::after { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.dots button.is-done::after { transform: scaleX(1); }
.paused .dots button.is-active::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.arrows { display: flex; gap: .5rem; }
.arrows button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid #fff; background: transparent; color: #fff;
  font-size: 1.2rem; cursor: pointer; transition: background .2s, color .2s;
}
.arrows button:hover { background: #fff; color: var(--ink); }
@media (max-width: 760px) {
  .slide .wrap { grid-template-columns: 1fr; gap: 1rem; align-content: center; }
  .slide-visual { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; padding: 1.1rem 0; }
.marquee .track { display: inline-flex; animation: marquee 40s linear infinite; }
.marquee span { text-transform: uppercase; font-weight: 300; font-size: clamp(1.5rem, 3.4vw, 2.6rem); padding-right: 1.5rem; letter-spacing: -.01em; }
.marquee span:nth-child(3n+1) b { color: var(--mag); }
.marquee span:nth-child(3n+2) b { color: var(--lab); }
.marquee span:nth-child(3n) b { color: var(--pod); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section.tight { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent-text { color: var(--accent); }

.page-hero { padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6rem); }
.page-hero h1 { font-size: clamp(2.8rem, 7.5vw, 7rem); max-width: 15ch; margin-bottom: 2rem; }

/* ---------- Tarjetas de sección ---------- */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards4 { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 300px; padding: 1.75rem;
  border-radius: var(--radius);
  text-decoration: none; color: #fff;
  overflow: hidden; isolation: isolate;
  background: var(--c1);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.card::after {
  content: ""; position: absolute; z-index: -1;
  width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: var(--c2); filter: blur(50px);
  right: -60%; bottom: -60%;
  transition: transform .6s ease;
}
.card:hover { transform: translateY(-8px); }
.card:hover::after { transform: translate(-30%, -30%); }
.card h3 { font-weight: 700; font-size: 2.4rem; text-transform: uppercase; letter-spacing: -.02em; }
.card p { margin: 0; max-width: 28ch; }
.card .go { align-self: flex-end; font-size: 1.6rem; transition: transform .3s; }
.card:hover .go { transform: translateX(6px) rotate(-45deg); }

/* ---------- Números de la revista ---------- */
.issues { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2.25rem 1.5rem; }
.issue { text-decoration: none; color: var(--ink); display: block; }
.issue .cover {
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--mag);
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(20, 20, 31, .12);
}
.issue .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.issue:hover .cover img { transform: scale(1.05); }
.issue .num {
  position: absolute; bottom: .75rem; left: .75rem;
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: .75rem; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 999px;
}
.issue .meta { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .35rem; }
.issue h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; text-transform: uppercase; letter-spacing: .01em; }
.issue h3 em { font-style: normal; font-weight: 400; display: block; text-transform: none; letter-spacing: 0; margin-top: .2rem; }
.issue:hover h3 { color: var(--mag); }
.cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 3rem; font-weight: 700; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 2.5rem; }
.chip {
  font: inherit; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .55rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  transition: background .2s, color .2s;
}
.chip:hover { background: rgba(20, 20, 31, .07); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.search {
  margin-left: auto; min-width: 240px; flex: 0 1 320px;
  font: inherit; font-size: .95rem;
  padding: .65rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
}
.search:focus { outline: 2px solid var(--accent); border-color: transparent; }
.empty { color: var(--ink-2); padding: 2rem 0; }
@media (max-width: 600px) {
  .search { margin-left: 0; min-width: 0; flex: 1 1 100%; }
  .tabs { border-radius: 26px; }
}
.more-wrap { text-align: center; margin-top: 3rem; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .35rem; background: rgba(255,255,255,.2); border-radius: 999px; backdrop-filter: blur(6px); }
.tab {
  font: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .8rem 1.4rem; border-radius: 999px;
  border: 0; background: transparent; color: #fff; cursor: pointer;
  transition: background .2s, color .2s;
}
.tab[aria-selected="true"] { background: #fff; color: var(--mag); }
.tabpanel[hidden] { display: none; }

.call-box { border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.call-box h3 { font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.panel { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); }
.panel h3 { font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; font-size: 1.6rem; margin-bottom: 1rem; }

/* ---------- Sobre: plataformas y equipo ---------- */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .platforms { grid-template-columns: 1fr; } }
.platform { text-decoration: none; padding: 1.5rem 0 0; border-top: 4px solid var(--c); color: var(--ink); }
.platform h3 { font-size: 1.4rem; text-transform: uppercase; font-weight: 300; margin-bottom: .6rem; letter-spacing: -.01em; }
.platform h3 b { font-weight: 700; color: var(--c); }
.platform:hover h3 b { text-decoration: underline; text-underline-offset: 4px; }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2.25rem 1.5rem; }
.person { cursor: pointer; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 0; }
.person .photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; background: var(--grad); }
.person .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s, transform .6s; }
.person:hover .photo img, .person:focus-visible .photo img { filter: none; transform: scale(1.04); }
.person h3 { font-size: 1rem; text-transform: uppercase; font-weight: 700; letter-spacing: .01em; line-height: 1.25; }
.person p { margin: .35rem 0 0; color: var(--ink-2); font-size: .92rem; }

dialog.modal {
  border: 0; border-radius: var(--radius); padding: 0; max-width: min(760px, 92vw); width: 100%;
  box-shadow: 0 40px 80px rgba(20, 20, 31, .35);
}
dialog.modal::backdrop { background: rgba(20, 20, 31, .6); backdrop-filter: blur(4px); }
.modal .inner { display: grid; grid-template-columns: 220px 1fr; }
.modal .inner img { width: 100%; height: 100%; object-fit: cover; }
.modal .body { padding: 2rem; }
.modal h3 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: .4rem; }
.modal .role { color: var(--ink-2); text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; margin-bottom: 1.25rem; }
.modal .close { position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 1.1rem; }
@media (max-width: 600px) { .modal .inner { grid-template-columns: 1fr; } .modal .inner img { height: 260px; } }

/* ---------- Página de número ---------- */
.issue-hero .wrap { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.issue-hero .cover-big { border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(20, 20, 31, .3); transform: rotate(-2deg); }
.issue-hero h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); margin-bottom: 1.25rem; }
.issue-hero h1 .light { display: block; }
@media (max-width: 760px) { .issue-hero .wrap { grid-template-columns: 1fr; } .issue-hero .cover-big { max-width: 240px; } }
.back-link { display: inline-flex; gap: .5rem; text-decoration: none; text-transform: uppercase; font-size: .78rem; letter-spacing: .14em; margin-bottom: 2rem; opacity: .9; }
.back-link:hover { text-decoration: underline; }

.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.5rem 1.75rem; }
.entry-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.entry-card .thumb { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--grad); margin-bottom: 1rem; }
.entry-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.entry-card:hover .thumb img { transform: scale(1.05); }
.tag { display: inline-block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: .5rem; }
.entry-card h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.entry-card:hover h3 { color: var(--accent); }
.entry-card p { font-size: .92rem; color: var(--ink-2); margin-top: .6rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Página de entrada ---------- */
.entry-hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem); }
.entry-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.6rem); text-transform: none; letter-spacing: -.02em; line-height: 1.08; max-width: 26ch; font-weight: 700; }
.entry-hero .tag { color: #fff; }
.entry-cover { width: var(--wrap); margin: -2rem auto 0; max-width: 1000px; border-radius: var(--radius); overflow: hidden; position: relative; z-index: 2; box-shadow: 0 30px 60px rgba(20, 20, 31, .18); }
.entry-cover img { width: 100%; max-height: 620px; object-fit: cover; }
.notice { max-width: 72ch; margin: 2.5rem auto 0; padding: .9rem 1.2rem; border-radius: 12px; background: #fff; border: 1px dashed var(--line); font-size: .92rem; color: var(--ink-2); }
.prose { max-width: 72ch; margin: 0 auto; font-size: 1.12rem; line-height: 1.75; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.2em; }
.prose h2, .prose h3, .prose h4 { line-height: 1.2; margin-top: 2em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose a { color: var(--accent); }
.prose img { border-radius: 12px; margin: 2rem auto .5rem; height: auto; }
.prose em:only-child { display: block; font-size: .9rem; color: var(--ink-2); }
.prose blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 4px solid var(--accent); font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .7rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ink); margin: 2rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Podcast ---------- */
.player { border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.player iframe { display: block; width: 100%; height: 480px; border: 0; }

/* ---------- Galería LAB ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 210px; gap: 1rem; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--lab); }
.gallery figure:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery figure:nth-child(2) { grid-column: span 2; }
.gallery figure:nth-child(3) { grid-column: span 2; }
.gallery figure:nth-child(4) { grid-column: span 6; grid-row: span 2; }
.gallery figure:nth-child(n+5) { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery figure:nth-child(n) { grid-column: span 2; grid-row: span 1; }
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(20, 20, 31, .75));
  color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 20, 31, .92); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox .inner { width: min(1200px, 100%); color: #fff; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.lightbox p { margin-top: 1rem; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.lightbox .close { position: absolute; top: 1.25rem; right: 1.25rem; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #fff; background: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* ---------- Banda CTA ---------- */
.cta-band { border-radius: calc(var(--radius) * 1.5); padding: clamp(2.5rem, 6vw, 5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-bottom: 1rem; }
.cta-band .actions { justify-self: end; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-self: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 5rem 0 2rem; margin-top: 2rem; }
.site-footer .top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
@media (max-width: 760px) { .site-footer .top { grid-template-columns: 1fr; } }
.site-footer .logo { color: #fff; margin-bottom: 1.25rem; }
.site-footer .logo svg { height: 54px; }
.site-footer h4 { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; margin: 0 0 1rem; color: rgba(255,255,255,.6); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.ieut { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; max-width: 360px; font-size: .85rem; color: rgba(255,255,255,.75); }
.ieut img { width: 72px; border-radius: 8px; }
.footer-mark { margin-top: 3.5rem; color: #fff; display: flex; align-items: flex-end; gap: 2rem; }
.footer-mark svg { width: min(300px, 55vw); height: auto; display: block; flex: 0 0 auto; }
.footer-mark .bar { height: 6px; background: var(--grad); border-radius: 6px; flex: 1; margin-bottom: .4rem; }
.site-footer .bottom {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.6);
}

/* ---------- Encabezado compacto (Sobre PLANEO, Contacto, Buscar) ---------- */
.page-hero.compact { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-hero.compact h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); max-width: 22ch; margin-bottom: 1rem; }
.page-hero.compact .lead { margin: 0; }

/* ---------- Búsqueda ---------- */
.search-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.search-btn:hover { background: var(--ink); color: #fff; }
.search-overlay { position: fixed; inset: 84px 0 0 0; z-index: 60; background: rgba(20, 20, 31, .45); backdrop-filter: blur(6px); padding-top: 1.5rem; overflow-y: auto; }
.search-overlay .wrap { max-width: 880px; }
.search-box { display: flex; align-items: center; gap: .8rem; background: #fff; border-radius: 999px; padding: .4rem .5rem .4rem 1.3rem; box-shadow: 0 20px 50px rgba(20,20,31,.25); color: var(--ink); }
.search-box input { flex: 1; border: 0; font: inherit; font-size: 1.15rem; padding: .7rem 0; background: transparent; min-width: 0; }
.search-box input:focus { outline: none; }
.search-close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(20,20,31,.06); cursor: pointer; font-size: 1rem; }
.search-box.big { margin-top: .5rem; max-width: 820px; }
.search-box.big input { font-size: 1.3rem; }
.search-live { margin-top: 1rem; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(20,20,31,.2); }
.search-live:empty { display: none; }
.search-live .empty { padding: 1.4rem; margin: 0; }
.sr { display: block; padding: .9rem 1.3rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.sr:hover, .sr:focus-visible { background: #f6f5f1; }
.sr .tag { display: block; margin: 0 0 .15rem; color: var(--mag); }
.sr-page .tag { color: var(--lab); }
.sr b { display: block; font-weight: 700; line-height: 1.3; }
.sr .sx { display: block; font-size: .88rem; color: var(--ink-2); margin-top: .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-all { display: block; padding: 1rem 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; text-decoration: none; background: var(--ink); color: #fff; }
.sr-group { margin-bottom: 3rem; }
.sr-group h2 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.sr-group h2 span { font-size: .8rem; background: var(--ink); color: #fff; border-radius: 999px; padding: .15rem .6rem; }
.sr-list { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 1rem; }
.sr-list .sr:last-child { border-bottom: 0; }
body.search-open { overflow: hidden; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-panel { padding: clamp(1.5rem, 4vw, 2.5rem); }
.contact-panel h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1.5rem; }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .35rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 400; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); width: 100%; }
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--lab); border-color: transparent; background: #fff; }
.form .btn { justify-self: start; }
.form-msg { margin: 0; min-height: 1.2em; }
.form-msg.is-error { color: #c62828; }
.hp { position: absolute !important; left: -9999px; }
.contact-ok h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: .8rem; color: var(--pod); }
.contact-side { display: grid; gap: 1.25rem; }
.contact-info h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; margin: .2rem 0 .6rem; }
.contact-info p { margin: 0 0 .6rem; }
.contact-mail { font-size: 1.3rem; font-weight: 700; color: var(--lab); }
.map-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; padding: 6px; background: var(--grad); }
.map-frame iframe { width: 100%; height: 100%; border: 0; border-radius: calc(var(--radius) - 6px); filter: grayscale(.85) contrast(1.05); transition: filter .4s; display: block; }
.map-frame:hover iframe { filter: none; }
.contact-side .btn { justify-self: start; }

/* ---------- Encabezado de producto: logo sobre burbuja blanca ---------- */
.page-hero.has-bubble { min-height: min(92vh, 760px); display: flex; align-items: flex-end; }
.page-hero.has-bubble .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 50%; }
.has-bubble .hero-copy h1 { font-size: clamp(2.4rem, 4.3vw, 4.4rem); }
.facts-big.cols { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.facts-big.cols strong { font-size: clamp(1.9rem, 2.8vw, 2.9rem); }
.hero-bubble {
  position: absolute; z-index: 1;
  width: min(58vw, 780px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; right: -7vw; top: max(-16vw, -210px);
  box-shadow: 0 40px 80px rgba(20, 20, 31, .12);
}
.hero-bubble .logo-wrap { position: absolute; left: 14%; right: 18%; bottom: 20%; text-align: center; }
.hero-bubble img { width: 100%; height: auto; }
.bubble-sub { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: .42em; font-size: clamp(.9rem, 1.9vw, 1.6rem); margin-top: .6em; padding-left: .42em; }
@media (max-width: 860px) {
  .page-hero.has-bubble { display: block; min-height: 0; padding-top: 0; }
  .hero-bubble { position: relative; right: auto; top: auto; width: 128vw; margin: -46vw 0 2rem -14vw; }
  .hero-bubble .logo-wrap { left: 24%; right: 24%; bottom: 14%; }
  .hero-copy { max-width: none; }
}

/* ---------- Cifras destacadas (estilo posts) ---------- */
.facts-big { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.fact-big { border-top: 1px solid var(--line); padding-top: 1rem; }
.fact-big strong { display: block; font-weight: 300; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(2.4rem, 6.5vw, 5.4rem); color: var(--accent); }
.fact-big span { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-top: .5rem; color: var(--ink-2); }
.strip { background: #3f3f46; color: #fff; padding: 1.4rem 0; }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.strip b { text-transform: uppercase; font-size: clamp(1.1rem, 2.4vw, 1.6rem); letter-spacing: .01em; }
.strip span { text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }

/* ---------- Documento (normas) ---------- */
.doc-hero h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.doc-hero .subtitle { text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; margin-top: 1rem; }
.prose blockquote { background: #fff; border-radius: 0 14px 14px 0; padding: 1.2rem 1.5rem; font-size: 1.1rem; }
.prose table { background: #fff; border-radius: 12px; overflow: hidden; }
.prose th { background: var(--accent); color: #fff; text-align: left; }
.prose h2 { padding-top: 1.2rem; border-top: 2px solid var(--accent); }

/* ---------- Reservas ---------- */
.res-top { padding: 3rem 0 2rem; }
.res-top-inner { display: flex; flex-direction: column; gap: 1.75rem; }
.res-brand { display: flex; align-items: center; gap: 1.5rem; }
.res-logo { flex: 0 0 auto; width: 160px; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.res-logo img { width: 70%; }
.res-brand h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.res-lead { max-width: 60ch; margin: .6rem 0 0; opacity: .92; }
.res-nav { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.res-nav .res-prev, .res-nav .res-next {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid #fff; background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer;
}
.res-nav button:disabled { opacity: .35; cursor: default; }
.res-date { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.1rem, 2.4vw, 1.6rem); min-width: 14ch; text-align: center; }
.res-nav .chip { color: #fff; border-color: #fff; }
.res-nav .chip:hover { background: rgba(255,255,255,.15); }
.kiosk-only { display: none; }
@media (max-width: 700px) {
  .res-brand { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .res-logo { width: 110px; }
  .res-date { min-width: 0; font-size: 1.05rem; flex: 1 1 100%; order: -1; text-align: left; }
}
.res-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; margin: 1.5rem 0 1rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.res-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: .4rem; }
.lg-free { background: #fff; border: 1.5px solid var(--lab); }
.lg-booked { background: var(--lab); }
.lg-pending { background: repeating-linear-gradient(45deg, #c9c6f7 0 4px, #fff 4px 8px); border: 1.5px solid var(--lab); }
.lg-now { background: var(--mag); }
.res-status { margin-left: auto; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.res-scroll { overflow-x: auto; padding-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.res-grid { display: grid; grid-template-columns: 110px repeat(var(--cols, 6), minmax(130px, 1fr)); gap: 6px; min-width: 900px; }
.res-cell { border-radius: 12px; padding: .7rem .8rem; min-height: 78px; display: flex; flex-direction: column; justify-content: center; }
.res-corner, .res-head { min-height: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ink-2); }
.res-head { color: var(--lab); }
.res-time { background: #fff; border: 1px solid var(--line); }
.res-time b { font-size: 1.3rem; line-height: 1; }
.res-time span { font-size: .8rem; color: var(--ink-2); }
.res-time.is-now { border: 2px solid var(--mag); }
.res-slot { font: inherit; text-align: left; border: 1.5px solid transparent; cursor: pointer; position: relative; transition: transform .15s, background .2s; }
.res-slot .st { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.res-slot .who { font-size: .95rem; margin-top: .2rem; }
.res-slot.is-free { background: #fff; border-color: rgba(101, 94, 199, .35); color: var(--lab); }
.res-slot.is-free .plus { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; }
.res-slot.is-free:hover { background: #f0efff; transform: translateY(-2px); }
.res-slot.is-booked { background: var(--lab); color: #fff; }
.res-slot.is-pending { background: repeating-linear-gradient(45deg, #e4e2fb 0 8px, #fff 8px 16px); border-color: var(--lab); color: var(--lab); }
.res-slot.is-past { background: rgba(20, 20, 31, .04); color: var(--ink-2); cursor: default; }
.res-slot.is-now { box-shadow: inset 0 0 0 3px var(--mag); }
.res-slot.is-free { touch-action: none; user-select: none; -webkit-user-select: none; }
.res-slot.is-selecting { background: var(--lab) !important; color: #fff !important; border-color: var(--lab); transform: none !important; }
.res-slot.is-selecting .st::after { content: " ✓"; }
.res-hint { font-size: .9rem; color: var(--ink-2); margin: 0 0 1rem; }
.res-cal-wrap { position: relative; }
.res-cal-btn { display: inline-flex; align-items: center; gap: .4rem; }
.res-cal { position: absolute; top: calc(100% + .6rem); left: 0; z-index: 30; width: 320px; background: #fff; color: var(--ink); border-radius: 18px; padding: 1rem; box-shadow: 0 24px 60px rgba(20,20,31,.3); }
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-top b { text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.cal-nav { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-h { font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; text-align: center; color: var(--ink-2); padding: .2rem 0; }
.cal-d { position: relative; aspect-ratio: 1; border: 0; border-radius: 10px; background: #f0efff; color: var(--lab); font: inherit; font-weight: 700; cursor: pointer; }
.cal-d:hover:not(:disabled) { background: var(--lab); color: #fff; }
.cal-d:disabled { background: transparent; color: #c4c4cc; font-weight: 400; cursor: default; }
.cal-d.is-today { box-shadow: inset 0 0 0 2px var(--mag); }
.cal-d.is-sel { background: var(--lab); color: #fff; }
.cal-d i { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--pod); }
.cal-d.lv2 i { background: #f5a623; }
.cal-d.lv3 i { background: var(--mag); }
.res-done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: var(--pod); }
.res-done-icon.pending { background: #f5a623; }
.cancel-h { font-size: 1.5rem; text-transform: uppercase; margin: .3rem 0 .5rem; }
.res-lunch { grid-column: 1 / -1; text-align: center; font-size: .75rem; letter-spacing: .5em; text-transform: uppercase; color: var(--ink-2); padding: .5rem; background: rgba(20, 20, 31, .04); border-radius: 10px; }
.res-msg { padding: 3rem 0; color: var(--ink-2); font-size: 1.1rem; }

.res-dialog { max-width: min(560px, 94vw); }
.res-form, .res-done { padding: 2rem; display: grid; gap: 1rem; position: relative; }
.res-form h3, .res-done h3 { font-size: 1.6rem; text-transform: uppercase; font-weight: 700; }
.res-form label, .field { display: grid; gap: .35rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.res-form input, .res-form select, .field input, .adm-cancel input, .adm-cancel select {
  font: inherit; font-size: 1.05rem; text-transform: none; letter-spacing: 0; font-weight: 400;
  padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; width: 100%;
}
.res-form input:focus, .res-form select:focus, .field input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.res-extra { border: 1.5px dashed rgba(101, 94, 199, .5); border-radius: 12px; padding: .8rem 1rem; margin: 0; }
.res-extra legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 0 .4rem; }
.check { display: flex !important; align-items: center; gap: .6rem; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; font-size: 1rem !important; }
.check input { width: 22px !important; height: 22px; accent-color: var(--lab); }
.hint { font-size: .85rem; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-weight: 400; margin: 0; }
.res-when { color: var(--ink-2); margin: -.4rem 0 0; }
.res-error { color: #c62828; margin: 0; min-height: 1.2em; }
.res-actions { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.res-x { position: absolute; top: .9rem; right: .9rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(20,20,31,.06); cursor: pointer; font-size: 1rem; }
.res-code { font-size: 3rem; font-weight: 700; letter-spacing: .3em; color: var(--lab); background: #f0efff; border-radius: 14px; text-align: center; padding: .8rem; }
.res-form hr { border: 0; border-top: 1px solid var(--line); width: 100%; }

/* Modo tablet (reservas.html?kiosk) */
body.kiosk .site-header, body.kiosk .site-footer { display: none; }
body.kiosk .kiosk-only { display: inline-flex; }
body.kiosk .res-top { padding: 1.5rem 0 1.25rem; }
body.kiosk .res-lead { display: none; }
body.kiosk .res-logo { width: 110px; }
body.kiosk .res-top-inner { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
body.kiosk .res-cell { min-height: 92px; }
body.kiosk .res-slot .who { font-size: 1.05rem; }
body.kiosk .wrap { width: min(1600px, 100% - 2rem); }

/* Panel del encargado */
.adm-toolbar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.adm-h { font-size: 1.4rem; text-transform: uppercase; margin: 2.5rem 0 1rem; }
.adm-list { display: grid; gap: .8rem; }
.adm-card { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--lab); border-radius: 14px; padding: 1.2rem 1.4rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.adm-card.st-pending { border-left-color: var(--mag); }
.adm-card.st-cancelled, .adm-card.st-rejected { opacity: .55; border-left-color: var(--ink-2); }
.adm-card h4 { margin: .3rem 0; font-size: 1.15rem; text-transform: uppercase; }
.adm-card p { margin: .2rem 0; }
.adm-badge { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--accent); }
.adm-card.st-pending .adm-badge { color: var(--mag); }
.adm-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.adm-actions .btn { padding: .65rem 1rem; }
.adm-cancel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; align-items: end; }
.adm-cancel label { display: grid; gap: .3rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
@media (max-width: 700px) { .adm-card, .adm-cancel { grid-template-columns: 1fr; } .adm-actions { justify-content: flex-start; } }

/* ---------- Lectura: barra de progreso y tiempo estimado ---------- */
.read-progress { position: fixed; left: 0; right: 0; top: 84px; height: 4px; z-index: 45; background: rgba(20,20,31,.08); opacity: 0; transition: opacity .3s; pointer-events: none; }
.read-progress.is-visible { opacity: 1; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .1s linear; }
body.kiosk .read-progress { top: 0; }
.read-chip { display: inline-flex; margin-left: .6rem; padding: .05rem .5rem; border-radius: 999px; background: rgba(20,20,31,.07); color: var(--ink-2); font-weight: 700; letter-spacing: .04em; }
.read-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1.4rem 0 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .95; }
.read-meta-time { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.22); border-radius: 999px; padding: .3rem .75rem; font-weight: 700; }
.entry-sub { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 300; max-width: 46ch; margin: 1rem 0 0; line-height: 1.35; }
.notice.is-draft { background: #fff1e0; border: 1px solid #f5c58a; color: #8a4b00; }

/* ---------- Carrusel: collage del podcast y tarjeta ---------- */
.slide.has-cutout .wrap { grid-template-columns: .9fr 1.25fr; }
.slide-visual.cutout { position: relative; width: min(760px, 56vw); justify-self: end; margin-right: -3vw; padding: 3rem 0; }
.cut-disc { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: #fff; right: 4%; top: 50%; transform: translateY(-50%); opacity: .95; box-shadow: 0 30px 60px rgba(20,20,31,.15); }
.cut-dots { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; left: 0; bottom: -4%; background-image: radial-gradient(rgba(20,20,31,.55) 1.6px, transparent 1.8px); background-size: 11px 11px; opacity: .45; }
.slide-visual.cutout img { position: relative; width: 100%; box-shadow: none; border-radius: 0; transform: rotate(-3deg); filter: drop-shadow(0 14px 18px rgba(20,20,31,.35)); }
.slide.is-active .slide-visual.cutout img { transform: rotate(-2deg); }
.cut-tape { position: absolute; z-index: 2; left: 6%; top: 1.2rem; transform: rotate(-5deg); background: rgba(255, 246, 214, .92); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .9rem; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.slide-visual.card img { width: min(560px, 42vw); border-radius: 18px; box-shadow: 0 18px 36px rgba(20,20,31,.22); transform: rotate(2deg); background: #fff; }
.slide.is-active .slide-visual.card img { transform: rotate(-1deg); }
@media (max-width: 760px) {
  /* Celular: sin el collage del podcast (el texto usa todo el ancho) */
  .slide.has-cutout .wrap { grid-template-columns: 1fr; align-content: center; }
  .slide.has-cutout .slide-visual.cutout { display: none; }
  /* Tarjeta de la convocatoria: ancha y centrada bajo el texto */
  .slide-visual.card { display: block; justify-self: center; width: 100%; margin-top: .5rem; }
  .slide-visual.card img { width: min(100%, 360px); display: block; margin: 0 auto; transform: rotate(-1.5deg); }
  .slide.is-active .slide-visual.card img { transform: rotate(-1.5deg); }
}

/* ---------- Blog ---------- */
.type { font-family: var(--type); font-weight: 400; text-transform: lowercase; letter-spacing: .01em; }
.nav a[data-key="nav.blog"][aria-current="page"] { background: var(--blog); color: var(--ink); }
.mesh.blog { --m0: #c9d3df; --m1: #dde4ec; --m2: #aebccd; --m3: #e8edf3; --m4: #ffffff; color: var(--ink); }
.mesh.blog .tag, .mesh.blog .back-link { color: var(--blog-ink); }
.mesh.blog .read-meta-time { background: rgba(255,255,255,.6); }
.blog-word { display: flex; align-items: baseline; gap: .2em; flex-wrap: wrap; margin-bottom: 1.5rem; line-height: .9; }
.blog-logo { height: clamp(3rem, 7.5vw, 6.2rem); width: auto; align-self: flex-end; margin-bottom: .1em; }
.blog-word .type { font-size: clamp(3.4rem, 10vw, 8.5rem); color: var(--blog-ink); }
.blog-title { font-size: clamp(1.6rem, 3.4vw, 2.8rem); max-width: 22ch; margin: 0 0 1rem; }
.blog-hero { padding-bottom: 3.5rem; }
.blog-card .tag { color: var(--blog-ink); }
.blog-date { font-family: var(--type); font-size: .9rem !important; }
.blog-empty { grid-column: 1 / -1; border: 2px dashed #b9c4d1; border-radius: var(--radius); padding: 3rem 2rem; text-align: center; background: #fff; }
.blog-empty .type { display: block; font-size: 3rem; color: var(--blog-ink); }
.blog-empty p { font-family: var(--type); font-size: 1.15rem; margin: .5rem 0 0; }
.card.card-blog { color: var(--ink); }
.card.card-blog h3.type { font-size: 3rem; text-transform: lowercase; letter-spacing: 0; }
.sr-blog .tag { color: var(--blog-ink); }

/* ---------- Convocatoria ---------- */
.call-hero { padding: 1.5rem 0 0; }
.call-hero .back-link { color: var(--ink-2); }
.call-banner img { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(20,20,31,.12); background: #fff; }
.call-grid { display: grid; grid-template-columns: minmax(280px, 5fr) 6fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .call-grid { grid-template-columns: 1fr; } }
.call-title { font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin-bottom: 1.6rem; }
.call-poster { margin: 0; }
.call-poster img { width: 100%; border-radius: 14px; box-shadow: 0 30px 60px rgba(20,20,31,.18); }
.call-right { padding-top: clamp(0rem, 4vw, 3.2rem); }
.call-text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; }
.call-text p { margin: 0 0 1em; }
.call-toggle .arrow { transition: transform .3s; }
.call-toggle.is-open .arrow { transform: rotate(180deg); }
.call-toggle.btn-ghost.is-open { background: var(--ink); color: #fff; border-color: var(--ink); }
.call-panel { padding: 0 0 clamp(3rem, 7vw, 5rem); animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.call-panel-box { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); scroll-margin-top: 100px; }
.call-panel-box.narrow > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.call-panel-box .sub-form { border: 0; padding: 0; }
.call-panel { scroll-margin-top: 100px; }

/* Botón "Convocatoria" en la barra de menú (como en el sitio anterior) */
.call-btn { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; background: var(--mag); color: #fff; font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: .6rem .95rem; border-radius: 999px; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.call-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(255,108,55,.35); }
.call-btn.is-current { background: var(--ink); }
.call-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: callPulse 1.8s ease-in-out infinite; }
@keyframes callPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.nav .nav-call { display: none; }
@media (max-width: 700px) {
  .call-btn { display: none; }
  .nav .nav-call { display: block; color: var(--mag); }
}
.call-deadline { background: #fff; border-left: 4px solid var(--accent); padding: .8rem 1.1rem; border-radius: 0 12px 12px 0; }
.call-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.norms-head { max-width: 72ch; margin: 0 auto 2rem; }
.norms-head h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.call-academia { max-width: 72ch; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.call-academia a { color: var(--accent); font-weight: 700; }

/* ---------- Buzón de aportes ---------- */
.sub-head { margin-bottom: 2rem; }
.sub-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 1rem; }
.sub-form { background: #fff; border-radius: var(--radius); padding: clamp(1.3rem, 4vw, 2.5rem); border: 1px solid var(--line); }
.sub-form label > span small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.sub-form small.hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
.sub-block h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .6rem; }
.sub-author { border: 1.5px dashed #d6d4cc; border-radius: 16px; padding: 1rem 1.1rem 1.2rem; margin: 0 0 1rem; display: grid; gap: .8rem; }
.sub-author legend { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 0 .4rem; }
.sub-remove { font: inherit; font-size: .7rem; border: 1px solid #c62828; color: #c62828; background: #fff; border-radius: 999px; padding: .1rem .55rem; margin-left: .4rem; cursor: pointer; }
.sub-count { float: right; color: var(--ink-2); }
.sub-count.is-over { color: #c62828; font-weight: 700; }
.sub-drop { display: flex !important; flex-direction: row !important; align-items: center; gap: 1rem; flex-wrap: wrap; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; cursor: pointer; }
.sub-drop .btn { pointer-events: none; }
.sub-files { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .3rem; font-size: .92rem; }
.sub-files button { border: 0; background: none; color: #c62828; cursor: pointer; }
.sub-accept { align-items: flex-start !important; }
.sub-accept span { font-size: .95rem; }
.sub-progress { height: 4px; background: #eee; border-radius: 4px; overflow: hidden; }
.sub-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.sub-ok { text-align: center; }
.sub-ok-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--pod); color: #fff; font-size: 1.8rem; margin-bottom: 1rem; }
.sub-ok h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: .6rem; }
.sub-closed p { margin: 0; }

/* ---------- Animaciones al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .06s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .12s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .18s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .24s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Número «próximamente» (bloqueado hasta su lanzamiento) ---------- */
.issue.is-locked { cursor: default; }
.issue.is-locked .cover img { filter: grayscale(.35) brightness(.72); }
.issue.is-locked:hover .cover img { transform: none; }
.issue.is-locked:hover h3 { color: inherit; }
.lock-badge {
  position: absolute; top: .75rem; right: .75rem; display: inline-flex; flex-direction: column; align-items: center; gap: .15rem;
  background: rgba(255,255,255,.94); color: var(--ink); border-radius: 14px; padding: .55rem .8rem .5rem; text-align: center;
  box-shadow: 0 8px 24px rgba(20,20,31,.25);
}
.lock-badge b { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.lock-badge small { font-size: .7rem; color: var(--ink-2); }
.lock-badge svg { color: var(--mag); }
.lock-badge.big { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); padding: 1rem 1.4rem; }
.lock-badge.big svg { width: 34px; height: 34px; }
.lock-badge.big b { font-size: .85rem; }
.cover-big.is-locked { position: relative; }
.cover-big.is-locked img { filter: grayscale(.35) brightness(.72); }
.lock-note { display: flex; gap: .6rem; align-items: flex-start; max-width: 44ch; margin: 0; font-size: 1.05rem; line-height: 1.45; }
.lock-note svg { flex: none; margin-top: .1rem; }

/* ---------- Encabezado de entrada: imagen destacada junto al título ---------- */
/* Franja de alto fijo; la imagen ocupa todo el alto en el borde derecho y el título se ajusta (fitEntryTitle) */
.entry-hero { --hero-h: clamp(400px, 36vw, 520px); --img-w: 44vw; position: relative; height: var(--hero-h); padding: 0; overflow: hidden; }
.entry-hero > .wrap { position: relative; z-index: 2; height: 100%; }
.entry-head { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 2.2rem 0; overflow: hidden;
  max-width: 980px; }
.entry-hero.has-img .entry-head { max-width: none; width: calc(100vw - var(--img-w) - (100vw - min(1240px, 100vw - 2.5rem)) / 2 - clamp(2rem, 4vw, 4rem)); }
.entry-head .back-link { margin-bottom: .2rem; }
.entry-hero h1 { font-size: clamp(2rem, 3.6vw, 3.4rem); max-width: none; line-height: 1.06; margin: 0; }
.entry-hero .tag { font-size: clamp(.85rem, 1.2vw, 1rem); letter-spacing: .16em; margin: .9rem 0 .8rem; }
.entry-hero .entry-sub { margin-top: .8rem; }
.entry-hero .read-meta { margin-top: 1.2rem; }
.entry-img { position: absolute; top: 0; right: 0; bottom: 0; width: var(--img-w); margin: 0; z-index: 1; }
.entry-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Borde izquierdo de la foto fundido con la franja */
.entry-img::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18%; background: linear-gradient(90deg, rgba(255,108,55,.55), rgba(255,108,55,0)); pointer-events: none; }
.mesh.blog .entry-img::before { background: linear-gradient(90deg, rgba(201,211,223,.6), rgba(201,211,223,0)); }
@media (max-width: 820px) {
  .entry-hero { height: auto; display: flex; flex-direction: column; }
  .entry-img { position: relative; width: 100%; order: -1; aspect-ratio: 16 / 10; }
  .entry-img::before { display: none; }
  .entry-hero.has-img .entry-head { width: auto; }
  .entry-head { height: auto; padding: 2rem 0 2.5rem; }
  .entry-hero h1 { font-size: clamp(1.5rem, 6.2vw, 2.2rem); }
}
/* ---------- Sobre PLANEO: edificio del IEUT recortado en blanco y negro sobre el degradado ---------- */
.about-hero { position: relative; overflow: hidden; min-height: clamp(340px, 34vw, 470px); display: flex; align-items: center; }
.about-hero > .wrap { position: relative; z-index: 2; }
.page-hero.about-hero h1 { max-width: 12ch; font-size: clamp(2.2rem, 4vw, 3.6rem); }
/* Foto B/N del edificio a la derecha, a todo el alto; su lado izquierdo se funde con el degradado del encabezado */
.about-photo { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: min(62vw, 1100px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, rgba(0,0,0,.85) 45%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, rgba(0,0,0,.85) 45%, #000 62%); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; display: block; }
@media (max-width: 820px) {
  .page-hero.about-hero { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
  .page-hero.about-hero h1 { max-width: none; }
  .about-photo { position: relative; order: 3; width: 100%; height: 240px; margin-top: 1.5rem;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); }
}
/* ---------- Blog: «blog» más chico que el logo PLANEO + computador retro ---------- */
.blog-word .type { font-size: clamp(2.5rem, 6.2vw, 5.4rem); }
.blog-hero { position: relative; overflow: hidden; }
.blog-hero > .wrap { position: relative; z-index: 2; }
.blog-hero .blog-title, .blog-hero .lead { max-width: min(52ch, 56vw); }
/* Persona con monitor CRT (imagen ya recortada): ocupa todo el alto del encabezado, cortada por sus bordes */
.blog-hero { min-height: clamp(420px, 38vw, 560px); }
.blog-figure { position: absolute; z-index: 1; top: 0; bottom: 0; height: 100%; width: auto; max-width: 44vw; object-fit: cover; object-position: center top;
  right: max(1.25rem, calc((100vw - 1240px) / 2 + 1rem)); pointer-events: none; }
@media (max-width: 820px) {
  .blog-hero .blog-title, .blog-hero .lead { max-width: none; }
  .blog-hero { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
  .blog-figure { position: relative; top: auto; right: auto; order: 3; display: block; height: 340px; max-width: none; margin: 1rem auto 0; }
}@media (max-width: 820px) { .blog-figure { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); } }

/* ---------- Texto de las entradas: imágenes centradas, pies de imagen («Fuente») y alineación ---------- */
.prose img { display: block; margin-left: auto; margin-right: auto; max-width: 100%; }
.prose .fuente { font-size: calc(1em - 1.333px); /* 1 punto menos que el cuerpo */ text-align: center; color: var(--ink-2); line-height: 1.55; }
.prose .fuente img { margin-bottom: .9rem; }
.prose * + .fuente:not(:has(img)) { margin-top: .6em; }
.prose .al-centro { text-align: center; }
.prose .al-derecha { text-align: right; }
.prose .al-izquierda { text-align: left; }
.prose .al-justificado { text-align: justify; hyphens: auto; }