/* =========================================================
   Dulce Pastel · propuesta de sitio web
   ========================================================= */

:root {
  --green: #6a7f54;
  --green-tint: #e9eee2;
  --forest: #2f3a27;
  --ink: #2b2a26;
  --ink-soft: #5d5a52;
  --cream: #fdf6ec;
  --sand: #f3e9da;
  --rose: #d9a59a;
  --rose-deep: #b9776a;
  --line: rgba(47, 58, 39, .14);
  --white: #fff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Josefin Sans", system-ui, sans-serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.1; margin: 0 0 .5em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--green); }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 64px); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; font-family: var(--caps); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px;
  border: 1px solid var(--forest); border-radius: 40px;
  background: var(--forest); color: var(--white);
  font-family: var(--caps); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--green); border-color: var(--green); }
.btn--sm { padding: 10px 20px; font-size: .68rem; }
.btn--light { background: transparent; border-color: rgba(255, 255, 255, .7); }
.btn--light:hover { background: var(--white); color: var(--forest); border-color: var(--white); }
.btn--line { background: transparent; color: var(--forest); }
.btn--line:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn--full { width: 100%; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(253, 246, 236, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; width: min(1180px, 100% - 48px); margin: 0 auto; height: 76px; }
.nav__logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__logo img { width: 46px; }
.nav__logo span { font-family: var(--caps); letter-spacing: .24em; text-transform: uppercase; font-size: .85rem; color: var(--forest); }
.nav__links { display: flex; gap: 26px; }
.nav__links a { font-size: .92rem; color: var(--ink); position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--green); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 76px); display: flex; align-items: center; overflow: hidden; background: var(--forest); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(47, 58, 39, .88) 0%, rgba(47, 58, 39, .55) 45%, rgba(47, 58, 39, 0) 80%); }
.hero__in { position: relative; z-index: 1; width: min(1180px, 100% - 64px); margin: 0 auto; color: rgba(255, 255, 255, .88); }
.hero .eyebrow { color: var(--rose); }
.hero h1 { color: var(--white); font-size: clamp(2.8rem, 6vw, 5.4rem); max-width: 9.5em; }
.hero h1 em { color: var(--sand); }
.hero p { font-size: 1.15rem; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Secciones ---------- */
.sec { padding: 100px 0; }
.sec--sand { background: var(--sand); }
.head { max-width: 680px; margin-bottom: 48px; }
.head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.trio__item img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 8px 8px; margin-bottom: 22px; transition: transform .6s var(--ease); }
.trio__item:hover img { transform: translateY(-6px); }
.trio__item h3 { font-size: 2rem; }
.trio__item span { font-family: var(--caps); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green); }

.favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fav { background: var(--white); border-radius: 8px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.fav:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(47, 58, 39, .35); }
.fav img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.fav h3 { font-size: 1.35rem; margin: 18px 20px 2px; }
.fav span { display: block; margin: 0 20px 20px; font-size: .88rem; }

/* ---------- Catering ---------- */
.catering { background: var(--forest); color: rgba(255, 255, 255, .82); padding-bottom: 100px; }
.catering__hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; }
.catering__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.catering__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47, 58, 39, .1) 10%, rgba(47, 58, 39, .7) 55%, var(--forest)); }
.catering__title, .hero__in { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.catering__title { position: relative; z-index: 1; width: min(1180px, 100% - 64px); margin: 0 auto; padding-bottom: 30px; }
.catering__title .eyebrow { color: var(--rose); }
.catering__title h2 { color: var(--white); font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.catering__title h2 em { color: var(--sand); }
.catering__title p { max-width: 34em; font-size: 1.12rem; }

.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 50px 0 70px; }
.pack { position: relative; padding: 34px 30px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; }
.pack--feat { background: var(--cream); color: var(--ink-soft); border-color: transparent; }
.pack__n { font-family: var(--serif); font-size: 2.4rem; color: var(--rose); line-height: 1; }
.pack__badge { position: absolute; top: 26px; right: 24px; padding: 5px 12px; border-radius: 30px; background: var(--rose-deep); color: var(--white); font-family: var(--caps); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; }
.pack h3 { font-size: 1.8rem; margin: 16px 0 10px; color: var(--white); }
.pack--feat h3 { color: var(--ink); }
.pack ul { margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.pack li::before { content: "· "; color: var(--rose); }

.quote { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; padding: 50px; border-radius: 10px; background: var(--cream); color: var(--ink-soft); }
.quote__info h3 { font-size: 2.4rem; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-family: var(--serif); font-weight: 500; }

/* Formularios */
form label { display: grid; gap: 6px; margin-bottom: 16px; font-family: var(--caps); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
form input, form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--white);
  font-family: var(--sans); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink);
}
form input:focus, form select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
form .is-invalid { border-color: var(--rose-deep); background: #fff6f4; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: .95rem; letter-spacing: 0; text-transform: none; }
.check input { width: auto; }
.form-msg { margin: 14px 0 0; font-size: .95rem; min-height: 1.4em; }
.form-msg.is-ok { padding: 14px 16px; border-radius: 6px; background: var(--green-tint); color: var(--forest); }
.form-msg.is-error { color: var(--rose-deep); }

/* ---------- Reservaciones ---------- */
.reserve__in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.reserve h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.reserve img { margin-top: 28px; border-radius: 8px; aspect-ratio: 3 / 2; object-fit: cover; }
.reserve__form { padding: 40px; background: var(--white); border-radius: 10px; box-shadow: 0 40px 80px -50px rgba(47, 58, 39, .35); }

/* ---------- Sucursales ---------- */
.branches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.branch { padding: 22px 22px 28px; background: var(--white); border-radius: 10px; }
.branch__map {
  display: grid; place-items: center;
  height: 190px; margin-bottom: 22px; border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(106, 127, 84, .12) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(0deg, rgba(106, 127, 84, .12) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--green-tint);
  font-size: 2rem;
}
.branch h3 { font-size: 1.8rem; }
.branch p { margin: 0 0 4px; }
.branch__hours { font-size: .9rem; color: var(--green); }
.branch__cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Instagram ---------- */
.insta__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.insta__grid img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: rgba(255, 255, 255, .7); padding: 70px 0 30px; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer__logo { width: 120px; border-radius: 50%; }
.footer h4 { color: var(--white); font-size: 1.3rem; }
.footer a { display: block; margin-bottom: 6px; font-size: .92rem; }
.footer a:hover { color: var(--rose); }
.footer__legal { width: min(1180px, 100% - 64px); margin: 50px auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; }

.wa { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .4); }
/* con la barra de la propuesta (celular) el botón sube para no taparla */
body:has(.pnav) .wa { bottom: 84px; right: 16px; width: 52px; height: 52px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .nav__links {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 10px 24px 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .4s var(--ease);
    z-index: -1;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__burger { display: block; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--forest); cursor: pointer; }
  .nav__burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--white); transition: .3s var(--ease); }
  .nav__burger span:first-child { top: 18px; }
  .nav__burger span:last-child { top: 25px; }
  .nav__burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

  .favs { grid-template-columns: repeat(2, 1fr); }
  .packs { grid-template-columns: 1fr; }
  .quote, .reserve__in { grid-template-columns: 1fr; gap: 30px; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .wrap, .hero__in, .catering__title { width: calc(100% - 32px); }
  .nav__in { width: calc(100% - 32px); gap: 12px; height: 68px; }
  .nav__links { top: 68px; }
  .nav__logo img { width: 40px; }
  .nav__logo span { font-size: .72rem; }
  .nav .btn--sm { display: none; }
  .hero { min-height: 88vh; align-items: flex-end; padding-bottom: 60px; }
  .hero .eyebrow { letter-spacing: .18em; font-size: .64rem; }
  .hero::after { background: linear-gradient(180deg, rgba(47, 58, 39, .2) 10%, rgba(47, 58, 39, .9) 70%); }
  .sec { padding: 64px 0; }
  .trio { grid-template-columns: 1fr; }
  .trio__item img { aspect-ratio: 4 / 3; border-radius: 8px; }
  .catering__hero { min-height: 440px; }
  .quote { padding: 26px 20px; }
  .reserve__form { padding: 24px 20px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .branches { grid-template-columns: 1fr; }
  .insta__grid { grid-template-columns: repeat(3, 1fr); }
  .insta__grid img:nth-child(n+4) { display: none; }
  .footer__in { grid-template-columns: 1fr; }
}
