/* Self-hosted latin subsets (SIL Open Font License); latin covers Spanish accents, ñ, ¿ and ¡ */
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("assets/fonts/zilla-slab-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("assets/fonts/zilla-slab-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #1F5A72;
  --coral: #ED4023;
  --teal: #05B3A5;
  --yellow: #FBBD14;
  --blue: #046491;
  --lavender: #9DB2D8;
  --ink: #2B3440;
  --muted: #5A6573;
  --bg: #FBF9F5;
  --bg-alt: #F6EEDC;
  --surface: #FFFFFF;
  --line: #E6E1D8;
  --gold: #EBD39A;
  --wa: #25D366;
  --wa-ink: #08321F;
  --on-dark: #FFFFFF;

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--navy) 6%, transparent), 0 12px 28px -14px color-mix(in srgb, var(--navy) 22%, transparent);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 600; }
h1, h2, h3, summary { overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
::selection { background: color-mix(in srgb, var(--teal) 35%, transparent); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 30;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--on-dark);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }

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

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  padding: .8em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-wa {
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--wa) 70%, transparent);
}
.btn-wa:hover { box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--wa) 80%, transparent); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: color-mix(in srgb, var(--navy) 6%, transparent); }
.btn-sm { min-height: 42px; padding: .6em 1.15em; font-size: .9rem; }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  flex: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 40px; height: 40px; }
.brand-name { display: block; font: 700 1.25rem/1.1 var(--font-display); white-space: nowrap; }
.brand-sub { display: block; font-size: .78rem; color: var(--muted); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: .95rem; font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--navy); }
.nav-toggle { display: none; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle .bar { transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar-top { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-mid { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar-bot { transform: translateY(-5px) rotate(-45deg); }

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(40rem 28rem at 85% 20%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 70%),
    radial-gradient(30rem 24rem at 5% 90%, color-mix(in srgb, var(--coral) 6%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.js .hero-copy > * { animation: rise .8s var(--ease-out) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }

/* Hero logo: the grey half fades in, then the network lights up from the centre outwards */
.hero-art { justify-self: center; width: min(100%, 440px); }
.brain { display: block; width: 100%; height: auto; overflow: visible; }
.brain-node { transform-box: fill-box; transform-origin: center; }

.js .brain-shape { animation: fade 1s ease-out .1s both; }
.js .brain-node {
  animation: pop .6s var(--ease-out) both;
  animation-delay: calc(.3s + var(--d) * 35ms);
}
.js .brain-node.pulse {
  animation:
    pop .6s var(--ease-out) calc(.3s + var(--d) * 35ms) both,
    breathe 5s ease-in-out calc(2.4s + var(--d) * 150ms) infinite;
}
.js .brain-link {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw .6s var(--ease-out) forwards;
  animation-delay: calc(.3s + var(--d) * 35ms);
}
/* main.js pauses the idle loop while the hero is off screen */
.brain.is-paused .pulse { animation-play-state: paused; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--gold); }
.section-head { display: grid; gap: 16px; justify-items: start; max-width: 640px; margin-bottom: 48px; }
.section-head > p:not(.eyebrow) { color: var(--muted); }


.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Workshops: client flyers, 3 per row */
.workshops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.workshops a { display: block; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s; }
.workshops a:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--navy) 35%, transparent); }
.workshops img { display: block; width: 100%; height: auto; }
.card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); font-size: 1rem; }
.dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0 7px, color-mix(in srgb, var(--c) 18%, transparent) 8px);
  margin-bottom: 4px;
}

/* Services: sticky intro on the left, list on the right */
.services-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 72px; align-items: start; }
.services-head { position: sticky; top: 120px; margin-bottom: 0; }
.services-head .btn { margin-top: 8px; }
.services { counter-reset: svc; }
.service {
  counter-increment: svc;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 6px 16px;
  padding: 28px 0;
  border-top: 1px solid var(--gold);
}
.service:last-child { border-bottom: 1px solid var(--gold); }
.service::before {
  content: counter(svc, decimal-leading-zero);
  grid-row: span 2;
  font: 700 1.5rem/1.3 var(--font-display);
  color: var(--navy);
  opacity: .9;
  background: linear-gradient(var(--c), var(--c)) left bottom / 24px 3px no-repeat;
  height: fit-content;
  padding-bottom: 6px;
}
.service p { color: var(--muted); font-size: 1.02rem; }
.service h4 { margin: 0; font: 600 1.375rem/1.15 var(--font-display); color: var(--navy); text-wrap: balance; }
.service-area { display: grid; gap: 8px; padding: 48px 0 20px; }
.service-area:first-child { padding-top: 0; }
.service-area h3 { font-size: 1.6rem; }
.service-area p { color: var(--muted); }

.modes { display: grid; gap: 6px; color: var(--muted); }
.modes strong { color: var(--navy); }
.cta-sign { margin-top: 6px; font-size: .95rem; }

.pro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: 56px;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pro > div { display: grid; gap: 10px; max-width: 720px; }
.pro p:not(.eyebrow) { color: var(--muted); font-size: 1rem; }
.pro .eyebrow::before { background: var(--lavender); }
.pro .btn { flex: none; }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 80px; align-items: start; }
.about-photo { position: sticky; top: 120px; margin: 0; display: grid; gap: 16px; }
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.about-photo figcaption { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .95rem; color: var(--muted); }
.about-photo strong { color: var(--navy); margin-right: 4px; }
.about-copy .section-head { margin-bottom: 24px; }
.about-text { display: grid; gap: 16px; max-width: 62ch; color: var(--muted); }
.about-text p:first-child { color: var(--ink); font-size: 1.2rem; }

.credentials { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.credentials h3 { margin-bottom: 20px; }
.credentials ul { display: grid; gap: 14px; }
.credentials li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 2px 14px;
  font-weight: 600;
  line-height: 1.4;
}
.credentials li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: .45em;
  border-radius: 50%;
  background: var(--c);
  grid-row: span 2;
}
.credentials li span { font-weight: 400; font-size: .95rem; color: var(--muted); }
.in-progress { margin-top: 24px; font-size: 1rem; color: var(--muted); }
.in-progress strong { color: var(--navy); }

/* FAQ: native <details>; the open/close animation only runs where ::details-content is supported */
.section-divided { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 72px; align-items: start; }
.split-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font: 600 1.2rem/1.35 var(--font-display);
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt); transition: background-color .2s; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .3s var(--ease-out);
}
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon::after { transform: rotate(0deg); }
.faq summary:hover .faq-icon { background: color-mix(in srgb, var(--teal) 22%, var(--bg-alt)); }
.faq details p { padding: 0 56px 24px 0; color: var(--muted); max-width: 64ch; }
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* Contact */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.place p { font-size: 1.05rem; }
.place-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 4px;
}
.link {
  margin-top: 4px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--c);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  justify-self: start;
}
.link .arrow { width: .9em; height: .9em; margin-left: 2px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.link:hover .arrow { transform: translateX(3px); }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 48px;
  margin-top: 64px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 24px;
  color: var(--on-dark);
  background:
    radial-gradient(26rem 18rem at 95% 0%, color-mix(in srgb, var(--teal) 35%, transparent), transparent 70%),
    radial-gradient(22rem 16rem at 0% 100%, color-mix(in srgb, var(--coral) 18%, transparent), transparent 70%),
    var(--navy);
  box-shadow: var(--shadow);
}
.cta > div:first-child { display: grid; gap: 10px; max-width: 520px; }
.cta h2 { color: var(--on-dark); }
.cta p { color: color-mix(in srgb, var(--on-dark) 82%, transparent); }
/* The default blue focus ring disappears on navy */
.cta :focus-visible { outline-color: var(--on-dark); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-phone { color: var(--on-dark); font-weight: 700; font-size: 1.1rem; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: text-decoration-color .2s; }
.cta-phone:hover { text-decoration-color: var(--teal); }

/* Footer */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer strong { color: var(--navy); }
.footer-credit { flex-basis: 100%; font-size: .85rem; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--teal); }

/* Floating WhatsApp button, shown once the hero CTA scrolls away */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--wa-ink) 50%, transparent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.9);
  transition: opacity .3s, transform .35s var(--ease-out), visibility 0s .35s;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wa-float:hover { transform: translateY(-2px); }

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease-out, transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* The colored dots light up after their block arrives, echoing the hero network */
.js .reveal .credentials li::before,
.js .reveal .dot {
  transform: scale(0);
  transition: transform .6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + 300ms);
}
.js .reveal .credentials li:nth-child(2)::before { transition-delay: 380ms; }
.js .reveal .credentials li:nth-child(3)::before { transition-delay: 460ms; }
.js .reveal .credentials li:nth-child(4)::before { transition-delay: 540ms; }
.js .reveal .credentials li:nth-child(n+5)::before { transition-delay: 620ms; }
.js .reveal.is-visible .credentials li::before,
.js .reveal.is-visible .dot { transform: none; }

.js .service.reveal::before { background-size: 0 3px; transition: background-size .6s var(--ease-out) .3s; }
.js .service.reveal.is-visible::before { background-size: 24px 3px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.08); } }

/* Responsive */
@media (max-width: 1000px) {
  .audience { grid-template-columns: repeat(2, 1fr); }
  .workshops { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-head { position: static; margin-bottom: 24px; }
  .about { grid-template-columns: 1fr; }
  .about-photo { position: static; width: min(100%, 380px); }
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; margin-bottom: 24px; }
  /* Nav becomes a dropdown under the sticky header */
  .header-inner { gap: 12px; }
  .site-header .btn-wa { margin-left: auto; }
  .nav-toggle { display: grid; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { width: min(1160px, calc(100% - 32px)); margin-inline: auto; padding: 14px 0; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 340px); }
  .pro { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .container { width: calc(100% - 32px); }
  .audience { grid-template-columns: 1fr; }
  .workshops { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .hero-actions .btn { width: 100%; }
  .brand-sub { display: none; }
  .service { grid-template-columns: 44px 1fr; }
  .faq details p { padding-right: 0; }
  .site-footer { padding-bottom: 104px; } /* keep the last lines clear of the floating WhatsApp button */
  h1, h2, h3 { hyphens: auto; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .site-header .btn-label { display: none; }
  .site-header .btn-sm { width: 44px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Keep fades and state changes; drop movement, scaling and the drawing sequence */
  .js .hero-copy > * { animation-name: fade; }
  .js .reveal { transform: none; }
  .js .reveal .credentials li::before,
  .js .reveal .dot { transform: none; transition: none; }
  .js .service.reveal::before { background-size: 24px 3px; transition: none; }
  .js .brain-link { animation: none; stroke-dashoffset: 0; }
  .js .brain-node, .js .brain-node.pulse { animation: fade .6s ease-out .2s both; }
  .btn:hover, .wa-float:hover, .link:hover .arrow, .workshops a:hover { transform: none; }
  .wa-float { transform: none; }
  .faq-icon::before, .faq-icon::after { transition: none; }
  .faq details::details-content { transition: none; }
}

