:root {
  --ink: #f4f7f2;
  --muted: #aebbb5;
  --paper: #07120f;
  --paper-2: #0b1a16;
  --paper-3: #10251f;
  --line: rgba(220, 239, 228, 0.14);
  --lime: #b7ec45;
  --lime-2: #7fbd2c;
  --mint: #63d6ad;
  --sand: #f0d8a1;
  --warn: #ffbe6a;
  --radius: 24px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --max: 1180px;
}

/* Vista Ecological: identidad cromática y fotografía publicada por la marca. */
body[data-theme="ecological"] {
  --lime: #c1e863;
  --mint: #a5d77a;
  background: linear-gradient(180deg, #0c1815 0%, #172621 58%, #0b1713 100%);
}
body[data-theme="ecological"] .hero {
  background: linear-gradient(90deg, rgba(5, 16, 12, .93), rgba(5, 16, 12, .78) 56%, rgba(5, 16, 12, .2)), url("assets/ecological-obra-oficial.jpg") center / cover;
  border-radius: 0 0 30px 30px;
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
}
body[data-theme="ecological"] .hero-panel { background: rgba(8, 26, 20, .87); backdrop-filter: blur(14px); }
body[data-theme="ecological"] .site-header { background: rgba(5, 18, 14, .94); }
.theme-button {
  border: 1px solid var(--lime); border-radius: 999px; padding: 9px 14px;
  color: var(--lime); background: rgba(183, 236, 69, .08); font: inherit;
  font-size: .76rem; font-weight: 800; cursor: pointer;
}
.theme-button:hover { background: rgba(183, 236, 69, .18); }
.site-header { grid-template-columns: auto 1fr auto auto; }

/* Calendario de treinta publicaciones y una historia diaria. */
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month-head { text-align: center; font-size: .72rem; font-weight: 900; color: #506c59; }
.month-grid .day { display: flex; min-height: 60px; flex-direction: column; justify-content: space-between; padding: 7px; border-radius: 10px; background: #dce8db; font-size: .72rem; font-weight: 900; border: 1px solid #cbd8cb; }
.month-grid .day small { font-size: .6rem; font-weight: 750; line-height: 1.1; }
.month-grid .video { background: #1d4334; color: #ecf8e8; }
.month-grid .carousel { background: #b9e77f; color: #172a1e; }
.month-grid .image { background: #edf4ea; color: #172a1e; }

/* Mapa de divisiones con una plataforma central y despliegue gradual. */
.division-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.division-map > div { min-height: 102px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-3); color: var(--ink); font-size: 1.1rem; font-weight: 900; }
.division-map .division-core { grid-column: span 4; min-height: 110px; background: linear-gradient(100deg, #b7ec45, #77d5a1); color: #102117; font-size: 1.7rem; }
.division-map small { display: block; margin-top: 7px; color: var(--muted); font-size: .77rem; font-weight: 650; }
.division-map .division-core small { color: #1f4a32; }
.map-note { color: var(--muted); font-size: .85rem; }

/* Muestras producidas para la oferta: escena conceptual, no caso real. */
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sample-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-2); }
.sample-card > span { display: block; color: var(--lime); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sample-card h3 { margin: 18px 0 4px; font-size: 1.18rem; }
.sample-card p { color: var(--muted); font-size: .86rem; }
.sample-reel video { display: block; width: 100%; height: 340px; margin-top: 14px; border-radius: 14px; background: #0b1612; object-fit: contain; }
.sample-carousel { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 14px; scrollbar-color: var(--lime) transparent; }
.sample-slide { position: relative; flex: 0 0 90%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; scroll-snap-align: start; background: #17291d; }
.sample-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sample-slide b { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 15px 14px; background: linear-gradient(transparent, rgba(0,0,0,.86)); font-size: .95rem; }
.sample-slide.closing-slide { display: flex; flex-direction: column; justify-content: center; padding: 24px; background: linear-gradient(135deg, #1e4937, #75a72c); }
.sample-slide.closing-slide b { position: static; padding: 0; background: none; font-size: 1.6rem; }
.sample-slide.closing-slide small { margin-top: 14px; font-size: .9rem; }
.sample-single { position: relative; aspect-ratio: 4 / 5; margin-top: 14px; overflow: hidden; border-radius: 14px; }
.sample-single img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sample-single > div { position: absolute; bottom: 0; padding: 36px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.sample-single b { display: block; font-size: 1.28rem; line-height: 1.15; }
.sample-single small { display: block; margin-top: 10px; }
/* La mascota es un concepto creativo separado de las tres muestras de formato. */
.mascot-feature { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(18px, 3vw, 42px); align-items: center; margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(125deg, #10281d, #091610); }
.mascot-visual { position: relative; min-height: 390px; height: 100%; overflow: hidden; }
.mascot-visual > img:first-child { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: contain; object-position: center center; background: #0a2119; }
.mascot-brand, .mascot-watermark { position: absolute; z-index: 2; width: auto; max-width: 105px; max-height: 46px; padding: 5px; border-radius: 6px; background: rgba(8,27,20,.92); object-fit: contain; }
.mascot-brand { top: 18px; left: 18px; }
.mascot-watermark { right: 18px; bottom: 18px; }
.mascot-copy { padding: 24px clamp(22px, 3vw, 46px) 24px 0; }
.mascot-copy h3 { margin: 14px 0; font-size: clamp(1.4rem, 2.4vw, 2.15rem); line-height: 1.12; }
.mascot-copy p:not(.eyebrow) { color: #cbd8ce; line-height: 1.6; }
.mascot-copy .mascot-note { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); font-size: .82rem; }
.channel-ribbon { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.channel-ribbon span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; font-size: .8rem; font-weight: 800; }
/* Five recognisable network frames rotate through the same real sample assets. */
.social-showcase { margin-top: 34px; padding: clamp(18px, 2.5vw, 30px); overflow: hidden; border: 1px solid rgba(183,236,69,.27); border-radius: 28px; background: radial-gradient(circle at 88% 0%, rgba(157,215,88,.12), transparent 38%), #091a14; }
.social-showcase-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.social-showcase-heading h3 { margin: 5px 0; font-size: clamp(1.4rem, 2.7vw, 2.3rem); }
.social-showcase-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .89rem; }
.social-showcase-controls { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.social-showcase-controls button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #193328; color: #f5fff3; font: inherit; font-size: 1.25rem; font-weight: 800; cursor: pointer; }
.social-showcase-controls button:hover, .social-showcase-controls button:focus-visible { border-color: var(--lime); background: #2a5237; }
.social-showcase-controls span { min-width: 44px; text-align: center; color: var(--lime); font-size: .75rem; font-weight: 800; }
.social-simulation-label { display: inline-block; margin: 20px 0 0; padding: 7px 10px; border: 1px solid rgba(183,236,69,.3); border-radius: 100px; color: #d8efae; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.platform-previews { display: flex; gap: 18px; margin-top: 18px; padding: 4px 1px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-color: var(--lime) transparent; }
.platform-frame { flex: 0 0 clamp(250px, 28vw, 318px); min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: #12221b; scroll-snap-align: center; box-shadow: 0 18px 45px rgba(0,0,0,.24); }
.platform-frame-label { display: flex; align-items: center; gap: 9px; min-height: 62px; padding: 9px 13px; background: #0e271d; }
.platform-frame-label b { color: #f6fff3; font-size: .89rem; }
.platform-frame-label small { margin-left: auto; color: #b3c8b5; text-align: right; font-size: .61rem; }
.network-icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: #253f35; }
.network-icon img { width: 19px; height: 19px; object-fit: contain; filter: invert(1); }
.instagram .network-icon { background: linear-gradient(135deg,#6e38c7,#f13a75 55%,#f4a949); }
.facebook .network-icon { background: #1877f2; }
.tiktok .network-icon { background: #060606; }
.youtube .network-icon { background: #ff0033; }
.linkedin .network-icon { background: #0a66c2; }
.linkedin .network-icon img { filter: none; }
.social-app { position: relative; overflow: hidden; height: 520px; background: #fff; color: #1c2922; }
.social-app-top { display: flex; align-items: center; gap: 8px; height: 55px; padding: 8px 10px; }
.social-avatar { width: 36px; height: 36px; border: 1px solid #dce6dc; border-radius: 50%; background: #fff; object-fit: contain; }
.social-app-top span { overflow: hidden; font-size: .69rem; font-weight: 850; white-space: nowrap; text-overflow: ellipsis; }
.social-app-top span small { display: block; color: #66756a; font-size: .57rem; font-weight: 500; }
.social-app-top > b { margin-left: auto; font-size: 1.2rem; }
.social-media { display: block; width: 100%; height: 335px; object-fit: cover; object-position: center top; }
.social-app-actions { display: flex; padding: 8px 11px 0; font-size: 1.25rem; line-height: 1; }
.social-app-actions span { margin-left: auto; }
.social-mock-metrics { padding: 7px 11px 0; font-size: .65rem; }
.social-mock-metrics b { font-weight: 850; }
.social-app p { margin: 5px 11px; font-size: .65rem; line-height: 1.35; }
.social-post-intro { min-height: 35px; }
.social-media-stack { position: relative; }
.social-media-stack .social-media { height: 330px; }
.social-media-stack span { position: absolute; top: 9px; right: 9px; padding: 5px 8px; border-radius: 20px; background: rgba(0,0,0,.75); color: #fff; font-size: .62rem; font-weight: 800; }
.social-facebook-actions { margin: 8px 10px; padding-top: 9px; border-top: 1px solid #dfe7e1; color: #567062; text-align: center; font-size: .61rem; font-weight: 700; }
.facebook .social-app { background: #f6f8fb; }
.linkedin .social-app { background: #f3f5f3; }
.social-vertical { background: #050909; color: #fff; }
.social-video-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.social-vertical::after { position: absolute; inset: 45% 0 0; content: ''; background: linear-gradient(transparent,rgba(0,0,0,.78)); pointer-events: none; }
.social-play { position: absolute; z-index: 2; top: 43%; left: 45%; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 1.1rem; }
.social-vertical-info { position: absolute; z-index: 2; right: 62px; bottom: 22px; left: 13px; }
.social-vertical-info strong, .social-vertical-info small { display: block; text-shadow: 0 1px 8px #000; }
.social-vertical-info strong { margin-bottom: 8px; font-size: .78rem; }
.social-vertical-info small { font-size: .67rem; line-height: 1.35; }
.social-vertical-actions { position: absolute; z-index: 2; right: 8px; bottom: 26px; display: grid; justify-items: center; gap: 3px; font-size: 1.6rem; line-height: 1; text-shadow: 0 1px 8px #000; }
.social-vertical-actions small { margin-bottom: 6px; font-size: .58rem; }
.social-showcase-dots { display: flex; justify-content: center; gap: 7px; margin: 9px 0 3px; }
.social-showcase-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #718776; cursor: pointer; }
.social-showcase-dots button[aria-current="true"] { width: 24px; border-radius: 10px; background: var(--lime); }
.social-showcase .map-note { margin: 11px 0 0; font-size: .69rem; }
@media (max-width: 700px) { .social-showcase-heading { align-items: start; flex-direction: column; } .social-showcase-controls { align-self: flex-end; } .platform-frame { flex-basis: 82%; } }
@media (prefers-reduced-motion: reduce) { .platform-previews { scroll-behavior: auto; } }
.kommo-proof { display: inline-flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 14px; color: var(--mint); text-decoration: none; }
.kommo-proof img { display: block; width: 190px; max-width: 100%; height: auto; border-radius: 7px; }
.kommo-proof small { font-weight: 750; }
.kommo-proof:hover small { text-decoration: underline; }

/* Gráfica de una muestra observable y límites explícitos de evidencia. */
.evidence-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.evidence-metrics article { display: flex; min-height: 160px; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-3); }
.evidence-metrics strong { color: var(--lime); font-size: 2rem; line-height: 1; }
.evidence-metrics span { font-size: .83rem; }
.evidence-metrics a { margin-top: auto; color: var(--mint); font-size: .72rem; }
.evidence-chart, .evidence-warning { margin-top: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); }
.evidence-chart p, .evidence-warning { color: var(--muted); font-size: .86rem; }
.evidence-chart small { color: var(--mint); }
.chart-track { display: flex; width: 100%; height: 28px; overflow: hidden; margin: 14px 0 6px; border-radius: 99px; }
.chart-video { background: var(--lime); }
.chart-image { background: #95a6a0; }
.evidence-warning b { color: var(--ink); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 8px; }
  .sample-grid { grid-template-columns: 1fr 1fr; }
  .mascot-feature { grid-template-columns: 1fr; }
  .mascot-visual, .mascot-visual > img:first-child { min-height: 330px; max-height: 430px; }
  .mascot-copy { padding: 0 24px 26px; }
  .evidence-metrics { grid-template-columns: 1fr 1fr; }
  .platform-previews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .brand strong { font-size: .95rem; }
  .print-button { display: none; }
  .theme-button { padding: 8px; font-size: .67rem; }
  body[data-theme="ecological"] .hero { padding-left: 18px; padding-right: 18px; border-radius: 0 0 20px 20px; }
  .month-grid { gap: 3px; }
  .month-grid .day { min-height: 47px; padding: 4px 2px; font-size: .58rem; }
  .month-grid .day small { font-size: .49rem; }
  .division-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .division-map .division-core { grid-column: span 2; }
  .sample-grid, .evidence-metrics { grid-template-columns: 1fr; }
  .mascot-visual, .mascot-visual > img:first-child { min-height: 260px; max-height: 340px; }
  .sample-reel video { height: 360px; }
  .platform-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .theme-button { display: none !important; }
  .sample-reel video { height: 180px; }
  .sample-slide { flex-basis: 30%; height: 180px; }
  .sample-carousel { overflow: visible; }
  .evidence-metrics { grid-template-columns: 1fr 1fr; }
  .platform-previews { flex-wrap: wrap; overflow: visible; }
  .platform-frame { flex-basis: 30%; page-break-inside: avoid; }
  .social-showcase-controls, .social-showcase-dots { display: none; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 4%, rgba(105, 198, 118, 0.15), transparent 28rem),
    linear-gradient(180deg, #07120f 0%, #0a1713 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: -100px;
  background: var(--lime);
  color: #07120f;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(7, 18, 15, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  background: rgba(7, 18, 15, 0.95);
  border-color: var(--line);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.footer-brand img { display: block; width: 250px; max-width: 100%; height: auto; border-radius: 6px; }

.brand strong,
.brand small {
  display: block;
}

.brand-logo {
  display: block;
  width: 78px;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

.brand strong {
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.7rem;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--lime);
}

.print-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 800;
}

/* Dos vistas editoriales en un mismo enlace: propuesta y benchmark. */
.view-switch {
  position: sticky;
  z-index: 49;
  top: 76px;
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  background: #07120f;
  border-bottom: 1px solid var(--line);
}

.view-switch button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 21px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.view-switch button[aria-selected="true"] {
  color: #0b1a16;
  background: var(--lime);
  border-color: var(--lime);
}

[data-view-panel][hidden] { display: none !important; }

/* Mantiene visibles los títulos al abrir un enlace directo bajo las dos barras fijas. */
section[id] { scroll-margin-top: 156px; }

/* Investigación: imágenes reales, fuentes visibles y lectura comercial. */
.research-hero { padding-top: 120px; padding-bottom: 72px; scroll-margin-top: 160px; }
.research-hero .research-title { max-width: 1020px; margin-bottom: 28px; font-size: clamp(3.2rem, 8vw, 7.1rem); line-height: .91; letter-spacing: -.07em; }
.research-hero .research-title em { display: block; color: var(--lime); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.research-hero .hero-lead { max-width: 840px; }
.research-intro-grid,
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 42px; }
.research-intro-grid article,
.insight-grid article,
.method-grid p {
  margin: 0;
  padding: 24px;
  background: linear-gradient(145deg, rgba(20, 48, 37, 0.94), rgba(10, 25, 21, 0.98));
  border: 1px solid var(--line);
  border-radius: 18px;
}
.research-intro-grid b { display: block; margin-bottom: 12px; color: var(--lime); font-size: 1.4rem; }
.research-intro-grid strong { display: block; font-size: 1.08rem; }
.research-intro-grid span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.92rem; }
.research-disclaimer { max-width: 850px; margin: 28px 0 0; color: var(--muted); font-size: 0.85rem; }
.research-section { padding-top: 58px; }
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.marketing-feature { margin-top: 36px; padding: clamp(26px, 4vw, 44px); border: 1px solid rgba(183,236,69,.45); border-radius: 24px; background: linear-gradient(120deg, rgba(183,236,69,.15), rgba(17,47,36,.96) 62%); }
.marketing-feature h3 { max-width: 780px; margin: 15px 0 22px; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.1; }
.marketing-feature p { max-width: 1050px; color: var(--ink); line-height: 1.65; }
.marketing-feature a, .marketing-grid a { color: var(--lime); text-underline-offset: 4px; }
.evidence-tag { display: inline-block; color: var(--lime); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.marketing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.marketing-grid article, .marketing-takeaway { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); }
.marketing-grid article { display: flex; flex-direction: column; gap: 10px; }
.marketing-grid article > span { color: var(--lime); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.marketing-grid h3 { margin: 0; font-size: 1.45rem; }
.marketing-grid p { margin: 0 0 8px; color: var(--muted); line-height: 1.55; }
.marketing-grid p b, .marketing-takeaway b { color: var(--ink); }
.marketing-grid a { font-size: .84rem; font-weight: 800; }
.evidence-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.marketing-takeaway { margin-top: 16px; border-color: rgba(183,236,69,.38); }
.marketing-takeaway > b { color: var(--lime); text-transform: uppercase; font-size: .74rem; letter-spacing: .08em; }
.marketing-takeaway p { max-width: 950px; color: var(--ink); }
.marketing-takeaway .marketing-limit { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
/* Videoteca: la vista previa conserva contexto y el reproductor solo carga al activarse. */
.video-group-heading { display: grid; grid-template-columns: minmax(160px, .7fr) 2fr; gap: 24px; align-items: end; margin: 42px 0 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.video-group-heading span { color: var(--lime); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.video-group-heading p { max-width: 780px; margin: 0; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-2); }
.video-shell { position: relative; width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1d3a2d, #08120f); }
.video-shell iframe, .video-launch { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-launch { display: block; padding: 0; overflow: hidden; cursor: pointer; background: transparent; color: #fff; }
.video-launch img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.68); transition: filter .25s ease, transform .25s ease; }
.video-launch:hover img, .video-launch:focus-visible img { filter: brightness(.85); transform: scale(1.025); }
.video-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 66px; height: 66px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(7,18,15,.82); font-size: 1.25rem; transform: translate(-50%, -50%); }
.video-duration { position: absolute; right: 14px; bottom: 14px; padding: 6px 9px; border-radius: 5px; background: rgba(7,18,15,.88); font-size: .73rem; font-weight: 800; }
.video-copy { padding: 25px; }
.video-copy > span, .video-bridge > span { color: var(--lime); font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.video-copy h3 { margin: 10px 0 13px; font-size: 1.45rem; }
.video-copy p { color: var(--muted); line-height: 1.6; }
.video-copy p b { color: var(--ink); }
.video-copy a, .video-bridge a { color: var(--lime); font-size: .85rem; font-weight: 800; text-underline-offset: 4px; }
.video-bridge { margin-top: 30px; padding: clamp(26px, 4vw, 45px); border: 1px solid rgba(183,236,69,.4); border-radius: 22px; background: linear-gradient(120deg, rgba(183,236,69,.13), rgba(12,36,28,.94)); }
.video-bridge p { max-width: 1020px; margin: 16px 0 20px; color: var(--ink); font-size: clamp(1rem, 1.8vw, 1.23rem); line-height: 1.65; }
.video-privacy { margin: 15px 0 0; color: var(--muted); font-size: .84rem; }
.competitor-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper-2); box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.competitor-image { position: relative; display: grid; place-items: center; height: 285px; overflow: hidden; background: #e9ede8; }
/* Las capturas de marca, producto y obra se muestran completas: ningún logo ni persona queda cortado. */
.competitor-image img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .35s ease; }
.competitor-image:hover img { transform: scale(1.02); }
.competitor-image.photo-image { background: #d9ded7; }
.competitor-image.brand-image { background: #fffcf5; }
.competitor-image.logo-image img { object-fit: contain; padding: 55px; background: #fff; }
.competitor-image.icon-image { background: #d3e5ca; }
.competitor-image.icon-image img { width: min(42%, 150px); height: auto; max-height: 165px; object-fit: contain; padding: 0; background: transparent; }
.competitor-image > span { position: absolute; right: 16px; bottom: 15px; padding: 7px 12px; color: #07120f; background: var(--lime); border-radius: 999px; font-size: .72rem; font-weight: 850; }
.competitor-body { padding: 27px; }
.competitor-body h3 { margin: 12px 0 13px; font-size: 1.8rem; }
.competitor-body > p { color: var(--muted); }
.competitor-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.competitor-meta span { padding: 5px 10px; border: 1px solid rgba(183,236,69,.3); border-radius: 999px; color: var(--lime); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.competitor-read { margin-top: 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.competitor-read b { display: block; color: var(--ink); margin-bottom: 5px; }
.source-links { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 19px; }
.source-links a { color: var(--lime); font-size: .84rem; font-weight: 800; text-underline-offset: 4px; }
.insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.insight-grid article > span { color: var(--lime); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.insight-grid h3 { margin: 15px 0 10px; }
.insight-grid p, .method-grid p { color: var(--muted); }
.research-bottomline { display: grid; gap: 15px; margin-top: 22px; padding: 32px; border: 1px solid rgba(183,236,69,.45); border-radius: 22px; background: linear-gradient(115deg, rgba(183,236,69,.13), rgba(99,214,173,.04)); }
.research-bottomline span { color: var(--lime); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.research-bottomline strong { max-width: 930px; font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.35; }
.research-bottomline a { width: fit-content; color: var(--lime); font-weight: 800; }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.method-grid b { color: var(--ink); }

/* Piezas publicadas por fabricantes cercanos; cada visual conserva su enlace de origen. */
.creative-heading { margin-top: 58px; }
.creative-heading h3 { margin: 8px 0 12px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.creative-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 25px 0; }
.creative-evidence { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: var(--paper-2); }
.creative-evidence > a { position: relative; display: grid; place-items: center; height: 230px; overflow: hidden; background: #d9ded7; }
.creative-evidence img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .25s ease; }
.creative-evidence > a:hover img { transform: scale(1.02); }
.creative-evidence > a span { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 999px; background: var(--lime); color: #092015; font-size: .72rem; font-weight: 900; }
.creative-evidence > div { padding: 20px; }
.creative-evidence small { color: var(--lime); text-transform: uppercase; letter-spacing: .07em; font-weight: 850; }
.creative-evidence h4 { margin: 9px 0; font-size: 1.18rem; }
.creative-evidence p { margin: 0; color: var(--muted); font-size: .85rem; }
.creative-evidence p b { color: var(--ink); }

/* Los números son fotografías públicas, no una serie temporal ni una cifra de ventas. */
.audience-contrast { margin-top: 14px; padding: 24px; border: 1px solid rgba(183,236,69,.4); border-radius: 18px; background: linear-gradient(130deg, rgba(183,236,69,.12), rgba(5,24,16,.1)); }
.audience-contrast > b { color: var(--lime); font-size: 1.05rem; }
.audience-contrast p { color: var(--muted); font-size: .85rem; }
.audience-bars { display: grid; gap: 12px; max-width: 760px; }
.audience-bars > span { display: grid; grid-template-columns: 94px minmax(0, 1fr) 52px; align-items: center; gap: 12px; font-size: .78rem; font-weight: 800; }
.audience-bars i { display: block; height: 15px; border-radius: 99px; background: var(--lime); }
.audience-bars > span:nth-child(2) i { background: var(--mint); }
.audience-bars b { text-align: right; }

/* Mapa embebido y direcciones originales: acceso rápido para comprobar proximidad. */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 18px; margin-top: 28px; }
.map-layout iframe { width: 100%; min-height: 410px; border: 1px solid var(--line); border-radius: 20px; background: #dce7d8; }
.map-places { display: grid; gap: 10px; }
.map-places a { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-height: 92px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); text-decoration: none; }
.map-places a:hover { border-color: var(--lime); }
.map-places b { color: var(--ink); }
.map-places span { color: var(--muted); font-size: .78rem; }
@media (max-width: 900px) { .creative-grid { grid-template-columns: 1fr 1fr; } .map-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .creative-grid { grid-template-columns: 1fr; } .creative-evidence > a { height: 220px; } .map-layout iframe { min-height: 310px; } .audience-bars > span { grid-template-columns: 82px minmax(0, 1fr) 45px; gap: 7px; font-size: .7rem; } }

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 100px 0;
}

.hero {
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
}

.eyebrow,
.card-label,
.panel-kicker {
  margin: 0 0 16px;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 8vw, 7.1rem);
  line-height: 0.91;
  letter-spacing: -0.07em;
}

h1 em {
  display: block;
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 710px;
  color: #d1dbd6;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions,
.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.button.primary {
  color: #07120f;
  background: var(--lime);
  box-shadow: 0 14px 34px rgba(183, 236, 69, 0.18);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.scope-note {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.scope-dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(99, 214, 173, 0.08);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(183, 236, 69, 0.11), transparent 46%),
    rgba(15, 34, 28, 0.92);
  border: 1px solid rgba(183, 236, 69, 0.24);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.value-block span,
.value-block strong,
.value-block p {
  display: block;
}

.value-block span {
  color: var(--muted);
  font-size: 0.82rem;
}

.value-block strong {
  margin: 5px 0;
  max-width: 10ch;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.value-block p,
.microcopy {
  color: var(--muted);
  font-size: 0.77rem;
}

.value-block.compact strong {
  max-width: 13ch;
  font-size: 2.15rem;
}

.investment-card h3 small {
  color: var(--muted);
  font-size: 0.3em;
  letter-spacing: 0;
}

.panel-rule {
  height: 1px;
  margin: 25px 0;
  background: var(--line);
}

.panel-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 28px 0;
}

.panel-meta div {
  padding: 13px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
}

.panel-meta span,
.panel-meta b {
  display: block;
}

.panel-meta span {
  color: var(--muted);
  font-size: 0.7rem;
}

.panel-meta b {
  margin-top: 4px;
  font-size: 0.84rem;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 78px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.signal-strip div {
  display: flex;
  gap: 13px;
  min-height: 100px;
  align-items: center;
  background: var(--paper-2);
  padding: 20px;
}

.signal-strip b {
  color: var(--lime);
  font-size: 0.78rem;
}

.signal-strip span {
  font-size: 0.85rem;
  font-weight: 750;
  line-height: 1.35;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.contrast-grid,
.investment-grid,
.responsibility-grid,
.boundary-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contrast-card,
.investment-card,
.cost-card,
.boundary-grid article {
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contrast-card.current {
  color: #d9dfdc;
  background: rgba(255, 255, 255, 0.025);
}

.contrast-card.future {
  background: linear-gradient(150deg, rgba(183, 236, 69, 0.12), rgba(99, 214, 173, 0.04));
  border-color: rgba(183, 236, 69, 0.24);
}

.clean-list,
.tick-list,
.module-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li,
.tick-list li,
.module-body li {
  position: relative;
  margin: 11px 0;
  padding-left: 23px;
  color: var(--muted);
}

.clean-list li::before,
.module-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 2px;
  background: var(--lime);
}

.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 900;
}

.journey-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  background: #e9eee8;
  color: #0a1713;
}

.journey-section .eyebrow {
  color: #527d12;
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.journey-stage {
  min-height: 210px;
  padding: 25px;
  border: 1px solid rgba(6, 23, 17, 0.11);
  border-radius: 20px;
  background: #f7f9f6;
}

.journey-stage span,
.journey-stage b,
.journey-stage i {
  display: block;
}

.journey-stage span {
  margin-bottom: 20px;
  color: #5a6963;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journey-stage b {
  font-size: 1.1rem;
}

.journey-stage i {
  color: #77a723;
  font-style: normal;
}

.journey-stage.outcome {
  color: #ecf5ec;
  background: #153226;
}

.journey-stage.outcome span {
  color: var(--lime);
}

.journey-caption {
  max-width: 760px;
  margin: 30px 0 0;
  color: #42514b;
}

.module-grid {
  display: grid;
  gap: 14px;
}

.module-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.module-card[open] {
  background: linear-gradient(140deg, rgba(183, 236, 69, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(183, 236, 69, 0.24);
}

.module-card summary {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 100px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
}

.module-card summary::-webkit-details-marker {
  display: none;
}

.module-index {
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 900;
}

.module-card summary b,
.module-card summary small {
  display: block;
}

.module-card summary b {
  font-size: 1.3rem;
}

.module-card summary small {
  color: var(--muted);
}

.module-card summary i {
  color: var(--lime);
  font-size: 1.7rem;
  font-style: normal;
  transition: transform 180ms ease;
}

.module-card[open] summary i {
  transform: rotate(45deg);
}

.module-body {
  padding: 0 28px 28px 102px;
}

.module-body ul {
  columns: 2;
  column-gap: 50px;
}

.quantity-tabs {
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tab-list {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  background: #06100d;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tab-list button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.tab-list button[aria-selected="true"] {
  color: #07120f;
  background: var(--lime);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metrics-grid > div {
  min-height: 150px;
  padding: 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.metrics-grid strong,
.metrics-grid span,
.metrics-grid small {
  display: block;
}

.metrics-grid strong {
  color: var(--lime);
  font-size: 2rem;
  line-height: 1;
}

.metrics-grid span {
  margin-top: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.metrics-grid small {
  margin-top: 6px;
  color: var(--muted);
}

.publishing-flow {
  display: block;
  margin-top: 22px;
  padding: 34px;
  background: #e8efe9;
  border-radius: var(--radius);
  color: #0a1713;
}
.flow-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px 36px; align-items: end; margin-bottom: 25px; }
.flow-intro .eyebrow { grid-column: 1 / -1; margin: 0; }
.flow-intro h3 { margin: 0; }
.flow-intro > p:last-child { margin: 0; max-width: 65ch; }
.calendar-scroll { overflow-x: auto; padding-bottom: 8px; scrollbar-color: #779c4d transparent; }
.month-grid { min-width: 790px; gap: 8px; }
.month-head { padding: 7px 0; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.month-grid .day { min-width: 0; min-height: 164px; padding: 6px; background: #fff; border: 1px solid #c7d5c9; border-radius: 12px; color: #153025; box-shadow: 0 5px 16px rgba(12,35,23,.05); overflow: hidden; }
.month-grid .day .day-number { display: block; font-size: .7rem; font-weight: 900; padding: 1px 3px 5px; }
.month-grid .day .day-preview { position: relative; display: block; height: 105px; overflow: hidden; border-radius: 7px; background: #143c2c; }
.month-grid .day .day-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.month-grid .day .day-preview::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(4,25,17,.62)); }
.month-grid .day.video .day-preview::before { content: '▶'; position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #c4f35c; color: #103021; font-size: .7rem; box-shadow: 0 2px 12px #0007; }
.month-grid .day.carousel .day-preview::before { content: '▤'; position: absolute; z-index: 1; top: 5px; right: 6px; padding: 1px 5px; border-radius: 4px; background: #f8fff5; color: #1a3726; font-size: .8rem; }
.month-grid .day small { display: block; padding: 5px 3px 2px; font-size: .65rem; color: #1b3b2b; }
.month-grid .day.video, .month-grid .day.carousel, .month-grid .day.image { background: #fff; color: #153025; }
.org-chart { margin-top: 30px; padding: 30px; border: 1px solid #315444; border-radius: 28px; background: radial-gradient(circle at top center, #1f4e37, #10271e 62%); }
.org-lead { display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 100%; margin: 0 auto; padding: 15px 38px; border: 1px solid #9aca74; border-radius: 13px; background: #eaf4e6; color: #173324; text-align: center; }
.org-lead span { font-size: .64rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #537732; }
.org-lead strong { font-size: 1.2rem; }
.org-lead small { color: #476450; }
.org-spine { position: relative; display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 100%; margin: 42px auto 46px; padding: 13px 30px; border: 1px solid #bbf068; border-radius: 12px; background: linear-gradient(110deg, #c6ef67, #80d5a4); color: #13271a; text-align: center; }
.org-spine::before, .org-spine::after { content: ''; position: absolute; left: 50%; height: 42px; width: 1px; background: #9dc98c; }
.org-spine::before { bottom: 100%; }.org-spine::after { top: 100%; }
.org-spine span { font-size: 1.2rem; font-weight: 950; letter-spacing: .12em; }
.org-spine small { font-size: .72rem; font-weight: 650; }
.org-branches { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.org-branches::before { content: ''; position: absolute; top: -14px; left: 7%; right: 7%; height: 1px; background: #80ad83; }
.org-unit { position: relative; min-width: 0; min-height: 205px; padding: 13px 10px 12px; border: 1px solid #497059; border-radius: 13px; background: #e9f1ea; color: #152d20; }
.org-unit::before { content: ''; position: absolute; bottom: 100%; left: 50%; height: 14px; width: 1px; background: #80ad83; }
.org-unit.is-later { opacity: .62; background: #d5ded7; }
.org-unit-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #c3d5c3; color: #3e6d3d; font-weight: 900; }
.org-unit-top b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #64ab45; color: #fff; font-size: .83rem; }
.is-later .org-unit-top b { background: #a9b8aa; color: #274334; }
.org-unit h3 { margin: 13px 0 7px; font-size: .82rem; line-height: 1.15; }
.org-unit p { margin: 0; font-size: .69rem; line-height: 1.38; color: #3b5342; }
.org-unit > small { display: block; margin-top: 12px; font-size: .62rem; color: #4c6e4d; }
@media (max-width: 900px) { .flow-intro { display: block; } .org-branches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .org-branches::before, .org-unit::before, .org-spine::after { display: none; } .org-unit { min-height: 155px; } }
@media (max-width: 600px) { .publishing-flow { padding: 20px 14px; } .month-grid { min-width: 790px; gap: 6px; } .month-grid .day { min-height: 160px; padding: 6px; font-size: .7rem; } .month-grid .day small { font-size: .63rem; } .org-chart { padding: 18px 12px; } .org-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } .org-lead { padding: 13px 15px; } .org-lead strong { font-size: 1rem; } }

.publishing-flow .eyebrow {
  color: #4b7810;
}

.publishing-flow p {
  color: #4c5a54;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.week-grid div {
  display: flex;
  min-height: 100px;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  background: rgba(5, 20, 15, 0.05);
  border: 1px solid rgba(5, 20, 15, 0.12);
  border-radius: 13px;
}

.week-grid .main-day {
  color: #eef9ee;
  background: #173a2b;
}

.week-grid b {
  font-size: 0.73rem;
  text-transform: uppercase;
}

.week-grid span {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
}

.channel-total {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(5, 20, 15, 0.12);
}

.timeline {
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline .time {
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.timeline b {
  font-size: 1.22rem;
}

.timeline p {
  margin: 4px 0 0;
  color: var(--muted);
}

.delivery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.delivery-strip div {
  padding: 22px;
  background: var(--paper-3);
}

.delivery-strip b,
.delivery-strip span {
  display: block;
}

.delivery-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.architecture-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 28px;
  background: #e9eee8;
  border-radius: var(--radius);
  color: #0a1713;
}

.architecture-map > i {
  color: #6c9e18;
  font-style: normal;
  font-size: 1.3rem;
}

.arch-card {
  min-height: 160px;
  padding: 20px;
  background: #f7f9f6;
  border: 1px solid rgba(6, 23, 17, 0.1);
  border-radius: 16px;
}

.arch-card span,
.arch-card b,
.arch-card small {
  display: block;
}

.arch-card span {
  color: #617068;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arch-card b {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.arch-card small {
  color: #58635e;
}

.arch-card.os {
  color: #f4f7f2;
  background: #173a2b;
}

.arch-card.os span,
.arch-card.os small {
  color: #cfe0d4;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.stack-card {
  min-height: 170px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.stack-card span,
.stack-card b {
  display: block;
}

.stack-card span {
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stack-card b {
  margin-top: 18px;
}

.stack-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}

.stack-verdict {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  margin-top: 20px;
  padding: 27px;
  background: rgba(183, 236, 69, 0.08);
  border: 1px solid rgba(183, 236, 69, 0.2);
  border-radius: 17px;
}

.stack-verdict p {
  margin: 0;
  color: #ccd8d1;
}

.investment-grid {
  align-items: stretch;
}

.investment-card {
  background: rgba(255, 255, 255, 0.025);
}

.investment-card.primary-card {
  background: linear-gradient(150deg, rgba(183, 236, 69, 0.12), rgba(99, 214, 173, 0.04));
  border-color: rgba(183, 236, 69, 0.26);
}

.investment-card h3 {
  margin-bottom: 8px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.065em;
}

.money-note,
.tax-note {
  color: var(--muted);
  font-size: 0.83rem;
}

.payment-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 28px 0;
}

.payment-flow div {
  padding: 13px;
  background: rgba(0, 0, 0, 0.17);
  border-radius: 13px;
}

.payment-flow span,
.payment-flow b {
  display: block;
}

.payment-flow span {
  color: var(--muted);
  font-size: 0.7rem;
}

.payment-flow b {
  margin-top: 4px;
  font-size: 0.87rem;
}

.payment-flow i {
  color: var(--lime);
  font-style: normal;
}

.retainer-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 25px;
}

.retainer-terms span {
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
}

.responsibility-grid {
  margin-top: 20px;
}

.cost-card.included {
  background: rgba(99, 214, 173, 0.06);
}

.cost-card.external {
  background: rgba(240, 216, 161, 0.06);
}

.cost-card p:not(.card-label) {
  color: var(--muted);
}

.ad-budget {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.security {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(140deg, #e8efe9, #cdddcf);
  color: #0a1713;
}

.security .eyebrow {
  color: #4c7614;
}

.security .section-heading {
  margin: 0;
}

.security .section-heading > p:not(.eyebrow) {
  color: #4b5c54;
}

.security-list {
  display: grid;
  gap: 8px;
}

.security-list div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 17px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(8, 30, 20, 0.1);
  border-radius: 13px;
}

.security-list b {
  color: #57860f;
}

.security-list span {
  font-weight: 800;
}

.boundary-grid article {
  background: rgba(255, 255, 255, 0.025);
}

.change-control {
  margin-top: 20px;
  padding: 24px;
  color: #19210e;
  background: var(--lime);
  border-radius: 16px;
  font-weight: 950;
  text-align: center;
}

.delivery-guarantee {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px 34px;
  margin: 24px 0;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(183, 236, 69, 0.36);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(183, 236, 69, 0.13), rgba(99, 214, 173, 0.035));
}

.delivery-guarantee h3 {
  margin: 12px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.delivery-guarantee p { margin: 0; align-self: center; font-size: 1.02rem; line-height: 1.6; }
.delivery-guarantee small { grid-column: 1 / -1; color: var(--muted); line-height: 1.55; }
.guarantee-mark { color: var(--lime); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.value-comparison {
  margin-top: 26px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(183, 236, 69, 0.32);
  border-radius: 24px;
  background: radial-gradient(circle at 92% 10%, rgba(183, 236, 69, 0.12), transparent 34%), rgba(255, 255, 255, 0.025);
}

.value-comparison-intro h3 { max-width: 780px; margin: 8px 0 12px; font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.1; }
.value-comparison-intro p { max-width: 830px; color: var(--muted); }
.value-comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 16px; }
.value-comparison-grid > div { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, 0.15); }
.value-comparison-grid .comparison-solution { border-color: rgba(183, 236, 69, 0.48); background: rgba(183, 236, 69, 0.1); }
.value-comparison-grid span, .value-comparison-grid strong { display: block; }
.value-comparison-grid span { color: var(--muted); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.value-comparison-grid strong { margin: 12px 0; font-size: clamp(1.4rem, 2vw, 2.2rem); letter-spacing: -0.04em; line-height: 1.12; }
.value-comparison-grid strong small { display: inline; font-size: 0.48em; font-weight: 600; letter-spacing: 0; }
.value-comparison-grid p { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.comparison-caveat { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }

@media (max-width: 800px) {
  .delivery-guarantee { grid-template-columns: 1fr; }
  .value-comparison-grid { grid-template-columns: 1fr; }
}

.decision-panel {
  overflow: hidden;
  padding: clamp(30px, 6vw, 70px);
  background:
    radial-gradient(circle at 94% 10%, rgba(183, 236, 69, 0.24), transparent 22rem),
    var(--paper-3);
  border: 1px solid rgba(183, 236, 69, 0.24);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.decision-panel ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
  counter-reset: decision;
}

.decision-panel li {
  position: relative;
  min-height: 95px;
  padding: 18px 18px 18px 56px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 15px;
  counter-increment: decision;
}

.decision-panel li::before {
  content: counter(decision, decimal-leading-zero);
  position: absolute;
  left: 17px;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 950;
}

.status-line {
  margin: 20px 0 0;
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 40px 0 60px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}

footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
  }

  .hero-grid,
  .publishing-flow,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey {
    grid-template-columns: repeat(2, 1fr);
  }

  .architecture-map {
    grid-template-columns: 1fr;
  }

  .architecture-map > i {
    transform: rotate(90deg);
    text-align: center;
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding: 10px 16px;
  }

  .brand small,
  .print-button span {
    display: none;
  }

  .brand-logo {
    width: 60px;
  }

  .print-button {
    padding: 8px 12px;
    font-size: 0.76rem;
  }

  .section {
    width: min(calc(100% - 28px), var(--max));
    padding: 72px 0;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
  }

  .hero-panel {
    padding: 28px 23px;
  }

  .signal-strip,
  .contrast-grid,
  .investment-grid,
  .responsibility-grid,
  .boundary-grid,
  .journey,
  .stack-grid,
  .delivery-strip,
  .decision-panel ol {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    min-height: 82px;
  }

  .module-card summary {
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
    padding: 18px;
  }

  .module-card summary b {
    font-size: 1.05rem;
  }

  .module-body {
    padding: 0 18px 22px 18px;
  }

  .module-body ul {
    columns: 1;
  }

  .tab-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .tab-list button {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-grid > div {
    min-height: 135px;
    padding: 17px;
  }

  .week-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stack-verdict {
    grid-template-columns: 1fr;
  }

  .payment-flow {
    grid-template-columns: 1fr;
  }

  .payment-flow i {
    transform: rotate(90deg);
    text-align: center;
  }

  .ad-budget {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .view-switch { top: 76px; justify-content: stretch; }
  .view-switch button { flex: 1; padding: 10px 8px; font-size: .71rem; }
  .research-hero { padding-top: 55px; }
  .research-intro-grid, .research-grid, .marketing-grid, .video-grid, .insight-grid, .method-grid, .video-group-heading { grid-template-columns: 1fr; }
  .research-intro-grid { margin-top: 28px; }
  .competitor-image { height: 250px; }
  .competitor-body { padding: 22px; }
}

@media (max-width: 680px) {
  .view-switch { top: 66px; }
}

@media print {
  :root {
    --ink: #111914;
    --muted: #536059;
    --paper: #ffffff;
    --paper-2: #ffffff;
    --paper-3: #f0f4f0;
    --line: rgba(7, 22, 15, 0.16);
    --lime: #4f7c0f;
  }

  html,
  body {
    color: var(--ink);
    background: #fff;
  }

  .site-header,
  .view-switch,
  .hero-actions,
  .decision-actions,
  .skip-link {
    display: none !important;
  }

  .section {
    width: 100%;
    padding: 34px 0;
    break-inside: auto;
  }

  .hero {
    padding-top: 0;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-panel,
  .contrast-card,
  .module-card,
  .quantity-tabs,
  .investment-card,
  .cost-card,
  .decision-panel,
  .boundary-grid article,
  .stack-card {
    color: #111914;
    background: #fff !important;
    box-shadow: none;
    break-inside: avoid;
  }

  .journey-section,
  .security,
  .publishing-flow,
  .architecture-map,
  .change-control {
    color: #111914;
    background: #eef3ee !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .module-card {
    break-inside: avoid;
  }

  .module-card:not([open]) .module-body {
    display: block;
  }

  .tab-panel[hidden] {
    display: block !important;
    margin-top: 24px;
  }

  .tab-list {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  footer {
    width: 100%;
    color: #536059;
  }

  .competitor-card, .marketing-feature, .marketing-grid article, .marketing-takeaway, .video-card, .video-bridge, .insight-grid article, .method-grid p, .research-bottomline {
    color: #111914;
    background: #fff !important;
    box-shadow: none;
    break-inside: avoid;
  }

  .competitor-body > p, .insight-grid p, .method-grid p { color: #354139; }
  .marketing-feature p, .marketing-feature a, .marketing-grid a { color: #263c30; }
  .video-shell { display: none; }
  .video-copy p, .video-bridge p, .video-copy a, .video-bridge a { color: #263c30; }

  /* La variante fotográfica y las muestras también deben ser legibles al imprimir. */
  body[data-theme="ecological"] .hero,
  body[data-theme="ecological"] .hero-panel,
  .sample-card,
  .division-map > div,
  .evidence-metrics article,
  .evidence-chart,
  .evidence-warning {
    color: #111914 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  .sample-card p, .division-map small, .map-note, .evidence-chart p, .evidence-warning { color: #354139 !important; }
  .sample-card > span, .evidence-metrics strong, .evidence-metrics a { color: #37691d !important; }
}

/* Lectura visual de datos públicos: cada barra muestra un conteo, nunca una proyección de ventas. */
.market-data-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.market-chart-card { min-width: 0; padding: clamp(22px, 3vw, 34px); border: 1px solid rgba(183,236,69,.28); border-radius: 24px; background: linear-gradient(155deg, #183528, #0c2018 72%); box-shadow: 0 20px 65px rgba(0,0,0,.12); }
.market-chart-card--momentum { background: linear-gradient(155deg, #234638, #0d201a 72%); }
.market-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.market-chart-head span, .market-timeframe span, .market-audience span { color: var(--lime); font-size: .69rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.market-chart-head strong { color: var(--lime); font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: .95; white-space: nowrap; }
.market-chart-card h3 { max-width: 420px; margin: 24px 0 8px; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.14; }
.market-chart-card p { max-width: 510px; min-height: 64px; margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.55; }
.market-bars { display: grid; gap: 16px; margin-top: 32px; }
.market-bars > div { display: grid; grid-template-columns: 92px minmax(0, 1fr) 44px; align-items: center; gap: 12px; }
.market-bars span { color: var(--ink); font-size: .78rem; font-weight: 800; }
.market-bars i { display: block; width: 100%; height: 20px; border-radius: 99px; background: linear-gradient(to right, var(--fill) var(--bar-width), rgba(255,255,255,.12) var(--bar-width)); }
.market-bar--cube { --fill: #b7ec45; }
.market-bar--eco { --fill: #73c5a2; }
.market-bar--zero { --fill: #73c5a2; }
.market-bars b { color: var(--ink); text-align: right; font-size: 1rem; }
.market-sources { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 16px; }
.market-sources a { color: var(--mint); font-size: .72rem; text-underline-offset: 3px; }

/* La línea de tiempo hace explícito el contraste de recencia, separado del volumen acumulado. */
.market-timeframe { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr); gap: 30px; align-items: center; margin-top: 18px; padding: clamp(22px, 3vw, 36px); border: 1px solid rgba(183,236,69,.36); border-radius: 24px; background: radial-gradient(circle at 75% 50%, rgba(183,236,69,.17), transparent 48%), #10271d; }
.market-timeframe strong { display: block; margin: 12px 0 8px; color: var(--lime); font-size: clamp(2.8rem, 5vw, 5.5rem); line-height: .95; }
.market-timeframe p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.58; }
.market-timeline { position: relative; display: flex; justify-content: space-between; gap: 12px; min-height: 118px; padding-top: 55px; }
.market-timeline::before { content: ''; position: absolute; top: 44px; right: 0; left: 0; height: 4px; border-radius: 8px; background: linear-gradient(to right, #73c5a2 0 6%, rgba(255,255,255,.23) 6% 84%, #b7ec45 84% 100%); }
.market-timeline > span { position: relative; width: 30%; max-width: 128px; color: var(--ink); font-size: .7rem; line-height: 1.4; letter-spacing: .02em; text-transform: none; }
.market-timeline > span::before { content: ''; position: absolute; top: -20px; left: 0; width: 12px; height: 12px; border: 3px solid #10271d; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--lime); }
.market-timeline > .market-time-start::before { background: var(--mint); box-shadow: 0 0 0 2px var(--mint); }
.market-time-mid { margin-left: auto; }
.market-time-end { text-align: right; }
.market-time-end::before { left: auto !important; right: 0; }
.market-timeline b { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.market-time-note { display: block; margin-top: 4px; color: var(--muted); font-size: .65rem; }

/* La audiencia es una oportunidad de conversión, no un indicador de facturación. */
.market-audience { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); gap: 24px; align-items: center; margin-top: 18px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper-2); }
.market-audience strong { display: block; margin: 10px 0; color: var(--ink); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; }
.market-audience p { max-width: 670px; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.57; }
.market-audience p b { color: var(--ink); }
.market-audience-bars { display: grid; gap: 11px; }
.market-audience-bars > span { display: grid; grid-template-columns: 76px minmax(0, 1fr) 42px; align-items: center; gap: 8px; color: var(--ink); font-size: .71rem; letter-spacing: 0; text-transform: none; }
.market-audience-bars i { display: block; height: 13px; border-radius: 99px; background: var(--mint); }
.market-audience-bars > span:nth-child(2) i { background: var(--lime); }
.market-audience-bars b { text-align: right; }

/* En pantallas estrechas las gráficas se apilan sin perder valores ni fuentes. */
@media (max-width: 760px) { .market-data-story, .market-timeframe, .market-audience { grid-template-columns: 1fr; } .market-chart-card p { min-height: 0; } .market-timeline { min-height: 108px; } }
@media (max-width: 480px) { .market-bars > div { grid-template-columns: 78px minmax(0, 1fr) 35px; gap: 7px; } .market-timeline > span { font-size: .59rem; } .market-time-mid { margin-left: 0; } .market-timeframe, .market-audience, .market-chart-card { border-radius: 18px; } }

/* Impresión sin fondos oscuros ni barras invisibles. */
@media print { .market-chart-card, .market-timeframe, .market-audience { color: #111914 !important; background: #fff !important; box-shadow: none !important; break-inside: avoid; } .market-chart-card h3, .market-chart-card p, .market-timeframe p, .market-audience strong, .market-audience p, .market-bars span, .market-bars b, .market-timeline > span, .market-audience-bars > span { color: #263c30 !important; } .market-bars i, .market-audience-bars i { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }

/* Organigrama de Ecological: jerarquía y siete columnas, inspirado en el formato compartido. */
.org-scroll-hint { display: none; margin: 18px 0 0; color: var(--lime); font-size: .78rem; font-weight: 800; }
.org-chart { margin-top: 30px; overflow-x: auto; padding: 28px; border: 1px solid #315444; border-radius: 26px; background: #eaf1ed; color: #172c23; scrollbar-color: #81bb54 #dce9e0; }
.org-chart:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.org-canvas { min-width: 1050px; }
.org-governance { position: relative; width: 250px; padding: 12px 17px; border: 1px solid #6a9b82; border-radius: 10px; background: #f9fdf9; }
.org-governance::after { content: ''; position: absolute; top: 50%; left: 100%; width: 166px; border-top: 2px solid #9bbdb0; }
.org-governance span, .org-executive span { display: block; color: #31795b; font-size: .64rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.org-governance strong, .org-executive strong { display: block; margin-top: 3px; font-size: .77rem; line-height: 1.2; }
.org-leadership { position: relative; display: grid; justify-items: center; gap: 10px; width: 285px; margin: -60px auto 48px; }
.org-leadership::after { content: ''; position: absolute; top: 100%; left: 50%; height: 34px; border-left: 2px solid #9bbdb0; }
.org-executive { width: 100%; padding: 10px 15px; border: 1px solid #b4c9bd; border-radius: 8px; background: #fff; text-align: center; }
.org-executive span { margin: -10px -15px 8px; padding: 6px; color: #fff; background: #008368; border-radius: 7px 7px 0 0; }
.org-branches { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.org-branches::before { content: ''; position: absolute; bottom: calc(100% + 17px); left: 7%; right: 7%; border-top: 2px solid #9bbdb0; }
.org-unit { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 355px; overflow: visible; padding: 0; border: 1px solid #c7d8cd; border-radius: 8px; background: #fff; color: #172c23; }
.org-unit::before { content: ''; position: absolute; z-index: 1; bottom: 100%; left: 50%; height: 18px; border-left: 2px solid #9bbdb0; }
.org-unit.is-later { opacity: 1; background: #fff; }
.org-unit-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 39px; padding: 6px 7px; border-bottom: 0; border-radius: 7px 7px 0 0; background: var(--org-accent); color: #fff; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.org-unit-top b { display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: #d9f77b; color: #17352c; font-size: .75rem; }
.is-later .org-unit-top b { background: #eef3ef; color: #546b5d; }
.org-unit-owner { padding: 12px 8px; background: #e4f3ee; color: #21493b; font-size: .67rem; font-weight: 850; text-align: center; }
.org-unit-owner small { display: block; margin-top: 3px; color: #5d7669; font-size: .62rem; }
.org-unit ul { display: grid; gap: 10px; margin: 17px 0 20px; padding: 0 12px 0 24px; font-size: .65rem; line-height: 1.3; }
.org-unit li::marker { color: var(--org-accent); }
.org-unit-bottom { margin-top: auto; padding: 11px 7px; border-top: 1px solid #d2e2d8; color: #547264; font-size: .58rem; font-weight: 850; text-align: center; text-transform: uppercase; }
.org-unit-bottom strong { display: block; margin-top: 3px; color: #223d31; font-size: .64rem; text-transform: none; }
.org-data-rail { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 22px; padding: 11px; border-radius: 8px; background: linear-gradient(100deg, #bee865, #79d4a5); color: #173320; font-size: .7rem; }
.org-data-rail strong { font-size: 1.05rem; letter-spacing: .08em; }
@media (max-width: 900px) { .org-scroll-hint { display: block; } .org-governance::after { top: 100%; left: 50%; width: 0; height: 20px; border-top: 0; border-left: 2px solid #9bbdb0; } .org-leadership { margin: 20px 0 48px; } .org-branches { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; } .org-branches::before, .org-unit::before { display: block; } .org-unit { min-height: 355px; } }
@media (max-width: 600px) { .org-chart { padding: 16px; } .org-branches { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media print { .org-chart { overflow: visible; padding: 8px; border-color: #9bbdb0; background: #fff; } .org-canvas { min-width: 0; } .org-unit { min-height: 270px; } .org-unit ul { font-size: .54rem; } .org-scroll-hint { display: none; } }

/* Barras de audiencia: perfiles con escalas distintas, sin atribuirles ventas ni conversiones. */
.market-bars--audience > div { grid-template-columns: 118px minmax(0, 1fr) 62px; }
.market-bars--audience span { font-size: .7rem; }
.market-bars--audience b { font-size: .85rem; white-space: nowrap; }
.marketing-grid .marketing-leader { border-color: rgba(183,236,69,.5); background: linear-gradient(150deg, #193a2b, #0d2119 76%); }
.marketing-grid .marketing-leader > span { color: var(--lime); }
@media (max-width: 480px) { .market-bars--audience > div { grid-template-columns: 101px minmax(0, 1fr) 53px; gap: 7px; } .market-bars--audience span { font-size: .61rem; } .market-bars--audience b { font-size: .72rem; } }

/* Perfil empresarial: evidencia legible y sin barras que simulen ingresos no disponibles. */
.company-summary tbody th { width: 25%; }
.company-summary tbody td { width: 37.5%; }
.company-summary small { display: block; margin-top: 5px; color: var(--muted); font-weight: 400; }
/* Fichas desplegables mantienen la comparación concisa y las fuentes a un clic. */
.company-details { display: grid; gap: 12px; margin-top: 28px; }
.company-details > details { padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); scroll-margin-top: 165px; }
.company-details summary { cursor: pointer; color: var(--ink); line-height: 1.45; }
.company-details summary span { display: inline-block; min-width: 220px; color: var(--lime); font-size: .86rem; font-weight: 850; }
.company-details summary b { font-size: .86rem; font-weight: 600; }
.company-detail-body { margin-top: 20px; }
.company-detail-body dl { margin: 0; }
.company-detail-body dl > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 15px 0; border-top: 1px solid var(--line); font-size: .84rem; line-height: 1.65; }
.company-detail-body dt { color: var(--lime); font-weight: 700; }
.company-detail-body dd { margin: 0; color: var(--muted); }
.company-detail-body p { color: var(--muted); font-size: .84rem; line-height: 1.65; }
.company-takeaway { padding: 14px 16px; border-left: 3px solid var(--mint); background: var(--paper-3); border-radius: 0 8px 8px 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.company-takeaway b { color: var(--ink); }
.company-jump { color: var(--lime); font-weight: 750; font-size: .84rem; }
/* Solo se comparan años de la misma sociedad, moneda y reporte. */
.reference-finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.reference-finance-card { min-width: 0; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper-2); }
.reference-finance-card:first-child { border-color: rgba(183,236,69,.45); background: linear-gradient(145deg, #1b3a2d, var(--paper-2)); }
.reference-finance-card h3 { margin: 18px 0; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.reference-finance-card p, .reference-finance-card details { color: var(--muted); font-size: .84rem; line-height: 1.65; }
.reference-finance-card details summary { cursor: pointer; color: var(--lime); }
.finance-year-bars { display: grid; gap: 14px; margin: 26px 0; }
.finance-year-bars > div { display: grid; grid-template-columns: 40px minmax(0,1fr) 72px; align-items: center; gap: 10px; font-size: .8rem; }
.finance-year-bars i { display: block; width: var(--bar-width); height: 24px; border-radius: 4px; background: var(--mint); }
.finance-year-bars > div:last-child i { background: var(--lime); }
.finance-year-bars b { color: var(--ink); text-align: right; }
.finance-facts { margin: 24px 0; }
.finance-facts > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.5; }
.finance-facts dt { color: var(--muted); }
.finance-facts dd { margin: 0; color: var(--ink); font-weight: 700; }
.finance-facts small { display: block; margin-top: 5px; font-size: .7rem; color: var(--muted); font-weight: 400; }
@media (max-width: 760px) { .reference-finance-grid { grid-template-columns: 1fr; } .company-details summary span, .company-details summary b { display: block; min-width: 0; } .company-details summary b { margin-top: 6px; } .company-detail-body dl > div { grid-template-columns: 1fr; gap: 5px; } .company-details > details { padding: 18px; } }
@media print { .reference-finance-card, .company-details > details, .company-takeaway { background: #fff !important; color: #172c23 !important; border-color: #aac3b2 !important; } .reference-finance-card p, .finance-facts dt, .finance-facts dd, .finance-facts small, .company-detail-body dd, .company-detail-body p { color: #263c30 !important; } .company-details summary span, .reference-finance-card details summary, .finance-year-bars b { color: #31795b !important; } }
.business-profile-lead { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; margin-top: 32px; }
.business-profile-lead article { min-width: 0; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper-2); }
.business-profile-lead article > span { color: var(--lime); font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.business-profile-lead h3 { margin: 16px 0; font-size: 1.35rem; line-height: 1.3; }
.business-profile-identity dl { margin: 0; }
.business-profile-identity dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .84rem; }
.business-profile-identity dt { color: var(--muted); }
.business-profile-identity dd { margin: 0; line-height: 1.6; }
.business-profile-lead small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.business-profile-record { border-color: rgba(183,236,69,.4) !important; background: linear-gradient(145deg, #1b3a2d, var(--paper-2)) !important; }
.business-profile-record > strong { display: block; margin: 24px 0 10px; color: var(--lime); font-size: clamp(2.7rem, 5vw, 4.7rem); letter-spacing: -.05em; line-height: 1.1; }
.business-profile-record p { color: var(--muted); font-size: .9rem; line-height: 1.65; }
.business-profile-record p b { color: var(--ink); }
.business-profile-table { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--paper-2); }
.business-profile-table:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.business-profile-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: .84rem; line-height: 1.6; }
.business-profile-table caption { padding: 22px; color: var(--muted); font-size: .8rem; text-align: left; }
.business-profile-table th, .business-profile-table td { padding: 19px 22px; vertical-align: top; border-top: 1px solid var(--line); }
.business-profile-table thead th { color: var(--lime); background: var(--paper-3); }
.business-profile-table tbody th { width: 22%; }
.business-profile-table tbody td { width: 39%; color: var(--muted); }
.business-profile-table a, .business-profile-findings a { color: var(--lime); text-underline-offset: 4px; }
.business-profile-findings { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.business-profile-findings article { padding: 24px; border-left: 3px solid var(--mint); background: var(--paper-3); border-radius: 0 14px 14px 0; }
.business-profile-findings h3 { margin: 0 0 12px; font-size: 1.1rem; }
.business-profile-findings p, .business-profile-note { color: var(--muted); font-size: .84rem; line-height: 1.65; }
.business-profile-note { margin: 22px 0 0; }
.business-profile-scroll-hint { display: none; color: var(--lime); font-size: .78rem; }
/* En móvil la ficha se apila y la tabla conserva un desplazamiento explícito. */
@media (max-width: 760px) { .business-profile-lead, .business-profile-findings { grid-template-columns: 1fr; } .business-profile-table table { min-width: 670px; } .business-profile-identity dl > div { grid-template-columns: 110px minmax(0, 1fr); } .business-profile-scroll-hint { display: block; margin: 24px 0 -10px; } }
/* La evidencia sigue visible en impresión; las filas se mantienen juntas. */
@media print { .business-profile-lead article, .business-profile-table, .business-profile-findings article { color: #172c23 !important; background: #fff !important; border-color: #aac3b2 !important; } .business-profile-lead p, .business-profile-lead small, .business-profile-identity dt, .business-profile-table td, .business-profile-note, .business-profile-findings p, .business-profile-record p b { color: #263c30 !important; } .business-profile-record > strong, .business-profile-lead article > span, .business-profile-table thead th { color: #31795b !important; } .business-profile-table { overflow: visible; } .business-profile-table table { min-width: 0; } .business-profile-table tr { break-inside: avoid; } }
