/* =========================================================
   main.css
   Component styles for the proposal dossier.
   Consumes design tokens from variables.css — no hardcoded
   colors, sizes, or spacing values should appear here.
   ========================================================= */

/* Motion tokens are not part of the extracted design-token set (tokens.json /
   variables.css / theme.css only cover color, type, spacing, radius). They are
   defined here as a documented extension — see DESIGN.md "Motion" section. */
:root {
  --ease-signature: cubic-bezier(0.52, 0.01, 0, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-obsidian);
  color: var(--color-bone-white);
  font-family: var(--font-neue-montreal);
  font-weight: var(--font-weight-regular);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

::selection { background: var(--color-fog-blue); color: var(--color-obsidian); }

a { color: var(--color-bone-white); }

[contenteditable="true"] {
  outline: none;
  border-radius: 2px;
  transition: background 0.3s var(--ease-signature);
}
[contenteditable="true"]:hover { background: rgba(255, 253, 249, 0.06); }
[contenteditable="true"]:focus { background: rgba(111, 135, 156, 0.15); }
html[data-role="visitor"] .control-panel,
html[data-role="visitor"] .panel-toggle,
html[data-role="visitor"] input[type="file"] { display: none !important; }
html[data-role="visitor"] .brand-logo { cursor: pointer; }
html[data-role="visitor"] .client-mark { cursor: default; }
html[data-role="visitor"] .client-mark:disabled { opacity: 1; color: inherit; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* The cover uses the full design grid so its text block starts closer to the
   left edge while retaining a safe column for the prism. */
#portada > .wrap {
  width: 100%;
  max-width: var(--page-max-width);
  padding-inline: clamp(24px, 4vw, 56px);
}

/* ---------- Scroll reveal (headline / heading entrances) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-signature), transform 0.8s var(--ease-signature);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

/* ---------- NAV ---------- */
nav.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 16, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-ash-border);
}
nav.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 54px;
  height: 48px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-logo svg { width: 18px; height: 18px; }
.brand-logo.has-image svg { display: none; }
.brand-name { font-size: 13px; letter-spacing: 0.01em; }
.navlinks {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
  font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase;
}
.navlinks a { text-decoration: none; opacity: 0.85; transition: opacity 0.5s var(--ease-signature); }
.navlinks a:hover { opacity: 1; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-bone-white);
  color: var(--color-bone-white);
  border-radius: var(--radius-nav);
  padding: 9px 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-block;
  transition: background 0.5s var(--ease-signature), color 0.5s var(--ease-signature);
}
.btn-outline:hover { background: var(--color-bone-white); color: var(--color-obsidian); }

/* ---------- SECTIONS ---------- */
section.slide {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-108) 0;
  position: relative;
  overflow: hidden;
  margin: 0;
}
section.slide.hidden-section { display: none; }
section.slide > .wrap { position: relative; z-index: 1; }

/* Alternating editorial compositions inspired by the reference: headings can
   change side without changing the content order or its print semantics. */
.layout-heading-right .eyebrow,
.layout-heading-right .section-heading {
  margin-left: auto;
  text-align: right;
}

/* Optional rotating backgrounds. JS creates these layers from the section's
   data-backgrounds attribute; content remains regular HTML above them. */
.slide-backgrounds { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.slide-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: background-crossfade var(--background-cycle, 18s) linear infinite;
}
.slide-backgrounds::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.62);
}
@keyframes background-crossfade {
  0%, 28% { opacity: 0; }
  6%, 22% { opacity: 1; }
}

.eyebrow {
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--color-fog-blue);
  margin-bottom: 24px;
}

/* ---------- HERO ---------- */
#portada { isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--color-obsidian); }
.hero-media video,
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { display: block; opacity: .46; }
.hero-media video { opacity: .5; mix-blend-mode: screen; }
.hero-media-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 76% 72% at 68% 48%, transparent 18%, rgba(16,16,16,.5) 68%, var(--color-obsidian) 100%),
    linear-gradient(90deg, rgba(16,16,16,.88) 0%, rgba(16,16,16,.58) 48%, rgba(16,16,16,.36) 72%, rgba(16,16,16,.72) 100%),
    linear-gradient(180deg, var(--color-obsidian) 0%, transparent 20%, transparent 72%, var(--color-obsidian) 100%);
}
.hero-headline {
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: var(--tracking-display-sm);
  font-weight: var(--font-weight-regular);
  margin: 0 0 28px 0;
  max-width: min(760px, 62vw);
}
.hero-client { white-space: nowrap; }
.hero-promise { font-size: .82em; }
.hero-sub {
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  max-width: 440px;
  margin: 0;
}
#portada .eyebrow,
#portada .hero-headline,
#portada .hero-sub,
#portada .meta-row { position: relative; z-index: 1; }
.meta-row {
  display: flex; gap: 40px; margin-top: 112px;
  font-size: var(--text-caption); color: var(--color-fog-blue); flex-wrap: wrap;
}
.client-mark {
  position: absolute;
  top: 36px;
  right: clamp(24px, 4vw, 56px);
  z-index: 2;
  width: 240px;
  height: 104px;
  padding: 8px;
  border: 1px solid var(--color-ash-border);
  border-radius: var(--radius-nav);
  background: rgba(16,16,16,0.35);
  color: var(--color-fog-blue);
  font: inherit;
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.client-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.client-mark.has-image { background: transparent; border-color: transparent; }
.client-mark.has-image span { display: none; }
.proposal-by {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: var(--color-fog-blue);
  font-size: var(--text-caption);
}
.proposal-by img { width: 92px; height: 42px; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  .slide-background { animation: none; }
  .slide-background:first-child { opacity: 1; }
  .team-card { transition: none; }
}

/* ---------- SECTION HEADINGS ---------- */
h2.section-heading {
  font-size: var(--text-heading-lg);
  line-height: var(--leading-heading-lg);
  letter-spacing: var(--tracking-heading-lg);
  font-weight: var(--font-weight-regular);
  margin: 0 0 40px 0;
  max-width: 780px;
}
p.section-lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  max-width: 560px;
  margin: 0 0 56px 0;
}

/* ---------- QUIENES SOMOS ---------- */
.about-cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 720px) { .about-cols { grid-template-columns: 1fr 1fr; gap: 60px; } }

/* ---------- EQUIPO — vertical-scroll-driven sticky sequence ---------- */
#equipo {
  min-height: 850vh;
  display: block;
  padding: 0;
  overflow: visible;
}
#equipo > .wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 76px;
  overflow: visible;
}
.team-sequence { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 0; width: 100vw; transform: translateX(-50%); background: var(--color-obsidian); overflow: hidden; }
.team-sequence img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; opacity: 0.92; filter: brightness(1.9) saturate(1.18) contrast(1.04); mix-blend-mode: screen; }
.team-sequence::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,16,16,0.08), rgba(16,16,16,0.58) 76%), linear-gradient(180deg, rgba(16,16,16,0.2), transparent 38%, rgba(16,16,16,0.34)); }
.team-carousel,
#equipo .eyebrow,
#equipo .section-heading,
#equipo .scroll-hint { position: relative; z-index: 1; }
.team-carousel { position: relative; }
.team-scroll {
  position: relative;
  height: min(30vh, 250px);
  overflow: hidden;
}
.team-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 130px minmax(280px, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  opacity: 1;
  visibility: hidden;
  transform: none;
  transition: visibility 0s linear 0.85s;
}
.team-card.is-current { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.team-card.is-before { transform: none; }
.team-photo {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--color-graphite-veil);
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--color-fog-blue);
  overflow: hidden; position: relative;
}
.team-photo img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; display: block; }
.team-art { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px; background: linear-gradient(135deg, transparent 38%, rgba(255,253,249,0.12) 38.2%, transparent 38.6%), repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,253,249,0.08) 32px), var(--color-graphite-veil); }
.team-art::before { content: ""; position: absolute; inset: 16% 18%; border: 1px solid var(--color-fog-blue); transform: rotate(-9deg); }
.team-art span { position: relative; z-index: 1; font-size: 11px; letter-spacing: 0.16em; }
.team-curtain { display: none; }
.team-curtain::before { content: ""; position: absolute; inset: 0; border-left: 1px solid var(--color-ash-border); transform: translateX(-12%); }
.team-name { font-size: var(--text-heading-sm); margin: 0; line-height: 1.05; letter-spacing: var(--tracking-heading-sm); }
.team-info { grid-column: 2; display: flex; flex-direction: column; align-self: center; max-width: 440px; }
.team-card .team-photo { grid-column: 1; grid-row: 1; }
.team-role { font-size: var(--text-caption); color: var(--color-fog-blue); text-transform: uppercase; letter-spacing: 0.02em; margin: 5px 0 16px 0; }
.team-bio { font-size: var(--text-body-sm); line-height: var(--leading-body-sm); margin: 0; }
.scroll-hint {
  font-size: var(--text-caption); color: var(--color-fog-blue);
  margin-top: 16px; display: flex; align-items: center; gap: 8px;
}
.team-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.team-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-ash-border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-bone-white);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.5s var(--ease-signature), opacity 0.5s var(--ease-signature);
}
.team-arrow:hover { border-color: var(--color-bone-white); }
.team-arrow:disabled { opacity: 0.3; cursor: default; }
.team-status { margin: 0; min-width: 58px; text-align: center; color: var(--color-fog-blue); font-size: var(--text-caption); }

@media screen {
  .team-card .team-info,
  .team-card .team-photo {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.72s var(--ease-signature), transform 0.78s var(--ease-signature);
  }
  .team-card .team-photo {
    transform: translateY(18px) scale(.985);
  }
  .team-card.is-current .team-info {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .04s;
  }
  .team-card.is-current .team-photo {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: .2s;
  }
}

/* ---------- VIDEO — blended background with vignette ---------- */
section.video-slide {
  min-height: 100vh;
  isolation: isolate;
  justify-content: flex-end;
  padding-top: var(--spacing-108);
  padding-bottom: clamp(72px, 10vh, 112px);
}
.video-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.video-pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease-signature), visibility 0.9s; }
.video-pane.is-active { opacity: 1; visibility: visible; }
.video-pane video,
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-poster { display: block; opacity: 1; transition: opacity .45s var(--ease-signature); }
.video-backdrop video { opacity: 0; mix-blend-mode: normal; transition: opacity .45s var(--ease-signature); }
.video-pane.is-video-ready .video-poster { opacity: 0; }
.video-pane.is-video-ready video { opacity: 1; }
.video-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 82% 76% at center, transparent 30%, rgba(16,16,16,0.62) 68%, var(--color-obsidian) 100%),
    linear-gradient(180deg, var(--color-obsidian) 0%, rgba(16,16,16,0.94) 10%, transparent 38%, transparent 56%, rgba(16,16,16,0.92) 84%, var(--color-obsidian) 100%);
}
.video-copy { position: relative; z-index: 1; }
.video-copy .section-heading { max-width: 760px; text-shadow: 0 2px 18px var(--color-obsidian), 0 8px 42px var(--color-obsidian); }
.video-copy .eyebrow { color: var(--color-bone-white); opacity: 0.78; }
.video-switcher { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.video-tab { padding: 10px 15px; border: 1px solid rgba(255,253,249,0.42); border-radius: var(--radius-full); background: rgba(16,16,16,0.35); color: var(--color-bone-white); font: inherit; font-size: var(--text-caption); cursor: pointer; backdrop-filter: blur(8px); }
.video-tab.is-active { background: var(--color-bone-white); color: var(--color-obsidian); }

/* ---------- SERVICIOS — sticky prism cube + active pillar list ---------- */
.pillars-slide { min-height: auto; padding: var(--spacing-108) 0 0 0; }
.pillars-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .pillars-layout { grid-template-columns: minmax(340px, 430px) 1fr; align-items: start; }
}
.pillars-list { }
.pillar-block {
  padding: 40px 0;
  border-top: 1px solid var(--color-ash-border);
  opacity: 0.4;
  transition: opacity 0.6s var(--ease-signature);
  cursor: default;
}
.pillar-block:last-child { border-bottom: 1px solid var(--color-ash-border); }
.pillar-block.active { opacity: 1; }
.pillar-num { font-size: var(--text-caption); color: var(--color-fog-blue); margin-bottom: 12px; }
.pillar-title { font-size: var(--text-heading-sm); margin: 0 0 10px 0; letter-spacing: var(--tracking-heading-sm); }
.pillar-desc { font-size: var(--text-body-sm); line-height: var(--leading-body-sm); margin: 0; max-width: 420px; }

.cube-stage {
  position: sticky;
  top: 96px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(0px, 5vw, 72px);
}
.cube-scene {
  width: 160px; height: 160px;
  perspective: 800px;
}
.cube {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cube-spin 16s linear infinite;
  transition: filter 0.6s var(--ease-signature);
}
.cube-face {
  position: absolute;
  width: 160px; height: 160px;
  background: var(--color-graphite-veil);
  border: 1px solid rgba(255,253,249,0.18);
  opacity: 0.92;
}
.cube-face.front  { transform: translateZ(80px); }
.cube-face.back   { transform: translateZ(-80px) rotateY(180deg); }
.cube-face.right  { transform: rotateY(90deg) translateZ(80px); background: var(--accent-active, var(--color-prism-cyan)); opacity: 0.5; }
.cube-face.left   { transform: rotateY(-90deg) translateZ(80px); background: var(--accent-active, var(--color-prism-red)); opacity: 0.5; }
.cube-face.top    { transform: rotateX(90deg) translateZ(80px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(80px); background: var(--accent-active, var(--color-prism-lime)); opacity: 0.35; }
.cube-glow {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-active, var(--color-prism-cyan)) 0%, transparent 70%);
  opacity: 0.25;
  filter: blur(20px);
  transition: background 0.6s var(--ease-signature);
  z-index: -1;
}
@keyframes cube-spin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to   { transform: rotateX(-18deg) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cube { animation: none; }
  .portfolio-images img { animation: none; opacity: 0; }
  .portfolio-images img:first-child { opacity: 1; }
}

/* ---------- PORTAFOLIO — sección con imagen/video de fondo y enlaces ---------- */
.media-slide {
  padding: 0;
  min-height: 100vh;
}
.portfolio-showcase { position: absolute; inset: 0; z-index: 0; }
.portfolio-work { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease-signature), visibility 0.6s; }
.portfolio-work.is-active { opacity: 1; visibility: visible; }
.portfolio-images { position: absolute; inset: 0; }
.portfolio-images::before { content: attr(data-placeholder); position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; background: var(--color-graphite-veil); color: var(--color-fog-blue); font-size: var(--text-body-sm); text-align: center; }
.portfolio-images:not([data-placeholder])::before { display: none; }
.portfolio-images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: portfolio-crossfade 12s linear infinite; }
.portfolio-images img[hidden] { display: none !important; }
.portfolio-images img:nth-child(2) { animation-delay: -8s; }
.portfolio-images img:nth-child(3) { animation-delay: -4s; }
.portfolio-images img:only-child,
.portfolio-images.is-single-image img:not([hidden]) { opacity: 1; animation: none; }
@keyframes portfolio-crossfade { 0%, 28% { opacity: 0; } 6%, 22% { opacity: 1; } }
.portfolio-work::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 86% 80% at center, transparent 28%, rgba(16,16,16,0.58) 70%, var(--color-obsidian) 100%), linear-gradient(180deg, var(--color-obsidian) 0%, rgba(16,16,16,0.9) 10%, transparent 36%, transparent 58%, rgba(16,16,16,0.92) 86%, var(--color-obsidian) 100%); }
.portfolio-caption { position: absolute; z-index: 2; left: max(40px, calc((100vw - 1120px) / 2)); bottom: 64px; max-width: 500px; }
.portfolio-index { color: var(--color-fog-blue); font-size: var(--text-caption); margin-bottom: 10px; }
.portfolio-caption h3 { margin: 0 0 8px; font-size: var(--text-heading-sm); font-weight: var(--font-weight-regular); }
.portfolio-caption p { margin: 0; font-size: var(--text-body-sm); line-height: var(--leading-body-sm); }
.portfolio-caption h3,
.portfolio-caption p,
.media-content .eyebrow,
.media-content .section-heading { text-shadow: 0 2px 10px var(--color-obsidian), 0 6px 28px var(--color-obsidian); }
.portfolio-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.portfolio-tab { padding: 9px 14px; border: 1px solid rgba(255,253,249,0.45); border-radius: var(--radius-full); background: rgba(16,16,16,0.4); color: var(--color-bone-white); font: inherit; cursor: pointer; }
.portfolio-tab.is-active { background: var(--color-bone-white); color: var(--color-obsidian); }
.media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.media-bg img,
.media-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,16,16,0.75) 0%, rgba(16,16,16,0.35) 40%, rgba(16,16,16,0.85) 100%);
}
.media-content {
  position: relative;
  z-index: 1;
  padding-top: var(--spacing-108);
}
.media-hotspots {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* A hotspot: a link pinned over a specific point of the image/video —
   use top/left (%) inline per link to place it over the relevant subject. */
.hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(16, 16, 16, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--color-ash-border);
  border-radius: var(--radius-full);
  color: var(--color-bone-white);
  font-size: var(--text-caption);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.5s var(--ease-signature), border-color 0.5s var(--ease-signature);
}
.hotspot:hover { background: rgba(16, 16, 16, 0.85); border-color: var(--color-bone-white); }
.hotspot-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-bone-white);
  box-shadow: 0 0 0 4px rgba(255,253,249,0.15);
}
/* Whole-section link variant: wrap the entire media block in <a> instead of
   using .media-hotspots if you want one single click target, not pinpoints. */
.media-slide-link { position: absolute; inset: 0; z-index: 1; }

/* ---------- MANUAL DE MARCA — visor web + portada estática en PDF ---------- */
.manual-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(460px, 1.2fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.manual-slide { overflow: visible; }
.manual-copy > p { max-width: 500px; color: var(--color-fog-blue); font-size: var(--text-body-sm); line-height: 1.55; margin: -24px 0 28px; }
.manual-reader { position: relative; height: min(88vh, 900px); margin-bottom: 46px; border: .5px solid rgba(255,253,249,.16); background: rgba(36,42,47,.5); overflow: visible; }
.manual-pages { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; cursor: grab; }
.manual-pages::-webkit-scrollbar { display: none; }
.manual-pages:active { cursor: grabbing; }
.manual-pages figure { position: relative; flex: 0 0 100%; height: 100%; margin: 0; padding: 10px; scroll-snap-align: start; display: grid; place-items: center; }
.manual-pages img { display: block; width: 100%; height: 100%; object-fit: contain; }
.manual-pages figure.is-missing::before { content: "Añade manual-pagina-0" attr(data-page) ".webp"; color: var(--color-fog-blue); font-size: var(--text-caption); }
.manual-pages figure.is-missing img { display: none; }
.manual-controls { position: absolute; z-index: 3; left: 50%; bottom: -42px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 10px; }
.manual-controls button { width: 32px; height: 32px; border: 1px solid var(--color-ash-border); border-radius: 50%; background: transparent; color: var(--color-bone-white); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .4s var(--ease-signature), opacity .4s var(--ease-signature); }
.manual-controls button:hover { border-color: var(--color-bone-white); }
.manual-controls button:disabled { opacity: .3; cursor: default; }
.manual-controls span { min-width: 50px; text-align: center; color: var(--color-fog-blue); font-size: 11px; }
.manual-controls b { font-weight: var(--font-weight-regular); }
.manual-print-poster { display: none; margin: 0; }

/* ---------- MERCHANDISING — propuesta visual dentro del plan ---------- */
.merchandising-slide { overflow: hidden; }
.merchandising-layout { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(22px, 3.5vh, 40px); }
.merchandising-heading { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(360px, 1.15fr); column-gap: clamp(36px, 7vw, 96px); align-items: end; }
.merchandising-heading .section-heading { margin-bottom: 0; }
.merchandising-heading .eyebrow { grid-column: 1; }
.merchandising-heading p { grid-column: 2; grid-row: 1 / span 2; align-self: end; max-width: 560px; margin: 0; color: var(--color-fog-blue); font-size: var(--text-body-sm); line-height: var(--leading-body-sm); }
.merchandising-visual { height: min(62vh, 700px); min-height: 0; margin: 0; background: var(--color-graphite-veil); overflow: hidden; }
.merchandising-visual img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.merchandising-visual.is-placeholder { display: grid; place-items: center; min-height: 52vh; }
.merchandising-visual.is-placeholder::after { content: "Añade propuesta-merchandising.webp en assets/documentos"; padding: 24px; color: var(--color-fog-blue); font-size: var(--text-body-sm); text-align: center; }

@media print {
  .media-slide { min-height: auto; padding: 0; }
  .media-bg video { display: none; } /* video frames don't print reliably —
    swap the <video> for a poster <img> before exporting to PDF */
  .hotspot { display: none; } /* links are meaningless on paper */
}

/* ---------- PLAN DE TRABAJO ---------- */
.plan-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.plan-table .plan-week { width: 12%; }
.plan-table .plan-editorial { width: 44%; }
.plan-table .plan-management { width: 44%; }
.plan-table th {
  text-align: left; font-size: var(--text-caption); text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--color-fog-blue); font-weight: var(--font-weight-regular);
  padding: 0 22px 16px 0; border-bottom: 1px solid var(--color-ash-border);
}
.plan-table td {
  padding: 22px 22px 22px 0; border-bottom: 1px solid var(--color-ash-border);
  font-size: var(--text-body-sm); line-height: 1.38; vertical-align: top;
  overflow-wrap: anywhere;
}
.plan-table th + th, .plan-table td + td { padding-left: 18px; }
.plan-table th:last-child, .plan-table td:last-child { padding-right: 0; }
.plan-table td:first-child { color: var(--color-fog-blue); }
.plan-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 38px; }
.plan-summary div { padding: 20px; border: 1px solid var(--color-ash-border); border-radius: 0; }
.plan-summary strong, .plan-summary span { display: block; }
.plan-summary strong { margin-bottom: 9px; font-size: var(--text-body); }
.plan-summary span { color: var(--color-fog-blue); font-size: var(--text-caption); line-height: 1.45; }

/* ---------- SESIONES AUDIOVISUALES ---------- */
.sessions-intro { max-width: 620px; margin: -22px 0 36px; color: var(--color-fog-blue); line-height: 1.5; }
.sessions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.session-card { min-height: 250px; padding: 26px 22px; border: 1px solid var(--color-ash-border); border-radius: 0; background: var(--color-graphite-veil); display: flex; flex-direction: column; }
.session-index { margin-bottom: auto; color: var(--color-fog-blue); font-size: var(--text-caption); }
.session-card h3 { margin: 34px 0 12px; font-size: clamp(20px, 1.7vw, 27px); line-height: 1.08; font-weight: var(--font-weight-regular); }
.session-card p { margin: 0; color: var(--color-bone-white); opacity: .82; font-size: var(--text-body-sm); line-height: 1.45; }

/* ---------- PRESUPUESTO ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.price-card {
  border: 1px solid var(--color-ash-border);
  border-radius: 0;
  padding: 36px 28px;
  background: var(--color-graphite-veil);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease-signature), border-color 0.5s var(--ease-signature);
}
.price-card.featured { border-color: var(--color-bone-white); }
.price-tier { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.02em; color: var(--color-bone-white); opacity: .82; margin-bottom: 16px; }
.price-value { font-size: clamp(38px, 3.5vw, 52px); line-height: 1; margin: 0 0 8px 0; letter-spacing: -0.035em; white-space: nowrap; }
.price-value-text { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.02em; }
.price-period { font-size: var(--text-caption); color: var(--color-bone-white); opacity: .7; margin-bottom: 28px; }
.price-features { list-style: none; margin: 0 0 28px 0; padding: 0; flex-grow: 1; }
.price-features li { font-size: var(--text-body-sm); padding: 10px 0; border-top: 1px solid var(--color-ash-border); }
.price-features li:first-child { border-top: none; }
.budget-summary { display: grid; grid-template-columns: .8fr 1.15fr 1fr; gap: 0; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--color-ash-border); }
.budget-summary > div { min-width: 0; padding: 0 24px; border-left: 1px solid var(--color-ash-border); }
.budget-summary > div:first-child { padding-left: 0; border-left: 0; }
.budget-label, .budget-total > span { display: block; color: var(--color-fog-blue); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: .02em; }
.budget-total strong { display: block; margin: 8px 0; font-size: var(--text-heading-sm); font-weight: var(--font-weight-regular); }
.budget-total small { display: block; color: var(--color-bone-white); font-size: var(--text-caption); line-height: 1.4; }
.budget-extras ul { list-style: none; margin: 9px 0 0; padding: 0; }
.budget-extras li { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; border-top: 1px solid var(--color-ash-border); font-size: var(--text-caption); }
.budget-extras li strong { white-space: nowrap; font-weight: var(--font-weight-regular); }
.budget-scope p { margin: 9px 0 0; color: var(--color-fog-blue); font-size: var(--text-caption); line-height: 1.45; }

/* ---------- CRONOGRAMA ---------- */
.gantt { border: 1px solid var(--color-ash-border); border-radius: 0; overflow: hidden; }
.gantt-head, .gantt-row { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, 1fr); min-height: 58px; align-items: center; }
.gantt-head { color: var(--color-fog-blue); font-size: var(--text-caption); text-transform: uppercase; }
.gantt-head span, .gantt-row > span { padding: 0 20px; }
.gantt-head span:not(:first-child) { text-align: center; }
.gantt-row { position: relative; border-top: 1px solid var(--color-ash-border); font-size: var(--text-body-sm); }
.gantt-row i { grid-column: calc(var(--start) + 1) / span var(--span); height: 18px; margin: 0 10px; border-radius: var(--radius-full); background: var(--color-bone-white); opacity: .84; }
.gantt-row i.gantt-dots { height: 10px; background: radial-gradient(circle, var(--color-bone-white) 0 3px, transparent 4px); background-size: 25% 100%; opacity: 1; }
.gantt-note { max-width: 720px; color: var(--color-fog-blue); font-size: var(--text-caption); line-height: 1.45; margin: 22px 0 0; }

/* ---------- CONDICIONES ---------- */
.terms-list { list-style: none; padding: 0; margin: 0; max-width: 640px; }
.terms-list li {
  padding: 24px 0; border-top: 1px solid var(--color-ash-border);
  font-size: var(--text-body-sm); line-height: var(--leading-body-sm);
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
}
.terms-list li:last-child { border-bottom: 1px solid var(--color-ash-border); }
.terms-label { color: var(--color-fog-blue); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- CIERRE ---------- */
.closing-headline {
  font-size: clamp(36px, 6vw, var(--text-display-sm));
  line-height: 1.05; letter-spacing: var(--tracking-display-sm);
  max-width: 800px; margin: 0 0 40px 0;
}
.contact-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 56px; }
.contact-item { font-size: var(--text-body-sm); }
.contact-label { color: var(--color-fog-blue); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px; }

/* ---------- FOOTER ---------- */
footer { padding: 40px 0; }
footer .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: var(--text-caption); color: var(--color-fog-blue);
}

/* ---------- CONTROL PANEL (screen only) ---------- */
.control-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--color-graphite-veil);
  border: 1px solid var(--color-ash-border);
  border-radius: var(--radius-xl);
  padding: 16px; width: 240px; font-size: 13px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.control-panel h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--color-fog-blue); margin: 0 0 12px 0; font-weight: var(--font-weight-regular);
}
.control-panel label { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.control-panel input[type="checkbox"] { accent-color: var(--color-bone-white); }
.control-panel .hint {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-ash-border);
  color: var(--color-fog-blue); line-height: 1.4;
}
.panel-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 101;
  background: var(--color-bone-white); color: var(--color-obsidian);
  border: none; border-radius: var(--radius-nav);
  width: 44px; height: 44px; cursor: pointer; font-size: 18px;
  display: none; align-items: center; justify-content: center;
}
#agency-logo-upload, #client-logo-upload { display: none; }

@media (max-width: 720px) {
  .wrap { padding-inline: 24px; }
  .hero-headline { max-width: 100%; }
  .hero-client { white-space: normal; }
  .client-mark { position: relative; top: 0; right: auto; width: 200px; height: 86px; margin-bottom: 32px; }
  .proposal-by { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 32px; }
  .plan-summary, .sessions-grid { grid-template-columns: 1fr; }
  .budget-summary { grid-template-columns: 1fr; gap: 14px; }
  .budget-summary > div { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--color-ash-border); }
  .budget-summary > div:first-child { padding-top: 0; border-top: 0; }
  .manual-layout { grid-template-columns: 1fr; }
  .manual-reader { height: 80vh; min-height: 560px; }
  .merchandising-heading { grid-template-columns: 1fr; gap: 14px; }
  .merchandising-heading p { grid-column: 1; grid-row: auto; }
  .merchandising-visual { height: min(48vh, 460px); }
  .gantt-head, .gantt-row { grid-template-columns: 150px repeat(4, minmax(54px, 1fr)); }
  .gantt { overflow-x: auto; }
  #equipo { min-height: 850vh; }
  #equipo > .wrap { position: sticky; top: 0; height: 100vh; padding-top: 76px; }
  .team-scroll { height: min(46vh, 340px); }
  .team-card { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto auto auto; gap: 7px; }
  .team-card .team-photo { grid-column: 1; grid-row: 1; width: min(48vw, 150px); height: min(48vw, 150px); min-height: 0; margin-bottom: 12px; }
  .team-info { grid-column: 1; align-self: auto; }
  .team-card .team-name { font-size: 26px; }
  .team-card .team-bio { font-size: 15px; }
  .layout-heading-right .eyebrow,
  .layout-heading-right .section-heading { margin-left: 0; text-align: left; }
  .terms-list li { grid-template-columns: 1fr; gap: 6px; }
  .plan-table { display: block; overflow-x: auto; }
  .cube-stage { height: 260px; top: 76px; }
  .cube-scene { width: 110px; height: 110px; }
  .cube-face { width: 110px; height: 110px; }
  .cube-face.front  { transform: translateZ(55px); }
  .cube-face.back   { transform: translateZ(-55px) rotateY(180deg); }
  .cube-face.right  { transform: rotateY(90deg) translateZ(55px); }
  .cube-face.left   { transform: rotateY(-90deg) translateZ(55px); }
  .cube-face.top    { transform: rotateX(90deg) translateZ(55px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(55px); }
}

/* ---------- PRINT: each .slide starts on its own page ---------- */
@media print {
  .control-panel, .panel-toggle, nav.topnav { display: none !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { background: var(--color-obsidian); }
  section, footer { box-shadow: none !important; outline: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cube { animation: none !important; }
  .slide-background { display: none; animation: none !important; }
  .slide-background:first-child { display: block; opacity: 1; }
  .team-sequence img { opacity: 0.18; filter: grayscale(1) contrast(1.08); }
  .video-backdrop video { display: none; }
  .hero-media video { display: none; }
  .hero-poster { display: block; opacity: .38; filter: brightness(.62); }
  .hero-media-overlay {
    background: linear-gradient(90deg, rgba(16,16,16,.9) 0%, rgba(16,16,16,.62) 55%, rgba(16,16,16,.42) 100%), linear-gradient(180deg, var(--color-obsidian), transparent 24%, transparent 72%, var(--color-obsidian));
  }
  .video-pane { display: none; opacity: 0; visibility: hidden; }
  .video-pane.is-active { display: block; opacity: 1; visibility: visible; }
  .video-pane.is-video-ready .video-poster,
  .video-poster { display: block; opacity: 1 !important; filter: brightness(0.48); }
  .video-switcher { display: none; }
  section.video-slide {
    display: block !important;
    min-height: 210mm;
    height: 210mm;
    padding: 0 0 14mm !important;
    overflow: hidden;
  }
  section.video-slide .video-backdrop {
    position: relative;
    inset: auto;
    width: 100%;
    height: 132mm;
  }
  section.video-slide .video-poster {
    filter: brightness(0.52);
    -webkit-mask-image: linear-gradient(to bottom, var(--color-pure-black) 0%, var(--color-pure-black) 66%, transparent 100%);
    mask-image: linear-gradient(to bottom, var(--color-pure-black) 0%, var(--color-pure-black) 66%, transparent 100%);
  }
  section.video-slide .video-vignette { display: none; }
  section.video-slide .video-copy {
    position: relative !important;
    inset: auto !important;
    margin: 5mm auto 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  section.video-slide .video-copy .section-heading { max-width: 720px; }
  footer { display: none; }

  /* Let each section take exactly the height its content needs — forcing
     min-height:100vh on a section taller than one page (e.g. the pillars
     block) is what pushed overflow onto a near-empty extra page. */
  section.slide {
    min-height: 0;
    height: auto;
    page-break-after: auto;
    page-break-before: always;
    break-before: page;
    border-bottom: none;      /* the page edge itself is the divider now */
    padding: 16mm 0 14mm;
  }
  section.slide:first-of-type {
    page-break-before: avoid;
  }

  /* Portada: los metadatos y la firma forman una franja inferior estable. */
  #portada { display: block; height: 210mm; min-height: 210mm; padding: 18mm 0 !important; }
  #portada > .wrap { height: 100%; }
  #portada .meta-row { position: absolute; left: 44px; right: 410px; bottom: 16mm; margin: 0; gap: 28px; }
  #portada .proposal-by {
    position: absolute;
    right: 44px;
    bottom: 15mm;
    width: 330px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  #portada .proposal-by img { width: 62px; height: 32px; }

  /* Prevent a card/row/block from being sliced across two pages */
  .pillar-block,
  .team-card,
  .price-card,
  .terms-list li,
  .plan-table tr,
  .hero-headline,
  .section-heading {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .pillars-slide { min-height: 0; padding: 14mm 0; }
  .pillars-layout { display: block; }
  .pillars-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .pillar-block { opacity: 1 !important; color: var(--color-bone-white) !important; padding: 18px 0; }
  .pillar-num, .pillar-title, .pillar-desc { color: var(--color-bone-white) !important; opacity: 1 !important; }
  .pillar-title { font-size: 25px; }
  .pillar-desc { font-size: 14px; line-height: 1.35; }
  .cube-stage { display: none; }

  /* One data source, a dedicated PDF composition: the interactive rail becomes
     a complete grid so horizontal overflow can never be clipped by the page. */
  #portada > .wrap,
  .wrap { max-width: none; padding-inline: 44px; }
  .hero-headline { max-width: 720px; font-size: 58px; }
  .hero-sub { max-width: 390px; }
  .client-mark { top: 10mm; right: 44px; width: 220px; height: 82px; }
  .team-carousel { margin-top: 46px; page-break-inside: avoid; break-inside: avoid; }
  #equipo { min-height: 0; display: flex; padding: 24px 0; overflow: hidden; }
  #equipo > .wrap { position: relative; top: auto; height: auto; display: block; padding-top: 14mm; overflow: visible; }
  #equipo .eyebrow { margin-bottom: 8px; }
  #equipo .section-heading { max-width: 620px; margin-bottom: 14px; font-size: 34px; line-height: 1.05; }
  .team-scroll {
    display: grid;
    height: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 26px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .team-card { position: relative; inset: auto; display: block; min-width: 0; opacity: 1; visibility: visible; transform: none; }
  .team-card .team-photo, .team-card .team-info { opacity: 1 !important; transform: none !important; transition: none !important; }
  .team-photo { width: 68px; height: 68px; aspect-ratio: 1; border-radius: 50%; margin-bottom: 10px; }
  .team-curtain { display: none; }
  .team-name { font-size: 17px; }
  .team-role { font-size: 9px; margin: 4px 0 5px; }
  .team-bio { font-size: 10px; line-height: 1.25; }
  .team-controls, .scroll-hint { display: none !important; }
  #portafolio { position: relative; display: block; height: 190mm; min-height: 190mm; max-height: 190mm; padding: 5mm 0; overflow: hidden; }
  .media-slide { display: flex; flex-direction: column; min-height: 0; padding: 14mm 0; }
  .media-content { order: 0; width: 100%; padding-top: 0; }
  #portafolio .media-content { transform: translateY(7mm); }
  #portafolio .media-content .eyebrow { margin-bottom: 4px; font-size: 11px; }
  #portafolio .media-content .section-heading { margin-bottom: 8px; font-size: 29px; }
  .portfolio-tabs { display: none; }
  .portfolio-showcase { position: absolute; inset: 41mm 44px auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; width: auto; margin: 0; }
  .portfolio-work, .portfolio-work.is-active { position: relative; inset: auto; display: grid; grid-template-rows: 33mm auto; height: auto; opacity: 1; visibility: visible; }
  .portfolio-images { position: relative; inset: auto; height: 33mm; }
  .portfolio-images img { display: none; animation: none; opacity: 1; }
  .portfolio-images img:first-child { display: block; }
  .portfolio-images img.is-print-image { display: block; }
  .portfolio-work::after { display: none; }
  .portfolio-caption { position: relative; left: auto; bottom: auto; max-width: none; padding: 6px 0 0; }
  .portfolio-index { margin-bottom: 2px; font-size: 8px; }
  .portfolio-caption h3 { margin-bottom: 3px; font-size: 14px; line-height: 1.06; }
  .portfolio-caption p { font-size: 9px; line-height: 1.2; }
  .manual-slide { padding: 14mm 0; }
  .manual-layout { grid-template-columns: .8fr 1.2fr; gap: 14mm; }
  .manual-copy > p { margin-top: -10px; font-size: 13px; }
  .manual-reader { display: none !important; }
  .manual-print-poster { display: block; text-align: center; break-inside: avoid; page-break-inside: avoid; }
  .manual-print-poster img { display: block; width: auto; max-width: 100%; height: 128mm; margin: 0 auto; object-fit: contain; background: transparent; border: 0; }
  .manual-print-poster.is-placeholder { height: 128mm; display: grid; place-items: center; background: var(--color-graphite-veil); color: var(--color-fog-blue); }
  .manual-print-poster.is-placeholder::before { content: "Añade assets/documentos/manual-pagina-01.webp"; }
  .manual-print-poster figcaption { margin-top: 8px; color: var(--color-fog-blue); font-size: 12px; }
  .merchandising-slide { padding: 14mm 0; }
  .merchandising-layout { grid-template-rows: auto 1fr; gap: 7mm; }
  .merchandising-heading { grid-template-columns: .85fr 1.15fr; gap: 12mm; }
  .merchandising-heading .eyebrow { margin-bottom: 3mm; }
  .merchandising-heading .section-heading { font-size: 32px; }
  .merchandising-heading p { font-size: 12px; line-height: 1.35; }
  .merchandising-visual { height: 126mm; }
  .merchandising-visual.is-placeholder { min-height: 126mm; }
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .price-card { padding: 24px 20px; }
  .price-value { font-size: 35px; }
  .price-features li { font-size: 14px; padding: 7px 0; }
  .plan-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
  .plan-summary div { padding: 14px; }
  .plan-table td { padding: 12px 0; font-size: 13px; }
  .plan-table th, .plan-table td { padding-right: 18px; }
  .plan-table th + th, .plan-table td + td { padding-left: 16px; }
  #plan { padding: 17mm 0 7mm; }
  #plan .eyebrow { margin-bottom: 10px; }
  #plan .section-heading { font-size: 38px; margin-bottom: 20px; }
  .sessions-slide { height: 210mm; min-height: 210mm; padding: 10mm 0; overflow: hidden; }
  .sessions-slide .eyebrow { margin-bottom: 8px; }
  .sessions-slide .section-heading { margin-bottom: 20px; font-size: 36px; }
  .sessions-intro { margin: 0 0 18px; font-size: 12px; }
  .sessions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .session-card { min-height: 50mm; padding: 16px; break-inside: avoid; }
  .session-card h3 { margin: 18px 0 8px; font-size: 20px; }
  .session-card p { font-size: 11px; line-height: 1.35; }
  .budget-summary { grid-template-columns: .8fr 1.15fr 1fr; gap: 0; margin-top: 18px; padding-top: 18px; }
  .budget-summary > div { padding: 0 16px; border-top: 0; border-left: 1px solid var(--color-ash-border); }
  .budget-summary > div:first-child { padding: 0 16px 0 0; border-left: 0; }
  #presupuesto { padding: 10mm 0; }
  #presupuesto .eyebrow { margin-bottom: 10px; }
  #presupuesto .section-heading { font-size: 38px; margin-bottom: 20px; }
  .gantt-slide { padding: 8mm 0; }
  .gantt-slide > .wrap { width: 100%; max-width: none; padding-inline: 18mm; }
  .gantt-slide .eyebrow { margin-bottom: 8px; }
  .gantt-slide .section-heading { max-width: none; margin-bottom: 16px; font-size: 34px; }
  .gantt { width: 100%; }
  .gantt-head, .gantt-row { min-height: 44px; grid-template-columns: minmax(290px, 1.4fr) repeat(4, 1fr); }
  .gantt-head span, .gantt-row > span { padding-inline: 12px; }
  .gantt-row { font-size: 12.5px; line-height: 1.22; }
  .gantt-row i { height: 15px; margin-inline: 8px; }
  .gantt-note { max-width: none; margin-top: 12px; font-size: 12px; }
  .gantt-row, .gantt-head { break-inside: avoid; }
  .layout-heading-right .eyebrow,
  .layout-heading-right .section-heading { margin-left: auto; text-align: right; }
  @page { size: A4 landscape; margin: 0; }
}
