:root {
  --ink: #382f2c;
  --muted: #6b5c55;
  --paper: #f8f1eb;
  --surface: #fffdf9;
  --accent: #9b6b63;
  --accent-dark: #6f453e;
  --line: #dfcbc0;
  --nav-bg: #5b302d;
  --accent-rose: #be7f83;
  --accent-green: #6f8d7e;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Kalam", "Segoe Print", cursive;
}

@font-face {
  font-family: "Kalam";
  src: url("assets/fonts/kalam-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.65 var(--sans);
}

#isotype-background {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body > .site-footer { position: relative; z-index: 1; }

.isotype-mark {
  position: absolute;
  display: block;
  opacity: 0.045;
  mix-blend-mode: multiply;
}

a, button { color: inherit; }

a { text-underline-offset: 0.2em; }

h1, h2, h3, p { margin-top: 0; }

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }

h2 { max-width: 20ch; font-size: clamp(2rem, 8vw, 4.6rem); }

main { position: relative; z-index: 1; flex: 1; width: min(100% - 2rem, 72rem); margin-inline: auto; }
.site-header, .site-footer { width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem max(1rem, calc((100vw - 72rem) / 2));
  color: #fffaf5;
  background: var(--nav-bg);
  box-shadow: 0 0.75rem 1.75rem rgb(56 47 44 / 22%);
  transition: transform 280ms ease;
}

.navbar-hidden { transform: translateY(-110%); }

.brand { display: inline-flex; gap: 0.65rem; align-items: center; color: inherit; text-decoration: none; }
.brand-monogram { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; object-fit: contain; }
.brand-copy { display: block; }

.brand-name { display: block; font: 1.35rem/1 var(--serif); }

.brand-role, .eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-header .brand-role { color: #edc6b4; }
.eyebrow { color: var(--accent-rose); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.2rem 0.8rem; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav a { position: relative; padding: 0.35rem 0; color: #fffaf5; text-decoration: none; }
.language-switch { position: relative; display: inline-flex; gap: 0.35rem; align-items: center; min-height: 2.25rem; padding: 0.4rem 0.55rem; color: var(--ink); background: var(--paper); border: 1px solid #e9b7a5; border-radius: 999px; font: 800 0.78rem/1 var(--sans); cursor: pointer; }
.language-switch__thumb { position: absolute; left: 0.2rem; width: 2.05rem; height: 1.5rem; background: #dfeae2; border-radius: 999px; transition: transform 180ms ease; }
.language-switch[aria-checked="true"] .language-switch__thumb { transform: translateX(2.45rem); }
.language-switch span[data-language] { position: relative; z-index: 1; width: 1.7rem; text-align: center; }
.language-switch:not([aria-checked="true"]) span[data-language="es"], .language-switch[aria-checked="true"] span[data-language="en"] { color: var(--accent-dark); }
.site-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #e9b7a5; content: ""; transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.site-nav a[aria-current="true"]::after, .site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; padding: 0.4rem; color: inherit; background: transparent; border: 0; }
.menu-toggle span:not(.sr-only) { display: block; width: 1.35rem; height: 2px; margin: 0.25rem; background: currentColor; transition: transform 180ms ease; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

section { position: relative; padding: 4.5rem 0; border-bottom: 1px solid var(--line); }

.hero {
  position: relative;
  min-height: clamp(32rem, 72vh, 44rem);
  display: grid;
  align-content: center;
  gap: 1.35rem;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  background: #efd9cd;
  border: 1px solid var(--accent-dark);
  border-radius: 1.2rem;
  box-shadow: 0 1rem 2.25rem rgb(56 47 44 / 13%);
}

.hero::before { position: absolute; top: -6rem; right: -4rem; width: min(42vw, 25rem); height: min(42vw, 25rem); border-radius: 48% 52% 42% 58% / 58% 42% 58% 42%; background: linear-gradient(135deg, rgb(190 127 131 / 30%), rgb(111 141 126 / 14%)); content: ""; filter: blur(1px); transform: rotate(-12deg); }
.hero::after { position: absolute; right: 17%; bottom: 12%; width: 5rem; height: 5rem; border: 1px solid rgb(155 107 99 / 28%); border-radius: 58% 42% 52% 48% / 43% 58% 42% 57%; content: ""; transform: rotate(20deg); }
.hero > * { position: relative; }

.framed { margin-block: 1.5rem; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.hero h1 { max-width: 19ch; margin-bottom: 0; font-size: clamp(2.45rem, 4.45vw, 4.25rem); letter-spacing: -0.035em; }
.hero-title-intro, .hero-title-emphasis { display: block; font-family: var(--script); color: var(--accent-dark); font-size: 1em; font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; }
.section-title--script { font-family: var(--script); font-weight: 400; letter-spacing: -0.02em; }
.hero-title-emphasis { max-width: 13ch; margin-top: 0.1em; }
.hero .eyebrow, .hero h1, .hero > .button { opacity: 0; animation: hero-arrival 460ms cubic-bezier(.2, .7, .2, 1) forwards; }
.hero h1 { animation-delay: 90ms; }
.hero > .button { animation-delay: 180ms; }

@keyframes hero-arrival {
  from { opacity: 0; transform: translateY(0.9rem); }
  to { opacity: 1; transform: translateY(0); }
}

.button {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  width: max-content;
  padding: 0.85rem 1.1rem;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.button:hover { background: var(--accent-dark); }
.hero > .button:hover, .hero > .button:focus-visible { background: var(--accent); }
.hero > .button:hover, .hero > .button:focus-visible, .contact-actions .button:hover, .contact-actions .button:focus-visible { animation: whatsapp-bounce 420ms ease both; }

.introduction { background: var(--surface); box-shadow: 100vmax 0 var(--surface), -100vmax 0 var(--surface); clip-path: inset(0 -100vmax); }

.presentation { display: grid; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); padding-block: clamp(1.75rem, 3.5vw, 3rem); background: rgb(241 228 218 / 82%); border: 0; }
.presentation::before { position: absolute; top: 12%; left: -2rem; width: 8rem; height: 11rem; background: rgb(190 127 131 / 18%); border-radius: 63% 37% 45% 55% / 50% 43% 57% 50%; content: ""; transform: rotate(26deg); }
.presentation-content { max-width: 31rem; }
.presentation-copy { position: relative; z-index: 1; max-width: 30ch; font-family: var(--script); color: var(--accent-dark); font-size: clamp(1rem, 1.3vw, 1.28rem); line-height: 1.28; }
.presentation-video-card { position: relative; align-self: center; width: min(100%, 23rem); justify-self: center; overflow: hidden; background: var(--ink); border: 0.8rem solid #c98c7f; border-radius: 52% 48% 0 0 / 8% 8% 0 0; box-shadow: 0 0.9rem 1.8rem rgb(56 47 44 / 18%); transform: none; }
.presentation-video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--ink); }
.card-grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
.info-card { position: relative; isolation: isolate; min-height: 15rem; height: 100%; padding: 1.55rem; overflow: hidden; border: 1px solid rgb(56 47 44 / 8%); box-shadow: none; transition: transform 240ms ease, box-shadow 240ms ease; }
.info-card > * { position: relative; z-index: 1; }
.card-illustration { position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 0; width: 5.75rem; height: auto; opacity: 0.88; pointer-events: none; transform: rotate(-5deg); }
.card-illustration--toys { width: 6.25rem; transform: rotate(7deg); }
.card-illustration--fruit { width: 5.5rem; transform: rotate(-9deg); }
.card-illustration--notebook { width: 6rem; transform: rotate(4deg); }
.card-illustration--workshop { right: 0.7rem; bottom: 0.6rem; width: clamp(4.75rem, 9vw, 7.25rem); object-fit: contain; transform: rotate(4deg); }
.info-card::after { position: absolute; right: -1.15rem; bottom: -1.45rem; z-index: 0; width: 5.5rem; height: 5.5rem; border: 0.7rem solid rgb(255 253 249 / 32%); border-radius: 53% 47% 61% 39% / 42% 56% 44% 58%; content: ""; transform: rotate(24deg); }
.info-card:hover { box-shadow: 0 1rem 1.8rem rgb(56 47 44 / 12%); transform: translateY(-0.5rem) rotate(var(--card-turn)) scale(1.025); }
.info-card:nth-child(1) { --card-turn: -1.5deg; background: #f2dbd6; border-radius: 58% 42% 48% 52% / 8% 10% 16% 14%; }.info-card:nth-child(1)::after { top: -1.4rem; right: -1.2rem; bottom: auto; border-radius: 63% 37% 57% 43% / 45% 57% 43% 55%; transform: rotate(-28deg); }
.info-card:nth-child(2) { --card-turn: 1.2deg; background: #dfeae2; border-radius: 16% 49% 14% 52% / 12% 54% 13% 49%; }.info-card:nth-child(2)::after { border-radius: 36% 64% 28% 72% / 64% 35% 65% 36%; transform: rotate(52deg); }
.info-card:nth-child(3) { --card-turn: -0.9deg; background: #e7e0d2; border-radius: 46% 54% 61% 39% / 13% 14% 20% 18%; }.info-card:nth-child(3)::after { bottom: -1.1rem; left: -1.2rem; right: auto; border-radius: 58% 42% 42% 58% / 33% 58% 42% 67%; transform: rotate(-18deg); }
.info-card:nth-child(4) { --card-turn: 1.6deg; background: #ead8cc; border-radius: 12% 12% 58% 42% / 12% 13% 22% 20%; }.info-card:nth-child(4)::after { border-radius: 69% 31% 48% 52% / 50% 67% 33% 50%; transform: rotate(76deg); }
.info-card:nth-child(1) > span { color: var(--accent-rose); }.info-card:nth-child(2) > span { color: var(--accent-green); }.info-card:nth-child(3) > span { color: var(--accent-dark); }.info-card:nth-child(4) > span { color: #a36d48; }
.info-card > span { color: var(--accent-dark); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; }
.info-card h3 { margin: 0 0 0.6rem; font: 1.65rem/1 var(--serif); }
.info-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.introduction > p:last-child { max-width: 48ch; color: var(--muted); }

.section-heading { margin-bottom: 2.5rem; }

#acompanamiento { border-bottom: 0; }
#acompanamiento > .eyebrow { margin-bottom: 0.8rem; }
#acompanamiento .section-title { max-width: 17ch; margin-bottom: 0; font-size: clamp(2.25rem, 6vw, 4.1rem); }

.service-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }

.service-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; }

.service-list span { color: var(--accent-dark); font: 700 0.7rem/2 var(--sans); letter-spacing: 0.08em; }

.faq-section { overflow: hidden; background: #e5eee8; border: 0; }
.faq-section::before { position: absolute; top: 0.6rem; left: -2%; width: 104%; height: 1.4rem; border-top: 2px solid rgb(111 141 126 / 58%); border-radius: 50%; content: ""; transform: rotate(-1deg); }
.faq-section h2 { margin-bottom: 2.5rem; }
.faq-section .section-title { color: #4f6e60; }

.faq-list { position: relative; border-top: 1px solid rgb(111 141 126 / 42%); }

.faq-item h3 { margin: 0; }

.faq-trigger {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 1.15rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(111 141 126 / 42%);
  font: 700 0.9rem/1.4 var(--sans);
  letter-spacing: 0.03em;
  text-align: left;
  cursor: pointer;
}

.faq-trigger { color: #4f6e60; }
.faq-trigger::after { display: grid; place-items: center; width: 2rem; height: 2rem; margin-left: 1rem; color: var(--surface); background: #6f8d7e; border-radius: 50%; content: "+"; font-size: 1.35rem; font-weight: 400; line-height: 1; transition: transform 220ms ease-out, background 220ms ease-out; }

.faq-trigger[aria-expanded="true"]::after { background: var(--accent-dark); content: "+"; transform: rotate(45deg); }

.faq-item [role="region"] { display: grid; max-height: 0; padding: 0; overflow: hidden; color: var(--muted); opacity: 0; transition: max-height 260ms ease, opacity 220ms ease, padding 220ms ease; }
.faq-item [role="region"][hidden] { display: grid; visibility: hidden; }
.faq-item [role="region"] > p { margin: 0; }
.faq-item [role="region"]:not([hidden]) { max-height: 12rem; padding: 0.25rem 0 1.25rem; opacity: 1; visibility: visible; }

.final-cta { padding-block: clamp(4.5rem, 9vw, 7rem); overflow: hidden; background: #efd9cd; border: 0; border-radius: 48% 52% 0 0 / 3% 4% 0 0; }
.final-cta::before { position: absolute; right: -4rem; bottom: -5rem; width: 18rem; height: 18rem; background: rgb(190 127 131 / 30%); border-radius: 42% 58% 52% 48% / 58% 42% 58% 42%; content: ""; }
.final-cta > * { position: relative; z-index: 1; }
.cta-illustration { position: absolute; right: clamp(1rem, 6vw, 5rem); bottom: 1.25rem; z-index: 1; width: clamp(5.5rem, 12vw, 9rem); height: auto; opacity: 0.9; pointer-events: none; transform: rotate(8deg); }

.final-cta h2 { margin-bottom: 1rem; }

.pending-contact { color: var(--accent-dark); font-weight: 750; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.presentation-eyebrow { font-size: clamp(0.92rem, 1.2vw, 1.05rem); }
.text-link { color: var(--accent-dark); font-weight: 750; }
.contact-actions .button { background: #6f8d7e; box-shadow: 0 0.45rem 0 #557264; }
.contact-actions .button svg { width: 1rem; height: 1rem; fill: currentColor; }
.contact-actions a[href^="mailto:"] svg { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.contact-actions .button:hover, .contact-actions .button:focus-visible { background: #557264; animation: whatsapp-bounce 420ms ease both; }

@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-0.38rem) rotate(-2deg); }
  70% { transform: translateY(-0.12rem) rotate(1deg); }
}

.js.motion-ready .reveal-from-left, .js.motion-ready .reveal-from-right, .js.motion-ready .reveal-card, .js.motion-ready .reveal-up { opacity: 0; transition: opacity 460ms ease, transform 460ms cubic-bezier(.2, .7, .2, 1); }
.js.motion-ready .reveal-from-left { transform: translateX(-1.8rem); }
.js.motion-ready .reveal-from-right { transform: translateX(1.8rem); }
.js.motion-ready .reveal-up, .js.motion-ready .reveal-card { transform: translateY(1.5rem); }
.reveal-card:nth-child(2) { transition-delay: 90ms; }
.reveal-card:nth-child(3) { transition-delay: 180ms; }
.reveal-card:nth-child(4) { transition-delay: 270ms; }
.js.motion-ready .reveal-visible { opacity: 1; transform: translate(0); }

.site-footer { position: relative; z-index: 1; display: flex; width: 100%; gap: 1.25rem; align-items: center; justify-content: space-between; padding: 2.5rem max(1rem, calc((100vw - 72rem) / 2)); margin: 0; color: #fffaf5; background: var(--nav-bg); font-size: 0.78rem; }

.site-footer p { margin: 0; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

.site-footer a { display: inline-flex; gap: 0.55rem; align-items: center; padding: 0.55rem 0.7rem; color: #fffaf5; border: 1px solid rgb(255 250 245 / 35%); border-radius: 999px; text-decoration: none; }

.site-footer svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

.skip-link { position: fixed; top: 0.75rem; left: -100vw; z-index: 2; padding: 0.65rem 0.8rem; background: var(--surface); border: 1px solid var(--accent-dark); }

.skip-link:focus { left: 0.75rem; }

:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 4px; }

@media (min-width: 48rem) {
  main { width: min(100% - 5rem, 72rem); }
  .site-header, .site-footer { width: 100%; }
  .site-header { padding: 1.1rem max(2.5rem, calc((100vw - 72rem) / 2)); }
  section { padding: 7rem 0; }
  .presentation { grid-template-columns: 0.8fr 1.2fr; }
  .presentation-video-card { grid-column: 2; align-self: center; }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .service-list li { grid-template-columns: 4rem 1fr; font-size: clamp(1.45rem, 3vw, 2.1rem); }
}

@media (max-width: 47.99rem) {
  .site-header { flex-wrap: wrap; }
  .brand-monogram { width: 2.25rem; height: 2.25rem; }
  .hero::before { top: -3rem; right: -2rem; width: 13rem; height: 13rem; }
  .presentation { grid-template-columns: 1fr; }
  .presentation-content { margin-inline: auto; text-align: center; }
  .presentation-copy { margin-inline: auto; text-align: center; }
  .presentation-video-card { max-width: none; justify-self: center; border-width: 0.55rem; }
  .site-footer { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; margin: 0; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; flex-basis: 100%; justify-content: flex-start; padding-top: 0.5rem; }
  .site-nav[data-open="true"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav .language-switch { grid-column: 1 / -1; justify-self: start; margin-top: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js.motion-ready .reveal-from-left, .js.motion-ready .reveal-from-right, .js.motion-ready .reveal-card, .js.motion-ready .reveal-up, .js.motion-ready .reveal-visible { opacity: 1; transform: none; transition: none; animation: none; }
  .reveal-from-left, .reveal-from-right, .reveal-card, .reveal-up { opacity: 1; transform: none; }
  .info-card:hover, .contact-actions .button:hover { transform: none; }
  .hero .eyebrow, .hero h1, .hero > .button { opacity: 1; transform: none; }
}
