/* =============================================
   PIEMME v2 — Italia Editorial
   Concepto 3 + limpieza italianshop
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600&family=Caveat:wght@500;600;700&display=swap');

/* ---------- Variables ---------- */
:root {
  --bg:           #faf6ef;
  --paper:        #ffffff;
  --ink:          #1f1b16;
  --ink-soft:     #3d362e;
  --muted:        #8a8275;
  --line:         #ebe4d4;
  --line-strong:  #c9bfa9;

  /* Acentos italianos */
  --green:        #0a7d3a;   /* verde italiano vivo (logo italianshop style) */
  --green-dark:   #075a29;
  --tomato:       #b8392e;   /* rojo sobrio terracota */
  --tomato-dark:  #8c2a23;
  --gold:         #b08a4a;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-script:  'Caveat', cursive;

  --container: 1320px;
  --container-narrow: 1080px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 14px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 200ms var(--ease);
  --t-base: 400ms var(--ease);
  --t-slow: 800ms var(--ease-out);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
em.acc { font-style: italic; color: var(--tomato); font-weight: 400; }

/* Script handwritten — el alma de italianshop */
.script {
  font-family: var(--font-script);
  font-weight: 600;
  color: var(--green);
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.05;
}
.script.lg { font-size: clamp(3rem, 7vw, 5.5rem); }
.script.md { font-size: clamp(2.5rem, 5vw, 4rem); }
.script.sm { font-size: clamp(1.5rem, 2.5vw, 2rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tomato);
}
.eyebrow-line::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--tomato);
}

p { color: var(--ink-soft); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Top strip ---------- */
.top-strip {
  background: var(--ink);
  color: rgba(250, 246, 239, 0.8);
  padding: 9px 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 101;
}
.top-strip-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.top-strip-content span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.top-strip-content svg {
  width: 14px; height: 14px;
  color: var(--green);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--t-base);
}
.site-header.scrolled {
  background: rgba(250, 246, 239, 0.98);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 32px;
  transition: height var(--t-base);
}
.site-header.scrolled .header-inner { height: 68px; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 42px;
  height: 48px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -2px;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 12px;
  height: 4px;
  background: linear-gradient(to right,
    var(--green) 0 33.3%,
    #faf6ef 33.3% 66.6%,
    var(--tomato) 66.6% 100%);
}
.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 14px;
  color: var(--green);
  margin-top: 1px;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
  transition: color var(--t-fast);
}
.nav a:hover { color: var(--green); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 20px;
  height: 2px;
  background: var(--tomato);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 11px;
}
.lang-switch button {
  padding: 4px 6px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color var(--t-fast);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: var(--green); font-weight: 600; }
.lang-switch .sep { color: var(--line-strong); font-size: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(10, 125, 58, 0.4);
}
.btn-tomato {
  background: var(--tomato);
  color: white;
}
.btn-tomato:hover {
  background: var(--tomato-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(184, 57, 46, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-ghost {
  color: var(--ink);
  padding: 8px 0;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.btn-ghost .arrow {
  display: inline-block;
  transition: transform var(--t-base);
  margin-left: 8px;
}
.btn-ghost:hover { color: var(--green); }
.btn-ghost:hover .arrow { transform: translateX(6px); }

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.mobile-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 9vw, 130px);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  position: relative;
}
.hero-text { position: relative; z-index: 2; }
.hero-script {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-script);
  font-weight: 600;
  color: var(--green);
  font-size: clamp(2rem, 3.5vw, 2.875rem);
  line-height: 0.95;
  transform: rotate(-2deg);
  transform-origin: left center;
  letter-spacing: 0;
}
.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.hero-title em {
  font-style: italic;
  color: var(--tomato);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 490px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 48px;
  max-width: 520px;
}
.hero-meta-item .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--tomato);
  line-height: 1;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-meta-item .lbl {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero visual con composición ilustrada */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  min-height: 540px;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #2a241d 0%, #1f1b16 60%, #15110d 100%);
}
.hero-decor {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero-decor svg { width: 75%; height: auto; }

.hero-caption {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  z-index: 2;
  color: var(--bg);
}
.hero-caption .eyebrow-line {
  color: var(--gold);
  margin-bottom: 12px;
}
.hero-caption .eyebrow-line::before { background: var(--gold); }
.hero-caption-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.2;
  margin-bottom: 8px;
  font-weight: 400;
  color: var(--bg);
}
.hero-caption-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(250, 246, 239, 0.6);
  text-transform: uppercase;
}

/* Floating cards */
.hero-floating {
  position: absolute;
  background: var(--paper);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px -20px rgba(31, 27, 22, 0.25);
  z-index: 3;
  animation: floatY 6s ease-in-out infinite;
}
.hero-floating-tl {
  top: 24px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-floating-tl .ico {
  width: 40px; height: 40px;
  background: var(--bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.hero-floating-tl svg {
  width: 20px; height: 20px;
  color: var(--green);
}
.hero-floating-tl .txt {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.hero-floating-tl strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.hero-floating-br {
  bottom: 90px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  animation-delay: -3s;
}
.hero-floating-br .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-floating-br .txt {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.hero-floating-br strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(10, 125, 58, 0.5); }
  50% { opacity: 0.85; transform: scale(1.15); box-shadow: 0 0 0 8px rgba(10, 125, 58, 0); }
}

/* ---------- Brands marquee ---------- */
.marquee-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}
.marquee {
  display: flex;
  gap: 64px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee:hover { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--muted);
  letter-spacing: -0.01em;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  transition: color var(--t-base);
}
.marquee span:hover { color: var(--green); }
.marquee span.sep {
  font-style: normal;
  font-size: 8px;
  color: var(--line-strong);
  align-self: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section ---------- */
.section {
  padding: clamp(80px, 11vw, 150px) 0;
  position: relative;
}
.section.tight { padding: clamp(56px, 8vw, 100px) 0; }
.section.paper { background: var(--paper); }
.section.dark {
  background: var(--ink);
  color: var(--bg);
}
.section.dark h2, .section.dark h3 { color: var(--bg); }
.section.dark p { color: rgba(250, 246, 239, 0.65); }
.section.dark .eyebrow-line { color: var(--gold); }
.section.dark .eyebrow-line::before { background: var(--gold); }
.section.dark .script { color: #6fb787; }

.section-header { margin-bottom: clamp(48px, 7vw, 80px); }
.section-header.center { text-align: center; }
.section-header h2 {
  margin-top: 14px;
  max-width: 720px;
}
.section-header.center h2 { margin-left: auto; margin-right: auto; }
.section-header .script + h2 { margin-top: 6px; }
.section-header .lead {
  margin-top: 22px;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.75;
}
.section-header.center .lead { margin-left: auto; margin-right: auto; }

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(20px, 2.2vw, 28px) clamp(14px, 1.6vw, 22px);
}
.product-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: all var(--t-base);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px -22px rgba(31, 27, 22, 0.18);
  border-color: transparent;
}
.product-img {
  aspect-ratio: 4/5;
  background: var(--bg);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.product-img-placeholder {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(70px, 9vw, 110px);
  color: rgba(31, 27, 22, 0.09);
  line-height: 0.9;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  user-select: none;
  transition: all var(--t-slow);
}
.product-card:hover .product-img-placeholder {
  transform: scale(1.06);
  color: rgba(10, 125, 58, 0.13);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.product-card:hover .product-img img { transform: scale(1.04); }

.product-offer-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--tomato);
  color: white;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 5px 9px;
  text-transform: uppercase;
}

.product-body {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  text-align: center;
  flex: 1;
  position: relative;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--green);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  transition: color var(--t-base);
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card:hover .product-name { color: var(--green-dark); }
.product-cat {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.product-divider {
  height: 1px;
  background: var(--line);
  width: 70%;
  margin: 4px auto 14px;
}
.product-action {
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: color var(--t-base);
}
.product-action svg {
  width: 12px; height: 12px;
  transition: transform var(--t-base);
}
.product-card:hover .product-action { color: var(--tomato); }
.product-card:hover .product-action svg { transform: translateX(4px); }

/* ---------- Categories carousel (estilo italianshop) ---------- */
.cat-carousel-wrap {
  position: relative;
  overflow: hidden;
}
.cat-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 20px;
}
.cat-carousel::-webkit-scrollbar { display: none; }
.cat-item-v2 {
  flex: 0 0 auto;
  width: clamp(220px, 22vw, 280px);
  scroll-snap-align: start;
  cursor: pointer;
  display: block;
}
.cat-item-img {
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  background: var(--ink);
}
.cat-item-img-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--t-slow);
}
.cat-item-v2:hover .cat-item-img-inner { transform: scale(1.06); }

/* Patrones decorativos por categoría (sin imágenes reales aún) */
.cat-pattern-pasta    { background: linear-gradient(135deg, #d4a574 0%, #a07c4a 100%); }
.cat-pattern-harinas  { background: linear-gradient(135deg, #e8d8b8 0%, #b89568 100%); }
.cat-pattern-quesos   { background: linear-gradient(135deg, #e8dba5 0%, #b8a050 100%); }
.cat-pattern-embutidos{ background: linear-gradient(135deg, #b8453e 0%, #6a1f1c 100%); }
.cat-pattern-conservas{ background: linear-gradient(135deg, #c83a2a 0%, #8a1a14 100%); }
.cat-pattern-aceites  { background: linear-gradient(135deg, #b8a040 0%, #6a5a18 100%); }
.cat-pattern-salsas   { background: linear-gradient(135deg, #c0533a 0%, #6a2418 100%); }
.cat-pattern-vinos    { background: linear-gradient(135deg, #6a1838 0%, #380a1c 100%); }
.cat-pattern-especias { background: linear-gradient(135deg, #8a6840 0%, #4a3a20 100%); }

.cat-item-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(140px, 18vw, 200px);
  color: rgba(255, 255, 255, 0.12);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  line-height: 0.9;
  user-select: none;
}
.cat-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,27,22,0.1) 0%, transparent 35%, rgba(31,27,22,0.55) 100%);
}
.cat-item-name {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 500;
  transition: color var(--t-base);
}
.cat-item-v2:hover .cat-item-name { color: var(--green); }

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  transition: all var(--t-base);
}
.carousel-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: white;
  transform: scale(1.05);
}
.carousel-btn svg { width: 16px; height: 16px; }

/* ---------- Editorial banner (PRODUCTOS 100% FRESCOS style) ---------- */
.editorial-banner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.editorial-banner-img {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.editorial-banner-img-inner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 60% 30%, rgba(176, 138, 74, 0.2), transparent 50%),
    linear-gradient(135deg, #3d362e 0%, #1f1b16 100%);
}
.editorial-banner-img-letter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(180px, 26vw, 320px);
  color: rgba(250, 246, 239, 0.07);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  line-height: 0.85;
}
.editorial-banner-img-caption {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--bg);
  line-height: 1.5;
}
.editorial-banner-img-caption::before {
  content: '— ';
  color: var(--tomato);
}

.editorial-banner-content .script {
  display: block;
  margin-bottom: 10px;
}
.editorial-banner-content h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  margin-bottom: 24px;
}
.editorial-banner-content p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 18px;
}
.editorial-banner-content .btn-ghost { margin-top: 12px; }

/* ---------- Pull quote ---------- */
.pull-quote {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.pull-quote .script {
  display: block;
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3rem);
}
.pull-quote h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.625rem, 3.5vw, 2.75rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.pull-quote h3 .red { color: var(--tomato); font-style: italic; }
.pull-quote .attribution {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Toolbar catálogo ---------- */
.toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.search-input {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast);
}
.search-input:focus-within { border-color: var(--green); }
.search-input input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--ink);
}
.search-input svg { width: 16px; height: 16px; color: var(--muted); }

.toolbar select {
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.toolbar .count {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  letter-spacing: 0.04em;
}

/* ---------- Page header ---------- */
.page-header {
  padding: clamp(70px, 9vw, 110px) 0 clamp(56px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-header .script {
  display: block;
  margin-bottom: 6px;
}
.page-header h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -0.028em;
}
.page-header p {
  margin-top: 20px;
  color: var(--ink-soft);
  max-width: 620px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.value-item {
  position: relative;
}
.value-icon {
  width: 56px; height: 56px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  margin-bottom: 20px;
  transition: all var(--t-base);
}
.value-item:hover .value-icon {
  background: var(--green);
  color: white;
  transform: scale(1.08);
}
.value-icon svg { width: 22px; height: 22px; }
.value-item h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.value-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--paper);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-privacy {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.55;
}
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: none;
}
.form-status.success { background: rgba(10, 125, 58, 0.1); color: var(--green-dark); display: block; }
.form-status.error   { background: rgba(184, 57, 46, 0.1); color: var(--tomato-dark); display: block; }

.contact-info { padding-top: 6px; }
.info-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  align-items: start;
}
.info-item:last-child { border-bottom: none; }
.info-item .ico {
  width: 40px; height: 40px;
  background: var(--bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
}
.info-item svg { width: 16px; height: 16px; }
.info-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.info-value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
}
.info-value a { color: inherit; transition: color var(--t-fast); }
.info-value a:hover { color: var(--green); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 246, 239, 0.7);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-brand .brand-name { color: var(--bg); }
.footer-brand .brand-sub { color: #6fb787; }
.footer-script {
  margin-top: 22px;
  font-family: var(--font-script);
  font-weight: 500;
  font-size: 28px;
  color: #6fb787;
  line-height: 1;
}
.footer-tagline {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(250, 246, 239, 0.55);
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; font-size: 13px; }
.footer-col a {
  color: rgba(250, 246, 239, 0.6);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--bg); }
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 239, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(250, 246, 239, 0.4);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 27, 22, 0.55);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--t-base);
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal {
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 36px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--t-slow);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 50%;
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--bg); color: var(--ink); }
.modal .script {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
}
.modal h3 {
  font-size: 24px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--green);
  line-height: 1.2;
}
.modal-product-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.05em;
}
.modal-product-meta strong { color: var(--ink); font-weight: 600; }
.modal p { font-size: 14px; line-height: 1.7; }

/* ---------- Reveal animations ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-on-scroll.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll[data-delay="1"] { transition-delay: 0.08s; }
.reveal-on-scroll[data-delay="2"] { transition-delay: 0.16s; }
.reveal-on-scroll[data-delay="3"] { transition-delay: 0.24s; }
.reveal-on-scroll[data-delay="4"] { transition-delay: 0.32s; }
.reveal-on-scroll[data-delay="5"] { transition-delay: 0.40s; }

/* Hero entrance (sin esperar scroll) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text > * {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) forwards;
}
.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.25s; }
.hero-text > *:nth-child(3) { animation-delay: 0.4s; }
.hero-text > *:nth-child(4) { animation-delay: 0.55s; }
.hero-text > *:nth-child(5) { animation-delay: 0.7s; }
.hero-visual {
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-out) 0.3s forwards;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .hero-floating-tl, .hero-floating-br { display: none; }
  .editorial-banner { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav, .header-actions .btn { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 28px var(--gutter);
    gap: 20px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 24px; }
  .values { grid-template-columns: 1fr; }
  .top-strip-content { gap: 18px; font-size: 11px; }
  .top-strip-content span:nth-child(n+3) { display: none; }
}

/* ---------- Precio en tarjeta (solo ofertas) ---------- */
.product-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--tomato);
  margin-top: 6px;
  letter-spacing: -0.01em;
}

/* ---------- Gradientes categorías nuevas (catálogo 240) ---------- */
.cat-pattern-arroces      { background: linear-gradient(135deg, #d8c89a 0%, #a89656 100%); }
.cat-pattern-frutos_secos { background: linear-gradient(135deg, #b89568 0%, #6a4a28 100%); }
.cat-pattern-confiteria   { background: linear-gradient(135deg, #a85838 0%, #5a2818 100%); }
.cat-pattern-bebidas      { background: linear-gradient(135deg, #6a1838 0%, #380a1c 100%); }
.cat-pattern-panaderia    { background: linear-gradient(135deg, #d4b48a 0%, #9a7448 100%); }
.cat-pattern-otros        { background: linear-gradient(135deg, #8a8275 0%, #4a443a 100%); }

/* ---------- Hero con foto real ---------- */
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,27,22,0.1) 0%, rgba(31,27,22,0.15) 50%, rgba(31,27,22,0.75) 100%);
}
.hero-visual .hero-caption { z-index: 2; }
.hero-visual .hero-floating { z-index: 3; }

/* ---------- Banner editorial con foto ---------- */
.editorial-banner-img.has-photo .editorial-banner-img-inner {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.editorial-banner-img.has-photo .editorial-banner-img-letter { display: none; }
.editorial-banner-img.has-photo .editorial-banner-img-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,27,22,0.15) 0%, rgba(31,27,22,0.65) 100%);
}

/* ---------- Sección cita con foto de fondo ---------- */
.quote-photo-bg {
  position: relative;
  background-size: cover;
  background-position: center;
}
.quote-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31,27,22,0.82);
}
.quote-photo-bg .container-narrow { position: relative; z-index: 1; }
