/* GESSS — paleta y tipografía según manual de marca (Láminas 01–06) */
:root {
  --graphite: #1F2A37;
  --graphite-deep: #18212C;
  --graphite-line: #2E3A49;
  --slate: #4A5A6E;
  --slate-light: #9AA8BA;
  --coral: #E8684A;
  --coral-light: #F2957C;
  --coral-ink: #C9502F;
  --cream: #F4F1EC;
  --paper: #FBFAF7;
  --ink: #1F2A37;
  --ink-soft: #5B6676;
  --line: #E4DFD7;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;

  /* Isotipo versión grafito pleno (la que usamos en header, hero y footer) */
  --iso-a: var(--coral-light);
  --iso-b: #FFFFFF;
  --iso-c: var(--slate-light);
  --iso-cross: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--coral); color: #fff; padding: 10px 16px; border-radius: 6px;
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* ---------- Marca ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
}
.brand-iso { width: 38px; height: 38px; flex: none; }
.brand-word { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; padding-bottom: 4px; }
.brand-word .ge { color: #fff; }
.brand-word .sss { color: var(--coral-light); }
.brand-desc {
  font-size: 11.5px; line-height: 1.35; font-weight: 400; color: var(--slate-light);
  padding-left: 12px; border-left: 1px solid var(--graphite-line);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font: 500 16px/1 var(--font);
  color: #fff; background: var(--coral);
  border: 1px solid var(--coral); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--coral-ink); border-color: var(--coral-ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.6); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--graphite);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--graphite-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  color: #D5DBE3; text-decoration: none; font-size: 15px; font-weight: 400;
  transition: color .2s;
}
.nav a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--graphite);
  color: #fff;
  padding: clamp(72px, 12vw, 148px) 0 clamp(64px, 9vw, 112px);
  border-bottom: 6px solid var(--coral);
}
.hero-mark {
  position: absolute; pointer-events: none;
  width: min(820px, 90vw); height: min(820px, 90vw);
  right: max(-260px, -18vw); top: 50%; transform: translateY(-46%);
  --iso-a: #3A3742;
  --iso-b: #2C3846;
  --iso-c: #2C3846;
  --iso-cross: #2C3846;
}
.hero-inner { position: relative; }
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral-ink);
  margin-bottom: 20px;
}
.hero .eyebrow, .section-dark .eyebrow { color: var(--coral-light); }
.hero h1 {
  max-width: 15ch;
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.04;
}
.hero h1 .accent { color: var(--coral-light); }
.lead {
  max-width: 56ch; margin-top: 28px;
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; line-height: 1.6;
  color: #C9D1DB;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(48px, 7vw, 88px);
  padding-top: 24px; border-top: 1px solid var(--graphite-line);
  max-width: 760px;
  font-size: 14px; color: var(--slate-light);
}
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before {
  content: ""; width: 8px; height: 9px; flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--coral-light);
}

/* ---------- Audiencia ---------- */
.audience { background: var(--cream); border-bottom: 1px solid var(--line); }
.audience-inner { display: flex; align-items: center; gap: 40px; padding-top: 28px; padding-bottom: 28px; }
.kicker {
  flex: none; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.audience-list { display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 15px; color: var(--ink); }
.audience-list li { padding: 0 20px; border-left: 1px solid #D3CCC1; }
.audience-list li:first-child { border-left: 0; padding-left: 0; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 136px) 0; }
.section-dark { background: var(--graphite); color: #fff; overflow: hidden; }
.section-cream { background: var(--cream); }

.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); }
.section-head > p:not(.eyebrow) { margin-top: 20px; color: var(--ink-soft); font-size: 18px; font-weight: 300; }
.section-dark .section-head > p:not(.eyebrow) { color: #C9D1DB; }
.section-head strong { font-weight: 500; color: inherit; }
.section-dark .section-head strong { color: #fff; }

/* Servicios */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.service {
  padding: 36px 32px 40px 0;
  border-bottom: 1px solid var(--line);
}
.service:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.service-num {
  display: block; margin-bottom: 28px;
  font-size: 14px; font-weight: 500; letter-spacing: .08em; color: var(--coral-ink);
}
.service h3 { font-size: 21px; font-weight: 500; }
.service p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }

/* Modelo */
.modelo-mark {
  position: absolute; pointer-events: none;
  width: 560px; height: 560px; left: -200px; bottom: -220px;
  --iso-a: #3A3742; --iso-b: #2A3542; --iso-c: #2A3542; --iso-cross: #2A3542;
}
.modelo-grid {
  position: relative;
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 112px); align-items: start;
}
.steps li {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 28px 0; border-top: 1px solid var(--graphite-line);
}
.steps li:last-child { border-bottom: 1px solid var(--graphite-line); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 50px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--graphite-line);
  font-weight: 600; color: var(--coral-light);
}
.steps h3 { font-size: 20px; font-weight: 500; }
.steps p { margin-top: 6px; color: #B8C2CE; font-size: 16px; }

/* Nosotros */
.nosotros-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.values li { padding: 28px 0; border-top: 2px solid var(--graphite); }
.values li:nth-child(n+3) { border-top-color: var(--line); border-top-width: 1px; }
.values h3 { font-size: 20px; font-weight: 500; }
.values p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }

/* Contacto */
.contacto-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.contact-data { margin: 40px 0 0; display: grid; gap: 20px; }
.contact-data dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.contact-data dd { margin: 4px 0 0; font-size: 18px; }
.contact-data a { text-decoration-color: var(--coral); text-underline-offset: 4px; }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: grid; gap: 20px;
}
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: 14px; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink);
  background: var(--paper); border: 1px solid #D6D0C6; border-radius: 6px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(74, 90, 110, .15);
}
.field [aria-invalid="true"] { border-color: var(--coral-ink); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status.is-error { color: var(--coral-ink); }
.form-status.is-ok { color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite-deep); color: #fff; padding: 48px 0; border-top: 6px solid var(--coral); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-meta { font-size: 14px; color: var(--slate-light); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .service:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
  .modelo-grid, .nosotros-grid, .contacto-grid { grid-template-columns: 1fr; }
  .audience-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 860px) {
  .site-header .brand-desc { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--graphite); border-bottom: 1px solid var(--graphite-line);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--graphite-line); font-size: 17px; }
  .nav .btn { margin-top: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 28px 0 32px; border-left: 0; }
  .service-num { margin-bottom: 16px; }
  .values { grid-template-columns: 1fr; }
  .values li:nth-child(2) { border-top-color: var(--line); border-top-width: 1px; }
  .field-row { grid-template-columns: 1fr; }
  .audience-list { flex-direction: column; gap: 6px; }
  .audience-list li { padding: 0; border: 0; }
  .hero-mark { opacity: .7; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) { .site-footer .brand-desc { display: none; } }
