@font-face {
  font-family: "Comfortaa";
  src: url("fonts/Comfortaa-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Moriarty";
  src: url("fonts/Moriarty_0.ttf") format("truetype");
  font-display: swap;
}

:root {
  --rose: #e17389;
  --rose-dark: #c75a72;
  --blush: #f0c4cf;
  --mint: #ceeed5;
  --bg: #f7fff6;
  --grey: #f4f3f4;
  --ink: #1e1e1e;
  --bite: radial-gradient(circle 11px at calc(100% - 22px) 0, #0000 97%, #000) ,
          radial-gradient(circle 8px at calc(100% - 4px) 8px, #0000 97%, #000);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Comfortaa", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, var(--blush) 0 160px, transparent 161px),
    radial-gradient(circle at 100% 100%, var(--mint) 0 200px, transparent 201px),
    var(--bg);
  background-attachment: fixed;
}

.page {
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow: hidden;
}

/* Cabecera con mordisco */
.hero {
  position: relative;
  height: 260px;
  --m: radial-gradient(circle 26px at 82% 100%, #0000 98%, #000),
       radial-gradient(circle 20px at calc(82% + 34px) calc(100% - 4px), #0000 98%, #000),
       radial-gradient(circle 15px at calc(82% + 56px) 100%, #0000 98%, #000);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 40%;
  display: block;
  border-radius: 0 0 44px 44px;
  -webkit-mask-image: var(--m);
  mask-image: var(--m);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0 0 44px 44px;
  background: linear-gradient(180deg, #e1738922, #e1738955);
  pointer-events: none;
  -webkit-mask-image: var(--m);
  mask-image: var(--m);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero__badge {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -38px;
  translate: -50% 0;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px #e1738940;
}
.hero__badge img { width: 58px; height: 58px; }

/* Marca */
.brand {
  padding: 56px 24px 20px;
  text-align: center;
}
.brand__logo { margin: 0; }
.brand__logo img { width: min(78%, 280px); height: auto; }
.brand__tag {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--rose-dark);
}

/* Botones */
.links {
  display: grid;
  gap: 14px;
  padding: 8px 24px 0;
}
.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  -webkit-mask-image: var(--bite);
  mask-image: var(--bite);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transition: transform .15s ease, filter .15s ease;
  animation: rise .5s both;
}
.btn span { flex: 1; text-align: center; padding-right: 26px; }
.btn svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.600;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--primary { background: var(--rose); color: #fff; font-size: 18px; min-height: 64px; }
.btn--pink { background: var(--blush); }
.btn--mint { background: var(--mint); }
.btn:nth-child(1) { animation-delay: .05s; }
.btn:nth-child(2) { animation-delay: .12s; }
.btn:nth-child(3) { animation-delay: .19s; }
.btn:nth-child(4) { animation-delay: .26s; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: scale(.97); }

/* Contacto */
.social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.500px solid var(--rose);
  color: var(--rose-dark);
  transition: background .15s, color .15s, transform .15s;
}
.social a:hover { background: var(--rose); color: #fff; }
.social a:active { transform: scale(.94); }
.social svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.600;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social circle[r=".6"] { fill: currentColor; }

/* Pie */
.foot {
  margin-top: 34px;
  text-align: center;
  font-size: 12px;
  color: var(--rose-dark);
}
.foot__img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 12px;
  border: 4px solid var(--blush);
}
.foot p { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { animation: none; transition: none; }
}

/* Escritorio: se muestra como pantalla de móvil */
@media (min-width: 560px) {
  body { display: grid; place-items: start center; padding: 32px 0; }
  .page {
    min-height: 0;
    border-radius: 36px;
    box-shadow: 0 20px 60px #e1738933;
  }
}

/* Horarios */
.hours {
  margin: 30px 24px 0;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--grey);
  text-align: center;
}
.hours h2 {
  margin: 0 0 10px;
  font-family: "Moriarty", serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--rose-dark);
}
.hours dl { margin: 0; display: grid; gap: 6px; }
.hours dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }

/* Páginas Dulces / Salados */
.hero--sub { height: 180px; }
.back {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #fff;
  color: var(--rose-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px #0002;
}
.brand--sub { padding-top: 54px; padding-bottom: 6px; }
.brand--sub .brand__logo img { width: min(60%, 210px); }
.section-title {
  margin: 14px 0 0;
  font-family: "Moriarty", serif;
  font-weight: 400;
  font-size: 40px;
  color: var(--rose);
  text-align: center;
}
.section-title--mint { color: #5aa56d; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 18px 24px 8px;
  list-style: none;
}
.grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--blush);
  overflow: hidden;
  cursor: zoom-in;
  -webkit-mask-image: var(--bite);
  mask-image: var(--bite);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transition: transform .15s ease;
}
.grid button:active { transform: scale(.97); }
.grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.order { padding: 18px 24px 0; }
.order .btn { animation-delay: .1s; }

dialog.lightbox {
  width: min(92vw, 520px);
  max-height: 90dvh;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  overflow: visible;
}
dialog.lightbox::backdrop { background: #1e1e1ecc; }
dialog.lightbox img {
  width: 100%;
  max-height: 85dvh;
  object-fit: contain;
  border-radius: 24px;
  display: block;
}
.lightbox__close {
  position: absolute;
  top: -14px;
  right: -6px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--rose-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.foot__credit { margin-top: 6px !important; font-size: 11px; opacity: .85; }
.foot__credit a { color: inherit; font-weight: 700; text-underline-offset: 2px; }
