/* Make Up by Fletcher · base: reset, tipografía, layout, cabecera, menú, pie, botón flotante */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--porcelana); color: var(--tinta);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, picture, video { display: block; max-width: 100%; }
picture { width: 100%; height: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--tinta); }
a:hover { color: var(--terracota); }
p, h1, h2, h3, h4, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
:focus-visible { outline: 2px solid var(--terracota); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--tinta); color: var(--porcelana); padding: 12px 20px; border-radius: var(--r-pill); text-decoration: none; }
.skip:focus { top: 12px; color: var(--porcelana); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.page { position: relative; overflow-x: clip; }

/* Tipografía */
.d { font-family: var(--font-display); font-weight: 200; line-height: 1.02; letter-spacing: -0.035em; margin: 0; }
.lbl { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin: 0; }
.d-hero { font-size: clamp(56px, 7.4vw, 112px); }
.d-xl { font-size: clamp(48px, 6.4vw, 104px); }
.d-l { font-size: clamp(44px, 5vw, 76px); }
.d-l2 { font-size: clamp(44px, 4.8vw, 72px); }
.d-m { font-size: clamp(40px, 4.4vw, 66px); }
.d-card { font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; }
.lead { font-size: 18px; line-height: 1.65; color: var(--cacao); }
.body-l { font-size: 17px; line-height: 1.7; color: var(--cacao); }
.c-terracota { color: var(--terracota); }
.c-topo { color: var(--topo); }
.c-cacao { color: var(--cacao); }
.c-salmon { color: var(--salmon); }
.c-tinta { color: var(--tinta); }
.c-card { color: var(--texto-tarjeta); }
.fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; } .fs-15 { font-size: 15px; } .fs-16 { font-size: 16px; } .fs-20 { font-size: 20px; }
.nowrap { white-space: nowrap; }
.mw-460 { max-width: 460px; } .mw-470 { max-width: 470px; } .mw-480 { max-width: 480px; } .mw-520 { max-width: 520px; } .mw-620 { max-width: 620px; }
.pending { background: rgba(249, 143, 125, .16); color: var(--tinta); border-radius: 4px; padding: 0 4px; }
.bg-tinta .pending, .on-dark .pending { color: var(--porcelana); background: rgba(249, 143, 125, .22); }

/* Layout */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.sec-b { padding-bottom: var(--section-y); }
.sec-t { padding-top: var(--section-y); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.wrap-row { display: flex; flex-wrap: wrap; gap: 12px; }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-14 { gap: 14px; } .gap-18 { gap: 18px; } .gap-20 { gap: 20px; } .gap-22 { gap: 22px; }
.gap-24 { gap: 24px; } .gap-28 { gap: 28px; } .gap-32 { gap: 32px; } .gap-36 { gap: 36px; } .gap-40 { gap: 40px; }
.self-start { align-self: flex-start; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.sec-head > div { display: flex; flex-direction: column; gap: 18px; }
.bg-arena { background: var(--arena); }
.bg-tinta { background: var(--tinta); color: var(--porcelana); }
.hr { height: 1px; background: var(--linea); border: 0; margin: 0; }

/* Botones (C01) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border-radius: var(--r-pill);
  background: var(--tinta); color: var(--porcelana); text-decoration: none;
  font-size: 14px; letter-spacing: .04em; border: 0; font-family: inherit; cursor: pointer;
  transition: transform 100ms ease-out, background-color .35s ease, box-shadow .35s ease, color .35s ease, opacity .3s ease;
}
.btn:hover { background: var(--terracota); color: var(--porcelana); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1px rgba(23, 19, 18, .28); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--tinta); color: var(--tinta); background: rgba(23, 19, 18, .03); }
.btn.light { background: var(--porcelana); color: var(--tinta); }
.btn.light:hover { background: var(--salmon); color: var(--tinta); }
.btn.salmon { background: var(--salmon); color: var(--tinta); }
.btn.salmon:hover { background: var(--porcelana); color: var(--tinta); }
.btn.ghost-light { background: transparent; color: var(--porcelana); box-shadow: inset 0 0 0 1px rgba(251, 248, 245, .35); }
.btn.ghost-light:hover { box-shadow: inset 0 0 0 1px var(--porcelana); color: var(--porcelana); background: rgba(251, 248, 245, .06); }
.btn.sm { min-height: 44px; padding: 0 22px; font-size: 13px; }
.btn.icon-only { min-height: 44px; width: 44px; padding: 0; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.arr { width: 16px; height: 16px; flex: none; transition: transform .45s var(--ease); }
a:hover .arr, button:hover .arr { transform: translateX(4px); }
.ic { width: 20px; height: 20px; flex: none; }
.link-line { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 6px; align-self: flex-start; }

/* Cabecera de vidrio (C02) */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 248, 245, .74);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--linea-suave);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinta); }
.brand:hover { color: var(--tinta); }
.brand img { width: 40px; height: 40px; }
.brand .d { font-size: 26px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 13px; letter-spacing: .06em; color: var(--tinta); position: relative; padding: 14px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--tinta); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; }

/* Menú móvil (C03): funciona sin JS con :target; app.js lo mejora */
.sheet {
  position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 70;
  background: rgba(251, 248, 245, .95);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  display: none; flex-direction: column; padding: 0 20px max(24px, env(safe-area-inset-bottom)); overflow: hidden;
}
.sheet:target, .sheet.open { display: flex; animation: sheet .55s var(--ease) both; }
@keyframes sheet { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.sheet-top { display: flex; justify-content: space-between; align-items: center; height: var(--nav-h); flex: none; }
.sheet nav { display: flex; flex-direction: column; justify-content: center; padding: clamp(8px, 2vh, 24px) 0; flex-grow: 1; min-height: 0; }
.sheet nav a {
  font-family: var(--font-display); font-weight: 200; font-size: clamp(28px, 4.6vh, 38px); letter-spacing: -0.03em;
  text-decoration: none; color: var(--tinta); padding: clamp(6px, 1.4vh, 12px) 0; border-bottom: 1px solid rgba(23, 19, 18, .08);
  display: flex; justify-content: space-between; align-items: center;
}
.sheet:target nav a, .sheet.open nav a { animation: in .8s var(--ease) both; }
.sheet nav a:nth-child(2) { animation-delay: .04s; } .sheet nav a:nth-child(3) { animation-delay: .08s; }
.sheet nav a:nth-child(4) { animation-delay: .12s; } .sheet nav a:nth-child(5) { animation-delay: .16s; }
.sheet nav a:nth-child(6) { animation-delay: .2s; } .sheet nav a:nth-child(7) { animation-delay: .24s; }
.sheet nav a:nth-child(8) { animation-delay: .28s; }
.sheet nav a[aria-current="page"] { color: var(--terracota); }
.sheet-cta { display: flex; flex-direction: column; gap: 14px; flex: none; }
body.menu-open { overflow: hidden; }

/* Migas (visibles) */
.crumbs { font-size: 13px; color: var(--topo); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--topo); }
.crumbs a:hover { color: var(--terracota); }
.crumbs.on-dark, .crumbs.on-dark a { color: var(--nude-oscuro); }
.crumbs.on-dark a:hover { color: var(--salmon); }

/* Pie de página (C18) */
.foot { background: var(--tinta); color: var(--nude-claro); padding: 112px 0 40px; }
.foot a { color: var(--nude-claro); text-decoration: none; }
.foot a:hover { color: var(--salmon); }
.foot-in { display: flex; flex-direction: column; gap: 80px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; }
.foot-col { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.foot-col .lbl { color: var(--salmon); }
.foot-brand { gap: 24px; }
.foot-brand img { width: 168px; height: auto; }
.foot-brand p { font-size: 14px; line-height: 1.7; color: var(--nude-oscuro); }
.foot-word { font-size: clamp(80px, 17vw, 260px); line-height: .8; color: var(--tinta-2); letter-spacing: -0.05em; text-align: center; }
.foot-word::before { content: attr(data-word); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--gris-pie); border-top: 1px solid var(--tinta-3); padding-top: 28px; }
.foot-legal a { color: var(--gris-pie); }
.foot-legal nav { display: flex; gap: 20px; flex-wrap: wrap; }
/* Área táctil ampliada sin cambiar el ritmo visual (WCAG 2.5.8) */
.foot-col a, .foot-legal a { padding: 7px 0; margin: -7px 0; }

/* Botón flotante de WhatsApp (C14) */
.fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 40; display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: var(--r-pill);
  background: rgba(23, 19, 18, .82); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  color: var(--porcelana); text-decoration: none; font-size: 14px; transition: transform 100ms ease-out;
  box-shadow: 0 18px 40px -18px rgba(23, 19, 18, .6);
}
.fab:hover { color: var(--porcelana); }
.fab:active { transform: scale(.96); }
.fab .ic { width: 22px; height: 22px; }

/* Movimiento */
.in { animation: in 1.2s var(--ease) both; }
.in.d1 { animation-delay: .08s; } .in.d2 { animation-delay: .16s; } .in.d3 { animation-delay: .24s; }
.in.d4 { animation-delay: .32s; } .in.d5 { animation-delay: .4s; }
@keyframes in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes pop { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* html.js lo añade un script en <head> solo si se permite movimiento; app.js revela con IntersectionObserver */
html.js .rv { opacity: 0; transform: translateY(56px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
html.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js .rv { opacity: 1; transform: none; }
  .in, .pane { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .sheet { background: var(--porcelana); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .fab { background: var(--tinta); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Responsive (§6.4) */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 960px) {
  .hide-m { display: none !important; }
  .g2 { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .g3 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .sec-head { margin-bottom: 40px; }
  .fab { right: 16px; bottom: 16px; padding: 0 16px; }
  .fab span { display: none; }
  .foot { padding-top: 80px; padding-bottom: 96px; } /* el botón flotante no tapa los enlaces legales */
  .foot-in { gap: 56px; }
  .foot-col { gap: 0; }
  .foot-col .lbl { margin-bottom: 6px; }
  .foot-col p { padding: 6px 0; }
  .foot-col a { display: flex; align-items: center; min-height: 44px; padding: 0; margin: 0; }
  .foot-legal nav { gap: 4px 20px; }
  .foot-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: 0; }
}
@media (max-height: 640px) {
  .sheet nav a { font-size: 26px; padding: 6px 0; }
  .sheet-top { height: 64px; }
}
@media (min-width: 961px) { .only-m { display: none !important; } }
