/* ==========================================================
   Jorge Pérez · Cortador de jamón — home de presentación
   ========================================================== */

/* Tipografías alojadas en la propia web (licencia SIL Open Font License).
   Solo los juegos latino y latino extendido; Inter Tight es variable (300–600). */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-latin.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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-italic-latin.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: "Inter Tight";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/inter-tight-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/inter-tight-latin.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;
}

:root {
  --bg: #f5efe6;
  --bg-2: #ece2d4;
  --ink: #1b1512;
  --muted: #6f6258;
  --red: #9b2c22;
  --red-soft: #e8a493;
  --cream: #efe6d8;
  --line: rgba(27, 21, 18, .14);
  --line-dark: rgba(239, 230, 216, .16);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: .95; letter-spacing: -.01em; }
h2 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.05; }
em { font-style: italic; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin: 0 0 1.6em;
  font: 500 .74rem/1.3 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}
.kicker::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Botones y enlaces ---------- */

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 1.05em 1.7em;
  border-radius: 999px;
  font: 500 .9rem/1 var(--sans);
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease);
}
.pill::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.pill:hover::after, .pill:focus-visible::after { transform: none; }
.pill svg { width: 1.15em; height: 1.15em; flex: none; }
.pill-red { background: var(--red); color: #fff; }
.pill-light { background: var(--cream); color: var(--ink); }
.pill-light::after { background: #fff; }
button.pill { border: 0; cursor: pointer; }
.pill-ink { background: var(--ink); color: var(--cream); }
.pill-ink::after { background: var(--red); }
.pill.pill-line { border: 1px solid currentColor; background: transparent; color: var(--ink); }
.pill-line:hover, .pill-line:focus-visible { color: var(--cream); }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-weight: 500; }
.link-arrow::after { content: "→"; transition: transform .4s var(--ease); }
.link-arrow:hover::after, .path:hover .link-arrow::after { transform: translateX(5px); }

/* ---------- Cabecera y menú ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 20px var(--gutter);
  transition: transform .6s var(--ease), background-color .4s, padding .4s, color .4s;
}
.hdr.is-solid {
  padding-block: 12px;
  background: rgba(245, 239, 230, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-brand { display: flex; flex-direction: column; margin-right: auto; font: 400 1.6rem/1 var(--serif); }
.hdr-brand span { font: 500 .6rem/1.9 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.hdr-nav { display: flex; gap: 1.9rem; font-size: .9rem; }
.hdr-nav a { position: relative; padding: 4px 0; }
.hdr-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.hdr-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr-cta { padding: .85em 1.35em; font-size: .82rem; }
.hdr-toggle { display: none; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  background: var(--ink);
  color: var(--cream);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font: 400 clamp(3rem, 13vw, 4.6rem)/1.08 var(--serif);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s, transform .8s var(--ease);
}
.menu-foot { display: grid; gap: 8px; font-size: .9rem; color: rgba(239, 230, 216, .65); }
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu-open .menu nav a { opacity: 1; transform: none; }
.menu-open .menu nav a:nth-child(1) { transition-delay: .15s; }
.menu-open .menu nav a:nth-child(2) { transition-delay: .2s; }
.menu-open .menu nav a:nth-child(3) { transition-delay: .25s; }
.menu-open .menu nav a:nth-child(4) { transition-delay: .3s; }
.menu-open .menu nav a:nth-child(5) { transition-delay: .35s; }
.menu-open .hdr { color: var(--cream); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.menu-open .hdr-brand span { color: rgba(239, 230, 216, .6); }

@media (max-width: 960px) {
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-toggle {
    display: inline-flex;
    align-items: center;
    padding: .7em 1.2em;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: none;
    color: inherit;
    font: 500 .82rem/1 var(--sans);
    cursor: pointer;
  }
}

/* ---------- Portada ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}
.hero-text { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 130px var(--gutter) 120px; }
.hero-title { margin: 0 0 .28em; font-size: clamp(5.2rem, 13vw, 13.5rem); line-height: .86; letter-spacing: -.035em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .07em; }
.hero-title em { display: inline-block; padding-left: .55em; color: var(--red); }
.hero-title .ch { display: inline-block; }
.hero-role {
  display: block;
  margin-top: 1.1rem;
  font: 500 clamp(.78rem, 1vw, .9rem)/1.4 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-sub { max-width: 31em; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: .9em; }
.hero-foot {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  display: flex;
  gap: 2.4rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  height: 100vh;
  height: 100svh;
  padding-right: var(--gutter);
  overflow: hidden;
  /* Transparente bajo la cabecera para que el menú se lea */
  -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 26%, #000 85%, transparent);
  mask-image: linear-gradient(180deg, transparent 10%, #000 26%, #000 85%, transparent);
}
.wall-track { display: flex; flex-direction: column; gap: 14px; animation: wall-up 48s linear infinite; }
.wall-col--down .wall-track { animation-duration: 40s; animation-direction: reverse; }
.hero-wall:hover .wall-track { animation-play-state: paused; }
.wall-track img { width: 100%; aspect-ratio: 3 / 4.3; object-fit: cover; object-position: 50% 8%; border-radius: 8px; }
@keyframes wall-up { to { transform: translateY(calc(-50% - 7px)); } }

/* Estado inicial de la portada hasta que arrancan las animaciones */
.js:not(.no-anim) .hero-title { visibility: hidden; }
.js:not(.no-anim) [data-hero], .js:not(.no-anim) .hero-wall { opacity: 0; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 118px var(--gutter) 44px; }
  .hero-title { font-size: clamp(4.4rem, 23vw, 8.5rem); }
  .hero-foot { display: none; }
  .hero-wall {
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
    padding: 0 0 64px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .wall-track { flex-direction: row; gap: 12px; width: max-content; animation-name: wall-left; }
  .wall-track img { width: 150px; }
  @keyframes wall-left { to { transform: translateX(calc(-50% - 6px)); } }
}

/* ---------- Dos caminos ---------- */

.paths { padding: clamp(40px, 6vw, 80px) 0 clamp(100px, 12vw, 170px); }
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  padding: clamp(16px, 2vw, 24px);
  border-radius: 20px;
  background: var(--bg-2);
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.path:hover { background: var(--ink); color: var(--cream); }
.path-img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 12px 12px; }
.path-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transform-origin: 50% 20%; transition: transform 1.4s var(--ease); }
.path:hover .path-img img { transform: scale(1.08); }
.path-body { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 10px 6px 6px 0; }
.path-tag { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); transition: color .6s; }
.path:hover .path-tag { color: var(--red-soft); }
.path h3 { margin-bottom: .45em; font-size: clamp(2rem, 3vw, 2.9rem); }
.path p { margin: 0; opacity: .75; }
.path .link-arrow { align-self: flex-start; }
@media (max-width: 900px) { .paths-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .path { grid-template-columns: 1fr; }
  .path-img { aspect-ratio: 4 / 3.6; }
}

/* ---------- Servicios ---------- */

.services { padding: clamp(100px, 12vw, 170px) 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head h2 em { color: var(--red); }
.sec-lead { max-width: 25em; margin: 0; color: var(--muted); }
.svc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.svc a {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr) 52px;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}
.svc-thumb { display: none; }
.svc-n { font-size: .8rem; letter-spacing: .14em; color: var(--muted); }
.svc-t { font: 400 clamp(2.4rem, 5vw, 4.6rem)/1 var(--serif); transition: transform .7s var(--ease), color .4s; }
.svc-d { max-width: 26em; color: var(--muted); }
.svc-arrow {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .4s, border-color .4s, color .4s, transform .7s var(--ease);
}
.svc a:hover .svc-t { transform: translateX(18px); color: var(--red); }
.svc a:hover .svc-arrow { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }

.svc-float {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 230px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px 999px 14px 14px;
  pointer-events: none;
  opacity: 0;
  scale: .6;
  transition: opacity .35s, scale .6s var(--ease);
}
.svc-float.is-on { opacity: 1; scale: 1; }
.svc-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; opacity: 0; transition: opacity .35s; }
.svc-float img.is-on { opacity: 1; }

@media (max-width: 760px) {
  .sec-head { flex-direction: column; align-items: flex-start; }
  .svc a { grid-template-columns: 64px 1fr 40px; grid-template-areas: "th t ar" "th d ar"; gap: 4px 18px; }
  .svc-n { display: none; }
  .svc-thumb { display: block; grid-area: th; width: 64px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 10%; border-radius: 999px 999px 6px 6px; }
  .svc-t { grid-area: t; font-size: 2.3rem; }
  .svc-d { grid-area: d; font-size: .92rem; }
  .svc-arrow { grid-area: ar; width: 40px; height: 40px; }
  .svc-float { display: none; }
}

/* ---------- Bodas (recorrido horizontal) ---------- */

.wedding { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); }
.wedding-pin {
  display: flex;
  align-items: stretch;
  gap: clamp(36px, 4vw, 64px);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(96px, 10vw, 120px) 0 clamp(64px, 7vw, 90px);
}
/* El bloque de texto tapa desde el borde izquierdo para que las tarjetas pasen por debajo */
.wedding-intro {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 calc(min(400px, 32vw) + var(--gutter));
  flex-direction: column;
  justify-content: center;
  padding-left: var(--gutter);
  background: var(--ink);
}
.wedding-intro::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: clamp(36px, 4vw, 64px);
  background: linear-gradient(90deg, var(--ink), transparent);
}
.wedding-intro .kicker, .wedding-intro h2 em { color: var(--red-soft); }
.wedding-intro .w-lead { max-width: 24em; margin: 1.4em 0 0; color: rgba(239, 230, 216, .7); }

/* Controles del recorrido: barra de progreso, flechas y pista */
.w-controls { display: flex; align-items: center; gap: 18px; margin-top: 2.2em; }
.w-progress { flex: 1; max-width: 160px; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(239, 230, 216, .16); }
.w-progress span { display: block; height: 100%; background: var(--red-soft); transform: scaleX(.1); transform-origin: left; transition: transform .3s var(--ease); }
.w-nav { display: flex; gap: 10px; }
.w-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(239, 230, 216, .3);
  border-radius: 50%;
  background: none;
  color: var(--cream);
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.w-btn:hover, .w-btn:focus-visible { border-color: var(--cream); background: var(--cream); color: var(--ink); }
.w-btn svg { width: 18px; height: 18px; }
.w-hint { margin: 1em 0 0; font-size: .78rem; color: rgba(239, 230, 216, .45); }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
}
@media (hover: hover) and (pointer: fine) { .wedding-track { cursor: grab; } }
.wedding.is-dragging .wedding-track { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.wedding.is-dragging .wedding-track * { pointer-events: none; }
.wedding-track {
  display: flex;
  flex: 1 1 auto;
  align-self: center;
  gap: 22px;
  min-width: 0;
  padding-right: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.wedding-track::-webkit-scrollbar { display: none; }
.wedding.is-pinned .wedding-track { flex: 0 0 auto; overflow: visible; }
.w-card { display: flex; flex: 0 0 clamp(270px, 23vw, 330px); flex-direction: column; gap: 14px; scroll-snap-align: start; }
.w-card figure { aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 6px; border-radius: 12px; }
.w-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform-origin: 50% 0; }
.w-num { font-size: .8rem; letter-spacing: .16em; color: var(--red-soft); }
.w-card h3 { color: var(--cream); }
.w-card p { margin: 0; color: rgba(239, 230, 216, .68); }
.w-card--text, .w-card--cta { justify-content: space-between; padding: 32px; border-radius: 12px; }
.w-card--text { border: 1px solid var(--line-dark); }
.w-quote { font: italic 400 clamp(3rem, 4.4vw, 4.2rem)/.95 var(--serif); color: var(--red-soft); }
.w-card--cta { justify-content: center; gap: 18px; background: var(--red); }
.w-card--cta h3 { font-size: clamp(2.2rem, 3vw, 2.8rem); }
.w-card--cta p { color: rgba(255, 255, 255, .8); }
.w-card--cta .pill { align-self: flex-start; margin-top: 10px; }
@media (max-width: 960px) {
  .wedding-pin { flex-direction: column; min-height: 0; }
  .wedding-intro { flex: none; padding-right: var(--gutter); }
  .wedding-intro::after { display: none; }
  .wedding-track { align-self: stretch; padding-left: var(--gutter); scroll-padding-left: var(--gutter); }
  .w-card { flex-basis: 76%; max-width: 330px; }
}

/* ---------- Sobre mí ---------- */

.about { padding: clamp(90px, 11vw, 160px) 0; overflow: hidden; background: var(--bg-2); }
.about-marquee { margin-bottom: clamp(60px, 8vw, 110px); font: 400 clamp(4rem, 11vw, 10rem)/1.02 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.am-line { display: flex; width: max-content; }
.am-line span { display: inline-flex; align-items: center; gap: .3em; padding-right: .3em; }
.am-line em { color: var(--red); }
.am-line--outline { color: transparent; -webkit-text-stroke: 1px var(--red); }
.dot { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--red); }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-img { width: 100%; max-width: 440px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 14px 14px; }
/* Las fotos son verticales: se encuadran desde arriba para no cortar caras */
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; transform-origin: 50% 0; }
.about-text h2 em { color: var(--red); }
.about-text h2 { margin-bottom: .5em; }
.about-text > p { max-width: 32em; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 2.4em 0 0; padding-top: 2em; border-top: 1px solid var(--line); }
.stats dt { font: 400 clamp(2.8rem, 4.6vw, 4.2rem)/1 var(--serif); color: var(--red); }
.stats dd { margin: .6em 0 0; font-size: .72rem; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img { justify-self: center; max-width: 360px; }
}
/* En móvil los rótulos no se desplazan: se muestran una vez y partidos en líneas */
@media (max-width: 760px) {
  .about-marquee { padding-inline: var(--gutter); font-size: clamp(2.6rem, 12vw, 4rem); line-height: 1.05; white-space: normal; text-align: center; }
  .am-line { width: auto; justify-content: center; }
  .am-line + .am-line { margin-top: .25em; }
  .am-line span { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .am-line span:not(:first-child), .am-line span > .dot:last-child { display: none; }
}
@media (max-width: 520px) { .stats { gap: 12px; } .stats dd { font-size: .62rem; } }

/* ---------- Tienda ---------- */

.shop { padding: clamp(100px, 12vw, 170px) 0; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.shop-text h2 em { color: var(--red); }
.shop-text > p { max-width: 30em; margin: 1.4em 0 1.6em; color: var(--muted); }
.shop-list { display: grid; gap: 12px; margin: 0 0 2.4em; padding: 0; list-style: none; }
.shop-list li { display: flex; align-items: center; gap: 14px; }
.shop-list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.shop-visual { position: relative; justify-self: center; width: min(100%, 430px); }
.shop-visual figure { aspect-ratio: 3 / 4.1; overflow: hidden; border-radius: 999px 999px 14px 14px; }
.shop-visual img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  bottom: 40px;
  left: -50px;
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}
.badge svg {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  fill: #fff;
  font: 500 12px var(--sans);
  letter-spacing: .1em;
  animation: spin 18s linear infinite;
}
.badge b { font: italic 400 2rem/1 var(--serif); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-visual { width: min(100% - 40px, 380px); }
  .badge { left: -30px; width: 124px; }
}

/* ---------- Preguntas frecuentes ---------- */

.faq { padding: clamp(100px, 12vw, 170px) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-head h2 em { color: var(--red); }
.faq-head p:last-child { max-width: 24em; margin: 1.4em 0 0; color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font: 400 clamp(1.35rem, 2vw, 1.75rem)/1.25 var(--serif);
  list-style: none;
  cursor: pointer;
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 300 1.4rem/1 var(--sans);
  transition: transform .5s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.faq-item summary:hover { color: var(--red); }
.faq-item[open] summary::after { transform: rotate(45deg); border-color: var(--red); background: var(--red); color: #fff; }
.faq-a { padding: 0 64px 26px 0; color: var(--muted); }
.faq-a p { margin: 0; }
.faq-item[open] .faq-a { animation: faq-in .6s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-a { padding-right: 0; }
}

/* ---------- Contacto y pie ---------- */

.contact { padding: clamp(100px, 12vw, 170px) 0 clamp(70px, 8vw, 100px); background: var(--ink); color: var(--cream); }
.contact .kicker { color: var(--red-soft); }
.contact-title { font-size: clamp(5rem, 17vw, 16rem); line-height: .85; letter-spacing: -.035em; }
.contact-title a { display: inline-flex; align-items: baseline; }
.contact-title em { color: var(--red-soft); }
.contact-arrow { display: inline-block; margin-left: .12em; font: 200 .5em/1 var(--sans); transition: transform .7s var(--ease); }
.contact-title a:hover .contact-arrow { transform: translateX(.15em) rotate(-45deg); }
.contact-lead { max-width: 32em; margin: 2rem 0 4rem; font-size: 1.1rem; color: rgba(239, 230, 216, .7); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.contact-grid > * { padding: 28px 24px 0 0; }
.contact-grid span { display: block; margin-bottom: .6em; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(239, 230, 216, .5); }
.contact-grid strong { font: 400 clamp(1.5rem, 2.2vw, 2rem)/1.2 var(--serif); transition: color .3s; }
.contact-grid a:hover strong { color: var(--red-soft); }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > * { padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
}

.foot { padding: 26px 0 30px; border-top: 1px solid var(--line-dark); background: var(--ink); color: rgba(239, 230, 216, .5); font-size: .82rem; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-right: 72px; }
.foot-inner p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a, .foot-link { transition: color .3s; }
.foot a:hover, .foot-link:hover { color: var(--cream); }
.foot-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.contact-note { max-width: 40em; margin: 3rem 0 0; font-size: .85rem; color: rgba(239, 230, 216, .5); }
.contact-note a { text-decoration: underline; text-underline-offset: 3px; }
.contact-note a:hover { color: var(--cream); }

/* ---------- Aviso de cookies ---------- */

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 150;
  width: min(420px, 100% - 40px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(27, 21, 18, .45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .4s, transform .6s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner { max-height: calc(100vh - 40px); overflow-y: auto; }
.cookie-banner p { margin: 0 0 1.1em; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.cookie-banner strong, .cookie-banner .cb-title { display: block; margin-bottom: .25em; font: 400 1.6rem/1.1 var(--serif); color: var(--ink); }
.cookie-banner a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .pill { flex: 1 1 110px; justify-content: center; padding: .95em 1em; font-size: .85rem; }
.cb-settings { display: grid; }
.cb-settings[hidden] { display: none; }
.cb-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cb-row span { font-size: .85rem; line-height: 1.5; color: var(--muted); }
.cb-row b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }
/* Interruptor */
.cb-row input {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin: 2px 0 0;
  border-radius: 999px;
  background: #d6cbbd;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color .3s;
}
.cb-row input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .3s var(--ease);
}
.cb-row input:checked { background: var(--red); }
.cb-row input:checked::after { transform: translateX(18px); }
.cb-row input:disabled { opacity: .55; cursor: not-allowed; }
.cb-settings .cookie-actions { margin-top: 16px; }

/* ---------- Páginas legales ---------- */

.legal-hdr { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.link-back::after { content: none; }
.link-back::before { content: "←"; transition: transform .4s var(--ease); }
.link-back:hover::before { transform: translateX(-5px); }
.legal { max-width: 780px; padding: clamp(48px, 8vw, 96px) 0 clamp(80px, 10vw, 130px); }
.legal h1 { margin-bottom: .3em; font-size: clamp(3rem, 7vw, 5.2rem); }
.legal-date { margin-bottom: 3em; font-size: .9rem; color: var(--muted); }
.legal h2 { margin: 2.2em 0 .6em; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.legal p, .legal li { color: #3d332d; }
.legal ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.legal li { margin-bottom: .45em; }
.legal a, .legal .legal-cookie-btn { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal .legal-cookie-btn:hover { color: var(--ink); }
.table-scroll { margin: 0 0 1.4em; overflow-x: auto; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .92rem; }
.legal th, .legal td { padding: .75em .9em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { background: var(--bg-2); font-weight: 600; }
/* Datos que faltan por rellenar */
.todo { padding: 0 .3em; border-radius: 4px; background: #f6dd9a; color: var(--ink); }

.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(107, 29, 22, .6);
  transition: transform .6s var(--ease), opacity .4s;
}
.fab svg { width: 26px; height: 26px; }
.js .fab { opacity: 0; transform: scale(.6); pointer-events: none; }
.js .fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .wall-track, .badge svg { animation: none; }
  .pill::after, .menu, .menu nav a, .hdr { transition-duration: .01ms; }
}
