/* ==========================================================================
   GEMAD · Gestión Empresarial Adaptativa
   Hoja de estilos principal
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens de marca
   -------------------------------------------------------------------------- */
:root {
  /* Verdes tomados del logotipo */
  --brand-900: #052a1b;
  --brand-800: #0b3b25;
  --brand-700: #125133;
  --brand-600: #1a6b43;
  --brand-500: #238b57;
  --brand-100: #e2f0e8;
  --brand-50:  #f2f8f4;

  --lime-700: #4d6a1f;
  --lime-600: #5f7f27;
  --lime-500: #799a32;
  --lime-400: #8fb343;
  --lime-200: #d3e3ad;
  --lime-50:  #f3f8e8;

  --ink:      #101a15;
  --ink-soft: #33453c;
  --muted:    #5d6f66;
  --line:     #e3ebe6;
  --line-soft:#eef3f0;

  --bg:       #ffffff;
  --bg-soft:  #f6faf7;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(5, 42, 27, .06);
  --shadow:    0 8px 24px -12px rgba(5, 42, 27, .18);
  --shadow-lg: 0 28px 60px -32px rgba(5, 42, 27, .35);

  --container: 1180px;
  --gutter: 24px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset y base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-900);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.55rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.4rem);  font-weight: 700; }
h3 { font-size: clamp(1.12rem, 1rem + .45vw, 1.3rem);    font-weight: 650; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 650; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; color: var(--brand-900); }

a { color: var(--brand-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--lime-600); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--lime-200); color: var(--brand-900); }

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 999;
  background: var(--brand-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.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;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(56px, 4vw + 36px, 104px); }
.section--tight { padding-block: clamp(40px, 3vw + 24px, 72px); }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 650;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--lime-700);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--lime-500);
}
.section-head--center .eyebrow::after {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--lime-500);
}

.lede { font-size: 1.12rem; color: var(--ink-soft); }

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

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .93rem; font-weight: 600; line-height: 1;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--brand-800); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }

.btn--accent { background: var(--lime-500); color: #08281a; }
.btn--accent:hover { background: var(--lime-400); color: #08281a; }

.btn--ghost { background: transparent; color: var(--brand-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-600); color: var(--brand-600); background: var(--brand-50); }

.btn--light { background: #fff; color: var(--brand-800); }
.btn--light:hover { background: var(--lime-50); color: var(--brand-800); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }

.btn--sm { padding: 11px 20px; font-size: .85rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--brand-700);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Encabezado y navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(5, 42, 27, .45);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand:hover { color: inherit; }
.brand__mark { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem; font-weight: 700; letter-spacing: .06em;
  color: var(--brand-900);
}
.brand__tag {
  font-size: .625rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--lime-600);
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .92rem; font-weight: 550;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover { background: var(--brand-50); color: var(--brand-800); }
.nav__link.is-active { color: var(--brand-800); font-weight: 650; background: var(--brand-100); }

.header__cta { flex: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--brand-800);
}
.nav-toggle span {
  position: relative; display: block; width: 20px; height: 2px;
  border-radius: 2px; background: currentColor;
  transition: transform .25s var(--ease), background-color .15s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  border-radius: 2px; background: currentColor;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 24px;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 1rem; }
  .header__cta { display: none; }
  .nav__cta { margin-top: 14px; display: block; }
  .nav__cta .btn { width: 100%; }
}
@media (min-width: 1041px) {
  .nav__cta,
  .nav__contact-mobile { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 5vw + 30px, 104px);
  overflow: hidden;
  background:
    url("/assets/img/patron-ondas.svg") 0 100% / 440px auto repeat-x,
    radial-gradient(60rem 32rem at 88% -12%, var(--lime-50) 0%, rgba(255,255,255,0) 62%),
    radial-gradient(52rem 30rem at -8% 6%, var(--brand-50) 0%, rgba(255,255,255,0) 60%);
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0; height: 1px;
  background: var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero__lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 32px; }

.hero__pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin: 32px 0 0; padding: 0;
}
.hero__pills li {
  margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .84rem; font-weight: 600;
  color: var(--brand-800);
  box-shadow: var(--shadow-sm);
}
.hero__pills li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime-500);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* Tarjeta del método en el hero */
.hero__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.hero__card::before {
  content: "";
  position: absolute; inset: -1px -1px auto; height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--brand-800), var(--brand-500) 55%, var(--lime-500));
}
.hero__card h2 {
  font-size: 1.05rem; letter-spacing: .01em; margin-bottom: 4px;
}
.hero__card > p { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }

.mini-steps { list-style: none; margin: 0; padding: 0; counter-reset: mini; }
.mini-steps li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 46px;
  border-top: 1px solid var(--line-soft);
  font-size: .93rem;
  color: var(--ink-soft);
}
.mini-steps li:first-child { border-top: 0; }
.mini-steps li b {
  display: block;
  font-family: var(--font-display); font-weight: 650; font-size: .95rem;
  color: var(--brand-900);
}
.mini-steps li::before {
  counter-increment: mini;
  content: "0" counter(mini);
  position: absolute; left: 0; top: 13px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   7. Tarjetas
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--brand-100);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .95rem; }
.card__foot { margin-top: auto; padding-top: 18px; }

.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-700);
  margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; }
.card--accent .card__icon { background: var(--lime-50); color: var(--lime-700); }

.card__num {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  color: var(--lime-600);
  margin-bottom: 12px;
}

/* Tarjeta de servicio ampliada */
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 42px);
  scroll-margin-top: 110px;
}
.service + .service { margin-top: 24px; }
.service__head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 26px; }
.service__head .card__icon { margin-bottom: 0; flex: none; }
.service__head h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin-bottom: .3em; }
.service__head p { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }
.service__note {
  margin-top: 26px; padding: 18px 22px;
  border-left: 3px solid var(--lime-500);
  background: var(--lime-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--brand-800);
  font-size: .95rem;
}

/* --------------------------------------------------------------------------
   8. Listas
   -------------------------------------------------------------------------- */
.list-check {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px 28px;
}
.list-check--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list-check--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .list-check--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .list-check--2, .list-check--3 { grid-template-columns: 1fr; } }

.list-check li {
  position: relative;
  margin: 0;
  padding-left: 30px;
  font-size: .95rem;
  color: var(--ink-soft);
}
.list-check li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a6b43' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

.list-dash { list-style: none; margin: 0; padding: 0; }
.list-dash li {
  position: relative; padding-left: 22px; margin-bottom: 10px;
  color: var(--ink-soft); font-size: .96rem;
}
.list-dash li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 12px; height: 2px; border-radius: 2px; background: var(--lime-500);
}

/* --------------------------------------------------------------------------
   9. Banda oscura
   -------------------------------------------------------------------------- */
.band-dark {
  position: relative;
  background: var(--brand-900);
  color: rgba(255, 255, 255, .82);
  overflow: hidden;
}
.band-dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(42rem 26rem at 82% 108%, rgba(121, 154, 50, .34) 0%, transparent 62%),
    radial-gradient(38rem 24rem at 6% -14%, rgba(35, 139, 87, .3) 0%, transparent 60%);
  pointer-events: none;
}
.band-dark > * { position: relative; z-index: 1; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: var(--lime-400); }
.band-dark .eyebrow::before, .band-dark .eyebrow::after { background: var(--lime-400); }
.band-dark .section-head p { color: rgba(255, 255, 255, .72); }
.band-dark .list-check li { color: rgba(255, 255, 255, .84); }
.band-dark .list-check li::before {
  background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fb343' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}
.band-dark .closing {
  margin-top: 40px; padding: 26px 30px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .9);
}
.band-dark .closing strong { color: #fff; }
.band-dark strong { color: #fff; }
.band-dark p, .band-dark li { color: rgba(255, 255, 255, .82); }

/* --------------------------------------------------------------------------
   10. Método (línea de pasos)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  list-style: none; margin: 0; padding: 0;
  counter-reset: step;
}
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .steps { grid-template-columns: 1fr; } }

.steps li {
  position: relative;
  margin: 0;
  padding-top: 34px;
  border-top: 2px solid var(--line);
}
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: -15px; left: 0;
  min-width: 34px; height: 28px; padding-inline: 9px;
  display: inline-grid; place-items: center;
  background: var(--brand-800); color: #fff;
  border-radius: 999px;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .08em;
}
.steps li:nth-child(5)::before { background: var(--lime-600); }
.steps h3 { font-size: 1.05rem; margin-bottom: .4em; }
.steps p { font-size: .92rem; color: var(--muted); }

.band-dark .steps li { border-top-color: rgba(255,255,255,.18); }
.band-dark .steps li::before { background: var(--lime-500); color: #08281a; }
.band-dark .steps p { color: rgba(255,255,255,.72); }

/* Método detallado */
.method-step {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding-block: 36px;
  border-top: 1px solid var(--line);
}
.method-step:first-of-type { border-top: 0; padding-top: 0; }
.method-step__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem);
  font-weight: 700; line-height: 1;
  color: #bcd8c9;
  letter-spacing: -.04em;
}
.method-step:nth-child(odd) .method-step__num { color: var(--lime-200); }
@media (max-width: 700px) {
  .method-step { grid-template-columns: 1fr; gap: 8px; }
}

/* --------------------------------------------------------------------------
   11. Sectores
   -------------------------------------------------------------------------- */
.sector {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.sector::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand-600), var(--lime-500));
  opacity: 0; transition: opacity .25s var(--ease);
}
.sector:hover::after { opacity: 1; }
.sector--ilustrado { padding: 0; }
.sector__media { display: block; margin: 0; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.sector__media img { width: 100%; height: auto; display: block; }
.sector__body { padding: 26px 28px 30px; }
.sector--ilustrado .sector__icon { margin-top: -46px; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }

.sector__icon { width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: var(--lime-50); color: var(--lime-700); margin-bottom: 18px; }
.sector__icon svg { width: 22px; height: 22px; }
.sector h3 { margin-bottom: .4em; }
.sector p { color: var(--muted); font-size: .94rem; margin: 0; }

/* --------------------------------------------------------------------------
   12. Bloques de contenido
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.split--sticky { align-items: start; }
.split--sticky > :first-child { position: sticky; top: 110px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--sticky > :first-child { position: static; }
}

.panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
}
.panel--brand { background: var(--brand-50); border-color: var(--brand-100); }
.panel--lime  { background: var(--lime-50);  border-color: var(--lime-200); }

.quote {
  margin: 0;
  padding: clamp(28px, 3vw, 44px);
  background: var(--brand-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-100);
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .8vw, 1.55rem);
  font-weight: 600; line-height: 1.4;
  color: var(--brand-900);
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
.quote footer { margin-top: 14px; font-size: .85rem; color: var(--muted); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; }

.note {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .92rem;
}
.note svg { width: 20px; height: 20px; flex: none; color: var(--brand-600); margin-top: 2px; }
.note p { margin: 0; }

/* Definiciones (misión / visión) */
.pillars { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.pillar h3 { font-size: 1rem; margin-bottom: .35em; }
.pillar p { font-size: .93rem; color: var(--muted); margin: 0; }
.pillar__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime-500); margin-bottom: 16px; }

/* Figuras e imágenes de apoyo */
.media { margin: 0; }
.media img, .media svg { width: 100%; height: auto; display: block; }
.media--pad { padding: clamp(12px, 2vw, 24px); }
.media figcaption {
  margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: center;
}

/* Marco listo para fotografías reales (ver README) */
.media--photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}
.media--photo img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   13. CTA final
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); max-width: 18ch; margin-inline: auto; }
.cta-band p { max-width: 60ch; margin-inline: auto; margin-bottom: 32px; }

/* --------------------------------------------------------------------------
   14. Formulario
   -------------------------------------------------------------------------- */
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow);
}
.form__grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--brand-900); }
.field label .req { color: var(--lime-600); }
.field input, .field select, .field textarea {
  width: 100%;
  /* 16px exactos: por debajo de eso iOS hace zoom al enfocar el campo */
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: #fff;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6f66' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(35, 139, 87, .14);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa8a1; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .1); }
.field__error { font-size: .8rem; color: #c0392b; min-height: 0; }
.field:not(.has-error) .field__error { display: none; }

.form__consent {
  display: flex; flex-direction: row; gap: 12px; align-items: flex-start;
  font-size: .85rem; color: var(--muted);
  cursor: pointer;
}
.form__consent input {
  width: 22px; height: 22px; flex: none; margin-top: 1px;
  accent-color: var(--brand-600);
}
/* toda la etiqueta es zona táctil, no solo el cuadrito */
.form__consent { padding: 6px 0; min-height: 44px; align-items: center; }
.form__foot { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }

.form__status {
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  display: none;
}
.form__status.is-visible { display: block; }
.form__status--ok    { background: var(--lime-50); border: 1px solid var(--lime-200); color: var(--brand-800); }
.form__status--error { background: #fdf1ef; border: 1px solid #f3cdc7; color: #93251a; }

/* --------------------------------------------------------------------------
   15. Datos de contacto
   -------------------------------------------------------------------------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list__icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-50); color: var(--brand-700);
}
.contact-list__icon svg { width: 19px; height: 19px; }
.contact-list dt {
  font-size: .74rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3px;
}
.contact-list dd { margin: 0; font-size: 1rem; font-weight: 600; color: var(--brand-900); }
.contact-list dd a { color: var(--brand-700); }

.pending {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600;
  color: var(--lime-700);
  background: var(--lime-50);
  border: 1px dashed var(--lime-200);
  border-radius: 999px;
  padding: 3px 12px;
}

/* --------------------------------------------------------------------------
   16. Página legal / texto largo
   -------------------------------------------------------------------------- */
.page-head {
  padding-block: clamp(44px, 4vw + 20px, 76px) clamp(28px, 2vw + 16px, 44px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(46rem 24rem at 92% -30%, var(--lime-50) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(40rem 22rem at -6% -20%, var(--brand-50) 0%, rgba(255,255,255,0) 58%);
}
.page-head p { color: var(--ink-soft); font-size: 1.08rem; max-width: 62ch; margin-bottom: 0; }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 18px; padding: 0; font-size: .82rem; color: var(--muted); }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: #b9c7c0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb [aria-current] { color: var(--brand-800); font-weight: 600; }

.prose { max-width: 74ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.15em; }
.prose li { color: var(--ink-soft); }
.prose p { color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--brand-900); font-weight: 650; }

.table-wrap { overflow-x: auto; }

/* --------------------------------------------------------------------------
   17. Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, .7);
  padding-block: clamp(48px, 4vw + 24px, 76px) 28px;
  font-size: .92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer .brand__mark {
  width: 52px;
  padding: 6px 7px;
  background: #fff;
  border-radius: 12px;
}
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: var(--lime-400); }
.site-footer__about { max-width: 34ch; margin-top: 18px; color: rgba(255,255,255,.62); font-size: .9rem; }
.site-footer__slogan {
  margin-top: 16px;
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime-400);
}

.site-footer h4 {
  color: #fff; font-size: .78rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: var(--lime-400); }

.site-footer__bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between;
  font-size: .82rem; color: rgba(255, 255, 255, .55);
}
.site-footer__bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   18. Botón flotante de WhatsApp
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px;
  display: none; place-items: center;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.wa-float.is-visible { display: grid; }
.wa-float:hover { transform: scale(1.06); background: var(--brand-500); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   19. Animación de entrada
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Impresión
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .wa-float, .btn-row, .nav-toggle { display: none !important; }
  body { color: #000; }
  .band-dark { background: #fff !important; color: #000 !important; }
  .band-dark h2, .band-dark h3 { color: #000 !important; }
}
