/* ============================================================
   Start Anglo Bilingual School — Taubaté
   Design system + styles
   ============================================================ */

:root {
  /* Brand palette (extracted from the original site, refined) */
  --navy-900: #09152B;
  --navy-800: #0e1e3d;
  --navy-700: #15295a;
  --navy-600: #1d3670;
  --emerald: #00bda5;
  --emerald-600: #00aa82;
  --emerald-700: #037356;
  --teal: #67a5a9;

  --ink: #0f1b30;
  --muted: #5a677d;
  --line: #e5eaf1;
  --paper: #f7f9fc;
  --white: #ffffff;

  --grad-brand: linear-gradient(135deg, #00bda5 0%, #12b3c9 55%, #2b73d8 100%);
  --grad-navy: linear-gradient(160deg, #09152b 0%, #12244a 60%, #15295a 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(9, 21, 43, .06);
  --shadow-md: 0 16px 40px -18px rgba(9, 21, 43, .28);
  --shadow-lg: 0 30px 70px -30px rgba(9, 21, 43, .45);

  --ff-head: "Poppins", system-ui, sans-serif;
  --ff-body: "Lato", system-ui, sans-serif;

  --container: 1200px;
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
/* Clip on body (not html) so the off-canvas mobile drawer can never create a
   horizontal scrollbar, while the sticky header keeps working — setting
   overflow on html propagates to the viewport and breaks position: sticky. */
body { overflow-x: clip; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.15; letter-spacing: -.01em; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.ic { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
  padding: .78rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--grad-brand); color: #04283a; box-shadow: 0 10px 24px -10px rgba(0, 189, 165, .8); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 189, 165, .9); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--navy-900); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35rem; font-family: var(--ff-head);
  font-weight: 600; color: var(--emerald-700); margin-top: .3rem;
}
.link-arrow .ic { transition: transform .2s ease; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block; font-family: var(--ff-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--emerald); padding: .35rem .8rem; border-radius: 999px;
  background: rgba(0, 189, 165, .12); margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--emerald-700); background: rgba(0, 170, 130, .1); }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 54ch; }
.lead--center { margin-inline: auto; }
.grad {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--paper); }
.section__head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #cfd8e6; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 1rem; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; color: #cfd8e6; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar__contacts { display: flex; gap: 1.4rem; }
.topbar__links { display: flex; align-items: center; gap: .9rem; }
.topbar .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); }
.topbar__lang strong { color: var(--emerald); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
/* Glass on a pseudo-element (not the header itself): backdrop-filter on an
   ancestor would make it the containing block for the position:fixed mobile
   drawer, breaking it after scroll. The pseudo isn't an ancestor of the nav. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy-900); }
.brand__mark { width: 42px; height: 42px; display: grid; place-items: center; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--ff-head); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.brand__text small { font-size: .62rem; letter-spacing: .18em; color: var(--muted); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a:not(.btn) {
  font-family: var(--ff-head); font-weight: 500; font-size: .95rem; color: var(--ink);
  position: relative; padding: .2rem 0;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--emerald); transition: width .22s ease;
}
.nav > a:not(.btn):hover::after, .nav > a.active::after { width: 100%; }
.nav__cta { margin-left: .4rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy-900); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--grad-navy); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; opacity: .9;
  background:
    radial-gradient(60% 55% at 82% 12%, rgba(0,189,165,.28), transparent 60%),
    radial-gradient(50% 50% at 10% 100%, rgba(43,115,216,.30), transparent 60%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.hero__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem;
  align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero__content { max-width: 42rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero__lead { font-size: 1.18rem; color: #c7d2e4; max-width: 40ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.8rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.4rem; }
.hero__trust li { font-size: .9rem; color: #b6c2d8; }
.hero__trust strong { display: block; font-family: var(--ff-head); font-size: 1.5rem; color: #fff; font-weight: 700; }

/* Hero photo collage */
.hero__media { justify-self: end; width: 100%; max-width: 460px; }
.hero__photos { position: relative; aspect-ratio: 5 / 5.4; width: 100%; }
.hero__photo { position: absolute; margin: 0; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow-lg); border: 5px solid rgba(255,255,255,.92); background: var(--navy-700); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo--a { width: 66%; aspect-ratio: 3 / 4; top: 0; right: 0; z-index: 1; }
.hero__photo--b { width: 50%; aspect-ratio: 3 / 4; bottom: 0; left: 0; z-index: 2; }
.hero__badge {
  position: absolute; top: 5%; left: -2%; z-index: 3;
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--grad-brand); color: #04283a;
  font-family: var(--ff-head); font-weight: 700; font-size: .8rem;
  padding: .5rem .9rem; border-radius: 999px; box-shadow: var(--shadow-md);
}
.hero__chip {
  position: absolute; bottom: 6%; right: 0; z-index: 3;
  background: #fff; color: var(--muted); font-size: .78rem; line-height: 1.2;
  padding: .6rem .85rem; border-radius: 14px; box-shadow: var(--shadow-md);
}
.hero__chip strong { display: block; font-family: var(--ff-head); font-size: 1.25rem; color: var(--emerald-700); }

/* Hero floating form bar */
.formbar {
  display: grid; grid-template-columns: auto 1fr 1fr auto; gap: .8rem; align-items: center;
  background: #fff; border-radius: 18px; padding: 1rem 1.2rem; box-shadow: var(--shadow-lg);
  margin-top: clamp(2rem, 4vw, 3rem); position: relative; z-index: 5;
}
.formbar__lead strong { display: block; font-family: var(--ff-head); font-size: 1rem; color: var(--ink); }
.formbar__lead span { font-size: .78rem; color: var(--muted); }
.formbar input { min-width: 0; }
.formbar .btn { white-space: nowrap; }

/* Legacy quote/lead capture card (kept for reuse) */
.hero__card { justify-self: end; width: 100%; max-width: 380px; }
.qcard {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 2rem 1.8rem;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6);
}
.qcard h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.qcard > p { color: var(--muted); font-size: .95rem; margin-bottom: 1.3rem; }
.qform { display: grid; gap: .7rem; }
.qcard__note { display: block; margin-top: .9rem; font-size: .78rem; color: var(--muted); text-align: center; }

input, select, textarea {
  font-family: var(--ff-body); font-size: 1rem; width: 100%; padding: .8rem .95rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #9aa6b8; }
input:focus, select:focus, textarea:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(0,189,165,.28); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--emerald); outline-offset: 1px; }

/* ---------- Logos strip ---------- */
.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip__inner { display: flex; align-items: center; gap: 2rem; padding: 1.4rem 0; flex-wrap: wrap; }
.strip__label { font-family: var(--ff-head); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex: none; }
.strip__logos { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; }
.strip__logos span {
  font-family: var(--ff-head); font-weight: 700; color: var(--navy-700); opacity: .72;
  font-size: 1rem; transition: opacity .2s; letter-spacing: .01em;
}
.strip__logos span:hover { opacity: 1; }

/* ---------- Grid-2 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.grid-2--contact { align-items: start; }

.checklist { display: grid; gap: .7rem; margin: 1.4rem 0 1.6rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; background: var(--grad-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/68% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/68% no-repeat;
}

/* Pillars — minmax(0,1fr) lets columns shrink below content min-width
   so long words wrap instead of forcing horizontal overflow. */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar__ic {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  font-size: 1.5rem; margin-bottom: .9rem;
}
.pillar__ic--1 { background: rgba(43,115,216,.12); }
.pillar__ic--2 { background: rgba(0,189,165,.14); }
.pillar__ic--3 { background: rgba(0,170,130,.14); }
.pillar__ic--4 { background: rgba(103,165,169,.16); }
.pillar h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.pillar p { font-size: .92rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { background: var(--grad-navy); color: #fff; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("https://taubate.startangloschool.com.br/hs-fs/hubfs/img-seg2.jpg?width=1400&height=560&name=img-seg2.jpg") center/cover;
  opacity: .12; mix-blend-mode: luminosity;
}
.stats__inner { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: clamp(2.6rem, 6vw, 4rem) 0; }
.stat { text-align: center; padding: 0 .6rem; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,.14); }
.stat__num { font-family: var(--ff-head); font-weight: 800; font-size: clamp(2rem, 4.5vw, 2.9rem); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.stat__label { font-size: .9rem; color: #b6c2d8; max-width: 22ch; margin: .4rem auto 0; }

/* ---------- Dual pillars ---------- */
.dual { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; max-width: 900px; margin: 0 auto; }
.dual__col { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.dual__col--a { border-top: 4px solid #2b73d8; }
.dual__col--b { border-top: 4px solid var(--emerald); }
.dual__col h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.dual__col ul { display: grid; gap: .6rem; }
.dual__col li { position: relative; padding-left: 1.4rem; color: var(--ink); font-size: .96rem; }
.dual__col li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-600); }
.dual__col--a li::before { background: #2b73d8; }
.dual__center { display: grid; place-items: center; }
.dual__plus { font-family: var(--ff-head); font-weight: 800; font-size: 2rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-brand); color: #04283a; box-shadow: var(--shadow-md); }

.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.2rem; }
.area { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; font-family: var(--ff-head); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-sm); }
.area span { font-size: 1.3rem; }

/* ---------- Segmentos cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.seg { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .22s, box-shadow .22s; }
.seg:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.seg__img { aspect-ratio: 16/10; background-image: linear-gradient(180deg, rgba(9,21,43,0) 40%, rgba(9,21,43,.35)), var(--img); background-size: cover; background-position: center; background-color: var(--navy-700); }
.seg__body { padding: 1.6rem; }
.seg__age { display: inline-block; font-family: var(--ff-head); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald-700); background: rgba(0,170,130,.1); padding: .3rem .7rem; border-radius: 999px; margin-bottom: .8rem; }
.seg h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.seg p { color: var(--muted); font-size: .95rem; margin-bottom: .8rem; }

/* ---------- Depoimentos ---------- */
.section--dark { background: var(--grad-navy); color: #fff; }
.section--dark .lead { color: #b6c2d8; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.8rem; backdrop-filter: blur(4px); }
.quote blockquote { font-size: 1.05rem; line-height: 1.6; color: #eaf0fb; position: relative; padding-top: 1.6rem; }
.quote blockquote::before { content: "\201C"; position: absolute; top: -.7rem; left: -.3rem; font-family: Georgia, serif; font-size: 4rem; color: var(--emerald); opacity: .6; line-height: 1; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.quote__ava { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: center top; background: var(--grad-brand); flex: none; box-shadow: 0 0 0 2px rgba(0,189,165,.55); }
.quote figcaption strong { display: block; font-family: var(--ff-head); font-size: .98rem; }
.quote figcaption small { color: #a9b6cf; font-size: .82rem; }

/* ---------- CTA band ---------- */
.ctaband { background: var(--grad-brand); }
.ctaband__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.2rem, 5vw, 3.4rem) 0; flex-wrap: wrap; }
.ctaband h2 { color: #04283a; font-size: clamp(1.4rem, 3vw, 2rem); max-width: 26ch; }
.ctaband p { color: #04283a; font-weight: 600; margin-top: .3rem; }

/* ---------- Contato ---------- */
.contact-info { display: grid; gap: 1.1rem; margin: 1.6rem 0; }
.contact-info li { display: flex; gap: .9rem; align-items: flex-start; color: var(--ink); }
.contact-info .ic { color: var(--emerald-600); font-size: 1.3rem; margin-top: .15rem; }
.socials { display: flex; gap: .7rem; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--navy-700); transition: transform .18s, background .18s, color .18s; }
.socials a:hover { transform: translateY(-3px); background: var(--grad-brand); color: #04283a; border-color: transparent; }
.socials .ic { font-size: 1.3rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-md); display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-family: var(--ff-head); font-weight: 600; font-size: .88rem; color: var(--ink); }
.form__status { font-size: .9rem; text-align: center; min-height: 1.2em; margin: 0; }
.form__status.ok { color: var(--emerald-700); font-weight: 700; }
.form__status.err { color: #d64545; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #b9c4d8; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.brand--footer { color: #fff; }
.brand--footer .brand__text small { color: #8b98b3; }
.footer__brand p { margin-top: 1rem; font-size: .92rem; max-width: 34ch; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; letter-spacing: .02em; }
.footer__col a, .footer__addr { display: block; font-size: .92rem; padding: .28rem 0; color: #b9c4d8; transition: color .15s; }
.footer__col a:hover { color: var(--emerald); }
.footer__addr { color: #8b98b3; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; font-size: .82rem; flex-wrap: wrap; }
.footer__somos strong { color: #fff; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .2s;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Reveal animation ----------
   Content is visible by default. It is only hidden once JS has added the
   `.js` class AND confirmed it will animate it back in — so if JS fails,
   IntersectionObserver misfires, or motion is reduced, nothing disappears. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; max-width: 420px; margin-top: .5rem; }
  .formbar { grid-template-columns: 1fr 1fr; }
  .formbar__lead { grid-column: 1 / -1; }
  .formbar .btn { grid-column: 1 / -1; }
  .hero__card { justify-self: stretch; max-width: 460px; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .stat:nth-child(2)::after { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .areas { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar__contacts a:nth-child(2) { display: none; }
  .topbar__links a:not(.topbar__lang) { display: none; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: #fff;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .2rem;
    padding: calc(var(--header-h) + 1rem) 1.4rem 2rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; z-index: 99;
  }
  .nav.open { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s linear 0s; }
  .nav > a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav > a:not(.btn)::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav-toggle { display: block; z-index: 100; }
  body.nav-open { overflow: hidden; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(9,21,43,.5); z-index: 98; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-scrim.show { opacity: 1; pointer-events: auto; }

  .pillars { grid-template-columns: 1fr; }
  .formbar { grid-template-columns: 1fr; text-align: left; }
  .formbar__lead { text-align: center; }
  .hero__media { max-width: 340px; }
  .dual { grid-template-columns: 1fr; }
  .dual__center { padding: .4rem 0; }
  .dual__plus { transform: rotate(90deg); }
  .areas { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .ctaband__inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 420px) {
  .stats__inner { grid-template-columns: 1fr; }
  .stat::after { display: none !important; }
  .hero__trust { gap: 1.2rem; }
}

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