/* ==========================================================================
   BERMAT LTDA — Escuela de Capacitación en Seguridad
   Design System "Warm Apothecary Editorial" (referencia: functionhealth.com)
   ========================================================================== */

:root {
  /* Colors — paleta SGID Bermat (muestreada del logo) */
  --terracotta: #70749A;        /* brand */
  --terracotta-deep: #5A5E82;   /* brand-strong */
  --terracotta-soft: #C2C5E8;   /* accent */
  --gradient-seal: linear-gradient(135deg, #5A5E82, #70749A);
  --parchment: #F6F7FB;
  --aged-paper: #E2E3EE;        /* accent-soft */
  --warm-taupe: #D5D7E6;
  --ink: #3A3D5C;
  --charcoal: #5C5A59;
  --graphite: #6B6B70;
  --ash: #9A9BB0;

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'General Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, Menlo, monospace;

  /* Radii */
  --r-nav: 12px;
  --r-cards: 24px;
  --r-buttons: 40px;
  --r-pills: 9999px;

  /* Shadows */
  --shadow-lg: rgba(0, 0, 0, 0.15) 0px 0px 20px 0px;
  --shadow-xl: rgba(42, 43, 47, 0.1) 12px 32px 80px 0px;

  /* Layout */
  --page-max: 1280px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.37px;
  color: var(--charcoal);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(112, 116, 154, 0.25); }

/* ---------- Typography ---------- */
.display, h1, h2.display-like {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0;
}
.display em, h1 em, h2 em, .serif-em {
  font-style: italic;
  font-weight: 300;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.28px;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow--mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--graphite);
}
.eyebrow--on-dark { color: var(--terracotta-soft); }

h1 { font-size: clamp(44px, 7vw, 80px); line-height: 0.98; }
.h-display-lg { font-family: var(--font-display); font-weight: 400; color: var(--ink); font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.h-heading-lg { font-family: var(--font-display); font-weight: 400; color: var(--ink); font-size: clamp(32px, 4vw, 45px); line-height: 1.08; }
.h-heading { font-family: var(--font-display); font-weight: 400; color: var(--ink); font-size: clamp(26px, 3vw, 34px); line-height: 1.12; }
.lead { font-size: 18px; font-weight: 300; line-height: 1.5; letter-spacing: -0.41px; color: var(--charcoal); }
.small { font-size: 14px; letter-spacing: -0.32px; color: var(--graphite); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.section { padding-block: clamp(64px, 9vw, 96px); }
.section--aged { background: var(--aged-paper); }
.section--ink { background: var(--ink); color: var(--parchment); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--terracotta);
  color: #fff;
  font-size: 14px;
  letter-spacing: -0.32px;
  text-align: center;
  padding: 9px 16px;
  position: relative;
  z-index: 60;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.announce a:hover { opacity: 0.85; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--warm-taupe); }
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__seal {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient-seal);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  flex-shrink: 0;
}
.nav__wordmark { height: 26px; width: auto; }
.nav__icon { height: 38px; width: auto; display: block; }
.footer__logo .nav__icon { filter: brightness(0) invert(0.95); }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.35px;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-pills);
  place-items: center;
}
.nav__burger:hover { background: var(--aged-paper); }
.nav__burger svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 1.8; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--parchment);
  display: flex;
  flex-direction: column;
  padding: 24px clamp(20px, 5vw, 40px) 40px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease-out), visibility 0s 0.5s;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; transition: transform 0.5s var(--ease-out); }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; height: 48px; }
.mobile-menu__close { width: 42px; height: 42px; border-radius: var(--r-pills); display: grid; place-items: center; }
.mobile-menu__close:hover { background: var(--aged-paper); }
.mobile-menu__links { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; }
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1.15;
  color: var(--ink);
  border-bottom: 1px solid var(--warm-taupe);
  padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu__links a span { font-family: var(--font-mono); font-size: 11px; color: var(--terracotta); letter-spacing: 0.06em; }
.mobile-menu__cta { margin-top: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.37px;
  padding: 13px 26px;
  border-radius: var(--r-buttons);
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--terracotta); color: #fff; }
.btn--primary:hover { background: var(--terracotta-deep); }
.btn--outline { background: transparent; border: 1.5px solid var(--terracotta); color: var(--terracotta); }
.btn--outline:hover { background: rgba(112, 116, 154, 0.09); }
.btn--ghost { color: var(--ink); font-weight: 500; font-size: 15px; padding: 9px 14px; }
.btn--ghost:hover { background: var(--aged-paper); }
.btn--light { background: var(--parchment); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--outline-light { border: 1.5px solid rgba(246, 247, 251, 0.5); color: var(--parchment); }
.btn--outline-light:hover { border-color: var(--parchment); background: rgba(246, 247, 251, 0.1); }
.btn--sm { font-size: 14px; padding: 10px 20px; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--parchment);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(1.05);
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(45, 44, 70, 0.25) 0%, rgba(45, 44, 70, 0.45) 55%, rgba(35, 34, 56, 0.8) 100%),
    linear-gradient(135deg, rgba(45, 44, 70, 0.55) 0%, rgba(90, 94, 130, 0.35) 45%, rgba(112, 116, 154, 0.15) 100%);
}
.hero__inner { padding-block: clamp(96px, 14vh, 160px) clamp(64px, 9vh, 110px); width: 100%; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { color: var(--parchment); max-width: 14ch; }
.hero h1 em { font-weight: 300; }
.hero__sub {
  margin-top: 26px;
  max-width: 52ch;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.41px;
  color: rgba(246, 247, 251, 0.82);
}
.hero__ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  margin-top: clamp(48px, 7vh, 80px);
  padding-top: 28px;
  border-top: 1px solid rgba(246, 247, 251, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
}
.hero__meta .stat__num { color: var(--parchment); }
.hero__meta .stat__label { color: rgba(246, 247, 251, 0.65); }

/* Page hero (interior pages) */
.page-hero { padding-block: clamp(72px, 10vw, 120px) clamp(48px, 6vw, 72px); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 22px; max-width: 56ch; }
.page-hero--aged { background: var(--aged-paper); }
.page-hero--ink { background: var(--ink); color: var(--parchment); }
.page-hero--ink h1 { color: var(--parchment); }
.page-hero--ink .lead { color: rgba(246, 247, 251, 0.75); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 32px; position: relative; }
.stat:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0; top: 10%;
  height: 80%;
  width: 1px;
  background: var(--warm-taupe);
}
.stat:first-child { padding-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 45px);
  line-height: 1;
  color: var(--ink);
}
.stat__num em { font-style: italic; font-weight: 300; }
.stat__label { margin-top: 10px; font-size: 14px; letter-spacing: -0.32px; color: var(--graphite); }

/* ---------- Cards ---------- */
.card {
  background: var(--aged-paper);
  border-radius: var(--r-cards);
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.5vw, 32px);
  border: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.card--outline { background: transparent; border: 1px solid var(--warm-taupe); }
.card--parchment { background: var(--parchment); }
.card__step {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.32px;
  color: var(--terracotta);
  font-variant-numeric: tabular-nums;
}
.card__icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--parchment);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.card--outline .card__icon, .card--parchment .card__icon { background: var(--aged-paper); }
.card__icon svg { width: 24px; height: 24px; stroke: var(--terracotta); stroke-width: 1.6; fill: none; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 12px;
}
.card p { font-size: 15.5px; color: var(--charcoal); line-height: 1.55; }
.card__foot { margin-top: auto; padding-top: 24px; }
.card__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--terracotta);
}
.card__link svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform 0.25s var(--ease-out); }
.card__link:hover svg { transform: translateX(4px); }

/* Course / seminar card */
.course-card {
  background: var(--parchment);
  border: 1px solid var(--warm-taupe);
  border-radius: var(--r-cards);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.course-card:hover { border-color: var(--terracotta-soft); transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.course-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.course-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 23px; line-height: 1.15; color: var(--ink); }
.course-card p { font-size: 14.5px; color: var(--graphite); }
.course-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }

/* Pills / tags */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.28px;
  padding: 6px 14px;
  border-radius: var(--r-pills);
  background: var(--aged-paper);
  color: var(--charcoal);
}
.pill--terracotta { background: rgba(112, 116, 154, 0.12); color: var(--terracotta); }
.pill--outline { background: transparent; border: 1px solid var(--warm-taupe); color: var(--graphite); }

/* ---------- Tag flow (seminar list with terracotta bullets) ---------- */
.tagflow { display: flex; flex-wrap: wrap; row-gap: 10px; align-items: baseline; }
.tagflow li {
  display: inline-flex;
  align-items: baseline;
  font-size: 15px;
  letter-spacing: -0.35px;
  color: var(--charcoal);
}
.tagflow li:not(:last-child)::after {
  content: '·';
  color: var(--terracotta);
  font-weight: 700;
  padding-inline: 16px;
}

/* ---------- Media feature (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature--flip .feature__media { order: 2; }
.feature__media { position: relative; }
.feature__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--r-cards);
  filter: saturate(1.03);
}
.feature__media--tall img { aspect-ratio: 4 / 4.6; }
.feature__badge {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--parchment);
  border-radius: var(--r-cards);
  padding: 20px 26px;
  box-shadow: var(--shadow-xl);
  max-width: 240px;
}
.feature__badge .stat__num { font-size: 34px; }
.feature__content .eyebrow { margin-bottom: 14px; }
.feature__content h2 { margin-bottom: 18px; }
.feature__content p + p { margin-top: 14px; }
.feature__list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.feature__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--charcoal); }
.feature__list svg { width: 20px; height: 20px; stroke: var(--terracotta); stroke-width: 1.8; fill: none; flex-shrink: 0; margin-top: 1px; }

/* ---------- Testimonials ---------- */
.testimonial { max-width: 760px; }
.testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.35;
  color: var(--ink);
}
.testimonial__who { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.testimonial__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient-seal);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  flex-shrink: 0;
}
.testimonial__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.testimonial__cred { font-size: 14px; color: var(--graphite); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-cards);
  overflow: hidden;
  background: var(--ink);
  color: var(--parchment);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 88px);
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 120% at 85% 10%, rgba(112, 116, 154, 0.55), transparent 60%),
    radial-gradient(50% 100% at 5% 95%, rgba(194, 197, 232, 0.16), transparent 60%);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.05; color: var(--parchment); max-width: 16ch; }
.cta-band p { margin-top: 18px; color: rgba(246, 247, 251, 0.72); max-width: 48ch; font-size: 17px; font-weight: 300; }
.cta-band__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band__seal {
  position: absolute;
  right: clamp(-40px, -2vw, 40px);
  top: 50%;
  translate: 0 -50%;
  width: clamp(180px, 22vw, 300px);
  height: auto;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); }
.input, .textarea, .select {
  width: 100%;
  background: var(--parchment);
  border: 1px solid var(--ash);
  border-radius: var(--r-pills);
  padding: 13px 22px;
  font-size: 16px;
  letter-spacing: -0.37px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.textarea { border-radius: 22px; min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--graphite); opacity: 0.7; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(112, 116, 154, 0.22);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .field--full { grid-column: 1 / -1; }

/* ---------- Contact blocks ---------- */
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding-block: 18px; border-bottom: 1px solid var(--warm-taupe); }
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-pills);
  background: var(--aged-paper);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 19px; height: 19px; stroke: var(--terracotta); stroke-width: 1.7; fill: none; }
.contact-item__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.28px; color: var(--graphite); }
.contact-item__value { font-size: 16px; font-weight: 500; color: var(--ink); margin-top: 2px; }
.contact-item__value a:hover { color: var(--terracotta); }

.map-frame { border-radius: var(--r-cards); overflow: hidden; border: 1px solid var(--warm-taupe); height: 100%; min-height: 380px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85) hue-rotate(-8deg); display: block; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--warm-taupe); }
.faq__item { border-bottom: 1px solid var(--warm-taupe); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.41px;
  color: var(--ink);
}
.faq__q svg { width: 18px; height: 18px; stroke: var(--terracotta); stroke-width: 2; fill: none; flex-shrink: 0; transition: transform 0.35s var(--ease-out); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.faq__a p { padding: 0 0 24px; max-width: 68ch; color: var(--charcoal); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(246, 247, 251, 0.75); }
.footer__main { padding-block: 44px 28px; display: grid; grid-template-columns: 1.15fr 0.85fr 1.05fr 0.75fr 1.6fr; gap: 28px; }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer__logo .nav__wordmark { filter: brightness(0) invert(0.98); }
.footer__brand p { font-size: 13.5px; line-height: 1.55; max-width: 32ch; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--terracotta-soft);
  margin-bottom: 12px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 6px; }
.footer__col a { font-size: 13.5px; transition: color 0.2s; }
.footer__col a:hover { color: var(--parchment); }
.footer__contact li { font-size: 13.5px; line-height: 1.5; display: flex; gap: 8px; overflow-wrap: break-word; min-width: 0; }
.footer__contact svg { width: 15px; height: 15px; stroke: var(--terracotta-soft); stroke-width: 1.7; fill: none; flex-shrink: 0; margin-top: 3px; }
.footer__bar {
  border-top: 1px solid rgba(246, 247, 251, 0.14);
  padding-block: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(246, 247, 251, 0.5);
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Motion extras ---------- */
/* Ken Burns lento sobre el video del hero */
.hero__media video, .hero__media img {
  animation: kenburns 24s var(--ease-out) both;
}
@keyframes kenburns {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

/* Marquee: cinta infinita de especialidades */
.marquee {
  overflow: hidden;
  background: var(--aged-paper);
  border-block: 1px solid var(--warm-taupe);
  padding: 18px 0;
  position: relative;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--charcoal);
  white-space: nowrap;
}
.marquee__track span::after {
  content: '·';
  color: var(--terracotta);
  font-weight: 700;
  padding-inline: 18px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Reveal de imágenes con cortina (clip en el hijo: el clip en el propio
   elemento reduce su intersectionRect y el observer nunca dispara) */
.reveal--img { opacity: 1; transform: none; transition: none; }
.reveal--img img { clip-path: inset(0 0 100% 0 round var(--r-cards)); transition: clip-path 1s var(--ease-out); }
.reveal--img.is-in img { clip-path: inset(0 0 0 0 round var(--r-cards)); }

/* Pulso suave del sello de marca */
.nav__seal { animation: seal-pulse 4s ease-in-out infinite; }
@keyframes seal-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(112, 116, 154, 0.35); }
  50% { box-shadow: 0 0 0 7px rgba(112, 116, 154, 0); }
}

/* Flecha flotante en CTAs grandes */
.cta-band .btn--primary svg { animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media video, .hero__media img { animation: none; }
  .marquee__track { animation: none; }
  .nav__seal { animation: none; }
  .cta-band .btn--primary svg { animation: none; }
  .reveal--img { clip-path: none; }
}

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: var(--shadow-xl); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; animation: wa-saludo 6s ease-in-out 2s infinite; }
.wa-float::before, .wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; z-index: -1; animation: wa-onda 2.4s ease-out infinite;
}
.wa-float::after { animation-delay: 1.2s; }
@keyframes wa-onda { from { transform: scale(1); opacity: 0.55; } to { transform: scale(1.9); opacity: 0; } }
@keyframes wa-saludo {
  0%, 84%, 100% { transform: none; }
  87% { transform: rotate(-16deg) scale(1.12); }
  90% { transform: rotate(14deg) scale(1.12); }
  93% { transform: rotate(-8deg); }
  96% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float svg, .wa-float::before, .wa-float::after { animation: none; }
}

/* ---------- Resultados de verificación (consulta) ---------- */
.verify-status { font-size: 14.5px; color: var(--graphite); }
.verify-card {
  background: var(--parchment);
  border: 1px solid var(--warm-taupe);
  border-radius: var(--r-cards);
  padding: 22px 24px;
  margin-bottom: 14px;
  animation: verify-in 0.5s var(--ease-out) both;
}
@keyframes verify-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.verify-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.verify-card__curso { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.2; color: var(--ink); }
.verify-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 13px;
  border-radius: var(--r-pills);
  background: rgba(112, 116, 154, 0.12);
  color: var(--terracotta);
  white-space: nowrap;
  flex-shrink: 0;
}
.verify-card__meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin-top: 16px; }
.verify-card__meta div { font-size: 12.5px; color: var(--graphite); }
.verify-card__meta strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-top: 1px; }

/* ---------- Catálogo PEIS (tabs + filas) ---------- */
.peis-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.peis-tab {
  padding: 11px 22px;
  border-radius: var(--r-pills);
  border: 1.5px solid var(--warm-taupe);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.32px;
  color: var(--charcoal);
  background: transparent;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}
.peis-tab:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px); }
.peis-tab.is-active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.peis-group[hidden] { display: none; }
.peis-group__intro { max-width: 64ch; margin-bottom: 32px; color: var(--charcoal); }
.peis-level { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 6px; }
.peis-level:first-of-type { margin-top: 0; }
.peis-level h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); color: var(--ink); }
.peis-list { border-top: 1px solid var(--warm-taupe); }
.peis-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 10px;
  border-bottom: 1px solid var(--warm-taupe);
  border-radius: 8px;
  transition: background 0.2s, padding 0.25s var(--ease-out);
}
.peis-row:hover { background: var(--aged-paper); padding-inline: 16px; }
.peis-row__name { font-size: 16px; font-weight: 500; letter-spacing: -0.37px; color: var(--ink); }
.peis-row__hours {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--terracotta);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 620px) {
  .peis-row__name { font-size: 14.5px; }
}

/* ---------- Prose (páginas legales) ---------- */
.prose h2 { margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; max-width: 72ch; }
.prose ul { margin: 0 0 18px; display: flex; flex-direction: column; gap: 9px; }
.prose ul li { position: relative; padding-left: 26px; max-width: 70ch; }
.prose ul li::before {
  content: '·';
  position: absolute;
  left: 8px;
  color: var(--terracotta);
  font-weight: 700;
}
.prose strong { color: var(--ink); }

/* ---------- Utilities ---------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.center { text-align: center; }
.flow > * + * { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(odd) { padding-left: 0; }
  .footer__main { grid-template-columns: repeat(3, 1fr); }
  .footer__brand, .footer__main > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links, .nav__actions .btn--ghost, .nav__actions .btn--outline { display: none; }
  .nav__burger { display: grid; }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature--flip .feature__media { order: 0; }
  .feature__badge { left: 16px; bottom: -20px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 78vh; }
  .footer__main { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .cta-band__seal { display: none; }
}

/* Toque cómodo en pantallas táctiles: los enlaces sueltos (Ver seminarios,
   Cómo llegar, teléfonos/correo de contacto) medían ~20px de alto; 44px es el
   mínimo recomendado para acertar con el dedo. En escritorio no cambia nada. */
@media (pointer: coarse) {
  .card__link,
  .contact-item__value a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
}

/* Portal SVP (apoyo-laboral): insignia beta, casilla de autorización y campo trampa */
.beta-badge { margin-left: 10px; padding: 3px 10px; border-radius: var(--r-pills); background: var(--terracotta); color: #fff; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check-row input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--terracotta); }
.check-row a { color: var(--terracotta); font-weight: 600; }
.svp-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field-nota { font-size: 12.5px; line-height: 1.45; color: var(--graphite); }
.licencias { border: 0; padding: 0; margin: 0; }
.licencias legend { font-size: 13px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); margin-bottom: 8px; }
.licencias legend small { font-weight: 400; color: var(--graphite); }
.licencias__opciones, .licencias__ayuda { display: none; }
.licencias:has(input[value="si"]:checked) .licencias__opciones { display: flex; flex-wrap: wrap; gap: 10px; }
.licencias:has(input[value="si"]:checked) .licencias__ayuda { display: block; margin: 12px 0 8px; }
.licencias__respuesta { display: flex; gap: 10px; }
.licencias__opciones label, .licencias__respuesta label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--warm-taupe); border-radius: var(--r-pills); cursor: pointer; font-weight: 600; }
.licencias__opciones input, .licencias__respuesta input { width: 18px; height: 18px; accent-color: var(--terracotta); }
.licencias__opciones label:has(input:checked), .licencias__respuesta label:has(input:checked) { border-color: var(--terracotta); background: rgba(112, 116, 154, 0.12); }
.footer__normas { padding-bottom: 18px; font-size: 11.5px; line-height: 1.5; opacity: 0.6; }
.footer__dev a { color: rgba(246, 247, 251, 0.75); text-decoration: underline; text-underline-offset: 2px; }
.footer__dev a:hover { color: var(--parchment); }
/* que el botón flotante de WhatsApp no tape la última línea en celular */
@media (max-width: 620px) { .footer__normas { padding-bottom: 88px; } }
