/* ============================================================
   MS · Cosmiatría Funcional — Sistema de diseño
   Editorial cálido / skincare refinado
   ============================================================ */

/* — Fuentes de marca (self-hosted) — */
@font-face {
  font-family: 'Oswald';
  src: url('fonts/oswald-var.ttf') format('truetype');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/opensans-var.ttf') format('truetype');
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/opensans-italic-var.ttf') format('truetype');
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Amoresa';
  src: url('fonts/amoresa-regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* — Paleta oficial MS (del manual de marca) — */
  --paper:       #FEEECF;   /* crema claro — fondo */
  --cream:       #FAE7BE;   /* crema — secciones */
  --cream-deep:  #F3DFA2;   /* amarillo crema */
  --blush:       #F0CBA8;
  --ink:         #36352A;   /* tinta: oliva casi negro */
  --ink-soft:    #5C5B49;   /* oscurecido para contraste AA (4.5:1) */
  --ink-faint:   #6C6B52;
  --clay:        #D96F62;   /* coral ladrillo — el rostro del logo (acentos) */
  --clay-deep:   #B14A3A;   /* coral profundo — texto/botones, pasa AA */
  --olive:       #585E46;   /* oliva — el wordmark del logo */
  --olive-soft:  #7E9B8A;   /* salvia */
  --sage:        #7E9B8A;   /* verde salvia */
  --mustard:     #E6B85C;   /* mostaza */
  --line:        #ECDDBC;
  --line-soft:   #F5E9CC;

  /* — Tipografía — */
  --display: 'Oswald', system-ui, sans-serif;
  --body: 'Open Sans', system-ui, sans-serif;
  --script: 'Amoresa', cursive;   /* script oficial de la marca */

  /* — Forma — */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* — Sombra — */
  --shadow-sm: 0 2px 8px rgba(42,33,28,.06);
  --shadow-md: 0 18px 40px -22px rgba(42,33,28,.35);
  --shadow-lg: 0 40px 80px -30px rgba(42,33,28,.45);

  /* — Layout — */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Tipografía
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.1; letter-spacing: 0; }

.eyebrow {
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay-deep);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--clay);
  display: inline-block;
}

.serif-italic { font-style: italic; font-family: var(--display); }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; z-index: 1; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

/* ============================================================
   Botones
   ============================================================ */
.btn {
  --b-bg: var(--ink);
  --b-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .92em 1.6em;
  border-radius: var(--r-pill);
  background: var(--b-bg);
  color: var(--b-fg);
  border: 1px solid var(--b-bg);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--clay  { --b-bg: var(--clay-deep); --b-fg: #fff; border-color: var(--clay-deep); }
.btn--olive { --b-bg: var(--olive); --b-fg: #fff; border-color: var(--olive); }
.btn--ghost {
  --b-bg: transparent; --b-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--cream); border-color: var(--clay); }

.btn--lg { font-size: 1.02rem; padding: 1.08em 1.9em; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { height: 46px; width: auto; flex: none; object-fit: contain; }
.brand__txt { line-height: 1; }
.brand__name { font-family: var(--display); font-size: 1.18rem; letter-spacing: .02em; }
.brand__sub {
  font-size: .58rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; margin-top: .25em;
}
.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color .2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--clay); transition: width .25s;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 1rem; }

.nav__burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--r-pill); background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav__burger span { width: 18px; height: 1.6px; background: var(--ink); transition: background .3s, transform .3s; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(60px, 9vw, 120px); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.3rem);
  letter-spacing: -.025em;
}
.hero h1 em { font-family: var(--script); font-weight: 400; font-style: normal; color: var(--clay); letter-spacing: .01em; line-height: 1; padding-right: .08em; }
.hero__lead {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 30ch;
}
.hero__actions { margin-top: 2.4rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__meta {
  margin-top: 3rem; display: flex; gap: 2.4rem; flex-wrap: wrap;
  padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.hero__meta div { line-height: 1.2; }
.hero__meta b { font-family: var(--display); font-size: 1.5rem; display: block; }
.hero__meta span { font-size: .8rem; color: var(--ink-soft); letter-spacing: .03em; }

/* media del hero */
.hero__media { position: relative; }
.hero__photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .8rem 1.3rem;
  display: flex; align-items: center; gap: .7rem;
  box-shadow: var(--shadow-md);
  font-size: .82rem; font-weight: 600;
}
.hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #4caf7d; box-shadow: 0 0 0 4px rgba(76,175,125,.18); }
.hero__ring {
  position: absolute; top: -34px; right: -30px;
  width: 120px; height: 120px; opacity: .9;
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Placeholder de foto (rotulado, on-brand)
   ============================================================ */
.ph {
  position: relative;
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 80% at 70% 10%, var(--blush), transparent 60%),
    linear-gradient(150deg, var(--cream-deep), var(--clay) 220%);
  display: flex; align-items: flex-end; justify-content: center;
}
.ph::after {
  content: attr(data-label);
  position: absolute; top: 14px; left: 14px;
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: rgba(42,33,28,.5);
  background: rgba(251,246,239,.7); border-radius: var(--r-pill);
  padding: .35em .8em; backdrop-filter: blur(4px);
}
.ph svg { width: 56%; opacity: .55; margin-bottom: 8%; }

/* Foto real ocupando el contenedor */
.photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   Marquee / strip de confianza
   ============================================================ */
.strip {
  background: var(--ink); color: var(--cream);
  overflow: hidden; white-space: nowrap;
}
.strip__track { display: inline-flex; gap: 3rem; padding-block: .95rem; animation: marquee 28s linear infinite; }
.strip__track span { font-family: var(--display); font-style: italic; font-size: 1.05rem; opacity: .85; display: inline-flex; align-items: center; gap: 3rem; }
.strip__track span::after { content: "✦"; color: var(--clay); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Sección título
   ============================================================ */
.head { max-width: 640px; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.head h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin-top: 1.1rem; }
.head p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.08rem; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }

/* ============================================================
   Servicios
   ============================================================ */
.services { background: var(--cream); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 26px); }
.svc {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem 2rem 1.8rem;
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--clay), var(--blush));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc__icon { width: 50px; height: 50px; margin-bottom: 1.3rem; color: var(--clay); }
.svc__num { position: absolute; top: 1.6rem; right: 1.8rem; font-family: var(--display); font-size: 1rem; color: var(--ink-faint); }
.svc h3 { font-size: 1.45rem; }
.svc p { margin-top: .7rem; color: var(--ink-soft); font-size: .96rem; flex: 1; }
.svc__foot { margin-top: 1.6rem; display: flex; align-items: center; justify-content: space-between; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.svc__price { font-family: var(--display); font-size: 1.25rem; }
.svc__price small { font-size: .72rem; font-family: var(--body); color: var(--ink-soft); letter-spacing: .04em; }
.svc__link { font-size: .85rem; font-weight: 600; color: var(--clay-deep); display: inline-flex; gap: .4em; align-items: center; }
.svc__link .arrow { transition: transform .25s; }
.svc:hover .svc__link .arrow { transform: translateX(4px); }

/* ============================================================
   Approach / por qué funcional
   ============================================================ */
.approach__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.approach__media { aspect-ratio: 5/6; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.steps { list-style: none; margin-top: 2rem; }
.steps li { display: flex; gap: 1.3rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { font-family: var(--display); font-size: 1.3rem; color: var(--clay); flex: none; width: 2.4rem; }
.steps h3 { font-family: var(--body); font-weight: 600; font-size: 1.05rem; margin-bottom: .25rem; }
.steps p { color: var(--ink-soft); font-size: .94rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
  background: linear-gradient(135deg, var(--olive), var(--olive-soft));
  color: #fff; border-radius: var(--r-lg);
  padding: clamp(2.6rem, 6vw, 4.6rem);
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-band__inner::after {
  content: ""; position: absolute; right: -60px; top: -60px; pointer-events: none;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.cta-band p { color: rgba(255,255,255,.85); margin-top: .8rem; max-width: 44ch; }
.cta-band .btn--ghost { --b-fg: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.14); border-color:#fff; }
.cta-band .btn--paper { --b-bg: #fff; --b-fg: var(--olive); border-color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--cream); padding-block: clamp(56px, 8vw, 88px) 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.4rem; }
.foot-logo { width: 196px; max-width: 64%; height: auto; display: block; }
.site-footer .brand__name { color: var(--paper); }
.site-footer .brand__sub { color: var(--clay); }
.foot-about { color: rgba(245,236,223,.7); margin-top: 1.3rem; max-width: 32ch; font-size: .94rem; }
.foot-col h3 { font-family: var(--body); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); margin-bottom: 1.1rem; }
.foot-col a, .foot-col p { display: block; color: rgba(245,236,223,.78); font-size: .94rem; padding: .28rem 0; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 3.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(245,236,223,.14); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: rgba(245,236,223,.55); }

/* ============================================================
   Animaciones de entrada
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip__track, .hero__ring { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; margin-inline: auto; order: -1; }
  .approach__grid { grid-template-columns: 1fr; }
  .approach__media { max-width: 460px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__burger { display: inline-flex; }
  .svc-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__meta { gap: 1.6rem; }

  /* menú móvil desplegable */
  .nav__links.open {
    display: flex; position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.6rem;
  }
  .nav__links.open a { padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
}

/* ---- a11y polish (web-interface-guidelines) ---- */
.skip-link { position:absolute; left:-9999px; top:0; z-index:100; background:var(--ink); color:var(--paper); padding:.7em 1.1em; border-bottom-right-radius:var(--r-sm); font-weight:600; }
.skip-link:focus { left:0; }
a, button, summary, .nav__burger { touch-action: manipulation; }
:where(a, button, summary, [tabindex]):focus-visible { outline:2px solid var(--clay-deep); outline-offset:3px; border-radius:3px; }

.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; }
.svc__link { padding-block:.35rem; }

/* home showcase (featured + list) */
.svc-showcase { display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(18px,2.5vw,32px); align-items:stretch; }
.svc-feature { display:flex; flex-direction:column; background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; }
.svc-feature__media { aspect-ratio:16/10; overflow:hidden; }
.svc-feature__body { padding:clamp(1.4rem,3vw,2.1rem); display:flex; flex-direction:column; align-items:flex-start; gap:.55rem; }
.svc-feature__body h3 { font-size:clamp(1.5rem,2.5vw,2rem); }
.svc-feature__body p { color:var(--ink-soft); max-width:42ch; }
.svc-feature__body .btn { margin-top:.7rem; }
.svc-list { list-style:none; display:flex; flex-direction:column; gap:clamp(12px,1.5vw,18px); }
.svc-list li { flex:1; background:var(--paper); border:1px solid var(--line); border-radius:var(--r-md); padding:1.2rem 1.4rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; transition:border-color .3s, box-shadow .3s; }
.svc-list li:hover { border-color:var(--blush); box-shadow:var(--shadow-md); }
.svc-list h3 { font-size:1.15rem; }
.svc-list p { color:var(--ink-soft); font-size:.88rem; margin-top:.15rem; }
.svc-list__link { color:var(--clay-deep); font-weight:600; font-size:.85rem; white-space:nowrap; display:inline-flex; gap:.35em; align-items:center; padding-block:.35rem; }
.svc-list__link .arrow { transition:transform .2s; }
.svc-list li:hover .svc-list__link .arrow { transform:translateX(3px); }
.info-list .ico svg { width:20px; height:20px; display:block; }
@media (max-width:820px){ .svc-showcase{ grid-template-columns:1fr; } }