/* ─── MARCA: colores sacados del logo ─────────────────── */
:root {
  --cream:        #FBF5EC;
  --cream-deep:   #F4E8D8;
  --paper:        #FFFDF9;
  --brown:        #6B3A1F;
  --brown-dark:   #4A2714;
  --brown-deeper: #2E1A0E;
  --rose:         #E0806E;
  --rose-dark:    #C4624F;
  --peach:        #F6D3C6;
  --sage:         #7F8F62;
  --sage-light:   #DCE3CF;
  --gold:         #C8964F;
  --text:         #3B2416;
  --muted:        #8A7262;

  --font-script:  'Great Vibes', cursive;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --nav-h: 84px;
  --max-w: 1200px;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(107,58,31,.08);
  --shadow-md: 0 4px 20px rgba(107,58,31,.12);
  --shadow-lg: 0 10px 40px rgba(107,58,31,.2);
  --shadow-rose: 0 4px 20px rgba(224,128,110,.4);

  --dot: rgba(107,58,31,.07);
}

/* ─── BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Textura de papel con puntitos (equivalente a la cuadrícula de Swags) */
.paper-bg {
  background-color: var(--cream);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.paper-bg--dark {
  background-color: var(--brown);
  background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--cream);
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.eyebrow {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--rose);
  line-height: 1;
  display: block;
  margin-bottom: .25rem;
}
.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  color: var(--brown);
}
.paper-bg--dark .title { color: var(--cream); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.paper-bg--dark .lead { color: var(--peach); }
.center { text-align: center; }
.center .lead { margin: 16px auto 0; }
.section-head { margin-bottom: 48px; }

/* ─── BOTONES (píldora con sombra de color, como Swags) ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: var(--r-full);
  font-weight: 700; font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  font-family: var(--font-body);
}
.btn--primary { background: var(--rose); color: #fff; box-shadow: var(--shadow-rose); }
.btn--primary:hover { background: var(--rose-dark); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(224,128,110,.5); }
.btn--brown { background: var(--brown); color: var(--cream); box-shadow: var(--shadow-md); }
.btn--brown:hover { background: var(--brown-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn--outline:hover { background: var(--brown); color: var(--cream); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: var(--cream); border-color: rgba(251,245,236,.6); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--cream); transform: translateY(-2px); }
.btn--lg { padding: 1rem 2.3rem; font-size: 1rem; }

/* ─── NAV (transparente → sólida al hacer scroll) ─────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 999;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s;
}
.nav--scrolled { background: rgba(251,245,236,.94); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { width: 54px; height: 54px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.nav__logo span { font-family: var(--font-script); font-size: 1.75rem; color: var(--brown); line-height: 1; white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav__links a { font-weight: 600; font-size: .95rem; color: var(--brown); position: relative; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--rose); transition: width .25s;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { padding: .55rem 1.3rem; font-size: .85rem; }
.nav__hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__hamburger span { display: block; width: 26px; height: 2px; background: var(--brown); margin: 6px 0; border-radius: 2px; transition: .3s; }
.nav__drawer {
  display: none; position: fixed; top: var(--nav-h); left: 12px; right: 12px; z-index: 998;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 24px; animation: drawer-in .25s ease;
}
.nav__drawer.open { display: block; }
.nav__drawer ul { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.nav__drawer a { font-weight: 700; font-size: 1.2rem; color: var(--brown); }
.nav__drawer .btn { width: 100%; justify-content: center; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ─── HERO con mascota flotando ───────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0;
}
.hero::before { width: 420px; height: 420px; background: var(--peach); top: 12%; right: 8%; }
.hero::after  { width: 300px; height: 300px; background: var(--sage-light); bottom: 4%; left: -60px; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.hero__badge {
  display: inline-block; background: var(--paper); color: var(--sage);
  padding: .35rem 1rem; border-radius: var(--r-full); font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 6.2rem); line-height: .95; color: var(--brown);
}
.hero__tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--rose-dark); margin: 14px 0 18px; }
.hero__text { font-size: 1.1rem; color: var(--muted); max-width: 500px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { display: flex; justify-content: center; }
.mascot {
  width: min(480px, 100%);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 24px 50px rgba(107,58,31,.25));
  animation: mascot-float 4s ease-in-out infinite;
}
@keyframes mascot-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }

/* ─── FRANJA ANIMADA (marquee) ────────────────────────── */
.marquee { background: var(--brown); color: var(--cream); overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: -10px -20px; position: relative; z-index: 2; }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; white-space: nowrap; display: flex; align-items: center; gap: 40px; }
.marquee__track span::after { content: '♥'; color: var(--rose); font-style: normal; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── INTRO / HISTORIA ────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: center; }
.split p + p { margin-top: 16px; }
.split__media {
  aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--peach), var(--cream-deep));
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media .placeholder { font-size: 7rem; }
.sticker {
  position: absolute; bottom: 20px; right: 20px;
  background: var(--rose); color: #fff; border-radius: 50%;
  width: 110px; height: 110px; display: grid; place-items: center; text-align: center;
  font-family: var(--font-script); font-size: 1.5rem; line-height: 1;
  transform: rotate(-10deg); box-shadow: var(--shadow-rose);
}

/* ─── TARJETAS DE PRODUCTO ────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter {
  background: var(--paper); border: 2px solid var(--cream-deep); color: var(--brown);
  padding: .5rem 1.2rem; border-radius: var(--r-full); font-weight: 600; cursor: pointer;
  font-family: var(--font-body); font-size: .9rem; transition: .2s;
}
.filter:hover { border-color: var(--rose); }
.filter.active { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 28px; }
.product-card {
  background: var(--paper); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
  animation: card-in .6s ease both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card__img {
  aspect-ratio: 1; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--paper) 0%, var(--peach) 70%);
  display: grid; place-items: center;
}
.product-card:nth-child(3n+2) .product-card__img { background: radial-gradient(circle at 50% 40%, var(--paper) 0%, var(--sage-light) 70%); }
.product-card:nth-child(3n+3) .product-card__img { background: radial-gradient(circle at 50% 40%, var(--paper) 0%, var(--cream-deep) 70%); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__img img { transform: scale(1.06); }
.product-card__emoji { font-size: 5.5rem; transition: transform .4s ease; }
.product-card:hover .product-card__emoji { transform: scale(1.12) rotate(-6deg); }
.product-card__tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--rose); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .3rem .8rem; border-radius: var(--r-full); letter-spacing: .03em;
}
.product-card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.product-card__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--brown); line-height: 1.2; }
.product-card__desc { color: var(--muted); font-size: .95rem; margin-top: 6px; flex: 1; }
.product-card__price { margin-top: 14px; font-weight: 700; color: var(--rose-dark); }
.products__empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* ─── FILOSOFÍA (3 pilares) ───────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  background: rgba(255,255,255,.07); border: 1px solid rgba(251,245,236,.15);
  border-radius: var(--r-xl); padding: 34px 28px; transition: transform .3s, background .3s;
}
.pillar:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.pillar__icon { font-size: 2.6rem; margin-bottom: 14px; }
.pillar h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 8px; color: var(--cream); }
.pillar p { color: var(--peach); font-size: .98rem; }

/* ─── CITA ────────────────────────────────────────────── */
.quote { text-align: center; max-width: 820px; margin: 0 auto; }
.quote blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.35; color: var(--brown);
}
.quote blockquote::before { content: '“'; display: block; font-size: 5rem; line-height: .6; color: var(--rose); margin-bottom: 10px; }
.quote cite { display: block; margin-top: 18px; font-family: var(--font-script); font-style: normal; font-size: 1.9rem; color: var(--rose-dark); }

/* ─── MENSAJES ────────────────────────────────────────── */
.guestbook { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 48px; align-items: start; }
.card { background: var(--paper); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-md); }
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.form input, .form textarea {
  font: inherit; padding: .85rem 1rem; border-radius: var(--r-md);
  border: 2px solid var(--cream-deep); background: var(--cream); color: var(--text);
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--rose); }
.form textarea { min-height: 110px; resize: vertical; }
.form .btn { align-self: flex-start; }
.estado { font-size: .9rem; color: var(--sage); min-height: 1.4em; }
.messages { list-style: none; display: flex; flex-direction: column; gap: 14px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.message {
  background: var(--paper); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--rose);
}
.message:nth-child(2n) { border-left-color: var(--sage); }
.message b { font-family: var(--font-display); color: var(--brown); display: block; margin-bottom: 2px; }
.message time { font-size: .8rem; color: var(--muted); }

/* ─── VISÍTANOS ───────────────────────────────────────── */
.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.visit__item { background: var(--paper); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-sm); text-align: center; }
.visit__item .icon { font-size: 2.2rem; margin-bottom: 10px; }
.visit__item h3 { font-family: var(--font-display); color: var(--brown); font-size: 1.2rem; margin-bottom: 6px; }
.visit__item p, .visit__item a { color: var(--muted); }
.visit__item a:hover { color: var(--rose-dark); }

/* ─── CTA FINAL ───────────────────────────────────────── */
.cta-final { text-align: center; position: relative; overflow: hidden; }
.cta-final .mascot-mini {
  width: 130px; margin: 0 auto 18px; border-radius: 50%;
  animation: mascot-float 4s ease-in-out infinite; box-shadow: var(--shadow-lg);
}
.cta-final .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* ─── PAGE HERO (páginas internas) ────────────────────── */
.page-hero { padding: calc(var(--nav-h) + 56px) 0 56px; text-align: center; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4rem); color: var(--brown); line-height: 1.1; }
.page-hero .lead { margin: 14px auto 0; }

/* ─── LÍNEA DE TIEMPO (nosotros) ──────────────────────── */
.timeline { list-style: none; max-width: 720px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 18px; top: 6px; bottom: 6px; width: 2px; background: var(--peach); }
.timeline li { position: relative; padding-left: 56px; margin-bottom: 32px; }
.timeline li::before {
  content: ''; position: absolute; left: 10px; top: 6px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 5px var(--cream);
}
.timeline h3 { font-family: var(--font-display); color: var(--brown); font-size: 1.3rem; }
.timeline .when { font-family: var(--font-script); color: var(--rose-dark); font-size: 1.6rem; line-height: 1; }

/* ─── FOOTER ──────────────────────────────────────────── */
.footer { background: var(--brown-deeper); color: var(--cream-deep); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand img { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 12px; }
.footer__brand .script { font-family: var(--font-script); font-size: 2rem; color: var(--peach); line-height: 1; }
.footer h4 { font-family: var(--font-display); color: var(--cream); font-size: 1.05rem; margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--cream-deep); opacity: .8; transition: opacity .2s, color .2s; }
.footer a:hover { opacity: 1; color: var(--peach); }
.footer p { opacity: .8; font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); opacity: 1;
}
.socials a:hover { background: var(--rose); color: #fff; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .85rem; opacity: .7; }

/* ─── REVEAL al hacer scroll ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: block; }
  .hero .container, .split, .guestbook { grid-template-columns: minmax(0,1fr); }
  .split__media { aspect-ratio: 4/3; }
  .hero { text-align: center; min-height: auto; padding-bottom: 72px; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; margin-top: 24px; }
  .mascot { width: min(320px, 80vw); }
  .pillars, .visit { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__logo span { font-size: 1.45rem; }
  .hero__badge { font-size: .7rem; letter-spacing: .04em; }
  .btn--lg { padding: .9rem 1.6rem; }
  .card { padding: 24px; }
}
