@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

/* ===== Fonts ===== */
@font-face {
  font-family: "Thelma Personal";
  src: url("../fonts/Thelma-Personal.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat Bundled";
  src: url("../fonts/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}


/* ===== Design tokens (Bliss Food brand) ===== */
:root {
  --bf-cacao: #391212;
  --bf-tomato: #F04E34;
  --bf-cream: #EEEFEA;
  --bf-white: #FFFFFF;
  --bf-maiz: #EEC919;
  --bf-olive: #7D8F39;

  --bf-tomato-60: oklch(0.74 0.16 36);
  --bf-tomato-12: oklch(0.95 0.03 38);
  --bf-cream-dark: #E2E3DC;

  --bf-ink-700: #5A3A3A;
  --bf-ink-500: #8A6F6F;
  --bf-ink-300: #BCAFAF;

  --color-primary: var(--bf-tomato);
  --color-primary-hover: var(--bf-tomato-60);
  --text-strong: var(--bf-cacao);
  --text-body: var(--bf-ink-700);
  --text-muted: var(--bf-ink-500);
  --surface-page: var(--bf-cream);
  --border-subtle: var(--bf-cream-dark);

  --font-display: "Thelma Personal", "Montserrat Bundled", Georgia, serif;
  --font-body: "Montserrat", "Montserrat Bundled", system-ui, -apple-system, sans-serif;

  --shadow-lg: 0 14px 30px rgba(57,18,18,0.12), 0 6px 12px rgba(57,18,18,0.08);
  --shadow-focus: 0 0 0 3px rgba(240,78,52,0.30);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-body);
  background: var(--bf-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--text-strong); margin: 0; }
p { margin: 0; }
a { color: var(--bf-tomato); text-decoration: none; }
img { max-width: 100%; }

:focus-visible { outline: 3px solid var(--bf-tomato); outline-offset: 2px; border-radius: 4px; }

/* ===== Interactive elements (converted from design-canvas hover states) ===== */
.nav-link { color: var(--bf-cacao); transition: color .2s ease; }
.nav-link:hover { color: var(--bf-tomato); }

.btn { display: inline-flex; align-items: center; border-radius: 999px; font-weight: 800; cursor: pointer; transition: filter .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--bf-tomato); color: #fff; border: 2px solid var(--bf-tomato); }
.btn-primary:hover { filter: brightness(0.94); color: #fff; }
.btn-secondary { background: #fff; color: var(--bf-cacao); border: 2px solid var(--border-subtle); }
.btn-secondary:hover { color: var(--bf-cacao); border-color: var(--bf-cacao); }

.footer-link { color: var(--bf-cream); opacity: 0.85; transition: color .2s ease; }
.footer-link:hover { color: var(--bf-tomato); }

.email-link { transition: color .2s ease; }
.email-link:hover { color: var(--bf-tomato); }

.field-input, .field-select, .field-textarea {
  font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--bf-cacao);
  background: #fff; border: 2px solid var(--border-subtle); border-radius: 12px; padding: 13px 16px;
  outline: none; transition: border-color .2s ease; width: 100%;
}
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: var(--bf-tomato); }

.submit-btn { transition: filter .2s ease, transform .1s ease; }
.submit-btn:hover { filter: brightness(0.94); }
.submit-btn:active { transform: scale(0.98); }

/* ===== Header scroll state ===== */
.site-header { transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(57,18,18,0.08); }

/* ===== Language toggle ===== */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px; border: 2px solid var(--border-subtle);
  border-radius: 999px; padding: 3px; background: #fff; flex-shrink: 0;
}
.lang-btn {
  border: none; background: transparent; font-family: var(--font-body); font-weight: 800; font-size: 12px;
  letter-spacing: 0.06em; color: var(--text-muted); padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-btn.is-active { background: var(--bf-cacao); color: var(--bf-cream); }
.lang-btn:not(.is-active):hover { color: var(--bf-cacao); }

/* ===== Header layout / responsive nav ===== */
.site-header { position: sticky; }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 14px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: nowrap; position: relative; }
.header-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; flex-wrap: nowrap; flex-shrink: 0; }
.site-nav a { white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0;
  border: 2px solid var(--border-subtle); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; margin-right: 8px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--bf-cacao); border-radius: 2px;
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle::before { position: absolute; transform: translateY(-6px); }
.nav-toggle::after { position: absolute; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(0) rotate(-45deg); }

@media (max-width: 1180px) {
  .header-inner { padding: 14px 24px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; flex-direction: column; align-items: flex-start; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    padding: 8px 24px 16px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 12px 24px rgba(57,18,18,0.10);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; }
}
@media (max-width: 600px) {
  /* header CTA is redundant with the hero's own CTA right below on narrow screens */
  .header-actions .btn-primary { display: none; }
}

/* ===== Scroll-reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--stagger-i, 0) * 90ms); }

/* ===== Parallax layers ===== */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ===== Layout helpers ===== */
.section { padding: 96px 40px; }
.wrap { max-width: 1180px; margin-left: auto; margin-right: auto; }
.grid-2, .grid-3, .grid-4 { display: grid; }
.grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bf-tomato); margin: 0 0 16px; }
.h2 { font-size: clamp(2.1rem, 3.5vw, 3.1rem); line-height: 1.08; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.6; }

/* ===== Hero scene ===== */
.hero { padding-top: 64px; padding-bottom: 0; }
.hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: end; }
.hero-copy { align-self: center; padding-bottom: 72px; }
.hero-stage { position: relative; aspect-ratio: 1 / 0.94; width: 100%; }
.hero-stage img { position: absolute; display: block; height: auto; }
.hero-pancho { left: 0; bottom: 0; width: 71%; z-index: 2; }
.hero-van { right: 1%; bottom: 13%; width: 60%; z-index: 1; }
.hero-food { z-index: 3; filter: drop-shadow(0 10px 18px rgba(57,18,18,0.18)); }
.hero-shape { position: absolute; display: block; z-index: 0; }
.hero-shape-red { top: 3%; left: 38%; width: 25%; aspect-ratio: 1; border-radius: 999px; background: var(--bf-tomato); }
.hero-shape-olive { top: 22%; right: 3%; width: 56%; height: 44%; border-radius: 46% 54% 38% 62% / 62% 48% 52% 38%; background: var(--bf-olive); }

/* Quiénes somos: quote card sits on the left on wide screens; on narrow ones it follows the text, as in the markup */
.nosotros-quote { order: -1; }

/* ===== Section pieces ===== */
.reto-steps { display: flex; gap: 36px; justify-content: flex-end; flex-wrap: wrap; }
.reto-num { font-family: var(--font-display); font-size: 68px; line-height: 1; margin: 0; }
.reto-label { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bf-cacao); margin: 8px 0 0; }
.step-label { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bf-maiz); margin: 0 0 14px; }
.map-pill { position: absolute; top: 2%; left: 0; display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--border-subtle); background: #fff; border-radius: 18px; padding: 10px 18px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--bf-cacao); }
.map-pill strong { font-size: 13px; font-weight: 800; }
.map-pill span { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.stat-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.stat-sub { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.icon-row { display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start; }
.icon-dot { width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.icon-dot svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.photo-card { background: #F9F8F4; border-radius: 22px; padding: 16px 16px 28px; }
.photo-card img { width: 100%; height: auto; display: block; margin-bottom: 18px; }
.photo-card h3 { font-size: 26px; line-height: 1.12; margin: 0 12px 10px; }
.photo-card p { font-size: 15.5px; line-height: 1.6; margin: 0 12px; }
.num-card { background: #FAF7F2; border: 1px solid var(--border-subtle); border-radius: 22px; padding: 24px 20px 20px; display: flex; flex-direction: column; }
.num-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.num-head span { flex-shrink: 0; width: 46px; height: 46px; border-radius: 999px; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; }
.num-head h3 { font-size: 21px; line-height: 1.1; }
.num-card p { font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; }
.num-card img { width: 100%; height: auto; display: block; margin-top: auto; }
.closing-pill { margin: 40px auto 0; max-width: 860px; text-align: center; background: var(--bf-tomato-12); border-radius: 999px; padding: 18px 32px; font-family: var(--font-display); font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.2; color: var(--bf-cacao); }
.closing-trio { max-width: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 0; font-size: clamp(1.05rem, 1.75vw, 1.5rem); }
.closing-trio span + span { border-left: 2px solid var(--bf-tomato); margin-left: 22px; padding-left: 22px; }
.step-row { display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; }
.step-row > span { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 22px; }
.step-row h3 { font-size: 21px; line-height: 1.15; margin: 4px 0 4px; }
.step-row p { font-size: 15.5px; line-height: 1.55; }

/* ===== Form ===== */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 800; color: var(--bf-cacao); }
.field b, .field-group legend b { color: var(--bf-tomato); font-weight: 800; }
.field-group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.field-group legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 800; color: var(--bf-cacao); }
.field-group legend small { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-left: 6px; }
.check-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; border: 2px solid var(--border-subtle); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: var(--bf-cacao); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.check input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--bf-tomato); margin: 0; }
.check:hover { border-color: var(--bf-ink-300); }
.check:has(input:checked) { border-color: var(--bf-tomato); background: var(--bf-tomato-12); }
.pill-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: block; text-align: center; border: 2px solid var(--border-subtle); border-radius: 999px; padding: 10px 6px; font-size: 13.5px; font-weight: 700; color: var(--bf-cacao); transition: border-color .2s ease, background .2s ease; }
.pill:hover span { border-color: var(--bf-ink-300); }
.pill input:checked + span { border-color: var(--bf-tomato); background: var(--bf-tomato-12); }
.pill input:focus-visible + span { outline: 3px solid var(--bf-tomato); outline-offset: 2px; }
#form-message.is-error { color: #B3261E; font-weight: 700; }

/* ===== Footer ===== */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 1.2fr) minmax(0, 0.9fr); gap: 40px; align-items: start; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-head { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bf-maiz); margin: 0 0 4px; }
.footer-col address { font-style: normal; line-height: 1.55; opacity: 0.85; }
.footer-col address strong { display: block; font-weight: 800; opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .section { padding: 64px 22px; }
  .hero { padding-bottom: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-stage { max-width: 560px; margin: 0 auto; }
  .nosotros-quote { order: 0; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr) !important; gap: 36px !important; }
  .reto-steps { justify-content: flex-start; }
  .reto-num { font-size: 52px; }
  .closing-pill { border-radius: 22px; }
  .closing-trio { flex-direction: column; }
  .closing-trio span + span { border-left: 0; margin-left: 0; padding-left: 0; }
  footer { padding-left: 22px !important; padding-right: 22px !important; }
}
@media (max-width: 560px) {
  .grid-4, .form-grid, .check-grid, .stat-pair, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .pill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-pill { position: static; margin-top: 12px; }
  #contact-form { padding: 24px !important; }
}
