:root {
  --fucsia: #d6176e;
  --fucsia-d: #b01258;
  --choco: #3b1f1a;
  --crema: #fff8ef;
  --rosa: #ffd6e4;
  --blanco: #fff;
  --wa: #1fa855;
  --fb: #1877f2;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --r: 22px;
  --sh: 0 14px 36px -14px rgba(59, 31, 26, 0.35);
  --navh: 68px;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navh);
}
body {
  font-family: var(--sans);
  color: var(--choco);
  background: var(--crema);
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2 {
  font-family: var(--serif);
  line-height: 1.12;
  font-weight: 800;
}
:focus-visible {
  outline: 3px solid var(--fucsia);
  outline-offset: 3px;
}
.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.4em;
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
  color: #fff;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh);
}
.btn--primary {
  background: var(--fucsia);
}
.btn--primary:hover {
  background: var(--fucsia-d);
}
.btn--wa {
  background: var(--wa);
}
.btn--fb {
  background: var(--fb);
}
.btn--lg {
  padding: 1em 1.8em;
  font-size: 1.05rem;
}
/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--navh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(255, 248, 239, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(59, 31, 26, 0.08);
}
.nav__logo img {
  height: 40px;
  width: auto;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__menu a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
}
.nav__menu a:not(.btn):hover {
  color: var(--fucsia);
}
.nav__menu .btn {
  padding: 0.55em 1.1em;
}
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
}
.nav__toggle span {
  width: 24px;
  height: 3px;
  background: var(--choco);
  border-radius: 3px;
  transition: 0.3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 6vw, 96px);
  min-height: calc(100svh - var(--navh));
  background:
    radial-gradient(circle at 85% 20%, var(--rosa) 0, transparent 55%),
    var(--crema);
  overflow: hidden;
}
.hero__text {
  position: relative;
  z-index: 2;
}
.hero__logo {
  width: 600px;
  margin-bottom: 10px;
  animation: rise 5s both;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  color: var(--choco);
  animation: rise 0.9s 0.1s both;
}
.hero p {
  font-size: 1.2rem;
  max-width: 34ch;
  margin: 18px 0 28px;
  animation: rise 0.9s 0.25s both;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.9s 0.4s both;
}
.hero__photo {
  position: relative;
  z-index: 2;
  animation: pop 1s 0.2s both;
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  width: 600%;
  height: 600%;
  animation: flotar 2s ease-in-out infinite alternate;
}

@keyframes flotar {
  from { transform: translateY(0) rotate(-1deg); }
  to   { transform: translateY(-16px) rotate(1deg); }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.92) rotate(2deg);
  }
}
/* Decoración flotante */
.deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.deco svg {
  position: absolute;
  width: var(--s);
  height: var(--s);
  opacity: 0.9;
  animation: float var(--d) ease-in-out var(--dl) infinite alternate;
}
.deco--soft svg {
  opacity: 0.55;
}
@keyframes float {
  from {
    transform: translate(0, 0) rotate(calc(var(--rot) * -1));
  }
  to {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
  }
}
/* Galería */
.gallery {
  padding: clamp(48px, 8vw, 100px) clamp(12px, 4vw, 64px);
  background: var(--blanco);
}
.section-head {
  text-align: center;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--fucsia);
}
.section-head p {
  margin-top: 8px;
}
.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  margin-bottom: 12px;
  scrollbar-width: none;
  justify-content: safe center;
}
.filters::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  border: 2px solid var(--rosa);
  background: var(--crema);
  color: var(--choco);
  border-radius: 99px;
  padding: 0.5em 1.1em;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s;
}
.chip:hover {
  border-color: var(--fucsia);
}
.chip[aria-pressed="true"] {
  background: var(--fucsia);
  border-color: var(--fucsia);
  color: #fff;
}
.masonry {
  columns: 4 260px;
  column-gap: 16px;
  max-width: 1500px;
  margin: auto;
}
.item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--rosa);
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
  box-shadow: 0 6px 18px -10px rgba(59, 31, 26, 0.4);
}
.item[hidden] {
  display: none;
}
.item.in {
  animation: fade 0.5s both;
}
.item img {
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.item:hover img {
  transform: scale(1.07);
}
.item span {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 16px 14px;
  color: #fff;
  text-align: left;
  font-weight: 500;
  background: linear-gradient(transparent, rgba(59, 31, 26, 0.78));
  opacity: 0;
  transform: translateY(8px);
  transition: 0.35s;
}
.item:hover span,
.item:focus-visible span {
  opacity: 1;
  transform: none;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
/* Nosotros */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  padding: clamp(48px, 8vw, 110px) clamp(16px, 8vw, 120px);
  background: var(--rosa);
}
.about__photo img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  border: 8px solid #fff;
  box-shadow: var(--sh);
  margin-inline: auto;
}
.about h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}
.about p {
  font-size: 1.15rem;
  max-width: 52ch;
}
/* Redes */
.social {
  position: relative;
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 20px;
  background: var(--choco);
  color: var(--crema);
  overflow: hidden;
}
.social > *:not(.deco) {
  position: relative;
  z-index: 2;
}
.social h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.social p {
  margin: 10px 0 28px;
}
.social__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
/* Footer */
.footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 24px 40px;
  padding: 44px clamp(16px, 6vw, 96px) 24px;
  background: #2a1512;
  color: #ebd9d2;
}
.footer img {
  filter: brightness(0) invert(1);
  height: 36px;
  width: auto;
  margin-bottom: 8px;
}
.footer p {
  font-size: 0.95rem;
  opacity: 0.8;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer__links a {
  text-decoration: none;
  opacity: 0.85;
}
.footer__links a:hover {
  color: var(--rosa);
}
.footer__social {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  transition: 0.25s;
}
.footer__social a:hover {
  background: var(--fucsia);
}
.footer small {
  grid-column: 1/-1;
  opacity: 0.6;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}
.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s;
}
.wa-float .ico {
  width: 32px;
  height: 32px;
}
.wa-float:hover {
  transform: scale(1.1);
}
/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(42, 21, 18, 0.94);
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  padding: 20px 8px;
}
.lb[hidden] {
  display: none;
}
.lb figure {
  display: grid;
  place-items: center;
  gap: 12px;
  min-width: 0;
}
.lb img {
  max-height: 82svh;
  max-width: 100%;
  border-radius: 14px;
  animation: pop 0.35s both;
}
.lb figcaption {
  color: #fff;
  text-align: center;
}
.lb button {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  transition: 0.2s;
}
.lb button:hover {
  background: var(--fucsia);
}
.lb__x {
  position: absolute;
  top: 14px;
  right: 14px;
}
.lb__nav {
  justify-self: center;
}
@media (max-width: 860px) {
  .nav__toggle {
    display: flex;
  }
  .nav__menu {
    position: absolute;
    top: var(--navh);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--crema);
    box-shadow: var(--sh);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }
  .nav__menu.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__menu a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--rosa);
  }
  .nav__menu .btn {
    justify-content: center;
    margin-top: 14px;
  }
  .hero,
  .about {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 0;
    text-align: left;
  }
  .hero__photo {
    max-width: 420px;
    margin: auto;
  }
  .masonry {
    columns: 2 150px;
    column-gap: 10px;
  }
  .item {
    margin-bottom: 10px;
    border-radius: 16px;
  }
  .footer {
    grid-template-columns: 1fr;
  }
  .lb {
    grid-template-columns: 1fr;
    padding: 56px 10px 20px;
  }
  .lb__nav {
    position: absolute;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
  .lb__prev {
    left: 22%;
  }
  .lb__next {
    right: 22%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.gallery__more { text-align: center; margin-top: 36px; }
.gallery--page { min-height: 80svh; }
.section-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--fucsia);
}

.item {
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.item img {
  display: block;
  height: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}
.item:hover img {
  transform: scale(1.07) translateZ(0);
}

body.loading { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  background: radial-gradient(circle at 50% 40%, var(--rosa) 0, var(--crema) 70%);
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }

.pl__cake {
  position: relative;
  width: 200px;
  height: 190px;
  animation: pl-sway 2.4s ease-in-out infinite alternate;
}
.pl__plate,
.pl__layer,
.pl__cherry {
  position: absolute;
  left: 50%;
  translate: -50% 0;
}
.pl__plate {
  bottom: 0;
  width: 200px;
  height: 14px;
  border-radius: 50%;
  background: var(--choco);
  box-shadow: 0 8px 14px -6px rgba(59,31,26,.5);
}
.pl__layer {
  border-radius: 14px 14px 8px 8px;
  animation: pl-drop 3.2s cubic-bezier(.3,1.4,.5,1) infinite both;
}
.pl__layer::before {          /* betún blanco en la parte de arriba */
  content: "";
  position: absolute;
  inset: -6px -4px auto;
  height: 16px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(0,0,0,.05);
}
.pl__l1 { bottom: 10px; width: 160px; height: 42px; background: var(--fucsia); animation-delay: 0s; }
.pl__l2 { bottom: 52px; width: 124px; height: 40px; background: #F7A8C4;       animation-delay: .35s; }
.pl__l3 { bottom: 92px; width: 88px;  height: 38px; background: var(--choco);  animation-delay: .7s; }

.pl__cherry {
  bottom: 128px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF5A98, var(--fucsia-d));
  animation: pl-cherry 3.2s cubic-bezier(.3,1.5,.5,1) infinite both;
  animation-delay: 1.1s;
}
.pl__cherry::after {          /* rabito de la cereza */
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 3px;
  height: 16px;
  background: var(--choco);
  border-radius: 3px;
  transform: rotate(18deg);
}

.pl__text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--fucsia);
  text-align: center;
}
.pl__dots i { font-style: normal; animation: pl-dot 1.2s infinite both; }
.pl__dots i:nth-child(2) { animation-delay: .2s; }
.pl__dots i:nth-child(3) { animation-delay: .4s; }

@keyframes pl-drop {
  0%   { opacity: 0; transform: translateY(-110px) scale(.9); }
  14%  { opacity: 1; transform: translateY(6px) scale(1); }
  20%  { transform: translateY(0); }
  86%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}
@keyframes pl-cherry {
  0%   { opacity: 0; transform: translateY(-120px); }
  16%  { opacity: 1; transform: translateY(8px); }
  24%  { transform: translateY(0); }
  86%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}
@keyframes pl-sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes pl-dot  { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

.lb { touch-action: none; overscroll-behavior: contain; }
.lb img { transition: transform .25s ease, opacity .25s ease; }
.lb figure { cursor: zoom-out; }
.lb img { cursor: default; }