/* =========================================================
   Portfolio de tartas · Mangi's Cahuas
   Paleta tomada de las fotos: crema, rosa, dorado (bandejas), cacao
   ========================================================= */

:root {
  --cream: #fcf6ee;
  --cream-2: #f6e9da;
  --blush: #f8e1e4;
  --rose: #b8496e;
  --rose-dark: #9a3a5a;
  --cocoa: #3a2622;
  --cocoa-deep: #2a1a17;
  --muted: #6b5650;
  --gold: #c29a45;
  --gold-light: #ecd28f;
  --line: rgba(58, 38, 34, .13);

  --gold-grad: linear-gradient(100deg, #b58a35 0%, #f0d78f 32%, #b58a35 60%, #e8c874 82%, #b58a35 100%);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(18px, 4.5vw, 36px);
  --maxw: 1200px;
  --header-h: 68px;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(58, 38, 34, .35);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
html.lb-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cocoa);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: clip; }
img, svg { max-width: 100%; }
img { display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--cocoa); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Decoración: bordes festoneados dorados (como las bandejas de las fotos) ---------- */
.scallop {
  --r: 9px;
  height: var(--r);
  background: var(--gold-grad);
  -webkit-mask: radial-gradient(circle at 50% 0, #000 calc(var(--r) - 1px), transparent var(--r)) 0 0 / calc(var(--r) * 2) var(--r) repeat-x;
          mask: radial-gradient(circle at 50% 0, #000 calc(var(--r) - 1px), transparent var(--r)) 0 0 / calc(var(--r) * 2) var(--r) repeat-x;
}
.scallop--big { --r: 14px; }
.scallop--flush { position: absolute; top: 0; left: 0; right: 0; --r: 14px; }

/* Perlitas (borde de perlas de fondant) */
.pearls {
  width: 132px; height: 14px; margin: 18px auto 0;
  background: radial-gradient(circle at 50% 50%, var(--gold) 0 3.2px, transparent 3.7px) 0 50% / 16.5px 14px repeat-x;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .7));
}
.pearls--left { margin: 18px 0 1.6em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.7em; border-radius: 999px; border: 2px solid var(--rose);
  background: var(--rose); color: #fff; text-decoration: none;
  font-weight: 500; letter-spacing: .02em; line-height: 1.2;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  box-shadow: 0 8px 20px -10px rgba(184, 73, 110, .8);
}
.btn:hover { background: var(--rose-dark); border-color: var(--rose-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--rose); box-shadow: none; }
.btn--ghost:hover { background: var(--rose); color: #fff; }
.btn--light { background: #fff; color: var(--rose-dark); border-color: #fff; box-shadow: none; }
.btn--light:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--cocoa); }
.btn--small { padding: .6em 1.2em; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  margin: 0 0 .9em; font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rose);
}
.eyebrow--light { color: var(--gold-light); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.section { position: relative; padding-block: clamp(64px, 10vw, 120px); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section__head .lead { margin-inline: auto; margin-top: 1.1em; }
h2 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h3 { font-size: 1.55rem; }
em { font-style: italic; color: var(--rose); }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 246, 238, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.header__in { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.header .scallop { position: absolute; left: 0; right: 0; top: 100%; --r: 8px; filter: drop-shadow(0 6px 6px rgba(58, 38, 34, .08)); }
.header.is-scrolled { background: rgba(252, 246, 238, .97); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; color: #fff; --daisy-center: var(--gold); background: var(--rose); border-radius: 50%; padding: 3px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: .01em; }
.brand__tag { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand--light .brand__tag { color: rgba(255, 255, 255, .65); }

.nav-toggle {
  display: grid; place-content: center; gap: 5px; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 50%;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cocoa); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: none; flex-direction: column; gap: 4px;
  padding: 18px var(--gutter) 26px;
  background: var(--cream); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 30px -20px rgba(58, 38, 34, .3);
}
.nav.is-open { display: flex; animation: drop .3s var(--ease); }
.nav a:not(.btn) { padding: 12px 4px; text-decoration: none; font-weight: 500; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.nav a[aria-current="true"]:not(.btn) { color: var(--rose); }
.nav__cta { margin-top: 14px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(36px, 7vw, 96px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(60% 50% at 88% 12%, rgba(248, 225, 228, .95), transparent 70%),
    radial-gradient(45% 40% at 5% 95%, rgba(236, 210, 143, .35), transparent 70%),
    radial-gradient(circle, rgba(184, 73, 110, .09) 2.2px, transparent 2.8px) 0 0 / 30px 30px,
    var(--cream);
}
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 10.5vw, 5.6rem); font-weight: 600; line-height: .98; margin-bottom: .35em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 2em; }
.points { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .95rem; color: var(--muted); }
.points li { display: flex; align-items: center; gap: 10px; }
.points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(194, 154, 69, .25); }

/* Carrusel del hero (marco en arco, como un pastel en su base) */
.slider { position: relative; width: min(84%, 420px); margin: 14px auto 0; isolation: isolate; }
.slider::before, .slider::after { content: ""; position: absolute; border-radius: 999px 999px 34px 34px; z-index: -1; }
.slider::before { inset: -14px; border: 2px solid var(--gold); opacity: .85; }
.slider::after { inset: -14px; background: var(--blush); transform: rotate(-4deg) translate(-8px, 8px); }
.slider__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-2);
  border-radius: 999px 999px 24px 24px; box-shadow: var(--shadow);
}
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 6s ease-out; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }

.slider__bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.slider__dots { display: flex; gap: 8px; padding: 8px 12px; background: rgba(255, 255, 255, .78); border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(58, 38, 34, .28); transition: width .3s var(--ease), background .3s; }
.slider__dots button[aria-current="true"] { width: 26px; border-radius: 999px; background: var(--rose); }
.slider__dots button:hover { background: var(--rose); }
.slider__pause { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.slider__pause svg { width: 16px; height: 16px; fill: var(--cocoa); }
.slider__pause .i-play, .slider__pause[data-paused="true"] .i-pause { display: none; }
.slider__pause[data-paused="true"] .i-play { display: block; }

.chip {
  position: absolute; z-index: 4; left: -6%; bottom: 22%;
  padding: 8px 16px; background: #fff; color: var(--rose-dark); border-radius: 999px;
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.1rem;
  box-shadow: 0 10px 22px -10px rgba(58, 38, 34, .45); transform: rotate(-6deg);
}

/* Decoración flotante: margaritas y estrellas de fondant */
.deco { position: absolute; z-index: 4; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(58, 38, 34, .22)); animation: float 7s ease-in-out infinite; }
.deco--daisy-a { width: 74px; height: 74px; top: 8%; left: -10%; color: #fff; }
.deco--daisy-b { width: 54px; height: 54px; bottom: 12%; right: -8%; color: var(--gold-light); --daisy-center: #fff; animation-delay: -3s; }
.deco--star-a { width: 34px; height: 34px; top: 2%; right: 6%; color: var(--gold); animation-delay: -1.5s; }
.deco--star-b { width: 22px; height: 22px; top: 42%; right: -11%; color: var(--rose); animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(8deg); } }

/* ---------- Cinta de temáticas ---------- */
.ticker { overflow: hidden; background: var(--cocoa); color: var(--cream); padding-block: 16px; }
.ticker__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; flex: none; }
.ticker li { display: flex; align-items: center; font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 3.4vw, 1.7rem); white-space: nowrap; }
.ticker li::after { content: ""; width: 9px; height: 9px; margin-inline: clamp(18px, 3vw, 34px); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(194, 154, 69, .28); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 14px; }
.filters button {
  padding: .55em 1.2em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-size: .95rem; font-weight: 500; transition: all .25s var(--ease);
}
.filters button:hover { border-color: var(--rose); color: var(--rose); }
.filters button[aria-pressed="true"] { background: var(--cocoa); border-color: var(--cocoa); color: #fff; }
.filters__count { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 0 26px; min-height: 1.5em; }

.masonry { columns: 2; column-gap: 12px; }
.tile { break-inside: avoid; margin: 0 0 12px; }
.tile__btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; text-align: left;
  border-radius: 14px; background: var(--cream-2); box-shadow: 0 10px 24px -16px rgba(58, 38, 34, .5); cursor: zoom-in;
}
.tile__btn img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.tile__btn:hover img { transform: scale(1.05); }
.tile__cap {
  position: absolute; inset: auto 0 0 0; padding: 34px 12px 11px; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.15;
  background: linear-gradient(transparent, rgba(30, 14, 12, .78));
  opacity: 1; transform: none; transition: opacity .3s, transform .3s var(--ease);
}
@media (hover: hover) {
  .tile__cap { opacity: 0; transform: translateY(8px); }
  .tile__btn:hover .tile__cap, .tile__btn:focus-visible .tile__cap { opacity: 1; transform: none; }
}

/* ---------- Especialidades ---------- */
.section--blush { background: var(--blush); }
.section--cream2 { background: var(--cream-2); }
.section--blush::before, .section--cream2::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px;
  background: radial-gradient(circle at 50% 0, var(--cream) 13px, transparent 14px) 0 0 / 28px 14px repeat-x;
}

.container--bleed-sm { width: 100%; max-width: var(--maxw); margin-inline: auto; }
.cards {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 6px var(--gutter) 22px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--rose) transparent;
}
.card { flex: 0 0 74%; max-width: 320px; scroll-snap-align: start; text-align: center; }
.card__img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 18px 18px; box-shadow: var(--shadow); border: 5px solid #fff; margin-bottom: 20px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Banda panorámica ---------- */
.band {
  position: relative; isolation: isolate; display: grid; place-items: center; text-align: center; color: #fff;
  min-height: 460px; padding-block: 72px;
  background: url("../img/mesa-dulce-graduacion.jpeg") 42% center / cover no-repeat;
}
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(58, 24, 40, .62), rgba(42, 26, 23, .78)); }
.band__in { max-width: 760px; }
.band h2 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: .4em; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.band p { font-size: 1.15rem; opacity: .92; margin-bottom: 1.8em; }
.band__star { width: 40px; height: 40px; color: var(--gold-light); margin: 0 auto 14px; display: block; animation: float 7s ease-in-out infinite; }

/* ---------- Proceso ---------- */
.steps { display: grid; gap: 34px 20px; grid-template-columns: 1fr 1fr; counter-reset: s; }
.step { text-align: center; }
.step__num { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 14px; }
.step__num svg { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; --daisy-center: var(--gold); filter: drop-shadow(0 6px 8px rgba(58, 38, 34, .18)); }
.step__num b {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--rose); color: #fff; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 3px #fff;
}
.step h3 { font-size: 1.35rem; margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: 48px; align-items: center; }
.about__media { position: relative; width: min(84%, 380px); margin: 0 auto; }
.arch { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 24px 24px; border: 6px solid #fff; box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.badge { position: absolute; right: -14%; bottom: 8%; width: 118px; height: 118px; animation: spin 24s linear infinite; filter: drop-shadow(0 8px 10px rgba(58, 38, 34, .25)); }
.badge text { fill: #fff; font: 600 9.4px var(--font-body); letter-spacing: .12em; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__copy p { color: var(--muted); }
.ticks { margin: 1.4em 0 2em; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,5 61.2,34.6 92.8,36.1 68.1,55.9 76.5,86.4 50,69 23.5,86.4 31.9,55.9 7.2,36.1 38.8,34.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,5 61.2,34.6 92.8,36.1 68.1,55.9 76.5,86.4 50,69 23.5,86.4 31.9,55.9 7.2,36.1 38.8,34.6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Contacto ---------- */
.section--dark { background: var(--cocoa); color: var(--cream); padding-top: clamp(84px, 11vw, 140px); }
.section--dark h2 { color: #fff; }
.section--dark .lead { color: rgba(252, 246, 238, .78); }
.section--dark .pearls { filter: none; }
.contact { display: grid; gap: 44px; align-items: start; }
.contact__links { display: grid; gap: 12px; margin-top: 1.6em; }
.contact__links a {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 500;
  border: 1.5px solid rgba(255, 255, 255, .25); transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.contact__links a:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold-light); transform: translateX(4px); }
.ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--cocoa); font-size: .95rem; line-height: 1; }

.contact__arches { display: none; }
.form { background: var(--cream); color: var(--cocoa); padding: clamp(22px, 4vw, 36px); border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--cocoa);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(184, 73, 110, .16); }
.field input:user-invalid, .field select:user-invalid { border-color: #c0392b; }
.form__status { margin: 14px 0 0; text-align: center; font-size: .92rem; color: var(--rose-dark); min-height: 1.4em; }

/* ---------- Pie ---------- */
.footer { background: var(--cocoa-deep); color: rgba(255, 255, 255, .75); padding-block: 34px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer .brand { color: #fff; }
.footer__copy { margin: 0; font-size: .9rem; }

/* ---------- Visor (lightbox) ---------- */
.lb {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(28, 15, 13, .95); color: #fff; overflow: hidden;
}
.lb::backdrop { background: rgba(28, 15, 13, .95); }
.lb[open] { display: block; animation: fade .3s ease; }
.lb__stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 12px 24px; touch-action: pan-y; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb__fig img {
  max-width: min(100%, 1100px); max-height: calc(100dvh - 170px); width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  opacity: 0; transform: scale(.98); transition: opacity .3s, transform .4s var(--ease);
}
.lb__fig img.is-in { opacity: 1; transform: none; }
.lb__fig figcaption { display: flex; gap: 14px; align-items: baseline; justify-content: center; text-align: center; flex-wrap: wrap; }
.lb__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.lb__count { font-size: .85rem; letter-spacing: .12em; color: var(--gold-light); }
.lb__btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); transition: background .2s, transform .2s;
}
.lb__btn:hover { background: var(--rose); border-color: var(--rose); }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb__close { top: 14px; right: 14px; }
.lb__prev, .lb__next { top: 50%; margin-top: -24px; }
.lb__prev { left: 8px; }
.lb__next { right: 8px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .masonry { columns: 3; column-gap: 16px; }
  .tile { margin-bottom: 16px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .field-row { gap: 0 16px; }
  .lb__prev { left: 20px; } .lb__next { right: 20px; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
  :root { --header-h: 78px; }
  .nav-toggle { display: none; }
  .nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 28px; padding: 0;
    background: transparent; border: 0; box-shadow: none;
  }
  .nav.is-open { animation: none; }
  .nav a:not(.btn) { padding: 6px 0; border: 0; font-size: 1rem; position: relative; }
  .nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav a:not(.btn):hover::after, .nav a[aria-current="true"]:not(.btn)::after { transform: scaleX(1); }
  .nav__cta { margin: 0; }

  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 72px; }
  .slider { width: min(100%, 440px); margin-right: 8px; }

  .container--bleed-sm { width: min(100% - 2 * var(--gutter), var(--maxw)); }
  .cards { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 6px 0 0; gap: 26px; }
  .card { flex: none; max-width: none; }

  .about { grid-template-columns: .85fr 1.15fr; gap: 88px; }
  .contact { grid-template-columns: 1fr 1.05fr; gap: 80px; }
  .contact__arches { display: flex; gap: 18px; margin-top: 2.6em; }
  .contact__arches img {
    width: 168px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 16px 16px;
    border: 4px solid rgba(255, 255, 255, .92); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  }
  .contact__arches img:first-child { transform: rotate(-4deg); }
  .contact__arches img:last-child { margin-top: 34px; transform: rotate(3deg); }
  .lb__stage { padding: 56px 100px 24px; }
}

@media (min-width: 1200px) {
  .masonry { column-gap: 20px; }
  .tile { margin-bottom: 20px; }
}

/* ---------- Preferencias de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker ul:nth-child(2) { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
