:root {
  --paper: #f9f8f5;
  --paper-2: #f0ede7;
  --line: #a8a6a1;
  --muted: #6f7174;
  --ink: #443e33;
  --night: #1a1710;
  --accent: #f2ac45;
  --blue: #c9d6e3;
  --tan: #8a6d55;
  --white: #fff;
  --success: #2f684d;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(68, 62, 51, .11);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Switzer", Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  transform: translateY(-150%);
  padding: .65rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--night);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding: clamp(1.35rem, 2.4vw, 2.4rem) 0; }
.section-tight { padding: clamp(.9rem, 1.8vw, 1.5rem) 0; }
.section-blue { background: rgba(201, 214, 227, .42); }
.section-night { background: var(--night); color: var(--paper); }

h1, h2, h3 {
  margin: 0;
  font-family: "Involve", "Switzer", Inter, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.045em;
}
h1 { max-width: 14ch; font-size: clamp(2.5rem, 5.8vw, 4.8rem); }
h2 { max-width: 17ch; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.8rem); }
p { margin: 0; }
.lede { max-width: 66ch; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.17rem); }
.section-night .lede { color: rgba(249, 248, 245, .7); }
.eyebrow {
  margin-bottom: .9rem;
  color: var(--tan);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-night .eyebrow { color: var(--accent); }
.section-heading {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--night);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); background: #ffc36b; border-color: #ffc36b; }
.button-dark { background: var(--night); border-color: var(--night); color: var(--paper); }
.button-dark:hover { background: var(--ink); border-color: var(--ink); }
.button-ghost { background: transparent; border-color: rgba(68, 62, 51, .35); color: var(--ink); }
.section-night .button-ghost { border-color: rgba(249, 248, 245, .35); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(168, 166, 161, .45);
  background: rgba(249, 248, 245, .96);
  backdrop-filter: blur(14px);
}
.nav-shell { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; min-width: max-content; }
.brand img { width: 142px; height: auto; }
.brand-context { color: var(--tan); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}
.nav-links {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.nav-links.is-open { display: grid; }
.nav-links a { padding: .65rem; color: var(--muted); font-size: .84rem; font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-contact { display: none; }
.nav-cta { display: none; }

.hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.2rem, 2.4vw, 2.1rem); overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-copy .lede { margin-top: 1.5rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 2rem; color: var(--muted); font-size: .82rem; }
.hero-proof span::before { content: "•"; margin-right: .45rem; color: var(--accent); }
.hero-visual {
  position: relative;
  padding: clamp(.75rem, 2vw, 1.25rem);
  border: 1px solid rgba(168, 166, 161, .6);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.hero-visual::before {
  content: "Centro de monitoreo electoral";
  position: absolute;
  top: -1rem;
  right: 1.25rem;
  z-index: 2;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: var(--night);
  color: var(--paper);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.hero-visual img { width: 100%; height: auto; border-radius: 18px; }

.insight-strip { background: var(--night); color: var(--paper); }
.insight-inner { display: grid; gap: 1rem; align-items: center; padding: 2rem 0; }
.insight-mark { color: var(--accent); font: 700 2rem/1 "Involve", sans-serif; }
.insight-inner p { max-width: 42ch; font-size: clamp(1.15rem, 2.5vw, 1.65rem); font-weight: 600; line-height: 1.3; }
.insight-note { color: rgba(249, 248, 245, .62); font-size: .84rem; }

.process-list { display: grid; gap: 1.5rem; }
.process-step {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(168, 166, 161, .52);
  border-radius: var(--radius);
  background: var(--white);
}
.process-copy { padding: clamp(1.5rem, 4vw, 3rem); align-self: center; }
.step-number { display: inline-block; margin-bottom: 1.3rem; color: var(--accent); font-size: .84rem; font-weight: 700; line-height: 1.35; letter-spacing: .14em; }
.process-copy p { margin-top: 1rem; color: var(--muted); }
.process-media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

.problem-layout { display: grid; gap: 3rem; }
.problem-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.problem-list li { display: grid; grid-template-columns: 38px 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(168, 166, 161, .6); }
.problem-list b { color: var(--accent); font-size: .72rem; }
.problem-list span { color: var(--muted); }

.bento { display: grid; gap: 1rem; }
.capability {
  min-height: 235px;
  overflow: hidden;
  border: 1px solid rgba(168, 166, 161, .52);
  border-radius: var(--radius);
  background: var(--white);
}
.capability-copy { padding: 1.5rem; }
.capability-copy p { margin-top: .7rem; color: var(--muted); font-size: .94rem; }
.capability img { width: 100%; height: 210px; object-fit: cover; border-bottom: 1px solid rgba(168, 166, 161, .45); }
.capability.featured { background: var(--night); color: var(--paper); }
.capability.featured img { height: auto; max-height: none; object-fit: contain; }
.capability.featured p { color: rgba(249, 248, 245, .66); }

.showcase { display: grid; gap: 2.5rem; align-items: center; }
.showcase-frame { padding: .65rem; border: 1px solid rgba(249, 248, 245, .2); border-radius: 24px; background: rgba(249, 248, 245, .06); }
.showcase-frame img { width: 100%; height: auto; border-radius: 17px; }
.module-list { display: grid; gap: .75rem; margin-top: 2rem; }
.module-list div { padding: .9rem 1rem; border-left: 2px solid var(--accent); background: rgba(249, 248, 245, .06); }
.module-list strong { display: block; }
.module-list span { color: rgba(249, 248, 245, .62); font-size: .86rem; }

.defense-grid, .narrative-grid, .trust-grid, .contact-grid { display: grid; gap: 3rem; align-items: center; }
.photo-card { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.photo-card img { width: 100%; height: auto; }
.photo-card figcaption { padding: .8rem 1rem; color: var(--muted); font-size: .8rem; }
.benefit-list { display: grid; gap: .85rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.benefit-list li { padding-left: 1.4rem; position: relative; color: var(--muted); }
.benefit-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.scope-note { margin-top: 1.5rem; padding: 1rem; border-left: 3px solid var(--accent); background: rgba(242, 172, 69, .12); color: var(--muted); }

.interactive-block { margin-top: 3rem; display: grid; gap: 1.5rem; }
.interactive-section .interactive-block { margin-top: 0; }
.interactive-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.interactive-frame iframe { display: block; width: 100%; height: min(700px, 78vh); border: 0; }
.instruction { padding: .9rem 1rem; border-radius: 12px; background: var(--blue); color: var(--ink); font-size: .86rem; }

.narrative-points { display: grid; gap: 1rem; margin-top: 1.7rem; }
.narrative-point { display: grid; grid-template-columns: 32px 1fr; gap: .8rem; }
.narrative-point span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--night); font-size: .7rem; font-weight: 700; }
.narrative-point p { color: var(--muted); }

.audience-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.audience-card { padding: 1.4rem; background: var(--paper); }
.audience-card p { margin-top: .6rem; color: var(--muted); font-size: .9rem; }
.audience-card strong { font-family: "Involve", "Switzer", sans-serif; }

.trust-points { display: grid; gap: 1rem; margin-top: 2rem; }
.trust-point { padding: 1.1rem; border: 1px solid rgba(168, 166, 161, .55); border-radius: 14px; background: rgba(255, 255, 255, .45); }
.trust-point strong { display: block; margin-bottom: .35rem; }
.trust-point span { color: var(--muted); font-size: .88rem; }

.faq { display: grid; gap: .75rem; }
.faq details { border: 1px solid rgba(168, 166, 161, .62); border-radius: 14px; background: var(--white); }
.faq summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 700; }
.faq details p { padding: 0 1.2rem 1.2rem; color: var(--muted); }

.contact-panel { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--night); color: var(--paper); }
.contact-panel .lede { margin-top: 1rem; }
.contact-list { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.contact-list strong { display: block; color: var(--accent); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-list a { text-decoration: none; }
.contact-actions { display: grid; gap: .7rem; margin-top: 2rem; }
.contact-actions .button { width: 100%; justify-content: flex-start; }
.contact-whatsapp { border-color: #168a42; background: #168a42; color: var(--white); }
.contact-whatsapp:hover { border-color: #117236; background: #117236; }
.contact-button-icon { display: grid; place-items: center; width: 28px; height: 28px; overflow: hidden; border-radius: 50%; }
.contact-button-icon img { width: 100%; height: 100%; object-fit: contain; }
.contact-company-logo { display: grid; place-items: center; width: 48px; height: 28px; padding: 4px; border-radius: 999px; background: var(--white); }
.contact-company-logo img { width: 100%; height: auto; }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .82rem; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #9c3b33; }
.field-error { min-height: 1em; color: #9c3b33; font-size: .75rem; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; color: var(--muted); font-weight: 400 !important; }
.checkbox input { width: auto; margin-top: .3rem; }
.form-status { min-height: 1.4em; color: var(--success); font-size: .82rem; }

.site-footer { padding: 3rem 0; background: var(--night); color: rgba(249, 248, 245, .66); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img {
  width: min(100%, 240px);
  height: auto;
  padding: .65rem .8rem;
  border-radius: 12px;
  background: var(--paper);
  filter: none;
}
.footer-brand p { margin-top: .9rem; }
.footer-links { display: grid; gap: .5rem; }
.footer-links a { text-decoration: none; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(249, 248, 245, .15); font-size: .78rem; }

.floating-actions {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
}
.whatsapp-float,
.parent-company-float {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: 210px;
  min-height: 48px;
  padding: .55rem .9rem .55rem .55rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(31, 24, 18, .22);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.whatsapp-float { background: #168a42; }
.parent-company-float { background: var(--ink); }
.whatsapp-float:hover { transform: translateY(-2px); background: #117236; box-shadow: 0 16px 34px rgba(22, 138, 66, .36); }
.parent-company-float:hover { transform: translateY(-2px); background: var(--tan); box-shadow: 0 16px 34px rgba(31, 24, 18, .3); }
.whatsapp-float-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1;
}
.whatsapp-float-icon img { width: 100%; height: 100%; object-fit: contain; }
.parent-company-icon {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 34px;
  padding: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--white);
}
.parent-company-icon img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 720px) {
  .container { width: min(calc(100% - 3rem), var(--max)); }
  .section-heading { grid-template-columns: 1fr 1fr; align-items: end; }
  .insight-inner { grid-template-columns: auto 1fr auto; }
  .process-step { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(even) .process-media { order: -1; }
  .problem-layout { grid-template-columns: .82fr 1.18fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .capability.featured { grid-row: span 2; }
  .showcase, .defense-grid, .narrative-grid, .trust-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .nav-links { position: static; display: flex; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .nav-links a { padding: .45rem .55rem; font-size: .76rem; }
  .nav-contact { display: block; color: var(--muted); font-size: .68rem; line-height: 1.3; text-align: right; }
  .nav-contact a { display: block; text-decoration: none; }
  .nav-cta { display: inline-flex; }
  .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; }
  .bento { grid-template-columns: 1.25fr .75fr .75fr; }
  .audience-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 420px) {
  .brand img { width: 122px; }
  .brand-context { display: none; }
  .whatsapp-float > span:last-child,
  .parent-company-float > span:last-child { display: none; }
  .whatsapp-float,
  .parent-company-float { min-width: 48px; width: auto; padding: 0; justify-content: center; }
  .parent-company-icon { flex-basis: 48px; width: 48px; height: 48px; padding: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.social-link { display: inline-flex !important; align-items: center; gap: .5rem; }
.social-icon { width: 19px !important; height: 19px !important; flex: 0 0 19px; border-radius: 5px; object-fit: contain; }
