/* ==========================================================================
   Le Bon Plaisir — estilos
   Mobile-first. Paleta y tipografía definidas como variables.
   ========================================================================== */

/* ---------- Fuentes autohospedadas ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-300.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-400.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-500.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
  --cacao: #1C1714;
  --crema: #F6F1EA;
  --lino: #E8DFD3;
  --oro: #C9A14A;
  --oro-antiguo: #7A5E24;
  --taupe: #5C5049;
  --borde: #E0D5C7;
  --crema-suave: rgba(246, 241, 234, 0.72);
  --linea-oscura: rgba(246, 241, 234, 0.16);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1240px;
  --gutter: 20px;
  --nav-h: 72px;
  --radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--crema);
  color: var(--cacao);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4, .h2, .price, .step__num, .phone a, blockquote {
  font-variant-numeric: lining-nums;
}
h1, h2, h3, h4, .h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
}
em { font-style: italic; font-weight: 400; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
[id] { scroll-margin-top: var(--nav-h); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--oro); color: var(--cacao); padding: 12px 20px; border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ---------- Etiquetas, botones, ornamentos ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oro-antiguo);
}
.eyebrow--line { display: flex; align-items: center; gap: 14px; }
.eyebrow--line::before { content: ""; width: 40px; height: 1px; background: var(--oro); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--oro);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--gold { background: var(--oro); color: var(--cacao); }
.btn--gold:hover { background: #D6B266; border-color: #D6B266; }
.btn--outline { background: transparent; color: var(--oro); }
.btn--outline:hover { background: var(--oro); color: var(--cacao); }
.btn--sm { padding-inline: 22px; letter-spacing: 0.18em; }
.btn--lg { min-height: 60px; padding: 16px 36px; font-size: 0.8rem; }
.btn--lg .icon { width: 22px; height: 22px; stroke-width: 1.5; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 28px;
}
.ornament::before, .ornament::after { content: ""; width: 56px; height: 1px; background: var(--oro); }
.ornament i { width: 7px; height: 7px; background: var(--oro); transform: rotate(45deg); }

.ring {
  display: inline-block; flex: none;
  border-radius: 50%;
  border: 1px solid var(--oro);
  padding: 3px;
}
.ring img { border-radius: 50%; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--cacao);
  border-bottom: 1px solid var(--oro);
  color: var(--crema);
}
.nav__bar { display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand .ring { width: 46px; height: 46px; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--crema);
}
.nav__links a {
  display: flex; align-items: center; min-height: 48px;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--crema-suave);
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--oro); }
.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 48px; height: 48px; padding: 0 12px;
  background: none; border: 1px solid var(--linea-oscura); border-radius: 999px;
  cursor: pointer;
}
.nav__toggle span { display: block; height: 1px; background: var(--oro); transition: transform .2s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil: panel bajo la barra */
.nav__menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--cacao);
  border-bottom: 1px solid var(--oro);
  padding: 8px var(--gutter) 24px;
}
.nav__menu.is-open { display: block; }
.nav__links li + li { border-top: 1px solid var(--linea-oscura); }
.nav__cta-mobile { width: 100%; margin-top: 16px; }

@media (min-width: 560px) {
  .nav__cta { display: inline-flex; }
  .nav__cta-mobile { display: none; }
}

@media (min-width: 960px) {
  .nav__toggle { display: none; }
  .nav__menu, .nav__menu.is-open {
    display: block; position: static;
    background: none; border: 0; padding: 0;
  }
  .nav__links { display: flex; gap: 36px; }
  .nav__links li + li { border: 0; }
  .nav__cta { margin-left: 20px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--cacao);
  color: var(--crema);
  padding: calc(var(--nav-h) + 56px) 0 88px;
  overflow: hidden;
}
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--oro); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  font-weight: 400;
  line-height: 1.04;
}
.hero h1 em { color: var(--oro); }
.hero__lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--crema-suave);
}
.hero .actions { margin-top: 34px; }

.hero__media { position: relative; width: 100%; max-width: 440px; justify-self: center; padding-bottom: 36px; }
.arch {
  border: 1px solid var(--oro);
  border-radius: 999px 999px var(--radius) var(--radius);
  padding: 10px;
}
.arch img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 2px 2px;
}
.float-card {
  position: absolute; left: 12px; right: 12px; bottom: 0;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--crema);
  color: var(--cacao);
  border-top: 2px solid var(--oro);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 16px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.float-card__name { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.2; }

@media (min-width: 600px) {
  .float-card { left: -28px; right: auto; bottom: 48px; max-width: 270px; padding: 18px 24px; }
  .hero__media { padding-bottom: 0; }
}
@media (min-width: 960px) {
  .hero { padding: calc(var(--nav-h) + 88px) 0 112px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
  .hero__media { justify-self: end; }
  .float-card { left: -56px; }
}

/* ---------- Franja de valores ---------- */
.values { background: var(--crema); border-bottom: 1px solid var(--borde); }
.values__list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  padding-block: 36px;
}
.values__list li {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cacao);
}
.values .icon { width: 34px; height: 34px; color: var(--oro); stroke-width: 1.1; }
@media (min-width: 860px) {
  .values__list { grid-template-columns: repeat(4, 1fr); padding-block: 44px; }
  .values__list li + li { border-left: 1px solid var(--borde); }
}

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section--linen { background: var(--lino); }
.section--dark { background: var(--cacao); color: var(--crema); }
.section--dark .eyebrow { color: var(--oro); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__head h2, .section__head .h2 { margin-top: 14px; font-size: clamp(2.1rem, 6vw, 3.2rem); font-weight: 400; }
.section__head em { color: var(--oro-antiguo); }
.section--dark .section__head em { color: var(--oro); }
.section__note { margin-top: 14px; color: var(--taupe); font-weight: 300; font-size: 1.02rem; }
.section__head--sub { margin-bottom: 36px; }
.section__foot { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 52px; text-align: center; }

@media (min-width: 960px) {
  .section { padding: 112px 0; }
  .section__head { margin-bottom: 64px; }
}

/* ---------- Grillas ---------- */
.grid { display: grid; gap: 44px; }
@media (min-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 56px 36px; }
}

/* ---------- Producto ---------- */
.product__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--lino);
}
.product__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--oro);
}
.product__head h3 { font-size: 1.6rem; }
.price {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--oro-antiguo);
  white-space: nowrap;
}
.price__unit { font-family: var(--sans); font-size: 0.82rem; font-weight: 400; color: var(--taupe); letter-spacing: 0.02em; }
.product__desc { margin-top: 12px; color: var(--taupe); font-weight: 300; }

/* ---------- Muffins y galletas ---------- */
.daily { margin-top: 96px; }
.mini {
  display: grid; grid-template-columns: 38% 1fr;
  background: var(--lino);
  border-radius: var(--radius);
  overflow: hidden;
}
.mini__img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.mini__body { padding: 20px 18px; align-self: center; }
.mini h4 { font-size: 1.4rem; padding-bottom: 10px; border-bottom: 1px solid var(--oro); }
.mini .price { margin-top: 10px; font-size: 1.35rem; }
.mini .product__desc { margin-top: 6px; font-size: 0.95rem; }
@media (min-width: 640px) {
  .mini { grid-template-columns: 42% 1fr; }
  .mini__body { padding: 28px; }
}

/* ---------- Acabados ---------- */
.finish__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.finish h3 { margin-top: 8px; font-size: 1.75rem; padding-bottom: 12px; border-bottom: 1px solid var(--oro); }

/* ---------- Ingredientes ---------- */
.ingredients { max-width: 920px; margin-inline: auto; }
.ing {
  padding: 36px 28px;
  border: 1px solid var(--linea-oscura);
  border-radius: var(--radius);
}
.ing h3 { font-size: 2rem; font-weight: 400; margin-bottom: 20px; }
.ing li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  font-weight: 300; font-size: 1.05rem;
  color: var(--crema-suave);
}
.ing li + li { border-top: 1px solid var(--linea-oscura); }
.ing .icon { color: var(--oro); width: 22px; height: 22px; }
.ing--with { border-color: var(--oro); }
.ing--with h3 { color: var(--oro); }
.ing--with li { color: var(--crema); }
@media (min-width: 960px) { .ing { padding: 44px 48px; } }

/* ---------- Filosofía ---------- */
.philosophy__inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 860px; }
.ring--double {
  width: 108px; height: 108px; padding: 6px;
  box-shadow: 0 0 0 6px var(--lino), 0 0 0 7px var(--oro);
  margin: 8px 0 36px;
}
.philosophy blockquote p {
  margin-top: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 4.6vw, 2.5rem);
  line-height: 1.3;
}
.philosophy figcaption {
  margin-top: 28px;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
}
.philosophy figcaption span { color: var(--oro-antiguo); }
.philosophy figcaption::before { content: ""; display: block; width: 40px; height: 1px; background: var(--oro); margin: 0 auto 18px; }

/* ---------- Pedidos ---------- */
.step { border-top: 1px solid var(--oro); padding-top: 24px; }
.step__num { font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--oro-antiguo); }
.step h3 { margin-top: 14px; font-size: 1.6rem; }
.step p { margin-top: 10px; color: var(--taupe); font-weight: 300; }
.phone a {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 500;
  color: var(--oro-antiguo); text-decoration: none; letter-spacing: 0.04em;
}
.phone a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--cacao);
  color: var(--crema);
  border-top: 1px solid var(--oro);
  padding: 56px 0 96px;
}
.footer__inner { display: flex; flex-direction: column; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand .ring { width: 64px; height: 64px; }
.footer__tag { font-family: var(--serif); font-size: 1.15rem; color: var(--crema-suave); }
.footer__tag em { color: var(--oro); }
.footer__links { display: flex; flex-direction: column; gap: 4px; }
.footer__links a {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  text-decoration: none; color: var(--crema-suave); font-weight: 300;
  letter-spacing: 0.04em;
}
.footer__links a:hover { color: var(--oro); }
.footer__links .icon { color: var(--oro); width: 22px; height: 22px; }
.footer__legal {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--linea-oscura);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(246, 241, 234, 0.5);
}
@media (min-width: 760px) {
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer__links { flex-direction: row; gap: 32px; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--oro);
  color: var(--cacao);
  box-shadow: 0 10px 28px rgba(28, 23, 20, 0.35);
  transition: background-color .2s ease;
}
.wa-float:hover { background: #D6B266; }
.wa-float .icon { width: 28px; height: 28px; stroke-width: 1.5; }
