/* Polo's Cakes — colores sacados del logo */
@font-face { font-family: "Lora"; src: url("/fonts/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dmsans.woff") format("woff"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  --coral: #E86153;
  --coral-deep: #C3503D;
  --coral-soft: #F7C9BD;
  --cream: #FDF4E4;
  --cream-2: #F5E3C9;
  --cream-3: #EED3AE;
  --choco: #622A12;
  --choco-deep: #3E1D0E;
  --ink: #4B2615;
  --ink-soft: #7A5640;
  --green: #7FA33A;
  --green-soft: #E6EFD2;
  --white: #FFFBF4;
  --radius: 22px;
  --shadow: 0 1px 0 rgba(98, 42, 18, .06), 0 10px 30px -12px rgba(98, 42, 18, .28);
  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.5; color: var(--ink);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .16 0 0 0 0 .07 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-deep); }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 700; color: var(--choco); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--choco); color: var(--cream); padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--choco); outline-offset: 2px; }

/* ---------- Avisos ---------- */
.avisos:empty { display: none; }
.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.aviso::before { content: ""; flex: 0 0 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: currentColor; }
.aviso-cerrado { background: var(--choco); color: var(--cream); }
.aviso-nuevo { background: var(--green-soft); color: #3B5413; }
.aviso-info { background: var(--cream-2); color: var(--choco); }

/* ---------- Portada ---------- */
.hero {
  position: relative; background: var(--coral); color: var(--cream);
  padding: 26px 16px 64px; text-align: center; overflow: hidden;
}
.hero::before { /* rayas suaves tipo caja de pastelería */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background: repeating-linear-gradient(115deg, var(--cream) 0 14px, transparent 14px 34px);
}
.hero > * { position: relative; }
.hero > .acceso { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--cream); text-decoration: none; background: rgba(62, 29, 14, .22); opacity: .85; }
.hero > .acceso svg { width: 13px; height: 13px; }
.hero > .acceso:hover, .hero > .acceso:focus-visible { opacity: 1; background: rgba(62, 29, 14, .4); }
.hero-logo { width: min(58vw, 236px); height: auto; margin: 0 auto 6px; filter: drop-shadow(0 12px 22px rgba(62, 29, 14, .35)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-1.5deg); } }
.hero-name { color: var(--cream); font-size: clamp(42px, 13vw, 68px); text-shadow: 0 3px 0 var(--coral-deep); }
.hero-sub { font-family: var(--display); font-style: italic; font-size: 20px; margin: 8px auto 4px; max-width: 26ch; }
.hero-where { margin: 0 0 22px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin: 0 auto; }
.scallop {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 22px;
  background: radial-gradient(circle at 18px -4px, transparent 17px, var(--cream) 18px) 0 0 / 36px 22px repeat-x;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 12px 18px; border-radius: 16px; border: 0; cursor: pointer;
  font: 700 16px/1.15 var(--body); text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn .ico { width: 21px; height: 21px; flex: 0 0 auto; }
.btn-big { min-height: 64px; flex-direction: column; gap: 4px; font-size: 15px; border-radius: 18px; }
.btn-big .ico { width: 24px; height: 24px; }
.btn-cream { background: var(--cream); color: var(--choco); box-shadow: 0 3px 0 rgba(62, 29, 14, .25); }
.btn-coral { background: var(--choco); color: var(--cream); box-shadow: 0 3px 0 var(--choco-deep); }
.btn-wa { width: 100%; background: #1F8F4E; color: #fff; min-height: 58px; font-size: 18px; box-shadow: 0 4px 0 #156638; }
.btn-wa .ico { width: 24px; height: 24px; }
.btn-wide { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; pointer-events: none; }

/* ---------- Secciones ---------- */
.sec { padding: 44px 16px 40px; }
.sec > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.sec-head { margin-bottom: 22px; }
.kicker { margin: 0 0 6px; color: var(--coral-deep); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.sec h2 { font-size: clamp(36px, 10vw, 50px); }
.lead { margin: 10px 0 0; color: var(--ink-soft); }
.sizes { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill { display: inline-flex; gap: 6px; align-items: baseline; background: var(--white); border: 1.5px solid var(--cream-3); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.size-pill b { color: var(--choco); }

/* ---------- Pendiente ---------- */
.pend {
  display: inline-block; border: 1.5px dashed var(--coral); background: rgba(232, 97, 83, .07);
  color: var(--coral-deep); border-radius: 10px; padding: 3px 9px; font-size: 14px; font-weight: 600; line-height: 1.35;
}
.pend::before { content: "Pendiente · "; font-weight: 800; letter-spacing: .04em; }
.pend.blk { display: block; padding: 10px 12px; }

/* ---------- Carta ---------- */
.chips {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 16px; margin: 0 -16px 18px !important; max-width: none !important;
  background: rgba(253, 244, 228, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-3);
}
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--cream-3); color: var(--choco); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.chip.off { opacity: .55; text-decoration: line-through; }
@media (min-width: 720px) { .chips { justify-content: center; } }

.cards { display: grid; gap: 26px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 70px; }
.card.agotada .gal { filter: grayscale(.7) opacity(.75); }
.gal { position: relative; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; scroll-snap-align: center; background: var(--cream-2); }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gal-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 251, 244, .55); box-shadow: 0 0 0 1px rgba(62, 29, 14, .15); transition: all .2s; }
.gal-dots i.on { width: 20px; border-radius: 6px; background: var(--white); }
.gal-count { position: absolute; top: 12px; right: 12px; background: rgba(62, 29, 14, .62); color: var(--cream); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.gal-hint { position: absolute; bottom: 30px; right: 12px; font-size: 12px; font-weight: 700; color: var(--white); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.gal-note { position: absolute; left: 12px; right: 12px; top: 12px; width: fit-content; max-width: calc(100% - 70px); background: var(--cream); color: var(--coral-deep); border: 1.5px dashed var(--coral); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 9px; }
.gal-empty { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--cream-2); }
.gal-arrow { display: none; }
@media (hover: hover) and (min-width: 720px) {
  .gal-arrow { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 251, 244, .9); color: var(--choco); font-size: 20px; cursor: pointer; box-shadow: var(--shadow); }
  .gal-arrow.prev { left: 10px; } .gal-arrow.next { right: 10px; }
}
.tag { position: absolute; top: 14px; left: -6px; background: var(--green); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px 6px 16px; border-radius: 0 10px 10px 0; box-shadow: 0 3px 0 #5C7A26; }
.tag.agot { background: var(--choco); box-shadow: 0 3px 0 var(--choco-deep); }

.card-body { padding: 18px 18px 20px; }
.card h3 { font-size: 30px; }
.frase { margin: 4px 0 0; font-family: var(--display); font-style: italic; font-size: 18px; color: var(--coral-deep); }
.desc { margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.price { position: relative; background: var(--cream); border-radius: 16px; padding: 10px 12px; border: 1.5px solid var(--cream-3); }
.price small { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.25; }
.price b { display: block; font-family: var(--display); font-style: italic; font-size: 28px; color: var(--choco); line-height: 1.1; }
.alg { margin: 14px 0 0; font-size: 14px; }
.alg-t { font-weight: 800; color: var(--choco); margin-right: 4px; }
.alg-list { display: inline; }
.al { display: inline-block; margin: 3px 3px 0 0; padding: 3px 9px; border-radius: 999px; background: #FBE7D5; color: var(--choco); font-weight: 600; font-size: 13px; }
.al.traza { background: transparent; border: 1px dashed var(--ink-soft); color: var(--ink-soft); }
.card .btn { margin-top: 16px; width: 100%; }
.btn-order { background: var(--coral); color: #fff; box-shadow: 0 3px 0 var(--coral-deep); }
.note-alerg { margin-top: 22px !important; font-size: 14px; color: var(--ink-soft); }

/* ---------- Pedido ---------- */
.sec-pedido { background: var(--cream-2); }
.form { background: var(--white); border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.lbl { font-weight: 800; color: var(--choco); font-size: 15px; padding: 0; }
.lbl em { font-weight: 500; color: var(--ink-soft); font-style: normal; }
select, input, textarea {
  width: 100%; font: 500 17px/1.3 var(--body); color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--cream-3); border-radius: 14px; padding: 13px 14px; min-height: 52px; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23622A12' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(232, 97, 83, .2); }
textarea { resize: vertical; min-height: 64px; }
.hint { font-size: 13px; color: var(--ink-soft); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 8px; border-radius: 14px; border: 1.5px solid var(--cream-3); background: var(--cream); line-height: 1.25; }
.seg span b { display: block; font-size: 17px; color: var(--choco); }
.seg span small { font-size: 13px; color: var(--ink-soft); }
.seg span i { display: block; font-style: italic; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--coral-deep); }
.seg input:checked + span { border-color: var(--coral); background: #FDE9E3; box-shadow: 0 0 0 3px rgba(232, 97, 83, .18); }
.seg input:focus-visible + span { outline: 3px solid var(--choco); }
.alerg-box { border-radius: 14px; padding: 12px 14px; background: #FBEFE3; border: 1.5px solid var(--cream-3); font-size: 14px; }
.alerg-box:empty { display: none; }
.alerg-box .alg { margin: 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.total:empty { display: none; }
.total b { font-family: var(--display); font-style: italic; font-size: 30px; color: var(--choco); }
.form-err { margin: 0; color: var(--coral-deep); font-weight: 700; }
.form-err:empty { display: none; }

/* ---------- Encargos ---------- */
.sec-encargos { position: relative; background: var(--choco); color: var(--cream); padding-top: 60px; }
.sec-encargos::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 22px; background: radial-gradient(circle at 18px 26px, transparent 17px, var(--cream-2) 18px) 0 0 / 36px 22px repeat-x; }
.sec-encargos h2 { color: var(--cream); }
.sec-encargos .kicker { color: var(--coral-soft); }
.encargos-body { display: grid; gap: 16px; }
.encargos-body p { margin: 0; }
.encargos-sizes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.encargos-sizes li { border: 1.5px solid rgba(253, 244, 228, .3); border-radius: 16px; padding: 12px; }
.encargos-sizes b { display: block; font-family: var(--display); font-style: italic; font-size: 26px; color: var(--coral-soft); }
.sec-encargos .pend { background: rgba(253, 244, 228, .08); color: var(--coral-soft); border-color: var(--coral-soft); }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; background: var(--white); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--coral); color: #fff; font: italic 700 24px/1 var(--display); }
.steps h3 { font-size: 22px; }
.steps p { margin: 4px 0 0; color: var(--ink-soft); }

/* ---------- Horario y ubicación ---------- */
.sec-donde { background: var(--cream-2); }
.donde-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .donde-grid { grid-template-columns: 1fr 1fr; } }
.card-plain { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card-plain h3 { font-size: 24px; margin-bottom: 10px; }
.hor { width: 100%; border-collapse: collapse; font-size: 16px; }
.hor td { padding: 8px 0; border-bottom: 1px dashed var(--cream-3); }
.hor td:last-child { text-align: right; font-weight: 700; color: var(--choco); }
.hor tr.hoy td { color: var(--coral-deep); }
.hor tr.hoy td:first-child::after { content: " · hoy"; font-weight: 700; }
.hor .cerr { color: var(--ink-soft) !important; font-weight: 500 !important; }
.ub p { margin: 0 0 10px; }
.ub .btn { width: 100%; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 16px; font-weight: 700; color: var(--choco); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: italic 700 26px/1 var(--display); color: var(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 16px 16px; color: var(--ink-soft); }
.faq .a p { margin: 0; }

/* ---------- Pie ---------- */
.foot { background: var(--choco-deep); color: var(--cream-2); text-align: center; padding: 36px 16px calc(96px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot img { width: 72px; height: 72px; margin: 0 auto 8px; }
.foot-name { font: italic 700 26px/1.1 var(--display); color: var(--cream); margin: 0 0 10px; }
.foot a { color: var(--cream); }
.foot p { margin: 6px auto; max-width: 560px; }
.foot-legal { opacity: .85; }
.foot-legal .pend { color: var(--coral-soft); border-color: var(--coral-soft); background: transparent; }
.foot-src { opacity: .55; font-size: 12px; }

/* ---------- Botón flotante ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; height: 54px; border-radius: 999px;
  background: var(--coral); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none;
  box-shadow: 0 4px 0 var(--coral-deep), 0 12px 26px -8px rgba(62, 29, 14, .5);
  transform: translateY(120px); transition: transform .25s ease;
}
.fab.show { transform: none; }
.nojs { background: var(--choco); color: var(--cream); padding: 16px; margin: 0; text-align: center; }

/* ---------- Página legal ---------- */
.legal-top { background: var(--coral); padding: 18px 16px 40px; position: relative; text-align: center; }
.legal-top a { color: var(--cream); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.legal-top img { width: 56px; height: 56px; }
.legal { padding: 24px 16px 60px; max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: 40px; margin-bottom: 8px; }
.legal h2 { font-size: 28px; margin: 34px 0 10px; }
.legal h3 { font-size: 20px; margin: 20px 0 6px; font-style: normal; font-family: var(--body); }
.legal p, .legal li { color: var(--ink); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; background: var(--white); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.legal dt { font-weight: 800; color: var(--choco); }
.legal dd { margin: 0; }
@media (max-width: 420px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }
