/* ============================================================
   BIM Forum Chile v10.3 — Slice Hero + bS + Contacto
   ============================================================ */

/* ── Slice Hero ─────────────────────────────────────────────── */
.slice-stage {
  position: relative; height: 100svh; min-height: 640px;
  overflow: hidden; background: #070f1a;
  display: flex; flex-direction: column;
}
.slice-wrap { position: absolute; inset: 0; z-index: 0; }
.slice-clip  { position: absolute; inset: 0; overflow: hidden; }
.slice-inner {
  position: absolute; inset: -2px; /* slight bleed to hide subpixel gaps */
  will-change: transform;
}
.slice-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .17;
}
.slice-ov {
  position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(7,15,26,.96) 0%, rgba(11,40,80,.9) 100%);
}
/* Scan-line micro-texture */
.slice-scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(0deg,
    transparent, transparent 3px,
    rgba(255,255,255,.012) 3px, rgba(255,255,255,.012) 4px);
}
/* Bottom fade vignette */
.slice-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 35%; z-index: 2;
  background: linear-gradient(to top, rgba(7,15,26,.65), transparent);
  pointer-events: none;
}
.slice-content {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; flex: 1;
}
/* Hex deco */
.slice-hex {
  position: absolute; z-index: 3; pointer-events: none;
  border: 1.5px solid rgba(85,187,235,.1);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: hexFloat 10s ease-in-out infinite;
}
.slice-hex.a { width: clamp(220px,28vw,420px); aspect-ratio: .866; right: -5%; top: 8%; }
.slice-hex.b { width: clamp(90px,10vw,160px); aspect-ratio: .866; right: 22%; top: -8%; background: rgba(1,117,201,.05); animation-delay: -5s; }
.slice-hex.c { width: 64px; aspect-ratio: .866; left: 15%; bottom: 12%; border-color: rgba(243,146,0,.2); animation-delay: -8s; animation-duration: 13s; }

/* Text fade-in */
.hero3-text {
  transition: opacity .95s cubic-bezier(.16,1,.3,1), transform .95s cubic-bezier(.16,1,.3,1);
}
.hero3-text.hidden { opacity: 0; transform: translateY(22px); }
.hero3-text.visible { opacity: 1; transform: none; }

/* Vertical accent line */
.hero3-vline {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, transparent, var(--cta) 30%, var(--c1) 70%, transparent);
  border-radius: 2px; opacity: .6;
}

/* ── TWEAKS: Dark theme ─────────────────────────────────────── */
[data-theme="dark"] {
  --paper:   #0d1520;
  --ink-25:  #101c2a;
  --ink-50:  #152030;
  --ink-100: #1c3048;
  --ink-200: #263d57;
  --ink-300: #5a7a94;
  --ink-400: #7e98ab;
  --ink-500: #a8bdc8;
  --ink-700: #c8d8e4;
  --ink-900: #e2edf5;
}
/* hardcoded-white component overrides */
[data-theme="dark"] .news-card,
[data-theme="dark"] .voice,
[data-theme="dark"] .comm,
[data-theme="dark"] .plan:not(.featured),
[data-theme="dark"] .standard-card,
[data-theme="dark"] .premium-card,
[data-theme="dark"] .biblio-filters,
[data-theme="dark"] .doc,
[data-theme="dark"] .emp-job,
[data-theme="dark"] .emp-filters,
[data-theme="dark"] .ev-card,
[data-theme="dark"] .purpose-card,
[data-theme="dark"] .tri-card {
  background: var(--ink-50) !important;
  border-color: var(--ink-100) !important;
  color: var(--ink-900) !important;
}
[data-theme="dark"] .hdr {
  background: rgba(13,21,32,.93) !important;
  border-color: var(--ink-100) !important;
}
[data-theme="dark"] .hdr .nav__item { color: var(--ink-700) !important; }
[data-theme="dark"] .socio-slot { background: var(--ink-50) !important; border-color: var(--ink-100) !important; }
[data-theme="dark"] .contact-field { background: var(--ink-50) !important; border-color: var(--ink-100) !important; color: var(--ink-900) !important; }
[data-theme="dark"] .contact-topic-btn { background: var(--ink-50) !important; border-color: var(--ink-100) !important; }
[data-theme="dark"] .contact-info-card { background: var(--ink-50) !important; }
[data-theme="dark"] .contact-info-item { background: var(--ink-100) !important; border-color: var(--ink-200) !important; }
[data-theme="dark"] .bs-standard { background: var(--ink-50) !important; border-color: var(--ink-100) !important; }
[data-theme="dark"] .platinum-card { background: linear-gradient(145deg,#071222,#0a2038) !important; }
[data-theme="dark"] .individual-chip { background: var(--ink-50) !important; border-color: var(--ink-100) !important; }
[data-theme="dark"] .emp-searchfield { background: var(--ink-50) !important; border-color: var(--ink-100) !important; }
[data-theme="dark"] .emp-sort { background: var(--ink-50) !important; border-color: var(--ink-100) !important; color: var(--ink-900) !important; }
[data-theme="dark"] .news-card__title { color: var(--ink-900) !important; }
[data-theme="dark"] .news-card__excerpt { color: var(--ink-500) !important; }
[data-theme="dark"] .news-cta { background: linear-gradient(135deg,#0a2040,#091830) !important; }
[data-theme="dark"] .bs-feat { background: linear-gradient(135deg,#091828,#0a1e32) !important; }

/* ── TWEAKS: Editorial style ───────────────────────────────── */
[data-editorial="true"] {
  --shell-w: 1160px;
}
[data-editorial="true"] .section { padding: clamp(5rem,9vw,10rem) 0 !important; }
[data-editorial="true"] h1 { letter-spacing: -.055em !important; font-weight: 300 !important; }
[data-editorial="true"] h2 { font-weight: 300 !important; letter-spacing: -.04em !important; }
[data-editorial="true"] .portada-line h1,
[data-editorial="true"] .slice-stage h1 { font-weight: 300 !important; font-style: italic; }
[data-editorial="true"] .eyebrow { letter-spacing: .34em !important; }
[data-editorial="true"] .manifesto h2 { font-weight: 200 !important; font-style: italic; }
[data-editorial="true"] .portada__lede,
[data-editorial="true"] .slice-content p { font-size: 1.1rem !important; line-height: 1.85 !important; }
[data-editorial="true"] .stat .n { font-weight: 300 !important; }
[data-editorial="true"] .purpose-card .num { font-size: 1.65rem !important; }

/* ── TWEAKS: Type scale ────────────────────────────────────── */
[data-scale="compacto"] h1 { font-size: clamp(2.5rem,6.5vw,6rem) !important; }
[data-scale="compacto"] h2 { font-size: clamp(1.75rem,3.5vw,3.25rem) !important; }
[data-scale="compacto"] .section { padding: clamp(2.5rem,4vw,4.5rem) 0 !important; }
[data-scale="compacto"] .slice-stage h1 { font-size: clamp(2.5rem,7vw,6.5rem) !important; }
[data-scale="compacto"] .stat .n { font-size: clamp(2rem,3.5vw,3.25rem) !important; }

[data-scale="magistral"] h1 { font-size: clamp(4rem,11vw,11.5rem) !important; }
[data-scale="magistral"] h2 { font-size: clamp(2.75rem,6.5vw,6.5rem) !important; }
[data-scale="magistral"] .section { padding: clamp(5.5rem,10vw,11rem) 0 !important; }
[data-scale="magistral"] .slice-stage h1 { font-size: clamp(4rem,11.5vw,12.5rem) !important; }
[data-scale="magistral"] .manifesto h2 { font-size: clamp(3.5rem,8vw,9rem) !important; }
[data-scale="magistral"] .stat .n { font-size: clamp(3.5rem,6vw,6rem) !important; }
[data-scale="magistral"] .purpose-card h3 { font-size: 1.55rem !important; }

/* ── buildingSMART page ─────────────────────────────────────── */
.bs-standard {
  border: 1px solid var(--ink-100); border-radius: 18px; padding: 2rem;
  background: #fff; display: flex; flex-direction: column; gap: 1rem;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.bs-standard:hover { transform: translateY(-4px); border-color: var(--cta); box-shadow: 0 16px 40px rgba(1,117,201,.1); }
.bs-standard::before {
  content: ''; position: absolute; right: -30px; top: -20px;
  width: 100px; height: 110px; border: 1.5px solid rgba(1,117,201,.06);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.bs-standard__code {
  font-family: var(--f-d); font-weight: 900; font-size: 1.65rem;
  color: var(--cta); letter-spacing: -.03em; line-height: 1;
}
.bs-standard__name { font-family: var(--f-d); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); }
.bs-standard h4 { font-family: var(--f-d); font-weight: 700; font-size: 1.05rem; color: var(--ink-900); }
.bs-standard p  { font-size: .875rem; color: var(--ink-500); line-height: 1.65; flex: 1; }
.bs-standard__status { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-d); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cta); }
.bs-standard__status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cta); }

/* ── Chapter card: isotipo oficial + diamantes bSI ─────────── */
.bs-chapter-card__marks { display:flex; align-items:center; gap:.85rem; flex-wrap:wrap; }
.bs-chapter-card__mark { height:38px; width:auto; background:#fff; padding:6px 10px; border-radius:8px; }
.bs-chapter-card__n { font-family:var(--f-d); font-weight:900; font-size:2.4rem; color:var(--p1); line-height:1; letter-spacing:-.03em; }
.bs-chapter-card__diamonds { display:flex; gap:6px; margin-bottom:1.25rem; }
.bs-chapter-card__diamonds span { width:10px; height:10px; border-radius:2px; transform:rotate(45deg); }

.bs-timeline { display: flex; flex-direction: column; gap: 0; }
.bs-tl-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 1.5rem; padding-bottom: 2.5rem; position: relative;
}
.bs-tl-item:not(:last-child)::after {
  content: ''; position: absolute; left: 37px; top: 28px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--cta), var(--ink-100));
}
.bs-tl-year {
  font-family: var(--f-d); font-weight: 900; font-size: 1rem; color: var(--cta);
  text-align: right; padding-top: 4px; position: relative; z-index: 1;
}
.bs-tl-dot {
  position: absolute; left: 30px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--cta); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--cta); z-index: 2;
}
.bs-tl-dot.accent { background: var(--c1); box-shadow: 0 0 0 2px var(--c1); }
.bs-tl-item h4 { font-family: var(--f-d); font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.bs-tl-item p  { font-size: .875rem; color: var(--ink-500); line-height: 1.6; }

.bs-chapter-card {
  background: linear-gradient(145deg, #071828, #0d2c4a); border-radius: 20px;
  border: 1px solid rgba(85,187,235,.2); padding: 3rem; text-align: center;
  position: relative; overflow: hidden;
}
.bs-chapter-card::before {
  content: ''; position: absolute; right: -60px; top: -40px;
  width: 240px; height: 265px;
  background: linear-gradient(160deg, rgba(85,187,235,.08), rgba(1,117,201,.04));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ── Contacto page ──────────────────────────────────────────── */
.contact-topic-btn {
  border: 1.5px solid var(--ink-200); border-radius: 10px;
  padding: .7rem 1.1rem; font-family: var(--f-d); font-size: .85rem;
  font-weight: 500; color: var(--ink-500); background: #fff;
  cursor: pointer; transition: all .22s; text-align: left;
  display: flex; align-items: center; gap: .6rem;
}
.contact-topic-btn::before {
  content: ''; width: 9px; height: 10px; flex-shrink: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--ink-200); transition: background .22s;
}
.contact-topic-btn.sel, .contact-topic-btn:hover {
  border-color: var(--cta); color: var(--cta); background: rgba(1,117,201,.04);
}
.contact-topic-btn.sel::before, .contact-topic-btn:hover::before { background: var(--cta); }
.contact-field {
  padding: 12px 16px; border: 1.5px solid var(--ink-200); border-radius: 10px;
  font-family: var(--f-b); font-size: .9rem; color: var(--ink-900);
  outline: none; width: 100%; transition: border-color .22s, box-shadow .22s;
  background: #fff;
}
.contact-field:focus { border-color: var(--cta); box-shadow: 0 0 0 3px rgba(1,117,201,.1); }
.contact-info-card {
  background: var(--navy-800); border-radius: 18px; padding: 2.5rem; color: #fff;
  position: relative; overflow: hidden;
}
.contact-info-card::before {
  content: ''; position: absolute; right: -50px; top: -40px;
  width: 180px; height: 198px;
  background: rgba(85,187,235,.07);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  transition: background .22s;
}
.contact-info-item:hover { background: rgba(255,255,255,.09); }.contact-info-ico {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(85,187,235,.2), rgba(1,117,201,.15));
  display: grid; place-items: center; color: var(--p1); flex-shrink: 0;
}
