:root {
  --bg: #f6efe0;
  --text: #16253b;
  --muted: #556171;
  --line: rgba(22, 37, 59, 0.16);
  --line-strong: #16253b;
  --surface: #fff9ee;
  --surface-strong: #f0ddae;
  --button: #16253b;
  --button-text: #f8f3e8;
  --gold: #c9a24b;
  --gold-deep: #b38422;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at top, #fff7e8 0%, var(--bg) 58%);
  color: var(--text);
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1rem;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(1160px, calc(100% - 3rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 239, 224, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1.25rem;
}
.brand-lockup { display: flex; align-items: center; gap: 0.9rem; }
.brand-mark { width: 60px; height: 60px; object-fit: contain; flex: 0 0 auto; }
.brand-wordmark { height: 52px; width: auto; object-fit: contain; display: block; }
.footer-mark { width: 200px; height: auto; }
@media (max-width: 600px) { .brand-wordmark { height: 40px; } }
.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1;
}
.brand-subtitle {
  font-size: 0.77rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.2rem;
}
.nav-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }

.hero { padding: 6.2rem 0 4.8rem; border-bottom: 1px solid var(--line); }
.hero-single { max-width: 880px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  gap: 2.5rem; align-items: center;
}
.hero-kicker,
.section-label,
.footer-title {
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep);
}

h1, h2, h3 { margin: 0; color: var(--text); }
h1, h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700; letter-spacing: -0.02em; line-height: 0.98;
}
h1 { font-size: clamp(3.2rem, 8vw, 6rem); margin: 1rem 0 1.4rem; }
h2 { font-size: clamp(2.15rem, 4vw, 3.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.45rem; }

.hero-lead, p { color: var(--muted); font-size: 1.02rem; }
.hero-lead { max-width: 700px; font-size: 1.14rem; }

.hero-actions {
  display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.9rem 1.25rem;
  border: 1px solid var(--line-strong); text-decoration: none;
  font-size: 0.95rem; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--button); color: var(--button-text); }
.button-secondary { background: transparent; color: var(--text); }

.hero-emblem-card {
  background: linear-gradient(180deg, var(--surface), #f4e5bc);
  border: 1px solid rgba(22, 37, 59, 0.14);
  border-radius: 28px; padding: 1.4rem;
  box-shadow: 0 18px 50px rgba(22, 37, 59, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.hero-emblem-card svg { width: min(100%, 280px); height: auto; }

.section { padding: 4.5rem 0; }

.signal-strip {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 238, 0.56);
}
.signal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.signal-label {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.45rem;
}
.signal-grid p { margin: 0; font-size: 0.95rem; }

.intro-grid, .thesis-grid, .footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}

.bordered-section {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 238, 0.7);
}

.capability-list { margin-top: 2rem; }
.capability-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.capability-row:last-child { border-bottom: 1px solid var(--line); }
.capability-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem; color: var(--gold-deep);
}

.areas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 2rem;
}
.area-card {
  padding: 1.5rem; border: 1px solid var(--line);
  border-radius: 18px; background: var(--surface);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.area-card .capability-number { font-size: 1.6rem; margin-bottom: 0.25rem; }

.thesis-section {
  background: linear-gradient(180deg, rgba(240, 221, 174, 0.55), rgba(255, 249, 238, 0.8));
}

.plataforma-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.plataforma-wrap .section-label { display: block; margin-bottom: 0.75rem; }
.plataforma-wrap h2 { margin-bottom: 1.5rem; }
.plataforma-lead {
  font-size: 1.08rem;
  margin: 0 auto 2rem;
  max-width: 720px;
}
.plataforma-cta { margin-top: 1rem; }

.demo-simple-section {
  background: #0d1b2a;
  color: #f6efe0;
  padding: 5.5rem 0;
  border-top: 1px solid #16253b;
  border-bottom: 1px solid #16253b;
}
.demo-simple-wrap { text-align: center; }
.demo-simple-section h2 { color: #f6efe0; }
.demo-simple-title {
  margin-bottom: 2.2rem;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.demo-simple-form {
  display: flex;
  gap: 0.75rem;
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}
.demo-simple-form input[type="text"] {
  flex: 1;
  background: transparent;
  border: 2px solid #3b82f6;
  border-radius: 14px;
  padding: 0 1.2rem;
  height: 56px;
  font: inherit;
  font-size: 1rem;
  color: #f6efe0;
  outline: none;
  min-width: 0;
}
.demo-simple-form input[type="text"]::placeholder {
  color: rgba(246, 239, 224, 0.42);
}
.demo-simple-form input[type="text"]:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22);
}
.demo-simple-upload,
.demo-simple-send {
  font: inherit;
  border: 2px solid #3b82f6;
  cursor: pointer;
  border-radius: 14px;
  height: 56px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.demo-simple-upload {
  background: transparent;
  color: #f6efe0;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
.demo-simple-upload:hover {
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}
.demo-simple-send {
  background: #3b82f6;
  color: #fff;
  width: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.demo-simple-send:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
}
.demo-simple-hint {
  text-align: center;
  margin-top: 1.5rem;
  color: rgba(246, 239, 224, 0.62);
  font-size: 0.92rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.demo-simple-hint a { color: #60a5fa; }
.demo-simple-hint a:hover { color: #93c5fd; }

@media (max-width: 640px) {
  .demo-simple-form { flex-wrap: wrap; gap: 0.5rem; }
  .demo-simple-form input[type="text"] { width: 100%; flex: 1 0 100%; }
  .demo-simple-upload { flex: 1; }
  .demo-simple-send { flex: 0 0 64px; }
}

.team-section { background: rgba(255, 249, 238, 0.5); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem; margin-top: 2rem;
}
.team-card {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(250, 244, 232, 0.96));
  border: 1px solid rgba(22, 37, 59, 0.1);
  border-radius: 22px; padding: 1rem 1rem 1.15rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  box-shadow: 0 12px 30px rgba(22, 37, 59, 0.06);
}
.team-photo {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: center 22%; border-radius: 16px;
  background: var(--surface-strong);
  margin-bottom: 0.75rem;
}
.team-photo-ernesto { object-position: center 18%; }
.team-photo-soledad { object-position: center 16%; }
.team-photo-gabriela { object-position: center 20%; }
.team-photo-hernan { object-position: center 26%; }
.team-photo-francisco { object-position: center 22%; }
.team-photo-alex { object-position: center 18%; }
.team-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.8rem;
}
.team-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.58rem 0.78rem;
  border: 1px solid rgba(22, 37, 59, 0.16);
  border-radius: 0;
  color: #4f5866;
  background: rgba(255, 252, 246, 0.98);
  line-height: 1.2;
}
.team-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin: 0;
}
.team-bio {
  font-size: 0.92rem;
  margin: 0.3rem 0 0;
  line-height: 1.45;
  color: var(--muted);
}
.team-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  align-items: center;
}
.team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--gold-deep);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.team-social a:hover {
  background: var(--text);
  color: var(--button-text);
  border-color: var(--text);
}
.team-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.contact-section {
  background: linear-gradient(180deg, rgba(240, 221, 174, 0.4), rgba(255, 249, 238, 0.8));
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem;
  margin-top: 1.5rem; align-items: start;
}
.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--surface); padding: 1.5rem;
  border: 1px solid var(--line); border-radius: 18px;
}
.contact-form label {
  display: block; font-size: 0.85rem;
  color: var(--muted); margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}
.contact-form input,
.contact-form textarea {
  width: 100%; font: inherit; font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fffdf7; color: var(--text);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  align-self: flex-start;
  font: inherit; font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  background: var(--button); color: var(--button-text);
  border: 1px solid var(--line-strong);
  border-radius: 10px; cursor: pointer;
}
.contact-aside p { margin: 0.4rem 0; }
.contact-aside a { color: var(--text); }

.newsletter-section {
  background: linear-gradient(180deg, rgba(255,249,238,0.7), rgba(240,221,174,0.45));
  border-top: 1px solid var(--line);
}
.newsletter-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.newsletter-wrap .section-label { display: block; margin-bottom: 0.75rem; }
.newsletter-wrap h2 { margin-bottom: 1rem; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.newsletter-lead {
  margin-bottom: 2rem;
  font-size: 1.02rem;
  color: var(--muted);
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  text-align: left;
}
.newsletter-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}
.newsletter-form input[type="email"] {
  flex: 1;
  font: inherit;
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fffdf7;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2);
}
.newsletter-form button {
  font: inherit;
  font-size: 0.95rem;
  padding: 0 1.4rem;
  background: var(--button);
  color: var(--button-text);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
}
.newsletter-form button:hover { transform: translateY(-1px); }
.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
}
.newsletter-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  flex: 0 0 auto;
  accent-color: var(--gold-deep);
}
.newsletter-consent a {
  color: var(--text);
  text-decoration: underline;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
@media (max-width: 640px) {
  .newsletter-row { flex-direction: column; }
  .newsletter-form button { padding: 0.85rem 1.4rem; }
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line-strong);
  background: #f3ead5;
}
.footer-grid {
  grid-template-columns: 1.25fr 0.7fr 1fr;
  align-items: start;
}
.footer-brand { font-size: 2.1rem; margin-bottom: 0.3rem; }
.footer-lockup { align-items: flex-start; }
.footer-bottom {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .hero-grid, .intro-grid, .thesis-grid, .footer-grid,
  .signal-grid, .areas-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .capability-row { grid-template-columns: 60px 1fr; }
  .nav { flex-direction: column; align-items: flex-start; }
  .nav-links { width: 100%; }
}

@media (max-width: 640px) {
  .container { width: min(1160px, calc(100% - 1.5rem)); }
  .hero { padding-top: 4.8rem; }
  .button { width: 100%; }
  .brand-mark { width: 52px; height: 52px; }
}

/* ============================================================
   BROCHURE v4 — componentes añadidos (Score, método, pilares)
   ============================================================ */

.pull-quote {
  margin: 1.5rem 0 0;
  padding: 0.4rem 0 0.4rem 1.25rem;
  border-left: 3px solid var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem; line-height: 1.25;
  color: var(--text); font-style: normal;
}

.block-subhead {
  font-size: 1.25rem; font-weight: 700;
  color: var(--gold-deep);
  margin: 2.5rem 0 1rem;
}

.pillar-list, .distinct-list {
  list-style: none; margin: 0.5rem 0 0; padding: 0;
}
.pillar-list li, .distinct-list li {
  position: relative; padding-left: 1.1rem;
  font-size: 0.93rem; color: var(--muted); margin: 0.45rem 0;
  line-height: 1.4;
}
.pillar-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.distinct-list li { padding-left: 1.4rem; margin: 0.7rem 0; }
.distinct-list li::before {
  content: "◆"; position: absolute; left: 0; top: 0;
  color: var(--gold-deep); font-size: 0.8rem;
}
.distinct-list strong, .pillar-list strong { color: var(--text); }

.boxed-list {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); padding: 1rem 1.25rem;
}

/* Compliance Score — capas ponderadas */
.capas-grid {
  display: grid; grid-template-columns: 35fr 45fr 20fr; gap: 1rem;
  margin-top: 1rem;
}
.capa-card {
  border-radius: 16px; padding: 1.25rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.capa-card p { margin: 0.35rem 0 0; font-size: 0.85rem; }
.capa-pct { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.capa-name { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; }
.capa-fundamentos { background: #16253b; color: #f6efe0; }
.capa-fundamentos p { color: rgba(246,239,224,0.7); }
.capa-fundamentos .capa-pct { color: #f6efe0; }
.capa-sectorial { background: var(--gold); color: #16253b; }
.capa-sectorial p { color: rgba(22,37,59,0.78); }
.capa-integracion { background: #b9d4e6; color: #16253b; }
.capa-integracion p { color: rgba(22,37,59,0.72); }

.score-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  margin-top: 1rem;
}
.eje-card {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); padding: 0.85rem 1.1rem;
  margin-bottom: 0.75rem; display: flex; flex-direction: column; gap: 0.15rem;
}
.eje-card strong { color: var(--text); font-size: 1rem; }
.eje-card span { color: var(--muted); font-size: 0.88rem; }

.anclado-row {
  display: flex; align-items: center; gap: 0.9rem; margin-top: 2rem;
}
.badge-dark {
  background: #16253b; color: #f6efe0;
  padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 0.8rem; letter-spacing: 0.08em; font-weight: 600;
}

/* Ley 21.719 — banda de alerta */
.alert-band {
  background: #16253b; color: #f6efe0;
  border-radius: 14px; padding: 1.1rem 1.4rem;
  margin-top: 1.25rem; font-size: 1rem; line-height: 1.5;
}
.alert-band strong { color: var(--gold); }

/* Chips */
.chips-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.pill-chip {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.95rem; font-size: 0.82rem;
  letter-spacing: 0.06em; color: var(--muted);
  background: var(--surface);
}
.pill-chip-dark {
  background: #16253b; color: #f6efe0; border-color: #16253b;
}

/* Método — pasos */
.steps-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.5rem; margin: 2rem 0 1rem; flex-wrap: wrap;
}
.step { flex: 1 1 0; min-width: 140px; text-align: center; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 0.6rem;
  border-radius: 50%; background: #16253b; color: #f6efe0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 700;
}
.step-num-gold { background: var(--gold); color: #16253b; }
.step-name { font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.step p { font-size: 0.85rem; margin: 0; }
.step-arrow {
  align-self: center; color: var(--gold-deep); font-size: 1.6rem;
  padding-top: 1rem; flex: 0 0 auto;
}

/* Equipo — rol socio */
.team-role {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-top: 0.15rem;
}

@media (max-width: 980px) {
  .capas-grid, .score-detail-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .step { flex: 1 1 45%; }
}
