/* ============================================================
   Migajón Pastelería — Digital Bee demo (esencial)
   Editorial suizo suave · papel crema · acento caramelo
   ============================================================ */

:root{
  --bg:#FBF6EE;
  --surface:#F4EADB;
  --fg:#3A2A1C;
  --muted:#7A6452;
  --accent:#A85A28;
  --line:#E4D5C2;

  /* Acento más oscuro SOLO para texto chico sobre bg/surface (AA holgado) */
  --accent-ink:#8A4516;

  --wa:#25D366;
  --wa-ink:#128C3E;

  --maxw:1180px;
  --gutter:clamp(1.25rem, 4vw, 4rem);
  --radius:18px;
  --radius-lg:26px;

  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);

  --shadow:0 18px 50px -28px rgba(58,42,28,.45);
  --shadow-soft:0 10px 34px -22px rgba(58,42,28,.4);

  --font-display:"Fraunces", Georgia, "Times New Roman", serif;
  --font-body:"Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

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

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:96px;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--font-body);
  font-size:clamp(1rem,.96rem + .25vw,1.08rem);
  line-height:1.65;
  font-weight:400;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{display:block;max-width:100%;height:auto;}
a{color:inherit;}

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:500;
  line-height:1.04;
  letter-spacing:-.012em;
  margin:0;
  color:var(--fg);
}
em{font-style:italic;}

p{margin:0 0 1rem;}
p:last-child{margin-bottom:0;}

::selection{background:var(--accent);color:#fff;}

:focus-visible{
  outline:2.5px solid var(--accent-ink);
  outline-offset:3px;
  border-radius:4px;
}

/* ---------- Layout helpers ---------- */
.section{
  max-width:var(--maxw);
  margin:0 auto;
  padding:clamp(4.5rem,9vw,8rem) var(--gutter);
}

.eyebrow{
  font-family:var(--font-body);
  font-size:.74rem;
  font-weight:600;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--accent-ink);
  margin:0 0 1.1rem;
  display:flex;
  align-items:center;
  gap:.7rem;
}
.eyebrow::before{
  content:"";
  width:26px;height:2px;
  background:var(--accent);
  border-radius:2px;
}

/* ---------- Buttons ---------- */
.btn{
  --pad-y:.85em;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55em;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.96rem;
  letter-spacing:.01em;
  padding:var(--pad-y) 1.5em;
  border-radius:999px;
  text-decoration:none;
  cursor:pointer;
  border:1.5px solid transparent;
  transition:transform .4s var(--ease-out), background .3s var(--ease), color .3s var(--ease), box-shadow .4s var(--ease);
  will-change:transform;
}
.btn--solid{
  background:var(--accent);
  color:#fff;
  box-shadow:var(--shadow-soft);
}
.btn--solid:hover{transform:translateY(-2px);background:var(--accent-ink);}
.btn--ghost{
  background:transparent;
  color:var(--accent-ink);
  border-color:var(--line);
}
.btn--ghost:hover{transform:translateY(-2px);border-color:var(--accent);background:#fff;}

/* ---------- DEMO bar ---------- */
.db-bar{
  position:fixed;
  top:0;left:0;right:0;
  height:34px;
  background:var(--fg);
  display:flex;align-items:center;justify-content:center;
  z-index:1000;
  font-size:.74rem;
  letter-spacing:.02em;
}
.db-bar__link{
  color:#F2E6D6;
  text-decoration:none;
  font-weight:500;
  padding:0 1rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.db-bar__cta{color:#F0B27A;font-weight:600;text-decoration:underline;text-underline-offset:2px;}

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:34px;
  z-index:900;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  padding:.75rem var(--gutter);
  background:rgba(251,246,238,.82);
  backdrop-filter:saturate(140%) blur(12px);
  -webkit-backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid var(--line);
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  text-decoration:none;
  color:var(--fg);
}
.brand__mark{color:var(--accent);display:inline-flex;}
.brand__name{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.32rem;
  letter-spacing:-.01em;
}
.nav{display:flex;align-items:center;gap:clamp(.6rem,1.6vw,1.7rem);}
.nav a{
  text-decoration:none;
  color:var(--muted);
  font-weight:500;
  font-size:.95rem;
  position:relative;
  padding:.2rem 0;
  transition:color .3s var(--ease);
}
.nav a:not(.nav__cta)::after{
  content:"";
  position:absolute;left:0;right:100%;bottom:-2px;
  height:1.5px;background:var(--accent);
  transition:right .35s var(--ease-out);
}
.nav a:hover{color:var(--fg);}
.nav a:hover::after{right:0;}
.nav__cta{
  color:var(--accent-ink)!important;
  border:1.5px solid var(--line);
  border-radius:999px;
  padding:.5rem 1.05rem!important;
  transition:background .3s var(--ease), border-color .3s var(--ease);
}
.nav__cta:hover{background:#fff;border-color:var(--accent);}

/* ---------- HERO ---------- */
.hero{
  max-width:var(--maxw);
  margin:0 auto;
  min-height:calc(100svh - 130px);
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:clamp(2rem,5vw,5rem);
  padding:clamp(2.5rem,6vw,5rem) var(--gutter) clamp(3rem,6vw,5rem);
}
.hero__copy{max-width:38ch;}
.hero__title{
  font-size:clamp(2.9rem,7vw,5.2rem);
  font-weight:500;
  margin:.2rem 0 1.3rem;
}
.hero__title em{color:var(--accent-ink);}
.hero__lead{
  color:var(--muted);
  font-size:clamp(1.05rem,1rem + .4vw,1.22rem);
  line-height:1.6;
  margin-bottom:1.8rem;
}
.hero__actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-bottom:2.4rem;}
.hero__facts{
  list-style:none;margin:0;padding:1.5rem 0 0;
  border-top:1px solid var(--line);
  display:grid;gap:.7rem;
}
.hero__facts li{
  font-size:.94rem;color:var(--muted);
  display:flex;align-items:baseline;gap:.55rem;
}
.hero__facts li::before{
  content:"";flex:0 0 auto;width:6px;height:6px;margin-top:.1rem;
  border-radius:50%;background:var(--accent);
}
.hero__facts span{color:var(--fg);font-weight:600;}

.hero__media{
  position:relative;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
  aspect-ratio:4/5;
}
.hero__media img{width:100%;height:100%;object-fit:cover;}
.hero__tag{
  position:absolute;left:1.1rem;bottom:1.1rem;
  background:var(--bg);color:var(--accent-ink);
  font-size:.76rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  padding:.5rem .9rem;border-radius:999px;
  box-shadow:var(--shadow-soft);
}

/* ---------- Value strip ---------- */
.strip{
  background:var(--surface);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.strip__list{
  max-width:var(--maxw);
  margin:0 auto;
  list-style:none;padding:clamp(1.6rem,3vw,2.3rem) var(--gutter);
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:clamp(1rem,3vw,2.5rem);
}
.strip__list li{display:flex;flex-direction:column;gap:.15rem;}
.strip__list strong{
  font-family:var(--font-display);
  font-weight:600;font-size:1.16rem;color:var(--fg);
}
.strip__list span{font-size:.9rem;color:var(--muted);}

/* ---------- Story ---------- */
.story{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:clamp(2rem,5vw,4.5rem);
  align-items:center;
}
.story__media{
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
  aspect-ratio:4/5;
}
.story__media img{width:100%;height:100%;object-fit:cover;}
.story__title{
  font-size:clamp(2rem,3.5vw,3.1rem);
  margin-bottom:1.4rem;
}
.story__copy p{color:var(--muted);max-width:54ch;}
.signature{
  font-family:var(--font-display);
  font-style:italic;
  color:var(--accent-ink);
  margin-top:1.4rem;
}

/* ---------- Menu ---------- */
.menu__head{max-width:60ch;margin-bottom:clamp(2.5rem,4vw,3.5rem);}
.menu__title{font-size:clamp(2.2rem,4vw,3.4rem);margin-bottom:1.1rem;}
.menu__intro{color:var(--muted);font-size:1.06rem;}
.menu__grid{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:clamp(1.2rem,2.4vw,2rem);
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;flex-direction:column;
  box-shadow:var(--shadow-soft);
  transition:transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
.card:hover{transform:translateY(-6px);box-shadow:var(--shadow);}
.card__media{aspect-ratio:5/4;overflow:hidden;background:var(--surface);}
.card__media img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .8s var(--ease-out);
}
.card:hover .card__media img{transform:scale(1.05);}
.card__body{padding:1.25rem 1.3rem 1.5rem;display:flex;flex-direction:column;gap:.55rem;flex:1;}
.card__top{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;}
.card__name{font-size:1.18rem;font-weight:600;}
.card__price{
  font-family:var(--font-display);
  font-weight:600;font-size:1.05rem;color:var(--accent-ink);
  white-space:nowrap;
}
.card__desc{color:var(--muted);font-size:.95rem;line-height:1.55;margin:0;flex:1;}
.card__tag{
  align-self:flex-start;
  font-size:.72rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;
  color:var(--accent-ink);
  background:var(--surface);
  padding:.32rem .7rem;border-radius:999px;
}
.menu__foot{
  margin-top:clamp(2rem,3.5vw,3rem);
  text-align:center;color:var(--muted);
}
.menu__foot a{color:var(--accent-ink);font-weight:600;text-underline-offset:3px;}

/* ---------- Gallery ---------- */
.gallery{background:var(--surface);max-width:none;}
.gallery__head{
  max-width:var(--maxw);margin:0 auto clamp(2rem,3vw,3rem);
  padding:0 var(--gutter);
}
.gallery__title{font-size:clamp(2rem,3.5vw,3rem);}
.gallery__grid{
  max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter);
  display:grid;grid-template-columns:1.1fr 1fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:clamp(.9rem,1.8vw,1.4rem);
  height:clamp(420px,52vw,620px);
}
.gallery__item{
  margin:0;overflow:hidden;border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
}
.gallery__item--tall{grid-row:span 2;}
.gallery__item img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .9s var(--ease-out);
}
.gallery__item:hover img{transform:scale(1.06);}

/* ---------- Visit ---------- */
.visit{
  display:grid;grid-template-columns:1fr 1fr;
  gap:clamp(2rem,5vw,4.5rem);align-items:center;
}
.visit__title{font-size:clamp(2rem,3.5vw,3rem);margin-bottom:1.2rem;}
.visit__copy>p{color:var(--muted);max-width:46ch;margin-bottom:2rem;}
.visit__info{margin:0;display:grid;gap:1.3rem;}
.visit__info div{
  display:grid;grid-template-columns:130px 1fr;gap:.8rem;
  padding-top:1.1rem;border-top:1px solid var(--line);
}
.visit__info dt{
  font-weight:600;color:var(--accent-ink);
  font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;
}
.visit__info dd{margin:0;color:var(--fg);}
.visit__info a{color:var(--accent-ink);text-decoration:none;text-underline-offset:3px;}
.visit__info a:hover{text-decoration:underline;}
.visit__closed{color:var(--muted);font-style:italic;}
.visit__map{
  margin:0;border-radius:var(--radius-lg);overflow:hidden;
  box-shadow:var(--shadow);position:relative;
}
.visit__map img{width:100%;aspect-ratio:5/4;object-fit:cover;}
.visit__map figcaption{
  position:absolute;left:0;right:0;bottom:0;
  background:linear-gradient(to top,rgba(58,42,28,.85),rgba(58,42,28,0));
  color:#F4EADB;font-size:.85rem;font-weight:500;
  padding:2.2rem 1.2rem .95rem;
}

/* ---------- Order / form ---------- */
.order{max-width:none;background:var(--surface);}
.order__inner{
  max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter);
  display:grid;grid-template-columns:.85fr 1.15fr;
  gap:clamp(2rem,5vw,4.5rem);align-items:start;
}
.order__title{font-size:clamp(2rem,3.5vw,3rem);margin-bottom:1.1rem;}
.order__intro>p{color:var(--muted);max-width:42ch;}
.order__hint{
  font-size:.88rem;color:var(--muted);
  border-left:3px solid var(--accent);
  padding-left:.9rem;margin-top:1.4rem;font-style:italic;
}
.order__form{
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:clamp(1.5rem,3vw,2.4rem);
  display:grid;grid-template-columns:1fr 1fr;
  gap:1.1rem;
  box-shadow:var(--shadow-soft);
}
.field{display:flex;flex-direction:column;gap:.4rem;}
.field--full{grid-column:1/-1;}
.field label{font-weight:600;font-size:.86rem;color:var(--fg);}
.field input,
.field select,
.field textarea{
  font-family:var(--font-body);
  font-size:.98rem;
  color:var(--fg);
  background:#fff;
  border:1.5px solid var(--line);
  border-radius:12px;
  padding:.72rem .85rem;
  width:100%;
  transition:border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder{color:#8A7259;}
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(168,90,40,.16);
}
.field textarea{resize:vertical;min-height:84px;}
.order__submit{
  display:flex;align-items:center;gap:1rem;flex-wrap:wrap;
  margin-top:.3rem;
}
.order__status{font-size:.9rem;color:var(--accent-ink);font-weight:500;}

/* ---------- Digital Bee CTA ---------- */
.db-cta{text-align:center;}
.db-cta__inner{
  max-width:640px;margin:0 auto;
  background:var(--fg);
  border-radius:var(--radius-lg);
  padding:clamp(2.5rem,5vw,4rem) clamp(1.5rem,4vw,3rem);
  box-shadow:var(--shadow);
}
.db-cta__eyebrow{
  color:#F0B27A;font-weight:600;font-size:.76rem;
  letter-spacing:.22em;text-transform:uppercase;margin-bottom:1rem;
}
.db-cta__title{color:#FBF6EE;font-size:clamp(1.8rem,3.5vw,2.7rem);margin-bottom:1rem;}
.db-cta__text{color:#D9C7B4;max-width:46ch;margin:0 auto 2rem;}
.btn--wa{background:var(--wa);color:#06351B;box-shadow:0 14px 36px -18px rgba(18,140,62,.8);}
.btn--wa:hover{transform:translateY(-2px);background:#1FBE5C;}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--bg);
  border-top:1px solid var(--line);
  padding:clamp(3rem,5vw,4rem) var(--gutter) 1.8rem;
}
.site-footer__top{
  max-width:var(--maxw);margin:0 auto;
  display:grid;grid-template-columns:1.4fr 1fr 1fr;
  gap:2rem;padding-bottom:2.2rem;
  border-bottom:1px solid var(--line);
}
.site-footer__brand .brand__name{font-size:1.4rem;display:block;margin-bottom:.6rem;}
.site-footer__brand p{color:var(--muted);max-width:34ch;font-size:.95rem;}
.site-footer__nav{display:flex;flex-direction:column;gap:.5rem;}
.site-footer__nav a{color:var(--muted);text-decoration:none;font-size:.95rem;width:fit-content;}
.site-footer__nav a:hover{color:var(--accent-ink);}
.site-footer__contact p{color:var(--muted);font-size:.95rem;margin:0 0 .4rem;}
.site-footer__contact a{color:var(--fg);text-decoration:none;}
.site-footer__contact a:hover{color:var(--accent-ink);}
.site-footer__base{
  max-width:var(--maxw);margin:1.6rem auto 0;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:.6rem;
  font-size:.84rem;color:var(--muted);
}
.site-footer__base a{color:var(--accent-ink);text-decoration:none;font-weight:500;}

/* ---------- Floating WhatsApp ---------- */
.wa-float{
  position:fixed;right:clamp(1rem,3vw,1.8rem);bottom:clamp(1rem,3vw,1.8rem);
  width:58px;height:58px;border-radius:50%;
  background:var(--wa);color:#fff;
  display:flex;align-items:center;justify-content:center;
  z-index:950;
  box-shadow:0 12px 30px -10px rgba(18,140,62,.7);
  transition:transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.wa-float:hover{transform:translateY(-3px) scale(1.05);box-shadow:0 18px 40px -12px rgba(18,140,62,.8);}

/* ============================================================
   Reveal animations (FOUC-safe: only under html.js-on)
   ============================================================ */
.js-on .reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .85s var(--ease-out), transform .85s var(--ease-out);
  will-change:opacity, transform;
}
.js-on .reveal.is-in{opacity:1;transform:none;}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:980px){
  .hero{grid-template-columns:1fr;gap:2.5rem;min-height:auto;}
  .hero__media{aspect-ratio:16/11;}
  .story{grid-template-columns:1fr;}
  .story__media{max-width:440px;}
  .menu__grid{grid-template-columns:repeat(2,1fr);}
  .visit{grid-template-columns:1fr;}
  .order__inner{grid-template-columns:1fr;}
  .strip__list{grid-template-columns:repeat(2,1fr);}
  .site-footer__top{grid-template-columns:1fr 1fr;}
}

@media (max-width:768px){
  html{scroll-padding-top:80px;}
  .nav{display:none;}
  .menu__grid{grid-template-columns:1fr;}
  .order__form{grid-template-columns:1fr;}
  .gallery__grid{
    grid-template-columns:1fr 1fr;grid-template-rows:auto;height:auto;
  }
  .gallery__item{aspect-ratio:4/3;}
  .gallery__item--tall{grid-column:1/-1;grid-row:auto;aspect-ratio:16/9;}
  .site-footer__top{grid-template-columns:1fr;gap:1.6rem;}
  .visit__info div{grid-template-columns:1fr;gap:.3rem;}
}

@media (max-width:430px){
  .strip__list{grid-template-columns:1fr;}
  .hero__actions{flex-direction:column;align-items:stretch;}
  .hero__actions .btn{width:100%;}
}

/* ============================================================
   Reduced motion: everything visible, no transforms
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{
    animation-duration:.001ms!important;
    transition-duration:.001ms!important;
  }
  .js-on .reveal{opacity:1!important;transform:none!important;}
}
