/* ============ Pastriva — Fuentes propias ============ */
@font-face {
  font-family: 'Pastriva';
  src: url('fonts/Pastriva-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arquitecta';
  src: url('fonts/arquitecta/Arquitecta.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arquitecta';
  src: url('fonts/arquitecta/ArquitectaMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arquitecta';
  src: url('fonts/arquitecta/ArquitectaBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============ Pastriva — Design tokens (Manual de Identidad) ============ */
:root {
  /* Colores corporativos oficiales */
  --coral: #D2545A;          /* Pantone 7418 C — frutos rojos */
  --coral-deep: #A8413F;
  --coral-soft: #D3555B;
  --olive: #525349;          /* Pantone 418 C — chocolate */
  --olive-deep: #2F352B;
  /* Colores auxiliares por categoría */
  --vita: #49C3B1;           /* Pantone 3258 C — bajos en azúcar / veg */
  --festiva: #FF9112;        /* Pantone 1495 C — temporada */
  --premium: #9B8542;        /* Pantone 4505 C — premium */

  --cream: #FFFEFA;
  --cream-warm: #F5F2EA;
  --paper: #EEE9E3;
  --ink: #51534a;
  --ink-soft: #4A4339;
  --muted: #8B8170;
  --line: #D9CFB8;
  --white: #FFFFFF;

  --display: "Pastriva", "Oswald", "Bebas Neue", "Helvetica Neue", sans-serif;
  --sans: "Arquitecta", "Barlow", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", cursive;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(31, 27, 23, 0.06), 0 2px 8px rgba(31, 27, 23, 0.04);
  --shadow-md: 0 4px 16px rgba(31, 27, 23, 0.08), 0 12px 32px rgba(31, 27, 23, 0.06);
  --shadow-lg: 0 20px 60px rgba(31, 27, 23, 0.18);

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

/* Scrollbar de marca */
html { scrollbar-width: thin; scrollbar-color: var(--coral) transparent; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream-warm); }
::-webkit-scrollbar-thumb {
  background: var(--coral);
  border-radius: 99px;
  border: 3px solid var(--cream-warm);
}
::-webkit-scrollbar-thumb:hover { background: var(--coral-deep); }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--coral); color: var(--paper); }

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

/* Type */
.h-display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 0.98;
  text-transform: uppercase;
}
.h-display em {
  font-style: normal;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: 0.01em;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--coral);
}
.handwritten {
  font-family: var(--hand);
  font-weight: 500;
  color: var(--coral);
  font-size: 1.4em;
  line-height: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 220ms cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary { background: var(--coral); color: var(--paper); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(210, 84, 90, 0.32); }
.btn-primary.nav-cta:hover { box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-cream { background: var(--paper); color: var(--ink); }
.btn-cream:hover { background: var(--white); transform: translateY(-2px); }
.btn-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 4px;
  transition: gap 200ms ease, color 200ms ease;
}
.btn-arrow:hover { gap: 14px; color: var(--coral); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background 280ms ease, padding 280ms ease, box-shadow 280ms ease;
}
.nav.scrolled {
  background: rgba(238, 233, 227, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(31,27,23,0.06);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--coral);
  text-transform: uppercase;
}
.nav-logo small {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  font-weight: 500;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: nowrap; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink);
  position: relative; padding: 6px 0;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: color 180ms ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--coral); transform: scaleX(0);
  transform-origin: left; transition: transform 240ms cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover { color: var(--coral); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .nav-cta,
.nav-links .nav-cta:hover { color: var(--paper); }
.nav-cta::after { display: none !important; }
.nav .btn.btn-primary.nav-cta {
  padding: 10px 22px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-mobile { display: none; }

@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 12px; letter-spacing: 0.06em; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile {
    display: flex; flex-direction: column; gap: 5px; padding: 10px;
  }
  .nav-mobile span {
    display: block; width: 22px; height: 1.5px; background: var(--ink);
    transition: transform 220ms ease;
  }
}

.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream); z-index: 200;
  padding: 100px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform 360ms cubic-bezier(.2,.8,.2,1);
  flex-direction: column; gap: 24px;
}
@media (max-width: 980px) {
  .mobile-menu { display: flex; }
}

/* ===== Responsive global ===== */
@media (max-width: 980px) {
  .section { padding: 60px 0; }
  :root { --gutter: clamp(16px, 4vw, 32px); }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  :root { --gutter: 16px; }
  .h-display { font-size: clamp(34px, 9vw, 56px) !important; line-height: 1.05; }
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--display); font-size: 36px; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500;
}
.mobile-menu-close {
  position: absolute; top: 24px; right: var(--gutter);
  font-size: 16px; color: var(--ink); padding: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* Sections */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-cream { background: var(--cream); }
.section-warm { background: var(--cream-warm); }
.section-olive { background: var(--olive-deep); color: var(--paper); }
.section-olive .h-display em { color: var(--coral-soft); }
.section-olive .eyebrow { color: rgba(245,239,227,0.75); }
.section-olive .eyebrow::before { background: var(--coral-soft); }

/* Rappi FAB */
.rappi-fab {
  position: fixed; bottom: 96px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #FF5E3A;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 94, 58, 0.4), 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  animation: rappi-pulse 2.4s ease-out infinite;
}
.rappi-fab:hover { transform: scale(1.08) rotate(6deg); }
.rappi-fab-logo { width: 34px; height: 34px; object-fit: contain; }

.rappi-tooltip {
  position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%);
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 220ms ease;
}
.rappi-tooltip::after {
  content: ""; position: absolute; left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--ink);
}
.rappi-fab:hover .rappi-tooltip { opacity: 1; }

@keyframes rappi-pulse {
  0% { box-shadow: 0 8px 24px rgba(255, 94, 58, 0.4), 0 0 0 0 rgba(255, 94, 58, 0.5); }
  70% { box-shadow: 0 8px 24px rgba(255, 94, 58, 0.4), 0 0 0 18px rgba(255, 94, 58, 0); }
  100% { box-shadow: 0 8px 24px rgba(255, 94, 58, 0.4), 0 0 0 0 rgba(255, 94, 58, 0); }
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  animation: wa-pulse 2.4s ease-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.08) rotate(-6deg); }
.whatsapp-fab svg { width: 32px; height: 32px; fill: white; }

.whatsapp-tooltip {
  position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%);
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 220ms ease;
}
.whatsapp-tooltip::after {
  content: ""; position: absolute; left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--ink);
}
.whatsapp-fab:hover .whatsapp-tooltip { opacity: 1; }

@keyframes wa-pulse {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(.2,.8,.2,1), transform 800ms cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Utility */
.divider-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); display: inline-block; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(210,84,90,0.1); color: var(--coral-deep);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Image placeholder (striped) */
.img-placeholder {
  position: relative;
  background: repeating-linear-gradient(
    -45deg,
    rgba(31,27,23,0.04) 0 10px,
    rgba(31,27,23,0.08) 10px 20px
  ), var(--cream-warm);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.img-placeholder::after {
  content: attr(data-label);
  position: absolute;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.img-placeholder--coral {
  background: repeating-linear-gradient(
    -45deg,
    rgba(210,84,90,0.18) 0 10px,
    rgba(210,84,90,0.28) 10px 20px
  ), var(--coral);
}
.img-placeholder--olive {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.06) 0 10px,
    rgba(255,255,255,0.12) 10px 20px
  ), var(--olive);
}
.img-placeholder--vita {
  background: repeating-linear-gradient(
    -45deg,
    rgba(73,195,177,0.18) 0 10px,
    rgba(73,195,177,0.28) 10px 20px
  ), var(--vita);
}

/* Eventos stat fix */
.eventos-stat {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  padding: 14px 26px 20px !important;
}
.eventos-stat-num {
  line-height: 1 !important;
  transform: translateY(-3px) !important;
}
.eventos-stat-label {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

/* Logo mark — círculo con flor (referencia identidad) */
.logo-mark {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 100%; height: 100%; }
