/* Transer — hoja de estilos principal (mobile-first) */

:root{
  --ink: #0B2A1F;
  --forest: #0F3D2E;
  --forest-2: #164C3A;
  --brand: #3A9E1E;
  --brand-ink: #2C7A16;      /* verde con contraste AA sobre claro */
  --lime: #B8E07A;           /* acento sobre oscuro */
  --hazard: #F2C230;
  --paper: #F5F3EC;
  --paper-2: #ECE8DC;
  --white: #FFFFFF;
  --text: #17241E;
  --muted: #4C5D54;
  --line: rgba(11, 42, 31, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 31, 0.06), 0 2px 8px rgba(11, 42, 31, 0.05);
  --shadow: 0 10px 30px -10px rgba(11, 42, 31, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(11, 42, 31, 0.35);

  --gutter: 20px;
  --header-h: 64px;
  --bar-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

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

html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

body.menu-open{ overflow: hidden; }

img{ display: block; max-width: 100%; height: auto; }
figure{ margin: 0; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p{ margin: 0; }
button{ font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 700;
}

h2{ font-size: clamp(30px, 7.4vw, 52px); }
h3{ font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; }

.mono{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ic{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible{
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link{
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus{ top: 12px; }

.container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 16px;
}
.eyebrow .dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(58, 158, 30, 0.18);
}
.eyebrow-light{ color: var(--lime); }
.eyebrow-light .dot{ background: var(--lime); box-shadow: 0 0 0 4px rgba(184, 224, 122, 0.2); }

/* ---------- Botones ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active{ transform: scale(0.97); }
.btn .ic{ width: 18px; height: 18px; }
.btn-sm{ min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block{ width: 100%; }

.btn-primary{ background: var(--brand-ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(44, 122, 22, 0.6); }
.btn-primary:hover{ background: var(--forest); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--ink); }
.btn-light{ background: #fff; color: var(--ink); }
.btn-light:hover{ background: var(--lime); }
.btn-outline-light{ background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover{ border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Header ---------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 236, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled{
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(11, 42, 31, 0.4);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand img{ height: 30px; width: auto; }

.main-nav{ display: none; }

.header-actions{ display: flex; align-items: center; gap: 10px; }
.header-phone{ display: none; }
.header-actions .btn-sm{ display: none; }

.menu-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.menu-toggle .ic{ width: 22px; height: 22px; }

/* ---------- Menú mobile ---------- */

.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--forest);
  color: #fff;
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.mobile-menu[hidden]{ display: none; }
.mobile-menu.is-open{ opacity: 1; transform: none; }

.mobile-menu-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  flex-shrink: 0;
}
.mobile-menu-top img{ height: 30px; width: auto; }

.logo-light{ filter: invert(1); }

.menu-close{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-light);
  background: transparent;
  color: #fff;
}

.mobile-links{ margin: 24px 0 32px; }
.mobile-links li{ border-bottom: 1px solid var(--line-light); }
.mobile-links a{
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.mobile-links a .mono{ color: var(--lime); font-size: 12px; }
.mobile-links a:active{ color: var(--lime); }

.mobile-menu-contact{ margin-top: auto; display: grid; gap: 12px; }
.mobile-menu-contact p{ text-align: center; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* ---------- Hero ---------- */

.hero{
  position: relative;
  padding: 28px 0 40px;
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid{ position: relative; display: grid; gap: 32px; }

.hero h1{
  font-size: clamp(40px, 11vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 20px;
}
.hero h1 mark{
  background: none;
  color: var(--brand-ink);
  position: relative;
  white-space: nowrap;
}
.hero h1 mark::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.14em;
  background: var(--hazard);
  border-radius: 4px;
  z-index: -1;
  transform-origin: left;
  animation: underline 0.9s 0.5s var(--ease) both;
}
@keyframes underline{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }

.lead{
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero-actions{ display: grid; gap: 12px; }

.hero-media{ position: relative; }
.hero-photo{
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
}
.hero-photo img{ width: 100%; height: 100%; object-fit: cover; }

.spec-tag{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(11, 42, 31, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
}
.spec-tag > .mono{ color: var(--lime); font-size: 11px; }
.spec-tag strong{ font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.spec-row{
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed var(--line-light);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.spec-row .mono{ color: var(--hazard); }

.hero-steps{
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
}
.hero-steps li{
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}
.hero-steps .ic{ color: var(--brand-ink); width: 22px; height: 22px; }
.hero-steps strong{ display: block; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 2px; }

/* ---------- Números ---------- */

.stats{
  background: var(--forest);
  color: #fff;
  padding: 36px 0;
  position: relative;
  overflow: hidden;
}
.stats::after{
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255,255,255,0.025) 22px 23px);
  pointer-events: none;
}
.stats-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  background: var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat{
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 20px 16px;
  background: var(--forest);
}
.stat dt{ font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.35; }
.stat dd{
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

/* ---------- Secciones ---------- */

.section{ padding: 72px 0; }
.section-alt{ background: var(--white); }
.section-dark{ background: var(--forest); color: rgba(255,255,255,0.8); }
.section-dark h2, .section-dark h3{ color: #fff; }

.section-head{ max-width: 680px; margin-bottom: 36px; }
.section-head h2{ margin-bottom: 14px; }
.section-head p:not(.eyebrow){ color: var(--muted); font-size: 17px; }

/* ---------- Proceso ---------- */

.process{
  position: relative;
  display: grid;
  gap: 20px;
  counter-reset: step;
}
.step{
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.step-photo{ aspect-ratio: 2 / 1; overflow: hidden; }
.step-photo img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.step:hover .step-photo img{ transform: scale(1.04); }
.step-body{ position: relative; padding: 22px 20px 24px; }
.step-num{
  position: absolute;
  top: -22px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--hazard);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,0.3);
}
.step h3{ margin: 8px 0 10px; }
.step p{ color: var(--muted); font-size: 15.5px; }

/* ---------- Nosotros ---------- */

.about-grid{ display: grid; gap: 44px; }

.about-media{
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.about-photo{ border-radius: var(--radius); overflow: hidden; }
.about-photo img{ width: 100%; height: 100%; object-fit: cover; }
.about-photo.a1{ grid-row: 1 / 3; aspect-ratio: 3 / 4; }
.about-photo.a2{ aspect-ratio: 1; align-self: end; }
.about-badge{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 16px;
  background: var(--forest);
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.35;
}
.about-badge .big{
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: -0.04em;
  line-height: 1;
}

.about-copy h2{ margin-bottom: 18px; }
.lead-sm{ font-size: 17px; color: var(--muted); margin-bottom: 28px; }

.values{ display: grid; gap: 10px; }
.values li{
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink);
}
.values .ic{
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- Por qué elegirnos ---------- */

.section-dark{ position: relative; overflow: hidden; }
.section-dark::before{
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  right: -200px;
  top: -200px;
  background: radial-gradient(circle, rgba(184,224,122,0.14), transparent 65%);
  pointer-events: none;
}

.why-grid{ position: relative; display: grid; gap: 40px; }
.why-copy h2{ margin-bottom: 16px; }
.why-copy > p:not(.eyebrow){ font-size: 17px; margin-bottom: 28px; }

.why-items{ display: grid; gap: 12px; }
.why-item{
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
}
.why-item h3{ font-size: 18px; margin-bottom: 4px; }
.why-item p{ font-size: 15px; color: rgba(255,255,255,0.72); }
.why-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  flex-shrink: 0;
}

.why-media{ position: relative; }
.why-media figure{
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
}
.why-media img{ width: 100%; height: 100%; object-fit: cover; }

.call-card{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  transition: transform .25s var(--ease);
}
.call-card:hover{ transform: translateY(-3px); }
.call-card small{ display: block; color: var(--brand-ink); font-size: 11px; font-weight: 500; }
.call-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-ink);
  color: #fff;
}

/* ---------- Certificados ---------- */

.cert-head{ display: grid; gap: 4px; margin-bottom: 28px; }
.cert-head .section-head{ margin-bottom: 20px; }

.annual{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.annual:hover{ transform: translateY(-2px); background: var(--forest-2); }
.annual-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--hazard);
  color: var(--ink);
  flex-shrink: 0;
}
.annual-text{ flex: 1; font-weight: 600; line-height: 1.3; }
.annual-text small{ display: block; color: var(--lime); font-size: 11px; margin-bottom: 2px; }
.annual-arrow{ color: var(--lime); }

.tabs{
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: var(--paper-2);
  border-radius: 999px;
}
.tab{
  min-width: 88px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tab[aria-selected="true"]{ background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.cert-panel[hidden]{ display: none; }

.cert-list{
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cert{
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 18px;
}
.cert-month{
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.cert-month .mono{ font-size: 11px; color: var(--muted); font-weight: 500; }
.cert-links{ display: flex; gap: 8px; }
.cert-links a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cert-links a .ic{ width: 16px; height: 16px; color: #C0392B; }
.cert-links a:hover{ background: var(--forest); border-color: var(--forest); color: #fff; }
.cert-links a:hover .ic{ color: var(--lime); }

/* ---------- CTA ---------- */

.cta{
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.cta-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  z-index: -1;
}
.cta::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11,42,31,0.95) 25%, rgba(11,42,31,0.55));
  z-index: -1;
}
.cta h2{ color: #fff; max-width: 18ch; margin-bottom: 28px; }
.cta-actions{ display: grid; gap: 12px; }

/* ---------- Contacto ---------- */

.contact-grid{ display: grid; gap: 40px; }

.channels{ display: grid; gap: 10px; }
.channels a, .channels li > div{
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.channels a > span:last-child, .channels li > div > span:last-child{ min-width: 0; }
.channels a:hover{ border-color: var(--brand); }
.channels a:active{ transform: scale(0.99); }
.channels small{ display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.ch-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--brand-ink);
  flex-shrink: 0;
}

.contact-form-wrap{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.notice{
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  background: #FFF8E1;
  border: 1px solid rgba(242, 194, 48, 0.5);
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.5;
}
.notice .ic{ color: #9A7400; margin-top: 2px; }

.contact-form{ display: grid; gap: 16px; }
.field-row{ display: grid; gap: 16px; }
.field{ display: grid; gap: 6px; }
.field label{ font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea{
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.field select{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230B2A1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}
.field textarea{ resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--brand);
  background: #fff;
}
.field.invalid input, .field.invalid textarea{ border-color: #C0392B; background: #FFF5F4; }

.form-error{ color: #B03A2E; font-size: 14px; font-weight: 600; }
.form-hint{ text-align: center; font-size: 13px; color: var(--muted); margin-top: -4px; }

/* ---------- Footer ---------- */

.site-footer{
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
  font-size: 15px;
}
.footer-grid{ display: grid; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line-light); }
.footer-brand img{ height: 32px; width: auto; margin-bottom: 18px; }
.footer-brand p{ max-width: 46ch; }
.footer-col h3{ color: var(--lime); font-size: 12px; font-weight: 500; margin-bottom: 14px; letter-spacing: 0.08em; }
.footer-col li{ margin-bottom: 4px; }
.footer-col a{ display: inline-block; padding: 6px 0; }
.footer-col a:hover{ color: #fff; }
.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
}
.footer-bottom a{ color: rgba(255,255,255,0.7); }
.footer-bottom a:hover{ color: #fff; }

/* ---------- Barra de acción mobile ---------- */

.action-bar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(245, 243, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transition: transform .3s var(--ease);
}
.action-bar a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 600;
  touch-action: manipulation;
}
.action-bar a:active{ transform: scale(0.97); }
.ab-call{ background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ab-wa{ background: var(--brand-ink); color: #fff; }
body.menu-open .action-bar{ transform: translateY(110%); }

/* ---------- Animaciones de entrada ---------- */

.js .reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in{ opacity: 1; transform: none; }
.hero .reveal:nth-child(2){ transition-delay: .08s; }
.hero .reveal:nth-child(3){ transition-delay: .16s; }
.hero .reveal:nth-child(4){ transition-delay: .24s; }
.hero-media.reveal{ transition-delay: .2s; }
.process .step:nth-child(2){ transition-delay: .08s; }
.process .step:nth-child(3){ transition-delay: .16s; }

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

/* Teléfonos muy angostos (≤ 359px) */
@media (max-width: 359px){
  :root{ --gutter: 16px; }
  .hero-steps{ gap: 6px; }
  .hero-steps li{ padding: 12px 8px; font-size: 11.5px; }
  .hero-steps strong{ font-size: 12px; }
  .cert{ flex-wrap: wrap; }
  .cert-links{ width: 100%; }
  .cert-links a{ flex: 1; justify-content: center; }
}

/* =========================================================
   Breakpoints
   ========================================================= */

@media (min-width: 480px){
  .hero-actions, .cta-actions{ display: flex; flex-wrap: wrap; }
  .field-row{ grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px){
  :root{ --gutter: 32px; --header-h: 72px; }
  body{ padding-bottom: 0; }
  .action-bar{ display: none; }

  .brand img{ height: 34px; }
  .header-actions .btn-sm{ display: inline-flex; }

  .section{ padding: 104px 0; }
  .hero{ padding: 48px 0 64px; }

  .hero-steps{ gap: 12px; margin-top: 40px; }
  .hero-steps li{ flex-direction: row; align-items: center; gap: 14px; padding: 18px 20px; font-size: 14px; }
  .hero-steps strong{ font-size: 16px; }

  .stats{ padding: 48px 0; }
  .stats-grid{ grid-template-columns: repeat(4, 1fr); }
  .stat{ padding: 28px 24px; }
  .stat dd{ font-size: 54px; }

  .process{ grid-template-columns: repeat(3, 1fr); }
  .step-body{ padding: 26px 24px 28px; }
  .step-photo{ aspect-ratio: 16 / 10; }

  .values{ grid-template-columns: 1fr 1fr; }

  .cert-list{ grid-template-columns: 1fr 1fr; }

  .contact-form-wrap{ padding: 32px; }
  .channels a, .channels li > div{ font-size: 16px; }

  .footer-grid{ grid-template-columns: 2fr 1fr 1.3fr; }
}

@media (min-width: 1024px){
  .main-nav{ display: block; }
  .main-nav ul{ display: flex; gap: 4px; }
  .main-nav a{
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    color: var(--muted);
    transition: color .2s var(--ease), background-color .2s var(--ease);
  }
  .main-nav a:hover{ color: var(--ink); background: rgba(11,42,31,0.05); }
  .main-nav a.active{ color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }

  .header-phone{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
  }
  .header-phone .ic{ width: 18px; height: 18px; color: var(--brand-ink); }
  .menu-toggle{ display: none; }

  .hero{ padding: 72px 0 80px; }
  .hero-grid{ grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; }
  .lead{ font-size: 19px; }
  .hero-photo{ aspect-ratio: 4 / 4.2; transform: rotate(1.2deg); }
  .spec-tag{ left: -36px; right: auto; bottom: 36px; width: 300px; padding: 18px 20px; box-shadow: var(--shadow-lg); }

  .about-grid{ grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
  .why-grid{ grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 72px; }
  .call-card{ left: -32px; right: auto; bottom: 40px; padding: 16px 22px 16px 16px; }

  .cert-head{ grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
  .cert-head .section-head{ margin-bottom: 0; }
  .cert-list{ grid-template-columns: repeat(3, 1fr); }
  .cert{ flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; }
  .cert-month{ flex-direction: row; justify-content: space-between; align-items: baseline; font-size: 18px; font-family: var(--font-display); }
  .cert-links a{ flex: 1; justify-content: center; }

  .cta{ padding: 120px 0; }
  .cta-inner{ display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
  .cta h2{ margin-bottom: 0; }
  .cta-actions{ flex-shrink: 0; }

  .contact-grid{ grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
  .contact-info{ position: sticky; top: calc(var(--header-h) + 32px); }
  .contact-form-wrap{ padding: 40px; }
}
