/* ==========================================================================
   Musa Digital Media — hoja de estilos
   Paleta "Musa humana y creativa": beige/arena (fondo), chocolate (texto),
   oliva/salvia (estrategia), terracota (acción).
   Tipografías autoalojadas: Plus Jakarta Sans (titulares) y Manrope (texto).
   ========================================================================== */

/* ---------- Fuentes (SIL Open Font License, ver assets/fonts) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Variables ---------- */
:root {
  --cream: #f7f2ec;        /* fondo de página (arena suave) */
  --sand: #ede5dc;         /* secciones alternas */
  --beige: #dcd3ca;        /* beige del logotipo */
  --beige-2: #e5ddd3;
  --white: #fffdfb;

  --choc: #3a2a21;         /* texto principal: chocolate profundo */
  --choc-2: #5c4a3e;       /* texto secundario */
  --taupe: #695f53;        /* color del logotipo */
  --line: rgba(58, 42, 33, 0.1);

  --olive: #5f6e4d;        /* verde oliva / salvia */
  --olive-deep: #4b573d;
  --olive-soft: #dee4d4;

  --terra: #b5542f;        /* terracota: acentos */
  --terra-hover: #9e4727;
  --btn: #a34a28;          /* botones: un tono más oscuro (petición de la clienta) */
  --btn-hover: #8a3d20;
  --terra-soft: #f4e1d6;
  --terra-light: #d39c82;

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(58, 42, 33, 0.05), 0 10px 30px -16px rgba(58, 42, 33, 0.22);
  --shadow-md: 0 2px 4px rgba(58, 42, 33, 0.05), 0 24px 48px -24px rgba(58, 42, 33, 0.32);

  --header-h: 76px;
  --max: 1160px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--choc);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-h);
  overflow-x: hidden;
}
body.modal-open, body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--choc);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--terra-hover); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }

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

.container {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--choc);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Tipografía auxiliar ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
}
.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--choc-2);
  max-width: 62ch;
}
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.plus { color: var(--terra); font-weight: 600; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary {
  background: var(--btn);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(163, 74, 40, 0.65);
}
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(163, 74, 40, 0.7); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  color: var(--choc);
  border-color: rgba(58, 42, 33, 0.28);
}
.btn-secondary:hover { background: var(--white); border-color: var(--choc); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--choc); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { padding: 0.75rem 1.2rem; font-size: 0.92rem; }
.btn-lg { padding: 1.15rem 2rem; font-size: 1.08rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--terra-hover);
  text-decoration: none;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform 0.2s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cabecera fija ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 242, 236, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(58, 42, 33, 0.35);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--taupe);
  margin-right: auto;
}
.brand img { width: auto; height: 22px; }
.brand-sub {
  font-family: var(--font-head);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: 0.28em; /* compensa el tracking para centrar */
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--choc);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-pill);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav a:hover { background: var(--beige-2); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid rgba(58, 42, 33, 0.2);
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--choc);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.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) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); scroll-margin-top: calc(var(--header-h) + 8px); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 820px; max-height: 820px;
  right: -22vw; top: -28vw;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(220, 211, 202, 0.9), rgba(220, 211, 202, 0) 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Composición visual del hero (marca + pilares) */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  width: 100%;
  margin-inline: auto;
}
.hv-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.hv-blob--olive { width: 46%; height: 46%; left: -8%; top: -6%; background: var(--olive-soft); }
.hv-blob--terra { width: 38%; height: 38%; right: -6%; bottom: -4%; background: var(--terra-soft); }
.hv-card {
  position: absolute;
  inset: 7%;
  z-index: 1;
  border-radius: clamp(28px, 6vw, 44px);
  background: linear-gradient(160deg, #e9e2d9 0%, var(--beige) 100%);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.45), transparent 50%);
  pointer-events: none;
}
.hv-logo { width: 58%; height: auto; position: relative; }
.hv-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  color: var(--choc);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  padding: 0.65rem 1rem 0.65rem 0.7rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.hv-chip svg { width: 1.6rem; height: 1.6rem; padding: 0.3rem; border-radius: 50%; background: var(--olive-soft); color: var(--olive-deep); }
.hv-chip--1 { left: -4%; top: 10%; animation-delay: -1s; }
.hv-chip--2 { right: -7%; top: 42%; animation-delay: -3s; }
.hv-chip--2 svg { background: var(--beige-2); color: var(--taupe); }
.hv-chip--3 { left: 2%; bottom: 12%; animation-delay: -5s; }
.hv-chip--3 svg { background: var(--terra-soft); color: var(--terra-hover); }
.hv-badge {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: -3%;
  background: var(--btn);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.78rem, 1.3vw, 0.9rem);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  box-shadow: 0 14px 30px -12px rgba(181, 84, 47, 0.7);
  animation: float 7s ease-in-out infinite;
  animation-delay: -2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Quiénes somos ---------- */
.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split .section-head { margin-bottom: 0; }
.prose p { color: var(--choc-2); }
.prose p.highlight {
  color: var(--choc);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--terra);
}
.prose .link-arrow { margin-top: 1.25rem; }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--white);
  border: 1px solid rgba(58, 42, 33, 0.06);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card p { color: var(--choc-2); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: var(--olive-soft);
  color: var(--olive-deep);
  margin-bottom: 1.4rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon--terra { background: var(--terra-soft); color: var(--terra-hover); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* Pasos */
.step { position: relative; }
.step-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--terra-light);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

/* Servicios (abren un detalle) */
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-height: 100%;
  background: var(--white);
  border: 1px solid rgba(58, 42, 33, 0.06);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service:hover, .service:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(181, 84, 47, 0.35); }
.service-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 1.5rem; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
}
.service-icon svg { width: 24px; height: 24px; }
.service-icon--strategy { background: var(--olive-soft); color: var(--olive-deep); }
.service-icon--process { background: var(--beige-2); color: var(--taupe); }
.service-icon--tech { background: #e8e1da; color: var(--choc); }
.service-icon--growth { background: var(--terra-soft); color: var(--terra-hover); }
.service-index { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--taupe); }
.service h3 { margin-bottom: 0.5rem; }
.service h3 small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.25rem;
}
.service p { color: var(--choc-2); font-size: 0.95rem; margin-bottom: 1.5rem; }
.service-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--terra-hover);
}
.service-cta svg { width: 1.1em; height: 1.1em; transition: transform 0.2s ease; }
.service:hover .service-cta svg { transform: translateX(4px); }

/* ---------- Diálogos (detalle de cada área) ---------- */
dialog.modal {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(720px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  background: transparent;
  overflow: visible;
}
dialog.modal::backdrop {
  background: rgba(58, 42, 33, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal-inner {
  background: var(--cream);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 4vw, 2.75rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  box-shadow: var(--shadow-md);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--beige-2);
  color: var(--choc);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { background: var(--beige); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding-right: 3rem; }
.modal-head h2 { font-size: 1.6rem; margin: 0; }
.modal-head h2 small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.2rem;
}
.modal-intro h3 { font-size: 1.15rem; color: var(--choc); margin-bottom: 0.5rem; }
.modal-intro p { color: var(--choc-2); }
.modal-list { margin: 1.5rem 0 0; display: grid; gap: 0.85rem; }
.modal-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.8rem;
  align-items: start;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 0.95rem 1.1rem;
  color: var(--choc-2);
  font-size: 0.98rem;
}
.modal-list li strong { color: var(--choc); }
.modal-list svg {
  width: 28px; height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--olive-soft);
  color: var(--olive-deep);
}
.modal-foot { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Cita + trayectoria ---------- */
.quote-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.quote {
  margin: 0;
  position: relative;
  padding-left: 2.5rem;
}
.quote::before {
  content: "“";
  position: absolute;
  left: -0.1rem; top: -1.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--terra);
  opacity: 0.85;
}
.quote p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--choc);
}
.quote footer {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--choc-2);
}
.quote footer strong { display: block; color: var(--choc); font-family: var(--font-head); }
.brands {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.brands p {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--taupe);
  margin-bottom: 1.25rem;
}
.brands ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.5rem; }
.brands li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #b9b0a6; /* logos en gris claro: marcas oficiales en SVG o, si falta el archivo, el nombre en texto */
  text-transform: uppercase;
}
.brands li svg { height: 1.45em; width: auto; display: block; fill: currentColor; }
.brands--row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.brands--row p { margin: 0; }

/* ---------- Banner de cierre (CTA) ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--choc);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.cta::before, .cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta::before { width: 320px; height: 320px; left: -120px; top: -140px; background: rgba(95, 110, 77, 0.35); }
.cta::after { width: 380px; height: 380px; right: -140px; bottom: -200px; background: rgba(181, 84, 47, 0.35); }
.cta > * { position: relative; }
.cta .eyebrow { color: var(--terra-light); }
.cta h2 { color: var(--cream); }
.cta p { color: #e8ded3; max-width: 56ch; margin-inline: auto; margin-bottom: 2rem; font-size: 1.1rem; }

/* ---------- Pie ---------- */
.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.site-footer .footer-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}
.social a {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--choc);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.social a:hover { transform: translateY(-3px); background: var(--terra); color: #fff; }
.social svg { width: 20px; height: 20px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: var(--taupe); }
.footer-brand img { height: 48px; width: auto; }
.footer-meta { font-size: 0.85rem; color: var(--taupe); }
.footer-meta a { color: inherit; }

/* ---------- Página "Historia" ---------- */
.story-hero .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
.story-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.story-hero .role {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 1.25rem;
}
.portrait {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  background: var(--beige-2);
  max-width: 440px;
  margin-inline: auto;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.media-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.media-row + .media-row { margin-top: clamp(3rem, 6vw, 5rem); }
.media-row figure {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--beige-2);
}
.media-row figure img { width: 100%; height: 100%; object-fit: cover; }
.media-row h3 { font-size: 1.5rem; }
.media-row p { color: var(--choc-2); }
.story-note {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.story-note .card-icon { margin: 0; }
.story-note h3 { font-size: 1.35rem; }
.story-note p { color: var(--choc-2); }
.story-closing {
  margin-top: clamp(3rem, 6vw, 5rem);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  color: var(--choc);
  padding-left: 1.5rem;
  border-left: 4px solid var(--terra);
  max-width: 60ch;
}

/* ---------- Animaciones de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hv-chip, .hv-badge { animation: none; }
  .btn, .card, .service { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .quote-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav, .nav-toggle { display: none; }
  .header-inner { gap: 0.75rem; }
  .hero-inner, .split, .media-row, .story-hero .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-top: 1rem; }
  .hv-chip--1 { left: 0; }
  .hv-chip--2 { right: -2%; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .media-row figure { order: -1; max-width: 520px; }
  .story-hero .portrait { order: -1; max-width: 360px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hv-chip { font-size: 0.78rem; padding: 0.5rem 0.8rem 0.5rem 0.55rem; }
  .brands li { font-size: 1rem; }
  .modal-foot .btn { width: 100%; }
  .story-note { grid-template-columns: 1fr; }
}

/* ---------- Pie: enlaces ---------- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}
.footer-links a { color: var(--choc-2); text-decoration: none; }
.footer-links a:hover { color: var(--terra-hover); text-decoration: underline; }
.modal-more { margin-left: auto; font-size: 0.95rem; }

/* ---------- Botón flotante de WhatsApp (solo móvil) ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem 0.85rem 0.95rem;
  border-radius: var(--r-pill);
  background: var(--btn);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(181, 84, 47, 0.75);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.wa-float svg { width: 22px; height: 22px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 900px) {
  .wa-float { display: inline-flex; }
  body.nav-open .wa-float, body.modal-open .wa-float { display: none; }
}

/* ---------- Páginas de área ---------- */
.hero--area .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
.hero--area h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.area-visual {
  position: relative;
  border-radius: clamp(28px, 6vw, 44px);
  background: linear-gradient(160deg, #e9e2d9 0%, var(--beige) 100%);
  box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 440px;
  margin-inline: auto;
  width: 100%;
}
.area-visual .service-icon { width: 72px; height: 72px; border-radius: 22px; }
.area-visual .service-icon svg { width: 36px; height: 36px; }
.area-visual .area-num {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.5rem;
  color: rgba(58, 42, 33, 0.14);
  letter-spacing: -0.03em;
}
.area-visual ul { display: grid; gap: 0.5rem; }
.area-visual li {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 0.7rem 0.95rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--choc);
  display: flex; align-items: center; gap: 0.6rem;
}
.area-visual li svg { width: 18px; height: 18px; color: var(--olive-deep); flex: none; }
.includes .card h3 { font-size: 1.15rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.includes .card h3 svg {
  width: 26px; height: 26px; padding: 5px; flex: none;
  border-radius: 50%; background: var(--olive-soft); color: var(--olive-deep);
}
.area-links a.card { display: block; text-decoration: none; color: inherit; }
.area-links .service-icon { margin-bottom: 1rem; }
.area-links h3 small { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.25rem; }
.area-links p { font-size: 0.95rem; }

/* ---------- Páginas de texto (legal) y 404 ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal p, .legal li { color: var(--choc-2); }
.legal ul { list-style: disc; padding-left: 1.4rem; display: grid; gap: 0.4rem; }
.legal .updated { font-size: 0.9rem; color: var(--taupe); }
.notfound { text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.notfound .big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--terra-light);
}
.notfound .hero-actions { justify-content: center; margin-top: 2rem; }

/* ---------- Página puente a WhatsApp ---------- */
.bridge { min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 2rem 0; }
.bridge img { height: 64px; width: auto; margin: 0 auto 1.5rem; }
.bridge p { color: var(--choc-2); margin-bottom: 1.5rem; }
.spinner {
  width: 38px; height: 38px; margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 3px solid var(--beige);
  border-top-color: var(--terra);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
@media (max-width: 900px) {
  .hero--area .hero-inner { grid-template-columns: 1fr; }
  .area-visual { max-width: 420px; }
}

/* ---------- Ajustes pedidos por la clienta (23/10) ---------- */
@media (min-width: 901px) { .only-mobile { display: none !important; } }
@media (max-width: 900px) { .only-desktop { display: none !important; } }

/* Cita: letra más contenida y comillas discretas */
.quote p { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.45; }
.quote::before { font-size: 4.5rem; top: -1.2rem; left: 0; }
.quote { padding-left: 2.2rem; }

/* Cuadros de la historia: iguales a la tarjeta de la portada */
.brand-card {
  position: relative;
  border-radius: clamp(28px, 6vw, 44px);
  background: linear-gradient(160deg, #e9e2d9 0%, var(--beige) 100%);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.45), transparent 50%);
  pointer-events: none;
}
.brand-card .brand-card__logo { width: 56%; height: auto; position: relative; }
.brand-card--wide .brand-card__logo { width: 44%; }
.chip {
  position: absolute;
  z-index: 2;
  background: var(--white);
  color: var(--choc);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.72rem, 1.3vw, 0.85rem);
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.chip--tl { top: 7%; left: 7%; }
.chip--tr { top: 7%; right: 7%; }
.chip--bl { bottom: 7%; left: 7%; }
.chip--br { bottom: 7%; right: 7%; }

/* El Sello Musa: tarjetas compactas (icono + texto) */
.card--compact {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.35rem 1rem;
  align-items: start;
  align-content: start;
  padding: 1.25rem 1.3rem;
}
.card--compact .card-icon { width: 48px; height: 48px; border-radius: 14px; margin: 0; grid-row: 1 / span 2; }
.card--compact h3, .card--compact p { grid-column: 2; }
.card--compact .card-icon svg { width: 22px; height: 22px; }
.card--compact h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.card--compact p { font-size: 0.95rem; }

/* Móvil: titular en una línea y páginas más cortas */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .hero h1 {
    white-space: nowrap;
    font-size: clamp(0.95rem, 5.1vw, 1.75rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.9rem;
  }
  .hero { padding-block: 1.75rem 2.5rem; }
  .hero .lead { margin-bottom: 1.4rem; }
  .hero-visual { max-width: 340px; }
  .story-hero .portrait { aspect-ratio: 4 / 3; max-width: 360px; }
  .section { padding-block: 2.75rem; }
  .section-head { margin-bottom: 1.4rem; }
  .lead { font-size: 1rem; }
  h2 { font-size: 1.75rem; }
  .card { padding: 1.25rem 1.2rem; border-radius: 22px; }
  .card-icon { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 0.8rem; }
  .card-icon svg { width: 22px; height: 22px; }
  .grid-2, .grid-3, .grid-4 { gap: 0.85rem; }
  .step-num { font-size: 2rem; margin-bottom: 0.6rem; }
  .service { padding: 1.15rem 1.2rem 1rem; border-radius: 20px; }
  .service-top { margin-bottom: 0.85rem; }
  .service p { margin-bottom: 0.85rem; }
  .quote { padding-left: 0; }
  .quote::before { position: static; display: block; font-size: 3rem; line-height: 0.6; margin-bottom: 0.4rem; }
  .quote p { font-size: 1.02rem; line-height: 1.5; }
  .quote-wrap { gap: 1.5rem; }
  .brands { padding: 1.3rem 1.2rem; }
  .brands p { margin-bottom: 0.8rem; }
  .cta { padding: 2.2rem 1.4rem; border-radius: 24px; }
  .cta p { margin-bottom: 1.4rem; font-size: 1rem; }
  .media-row { gap: 1.25rem; }
  .media-row + .media-row { margin-top: 2rem; }
  .media-row figure { aspect-ratio: 16 / 10; }
  .story-note, .story-closing { margin-top: 2rem; }
  .site-footer { padding: 2.25rem 0 1.5rem; }
  .social { margin-bottom: 1.5rem; }
}
@media (max-width: 340px) {
  .hero h1 { white-space: normal; font-size: 1.6rem; }
}
