/* =========================================================
   Krümel Pastelería Artesanal — estilos propios
   (Tailwind cubre lo general; acá va lo específico)
   ========================================================= */

/* ---------- Tipografía de títulos: Kaoly Demo ----------
   Copiá el archivo de la fuente a la carpeta fonts/ con alguno de estos nombres.
   (Si solo tenés .ttf u .otf alcanza; el navegador usa el primero que encuentre.) */
@font-face {
  font-family: "Kaoly Demo";
  src: url("../fonts/KaolyDemo.woff2") format("woff2"),
       url("../fonts/KaolyDemo.woff")  format("woff"),
       url("../fonts/KaolyDemo.otf")   format("opentype"),
       url("../fonts/KaolyDemo.ttf")   format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta de Krümel */
  --bordo: #70150E;   /* palabra "Krümel" */
  --rosa:  #F18989;   /* diéresis de la ü */
  --oliva: #C1C144;   /* fondos */
  --crema: #EFEFD3;   /* oliva clarito, para alternar secciones */
  --card:  #FBFBF0;   /* tarjetas */
  --wa: #25D366;
  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h); /* que la navbar no tape el título al bajar */
}

/* ---------- Hero: ocupa todo el alto de la pantalla ---------- */
.hero {
  height: 100vh;
  height: 100svh; /* evita saltos por la barra del navegador en celulares */
  min-height: 560px;
  background: linear-gradient(135deg, var(--bordo), #A8473C); /* se ve si falta la foto */
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 10;
  color: #fff;
  font-size: 1.25rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ---------- Navbar ---------- */
#navbar {
  color: #fff;
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
#navbar.scrolled,
#navbar.menu-open {
  color: var(--bordo);
  background-color: rgba(193, 193, 68, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(112, 21, 14, .12);
}

.nav-link {
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--rosa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
#navbar.scrolled .nav-link::after { background: var(--bordo); }

/* Botón "Hacer pedido" del menú */
.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.2rem; border-radius: 999px;
  border: 2px solid currentColor; font-weight: 600;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.nav-cta:hover { background: #fff; color: var(--bordo); border-color: #fff; }
#navbar.scrolled .nav-cta { background: var(--bordo); color: #fff; border-color: var(--bordo); }
#navbar.scrolled .nav-cta:hover { background: #540F0A; border-color: #540F0A; }

.mobile-link.active { text-decoration: underline; text-decoration-color: var(--bordo); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- Logo ---------- */
.logo { display: block; width: auto; max-width: 100%; }

.nav-logo         { position: relative; display: block; }
.nav-logo .logo   { height: 48px; }
.hero-logo        { margin: 0; }
.hero-logo .logo  { height: clamp(120px, 26vw, 240px); margin: 0 auto;
                    filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.footer-logo .logo{ height: 56px; }

/* Menú: logo blanco sobre la foto; al bajar (fondo oliva) aparece el logo original */
.nav-logo .logo-color { display: none; }
#navbar.scrolled .logo-blanco,
#navbar.menu-open .logo-blanco { display: none; }
#navbar.scrolled .logo-color,
#navbar.menu-open .logo-color  { display: block; }

/* ---------- Botones ---------- */
.btn-primary,
.btn-ghost,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--bordo); color: #fff; }
.btn-primary:hover { background: #540F0A; transform: translateY(-2px); }

.btn-ghost { border: 2px solid rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--bordo); transform: translateY(-2px); }

.btn-whatsapp { background: var(--wa); color: #fff; font-size: 1.05rem; }
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }

/* ---------- Títulos de sección ---------- */
.section-kicker {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--bordo);
  opacity: .8;
}
.section-title {
  font-family: "Kaoly Demo", serif;
  font-weight: normal;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin-top: .5rem;
}

/* ---------- Marcos de imagen 1080x1350 (4:5) ---------- */
.img-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1.25rem;
  background: linear-gradient(160deg, var(--card), var(--rosa));
}
.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem;
  text-align: center;
  font-family: "Kaoly Demo", serif;
  font-size: 1.3rem;
  color: rgba(112, 21, 14, .7);
}
.img-placeholder i { font-size: 2rem; color: var(--bordo); }

/* ---------- Línea de tiempo ---------- */
.timeline {
  list-style: none;
  border-left: 2px solid rgba(112, 21, 14, .3);
  padding-left: 1.5rem;
  display: grid;
  gap: 1.1rem;
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 7px);
  top: .35rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--rosa);
  box-shadow: 0 0 0 4px var(--oliva);
}
.timeline span {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bordo);
}

/* ---------- Carrusel ---------- */
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 4px 8px;
  margin: -4px;
  outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 82%;              /* celular: 1 foto + un pedacito de la siguiente */
  scroll-snap-align: start;
}
@media (min-width: 640px)  { .carousel-slide { flex-basis: calc((100% - 20px) / 2); } } /* tablet: 2 */
@media (min-width: 1024px) { .carousel-slide { flex-basis: calc((100% - 40px) / 3); } } /* desktop: 3 */

.carousel-slide:hover .img-frame img { transform: scale(1.04); }

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--bordo);
  color: var(--bordo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.carousel-btn:hover:not(:disabled) { background: var(--bordo); color: #fff; }
.carousel-btn:disabled { opacity: .3; cursor: default; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.75rem;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 999px;
  background: rgba(112, 21, 14, .25);
  transition: width .25s ease, background-color .25s ease;
}
.dot.active { width: 26px; background: var(--bordo); }

/* ---------- Contacto ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--crema);
  font-weight: 500;
  font-size: .9rem;
}
.chip i { color: var(--bordo); }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: 0 6px 24px rgba(112, 21, 14, .08);
  transition: transform .2s ease, box-shadow .2s ease;
  word-break: break-word;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(112, 21, 14, .14); }
.contact-card i { font-size: 1.6rem; color: var(--rosa); margin-bottom: .5rem; }
.contact-card .label { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; opacity: .6; }
.contact-card .value { font-weight: 700; font-size: 1.05rem; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 40;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Animación de aparición ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint { animation: none; }
}

/* ---------- Cartel de promo temporal (js/promo.js) ---------- */
.promo-bar {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .5rem 16px;
  background: var(--rosa); color: var(--bordo);
  font-size: .88rem; line-height: 1.35; text-align: center;
  text-decoration: none;
}
.promo-bar:hover span { text-decoration: underline; }
