/* ============================================================
   MIEL DE TREVINCA — Apple-style CSS
   Palette : blanc #ffffff, gris clair #f5f5f7, anthracite #1d1d1f
   Typo    : -apple-system, BlinkMacSystemFont (SF Pro)
   ============================================================ */

:root {
  --white:    #ffffff;
  --light:    #f5f5f7;
  --midgrey:  #e8e8ed;
  --smoke:    #6e6e73;
  --body:     #1d1d1f;
  --dark:     #1d1d1f;
  --amber:    #a07840;
  --amber-lt: #c8a060;
  --green-wa: #34c759;
  --blue:     #a07840;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --max: 980px;
  --max-wide: 1200px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --t: 0.35s var(--ease);
  --t-fast: 0.18s var(--ease);
}
/* ── Accessibility: visually hidden ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--body); background: var(--white); overflow-x: hidden; line-height: 1.47; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul   { list-style: none; }

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.07; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem);   font-weight: 700; letter-spacing: -0.01em;  line-height: 1.1;  }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -0.005em; line-height: 1.2;  }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: clamp(0.95rem, 1.5vw, 1.05rem); color: var(--smoke); line-height: 1.6; }

.eyebrow { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.6rem; }

.container       { max-width: var(--max);      margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2rem); }
.container--wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2rem); }

.section-white { background: var(--white); padding: clamp(4rem, 9vw, 8rem) 0; }
.section-light { background: var(--light); padding: clamp(4rem, 9vw, 8rem) 0; }
.section-dark  { background: var(--dark);  padding: clamp(4rem, 9vw, 8rem) 0; color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-dark h2 { color: var(--white); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* HEADER */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 48px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,0.1); }

.header-logo { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--body); letter-spacing: -0.01em; flex-shrink: 0; }
.header-logo img { height: 16px; width: auto; }
@media (max-width: 680px) { .header-logo img { height: 22px; } }

/* Nav perfectly centred regardless of logo/cart widths */
.header-nav {
  display: flex; align-items: center; gap: clamp(0.7rem, 2vw, 1.6rem);
  position: absolute; left: 50%; transform: translateX(-50%);
}
.header-nav a { font-size: 0.76rem; color: var(--smoke); transition: color var(--t-fast); white-space: nowrap; }
.header-nav a:hover, .header-nav a.active { color: var(--body); }

.btn-cart {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.76rem; font-weight: 500; color: var(--body);
  padding: 5px 12px; border: 1px solid rgba(0,0,0,0.2); border-radius: 980px;
  transition: background var(--t-fast), color var(--t-fast);
}
.btn-cart:hover { background: var(--body); color: var(--white); border-color: var(--body); }
.cart-count { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--amber); color: #fff; font-size: 0.62rem; font-weight: 700; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--body); }

/* HERO */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px clamp(1.25rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden; background: var(--dark);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-content h1 { color: var(--white); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; margin-bottom: 0.5rem; }
.hero-content h1 em { font-style: normal; background: linear-gradient(135deg, #c8a060, #e8c890, #a07840); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,0.7); margin: 0.85rem auto 0.4rem; max-width: 520px; line-height: 1.5; font-weight: 400; }
.hero-cta-note { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin: 0.4rem 0 2rem; }
.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,0.3); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* BUTTONS */
.btn-gold     { display: inline-flex; align-items: center; gap: 6px; background: var(--amber); color: #fff; font-size: 0.88rem; font-weight: 500; padding: 12px 22px; border-radius: 980px; transition: filter var(--t-fast), transform var(--t-fast); }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline-white { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #fff; font-size: 0.88rem; font-weight: 500; padding: 11px 22px; border-radius: 980px; border: 1.5px solid rgba(255,255,255,0.45); transition: border-color var(--t-fast), background var(--t-fast); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline-dark  { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--body); font-size: 0.88rem; font-weight: 500; padding: 11px 22px; border-radius: 980px; border: 1.5px solid rgba(160,120,64,0.45); transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.btn-outline-dark:hover  { border-color: var(--amber); color: var(--amber); background: rgba(160,120,64,0.06); }
.btn-dark     { display: inline-flex; align-items: center; gap: 6px; background: var(--body); color: #fff; font-size: 0.88rem; font-weight: 500; padding: 12px 22px; border-radius: 980px; transition: background var(--t-fast), transform var(--t-fast); }
.btn-dark:hover { background: #333; transform: translateY(-1px); }
.btn-wa       { display: inline-flex; align-items: center; gap: 8px; background: var(--green-wa); color: #fff; font-size: 0.88rem; font-weight: 600; padding: 12px 22px; border-radius: 980px; transition: filter var(--t-fast), transform var(--t-fast); }
.btn-wa:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-wa svg { width: 18px; height: 18px; flex-shrink: 0; }

/* STORY */
.story-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(4rem, 9vw, 8rem) 0; }
.story-split.flip { direction: rtl; }
.story-split.flip > * { direction: ltr; }
.story-text h2 { margin-bottom: 1rem; }
.story-text p  { margin-bottom: 0.8rem; }
.story-text .link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 0.9rem; color: var(--amber); margin-top: 0.5rem; transition: gap var(--t-fast); }
.story-text .link-more:hover { gap: 8px; }
.story-text .link-more::after { content: "→"; }
.story-img img { width: 100%; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.1); }

/* SHOWCASE */
.showcase-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.showcase-visual { position: sticky; top: 60px; height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 3rem; background: var(--light); }
.showcase-visual-inner { position: relative; width: 100%; max-width: 360px; display: flex; align-items: center; justify-content: center; }
.showcase-img { width: 100%; border-radius: 18px; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.5s ease; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.14)); }
.showcase-img.active { opacity: 1; position: relative; }
.showcase-chapters { background: var(--white); }
.product-chapter { min-height: 80vh; display: flex; align-items: center; padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--midgrey); }
.product-chapter:last-child { border-bottom: none; }
.chapter-inner { max-width: 440px; }
.chapter-format { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke); margin-bottom: 0.4rem; }
.chapter-title  { font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.chapter-desc   { color: var(--smoke); font-size: 1rem; line-height: 1.65; margin-bottom: 0.5rem; }
.chapter-price  { font-size: 0.95rem; color: var(--smoke); margin: 1rem 0; }
.chapter-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.chapter-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.88rem; color: var(--amber); transition: gap var(--t-fast); margin-top: 1rem; }
.chapter-link:hover { gap: 7px; }
.chapter-link::after { content: " →"; }

.qty-control { display: flex; align-items: center; border: 1px solid var(--midgrey); border-radius: 980px; overflow: hidden; background: var(--light); }
.qty-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--body); transition: background var(--t-fast); }
.qty-btn:hover { background: var(--midgrey); }
.qty-input { width: 40px; text-align: center; border: none; background: transparent; font-size: 0.9rem; color: var(--body); height: 34px; -moz-appearance: textfield; }
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--body); color: #fff; font-size: 0.85rem; font-weight: 500; padding: 10px 20px; border-radius: 980px; transition: background var(--t-fast); flex: 1; min-width: 140px; }
.btn-add:hover { background: #333; }
.btn-add.added { background: #34c759; }

/* TILES GRID */
.tiles-section { padding: 0; }
.tiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tile { position: relative; overflow: hidden; aspect-ratio: 3/4; display: flex; flex-direction: column; justify-content: flex-end; }
.tile-bg { position: absolute; inset: 0; background: var(--dark); }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 0.7s var(--ease), opacity 0.4s; }
.tile:hover .tile-img { transform: scale(1.04); opacity: 0.68; }
.tile-content { position: relative; z-index: 1; padding: 2rem 1.75rem; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%); color: var(--white); }
.tile-content .eyebrow { color: rgba(255,255,255,0.55); }
.tile-content h3 { font-size: 1.45rem; color: var(--white); margin-bottom: 0.35rem; }
.tile-content p  { font-size: 0.84rem; color: rgba(255,255,255,0.68); line-height: 1.55; }
.tile-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

/* CERTS */
.certs-section { padding: clamp(4rem, 8vw, 7rem) 0; text-align: center; }
.certs-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(2.5rem, 5vw, 5rem); margin: 2.5rem 0 2rem; }
.cert-item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.cert-item img { height: 90px; width: auto; object-fit: contain; }
.cert-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--smoke); }
.certs-desc { max-width: 520px; margin: 0 auto; font-size: 0.95rem; }

/* CTA BAND */
.cta-band { background: var(--body); padding: clamp(5rem, 10vw, 8rem) 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(160,120,64,0.18) 0%, transparent 65%); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p  { color: rgba(255,255,255,0.6); max-width: 440px; margin: 0 auto 2rem; }

/* PAGE HERO */
.page-hero { padding: calc(48px + clamp(3rem, 7vw, 5rem)) 0 clamp(2.5rem, 5vw, 4rem); text-align: center; background: var(--white); border-bottom: 1px solid var(--midgrey); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); margin-bottom: 0.6rem; }
.page-hero p  { max-width: 500px; margin: 0 auto; }

/* SHOP */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); padding: clamp(3rem, 6vw, 5rem) 0; }
.product-card { background: var(--light); border-radius: 18px; overflow: hidden; transition: transform var(--t), box-shadow var(--t); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.product-card-img-wrap { background: var(--white); padding: 2rem 1.5rem 0; display: flex; align-items: center; justify-content: center; }
.product-card-img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform 0.6s var(--ease); }
.product-card:hover .product-card-img { transform: scale(1.04); }
.product-card-body { padding: 1.25rem 1.5rem 1.75rem; }
.product-card-body h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.product-card-body .product-type { font-size: 0.78rem; color: var(--smoke); margin-bottom: 0.5rem; }
.product-card-body .price { font-size: 0.88rem; color: var(--smoke); margin: 0.5rem 0 1rem; }
.product-card-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* PRODUCT DETAIL */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: calc(48px + clamp(2rem, 5vw, 4rem)) 0 clamp(4rem, 8vw, 6rem); }
.product-detail-img { position: sticky; top: 68px; background: var(--light); border-radius: 24px; padding: 2.5rem; display: flex; align-items: center; justify-content: center; }
.product-detail-img img { width: 100%; max-height: 460px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)); }
.product-detail-info { padding-top: 1rem; }
.product-detail-info h1 { margin-bottom: 0.3rem; }
.product-detail-info .product-type { font-size: 0.75rem; color: var(--smoke); margin-bottom: 1rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.product-detail-info .price { font-size: 0.95rem; color: var(--smoke); margin: 1rem 0 1.5rem; }
.product-detail-info p  { color: var(--smoke); margin-bottom: 0.8rem; }
.product-origin { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--light); border-radius: 12px; }
.product-origin h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.product-origin p  { font-size: 0.88rem; }
.detail-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; align-items: center; }
.certs-row { display: flex; gap: 1rem; margin-top: 2rem; align-items: center; flex-wrap: wrap; }
.certs-row img { height: 48px; width: auto; }

/* CONTACTO */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding: calc(48px + clamp(2rem, 5vw, 4rem)) 0 clamp(4rem, 8vw, 6rem); align-items: start; }
.contact-info-card { background: var(--body); color: var(--white); border-radius: 18px; padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-card h2 { color: var(--white); }
.contact-detail { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-detail-icon { color: var(--amber-lt); flex-shrink: 0; margin-top: 2px; }
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-detail a { color: rgba(255,255,255,0.75); font-size: 0.9rem; transition: color var(--t-fast); }
.contact-detail a:hover { color: var(--amber-lt); }
.contact-detail p { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.7; }
.contact-info-card img { width: 100%; border-radius: 12px; opacity: 0.65; margin-top: 0.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; padding-top: calc(48px + 1.5rem); }
.contact-form h2 { margin-bottom: 0.3rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--smoke); }
.form-input, .form-textarea { padding: 11px 14px; border: 1px solid var(--midgrey); border-radius: 10px; background: var(--light); font-family: var(--font); font-size: 0.9rem; color: var(--body); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(160,120,64,0.15); background: var(--white); }
.form-textarea { min-height: 130px; resize: vertical; }
.honeypot { display: none !important; }
.form-note { font-size: 0.72rem; color: #b0b0b5; }

/* MONTAÑAS */
.montanas-hero { min-height: 70vh; display: flex; align-items: flex-end; justify-content: center; padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; padding-top: 48px; background: #0d1f0a; text-align: center; }
.montanas-hero-content { position: relative; z-index: 1; max-width: 700px; color: var(--white); }
.montanas-hero-content h1 { color: var(--white); margin-bottom: 0.75rem; }
.montanas-hero-content p { color: rgba(255,255,255,0.65); font-size: 1.1rem; }
.montanas-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.montanas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.montanas-grid.reverse { direction: rtl; }
.montanas-grid.reverse > * { direction: ltr; }
.montanas-grid img { width: 100%; border-radius: 18px; }
.montanas-text h2 { margin-bottom: 1rem; }
.montanas-text p { color: var(--smoke); margin-bottom: 1rem; }

/* CERTS PAGE */
.certs-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 3rem; }
.cert-card { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--light); border-radius: 18px; display: flex; flex-direction: column; gap: 1rem; }
.cert-card-logo { display: flex; align-items: center; gap: 1.25rem; }
.cert-card-logo img { height: 72px; width: auto; object-fit: contain; flex-shrink: 0; }
.cert-card-logo h3 { font-size: 1.3rem; }
.cert-card p { color: var(--smoke); font-size: 0.9rem; }

/* XUNTA */
.xunta-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.xunta-card { max-width: 820px; margin: 0 auto; background: var(--light); border-radius: 20px; overflow: hidden; }
.xunta-card-img img { width: 100%; max-height: 360px; object-fit: contain; background: var(--white); padding: 2rem; }
.xunta-card-body { padding: clamp(2rem, 4vw, 3rem); }
.xunta-card-body h2 { margin-bottom: 0.75rem; }
.xunta-card-body p { color: var(--smoke); margin-bottom: 0.9rem; font-size: 0.92rem; }

/* LEGAL */
.legal-content { max-width: 740px; margin: 0 auto; padding: calc(48px + clamp(3rem, 6vw, 5rem)) clamp(1.25rem, 5vw, 3rem) clamp(4rem, 8vw, 6rem); }
.legal-content h1 { margin-bottom: 0.4rem; }
.legal-content .legal-meta { font-size: 0.78rem; color: #b0b0b5; margin-bottom: 2.5rem; }
.legal-content h2 { font-size: 1.4rem; font-weight: 600; margin: 2.5rem 0 0.6rem; }
.legal-content p  { color: var(--smoke); margin-bottom: 0.9rem; font-size: 0.92rem; }
.legal-content ul { padding-left: 1.5rem; list-style: disc; color: var(--smoke); font-size: 0.92rem; margin-bottom: 0.9rem; }
.legal-content ul li { margin-bottom: 0.4rem; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 1.5rem 0; }
.legal-content table th { background: var(--body); color: var(--white); padding: 10px 12px; text-align: left; font-weight: 500; }
.legal-content table td { padding: 10px 12px; border-bottom: 1px solid var(--midgrey); color: var(--smoke); }
.placeholder-box { display: inline-block; background: #fff8e6; border: 1px dashed #c8a060; padding: 8px 12px; border-radius: 8px; font-size: 0.82rem; color: #92690a; margin: 0.4rem 0; }

/* FOOTER */
.site-footer { background: var(--light); border-top: 1px solid var(--midgrey); padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; color: var(--smoke); font-size: 0.78rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 2rem; border-bottom: 1px solid var(--midgrey); margin-bottom: 1.5rem; }
.footer-brand-name { font-size: 0.9rem; font-weight: 600; color: var(--body); margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.78rem; line-height: 1.6; max-width: 200px; }
.footer-col h5 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--body); margin-bottom: 0.8rem; }
.footer-col a { display: block; margin-bottom: 0.45rem; font-size: 0.78rem; color: var(--smoke); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--body); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-size: 0.72rem; color: #b0b0b5; }
.footer-bottom a { color: #b0b0b5; transition: color var(--t-fast); }
.footer-bottom a:hover { color: var(--body); }
.xunta-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--midgrey); padding: 5px 10px; border-radius: 6px; color: #b0b0b5; font-size: 0.7rem; transition: all var(--t-fast); }
.xunta-badge:hover { border-color: #b0b0b5; color: var(--smoke); }

/* CART */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); backdrop-filter: blur(2px); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); background: var(--white); z-index: 301; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -4px 0 30px rgba(0,0,0,0.1); }
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--midgrey); }
.cart-header h4 { font-size: 1.1rem; font-weight: 600; }
.cart-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--light); border-radius: 50%; font-size: 1rem; color: var(--smoke); transition: background var(--t-fast); }
.cart-close:hover { background: var(--midgrey); }
.cart-items { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.cart-empty { text-align: center; color: var(--smoke); padding: 3rem 0; }
.cart-item { display: flex; gap: 0.9rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--midgrey); }
.cart-item-name { flex: 1; font-size: 0.9rem; font-weight: 500; }
.cart-item-qty { color: var(--smoke); font-size: 0.82rem; }
.cart-item-remove { color: #b0b0b5; font-size: 0.75rem; cursor: pointer; transition: color var(--t-fast); }
.cart-item-remove:hover { color: #ff3b30; }
.cart-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--midgrey); }
.btn-wa-full { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: var(--green-wa); color: #fff; font-size: 0.9rem; font-weight: 600; border-radius: 980px; transition: filter var(--t-fast); }
.btn-wa-full:hover { filter: brightness(1.06); }
.btn-wa-full svg { width: 18px; height: 18px; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .showcase-layout { grid-template-columns: 1fr; }
  .showcase-visual { position: relative; top: auto; height: auto; min-height: 380px; }
  .showcase-img { position: relative; opacity: 0; }
  .showcase-img.active { opacity: 1; }
  .story-split { grid-template-columns: 1fr; }
  .story-split.flip { direction: ltr; }
  .tiles-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-img { position: relative; top: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding-top: 0; }
  .certs-page-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .montanas-grid { grid-template-columns: 1fr; }
  .montanas-grid.reverse { direction: ltr; }
}
@media (max-width: 680px) {
  .header-nav { display: none; position: static; transform: none; }
  .header-nav.mobile-open { display: flex; flex-direction: column; position: fixed; top: 48px; left: 0; right: 0; transform: none; background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); padding: 0.5rem 0; border-bottom: 1px solid var(--midgrey); box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 199; }
  .header-nav.mobile-open a { padding: 0.75rem 1.5rem; font-size: 0.9rem; border-bottom: 1px solid var(--midgrey); }
  .hamburger { display: flex; }
  .shop-grid { grid-template-columns: 1fr; }
  .tiles-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
img[loading="lazy"] { opacity: 0; transition: opacity 0.5s ease; }
img[loading="lazy"].loaded { opacity: 1; }
.divider { height: 1px; background: var(--midgrey); }

/* ═══════════════════════════════
   APPLE 2x2 PRODUCT GRID
═══════════════════════════════ */
.apple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #000;
}
.apple-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem) 0;
  overflow: hidden;
  min-height: 520px;
}
.apple-cell--white  { background: #fff; }
.apple-cell--light  { background: #f5f5f7; }
.apple-cell--dark   { background: #1d1d1f; }
.apple-cell--sky    { background: #e8f4fb; }

.apple-cell__eyebrow {
  display: block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.apple-cell--dark .apple-cell__eyebrow { color: rgba(200,160,96,0.85); }
.apple-cell--white .apple-cell__eyebrow,
.apple-cell--light .apple-cell__eyebrow,
.apple-cell--sky   .apple-cell__eyebrow { color: var(--amber); }

.apple-cell__title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 0.3rem;
}
.apple-cell--dark .apple-cell__title { color: #fff; }

.apple-cell__sub {
  font-size: clamp(0.88rem, 1.3vw, 1.05rem);
  line-height: 1.5;
  margin: 0.2rem 0 0.15rem;
  max-width: 320px;
}
.apple-cell--dark .apple-cell__sub { color: rgba(255,255,255,0.7); }

.apple-cell__note {
  font-size: 0.75rem;
  margin: 0.15rem 0 1.25rem;
}
.apple-cell--dark .apple-cell__note { color: rgba(255,255,255,0.4); }
.apple-cell--white .apple-cell__note,
.apple-cell--light .apple-cell__note,
.apple-cell--sky   .apple-cell__note { color: #b0b0b5; }

.apple-cell__actions {
  display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.apple-cell__img {
  width: 100%;
  max-width: 420px;
  margin: 2rem auto 0;
  align-self: center;
}
.apple-cell__img img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 22px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.10);
}
.apple-cell--dark .apple-cell__img img {
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

/* Span pleine largeur (optionnel) */
.apple-cell--full { grid-column: 1 / -1; }

@media (max-width: 700px) {
  .apple-grid { grid-template-columns: 1fr; }
  .apple-cell { min-height: 420px; }
}

/* ═══════════════════════════════════════════
   TIENDA — 3D JAR ROTATION (Apple Watch style)
═══════════════════════════════════════════ */
.jar-showcase {
  padding: calc(48px + 4rem) 0 0;
  background: var(--white);
  text-align: center;
  overflow: hidden;
}
.jar-showcase__header { padding: 0 clamp(1.25rem,5vw,2rem) 3rem; }
.jar-showcase__header h1 { margin-bottom: 0.3rem; }
.jar-showcase__header p  { max-width: 480px; margin: 0 auto; }

/* Scene 3D */
.jar-scene {
  perspective: 900px;
  width: 100%;
  height: clamp(320px, 50vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: grab;
  user-select: none;
}
.jar-scene:active { cursor: grabbing; }

.jar-3d {
  width: clamp(180px, 28vw, 340px);
  height: clamp(180px, 28vw, 340px);
  position: relative;
  transform-style: preserve-3d;
  /* continuous auto-rotation, paused on hover */
  animation: jarSpin 12s linear infinite;
  transition: animation-play-state 0.2s;
}
.jar-3d:hover,
.jar-3d.dragging { animation-play-state: paused; }

@keyframes jarSpin {
  from { transform: rotateY(0deg) rotateX(-8deg); }
  to   { transform: rotateY(360deg) rotateX(-8deg); }
}

.jar-3d img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  /* drop shadow like Apple product renders */
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.18));
  backface-visibility: hidden;
  border-radius: 0;
}

/* Reflection under jar */
.jar-reflection {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.12) 0%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* Product selector tabs */
.jar-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(0,0,0,0.06);
  border-radius: 980px;
  padding: 3px;
  width: fit-content;
  margin: 0 auto 2rem;
}
.jar-tab {
  padding: 7px 22px;
  border-radius: 980px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--smoke);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.jar-tab.active {
  background: var(--white);
  color: var(--body);
  box-shadow: 0 1px 4px rgba(0,0,0,0.14);
}

/* Product info below rotation */
.jar-info {
  padding: 2.5rem clamp(1.25rem,5vw,2rem) 0;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.jar-info h2 { font-size: clamp(2rem,4vw,3rem); margin-bottom: 0.3rem; }
.jar-info .jar-sub { font-size: clamp(1rem,1.6vw,1.2rem); color: var(--smoke); line-height: 1.5; margin-bottom: 0.3rem; }
.jar-info .jar-price { font-size: 0.85rem; color: #b0b0b5; margin-bottom: 1.75rem; }
.jar-info .jar-actions {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Slide-in animation when switching products */
.jar-info.switching {
  animation: jarInfoOut 0.18s ease forwards;
}
@keyframes jarInfoOut {
  to { opacity: 0; transform: translateY(8px); }
}
.jar-info.entering {
  animation: jarInfoIn 0.28s ease forwards;
}
@keyframes jarInfoIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   CART DRAWER — Quantity controls
═══════════════════════════════════════════ */
.cart-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--midgrey);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--light);
  border: 1px solid var(--midgrey);
  border-radius: 980px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--body);
  cursor: pointer;
  background: none; border: none;
  transition: background var(--t-fast);
}
.cart-item-btn:hover { background: var(--midgrey); }
.cart-item-qty-display {
  min-width: 28px; text-align: center;
  font-size: 0.82rem; font-weight: 500; color: var(--body);
}
.cart-item-remove-btn {
  background: none; border: none;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: #b0b0b5; cursor: pointer; border-radius: 50%;
  font-size: 0.75rem; flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.cart-item-remove-btn:hover { background: #fff0f0; color: #ff3b30; }

/* Cart subtotal */
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0;
  font-size: 0.82rem; color: var(--smoke);
  border-bottom: 1px solid var(--midgrey);
  margin-bottom: 0.85rem;
}
.cart-subtotal strong { color: var(--body); font-size: 0.88rem; }



/* ============================================================
   APPLE PREMIUM PATCH — visual improvements only
   ============================================================ */

:root{
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow-1: 0 10px 30px rgba(0,0,0,.08);
  --shadow-2: 0 18px 55px rgba(0,0,0,.10);
  --shadow-3: 0 28px 80px rgba(0,0,0,.12);

  --hairline: rgba(0,0,0,.08);
}

/* Sections spacing like Apple */
.section-white, .section-light, .section-dark{
  padding: clamp(4.5rem, 10vw, 9rem) 0;
}

/* Typography tightening */
h1{ letter-spacing: -0.02em; }
h2{ letter-spacing: -0.015em; }
h3{ letter-spacing: -0.01em; }

/* Links Apple style */
a{ text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

/* PRODUCT IMAGES */
.product-card-img,
.product-detail-img,
.story-img img,
.montanas-grid img,
.xunta-card-img img{
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}

.product-card{
  border-radius: var(--r-xl);
  border: 1px solid rgba(0,0,0,.06);
}

.product-card:hover{
  box-shadow: var(--shadow-2);
  border-color: rgba(0,0,0,.10);
}

.product-card-img-wrap{
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.product-detail-img{
  border-radius: var(--r-xl);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-3);
}

/* Logos must stay flat */
.certs-row img,
.cert-item img,
.cert-card-logo img,
.header-logo img{
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

/* Jar 3D exception */
.jar-3d img{
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Buttons Apple */
.btn-gold, .btn-dark, .btn-wa, .btn-outline-white, .btn-outline-dark, .btn-add, .btn-cart, .btn-wa-full{
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0,0,0,.10);
}

.btn-outline-dark, .btn-cart{
  box-shadow: none;
}

.btn-outline-dark:hover{
  background: rgba(0,0,0,.03);
}

/* Header hairline */
.site-header{
  border-bottom: 1px solid var(--hairline);
}

/* Cart drawer */
.cart-drawer{
  border-top-left-radius: var(--r-xl);
  border-bottom-left-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
}

.cart-close{
  border-radius: 999px;
}

/* Accessibility */
:focus-visible{
  outline: 3px solid rgba(160,120,64,.35);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ============================================================
   Mobile/touch reliability (panier quantités)
   ============================================================ */

.cart-item-btn,
.cart-item-remove-btn,
.qty-btn,
.btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

@media (max-width: 680px) {
  .cart-item-btn { width: 36px; height: 36px; font-size: 1.1rem; }
  .cart-item-qty-display { min-width: 36px; font-size: 0.9rem; }
  .cart-item-remove-btn { width: 36px; height: 36px; font-size: 1.1rem; }
  .cart-item-controls { gap: 10px; }
}

/* ============================================================
   PATCH v2 — Format thumbs + reveal unification + floating
   ============================================================ */

/* ── 1. Reveal: single system — .reveal.visible (app.js) ── */

/* ── 2. Format thumbs — Apple Store picker ── */
.format-thumbs {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 5vw, 2rem) 0;
  flex-wrap: wrap;
}

.format-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  transition: transform 0.25s var(--ease);
}
.format-thumb:hover { transform: translateY(-3px); }

.format-thumb__img {
  width: clamp(80px, 12vw, 110px);
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--light);
  border: 2px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.format-thumb__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.format-thumb.active .format-thumb__img {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(160,120,64,0.15);
}

.format-thumb__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--smoke);
  font-family: var(--font);
  transition: color 0.2s;
}
.format-thumb.active .format-thumb__label {
  color: var(--amber);
  font-weight: 600;
}

/* ── 3. Product floating image effect ── */
.product-float {
  transition: transform 0.7s cubic-bezier(0.25,0.1,0.25,1),
              opacity 0.5s ease;
  will-change: transform;
}
.product-float.is-float {
  animation: floatImage 5s ease-in-out infinite;
}
@keyframes floatImage {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── 4. Favicon injection: no CSS needed — handled in HTML ── */

/* ── 5. Panel image hover lift (tienda) ── */
.panel-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.25,0.1,0.25,1),
              filter 0.4s ease;
}
.panel-img-wrap img:hover {
  transform: scale(1.03) translateY(-6px);
  filter: drop-shadow(0 40px 70px rgba(0,0,0,0.18));
}

/* ── 6. Apple-style section divider lines ── */
.section-white + .section-light,
.section-light + .section-white {
  border-top: 1px solid var(--midgrey);
}

/* ── 7. Subtle page transitions ── */
@media (prefers-reduced-motion: no-preference) {
  body {
    animation: pageFadeIn 0.35s ease both;
  }
  @keyframes pageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* ── 8. Apple product cell image sizing fix ── */
.apple-cell__img img {
  max-height: 340px;
  object-fit: contain;
  width: 100%;
}

/* ── 9. Scroll indicator animation refinement ── */
.hero-scroll { animation: fadeInUp 1.2s 1.5s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── 10. Tienda product panel smooth bg transition ── */
.product-selector {
  background: var(--white);
}

/* ── 11. Format thumb responsive ── */
@media (max-width: 480px) {
  .format-thumb__img {
    width: 72px;
    padding: 8px;
  }
  .format-thumb__label {
    font-size: 0.72rem;
  }
}


/* ===== PATCH v8 — Home product images perfectly centered (desktop + mobile) ===== */
/* The white rounded photo box inside each product quadrant */
.product-card-img-wrap{
  padding: 1.75rem 1.75rem;          /* equal padding top/bottom => true centering */
  min-height: 320px;                  /* keeps the box tall like Apple */
  border-radius: 22px;                /* rounded box (Apple) */
  box-shadow: 0 22px 70px rgba(0,0,0,.10);
}

/* The jar image itself */
.product-card-img{
  width: auto !important;
  max-width: 100%;
  height: 240px;                      /* consistent jar size */
  max-height: 240px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 18px;                /* subtle rounding on the image edges */
}

/* Ensure the wrapper centers both axis even if parent styles differ */
.product-card-img-wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* Mobile: slightly smaller jar + box */
@media (max-width: 768px){
  .product-card-img-wrap{ min-height: 240px; padding: 1.25rem; border-radius: 20px; }
  .product-card-img{ height: 190px; max-height: 190px; }
}
/* =========================
   PATCH HOME / TILES / MAP
   ========================= */

/* 1) HOME – images produits centrées (bug: align-self flex-end -> pas centré) */
.apple-cell__img{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:flex-end;
  margin-left:auto;
  margin-right:auto;
  align-self:center !important;
}

.apple-cell__img img{
  display:block;
  margin:0 auto;
  border-radius:22px;              /* arrondis "Apple" */
  background:transparent;
}

/* 2) HOME – sections "tiles" moins hautes (Apple = rectangles, pas colonnes géantes) */
@media (min-width: 900px){
  .tiles-grid{ grid-template-columns: repeat(3, 1fr); }
  .tile{ aspect-ratio: 16/9; }
}
@media (max-width: 899px){
  .tiles-grid{ grid-template-columns: 1fr; }
  .tile{ aspect-ratio: 16/10; }
}

/* 3) MAP – boutons alignés et centrés */
.map-actions{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
}

/* 4) Carousel Apple (territoire / centres) */
.apple-carousel{
  position:relative;
  margin-top:18px;
}

.apple-carousel__track{
  display:flex;
  gap:16px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding: 6px 4px;
  border-radius:24px;
}

.apple-carousel__track img{
  flex: 0 0 85%;
  max-width: 85%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  scroll-snap-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}

@media (max-width: 900px){
  .apple-carousel__track img{
    flex-basis: 92%;
    max-width: 92%;
    height: 320px;
  }
}

.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  cursor:pointer;
  z-index:2;
}

.carousel-btn--prev{ left:-8px; }
.carousel-btn--next{ right:-8px; }

@media (max-width: 900px){
  .carousel-btn{ display:none; } /* mobile = swipe */
}

/* 5) Modal (map + pdf) */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}

.modal.is-open{ display:block; }

.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
}

.modal__panel{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(1100px, 92vw);
  height:min(720px, 82vh);
  border-radius: 26px;
  background:#fff;
  overflow:hidden;
  box-shadow: 0 30px 120px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
}
/* modal__body fills remaining height after close button */
.modal__body{
  flex:1;
  overflow:hidden;
  position:relative;
}
.modal__body iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
/* modal__bar (used by mapModal) */
.modal__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px 14px 22px;
  border-bottom:1px solid var(--midgrey);
  flex-shrink:0;
}
.modal__title{
  font-size:0.9rem;
  font-weight:600;
  color:var(--body);
}

.modal__close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.92);
  font-size:22px;
  cursor:pointer;
  z-index:5;
}

.modal__iframe{
  width:100%;
  height:100%;
  border:0;
}


/* === PATCH v10 (centrage produits HOME + tiles + footer funding + carousels) === */

/* 1) Produits HOME: image parfaitement centrée dans la carte (desktop + mobile) */
.apple-cell{ text-align:center; }
.apple-cell__actions{ justify-content:center; }
.apple-cell__img{
  align-self:center !important;
  margin: 26px auto 0 !important;
  width: 100%;
  max-width: 460px;
  display:flex;
  justify-content:center;
  align-items:center;
}
.apple-cell__img img{
  display:block;
  margin: 0 auto;
  width:auto;
  max-width: 100%;
  height:auto;
  max-height: 320px;
  border-radius: 28px;
  background: transparent;
  padding: 0;          /* reset: base rule had padding:22px (transparent now → orphan gap) */
  box-shadow: none;    /* reset: drop-shadow via filter below instead */
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.12));
}
.apple-cell--dark .apple-cell__img img{
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.40));
}

/* 2) Tiles HOME (Territorio): visuels plein cadre + dimensions stables */
.tiles-grid{ grid-auto-rows: minmax(460px, auto); }
.tile{ overflow:hidden; }
.tile-img{ opacity: 1; filter:none; }
.tile-placeholder{ opacity: .06; }
.tile-content{
  position:absolute; left:0; right:0; bottom:0;
  padding: 22px 22px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  color:#fff;
}
.tile-eyebrow{ opacity:.9; }
.tile-title{ color:#fff; }
.tile-text{ color: rgba(255,255,255,.85); }

/* 3) Footer: carte cofinancement + logo visible */
.footer__funding{
  margin-top: 18px;
  display:flex;
  justify-content:center;
}
.funding-card{
  width: min(460px, 100%);
  border-radius: 22px;
  overflow:hidden;
  background: #0b2237;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.funding-card__img{
  display:block;
  width:100%;
  height:auto;
}
.funding-card__body{
  padding: 14px 16px 16px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  line-height: 1.35;
}
.funding-card__body small{ color: rgba(255,255,255,.78); display:block; margin-top:6px; }

/* 4) Carousel (Montañas): simple, Apple-like */
.carousel{
  position:relative;
  border-radius: 26px;
  overflow:hidden;
  background:#f5f5f7;
  border: 1px solid rgba(0,0,0,.08);
}
.carousel-track{
  display:flex;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.carousel-slide{
  min-width:100%;
  position:relative;
  aspect-ratio: 16 / 9;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}
.carousel-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.carousel-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:42px;height:42px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.carousel-btn:hover{ background: rgba(255,255,255,.95); }
.carousel-btn.prev{ left:14px; }
.carousel-btn.next{ right:14px; }
.carousel-dots{
  position:absolute;
  left:0; right:0; bottom:10px;
  display:flex;
  gap:8px;
  justify-content:center;
}
.carousel-dot{
  width:8px;height:8px;border-radius:999px;
  background: rgba(0,0,0,.25);
}
.carousel-dot.is-active{ background: rgba(0,0,0,.65); }
@media (max-width: 720px){
  .tiles-grid{ grid-auto-rows: minmax(360px, auto); }
  .carousel-btn{ width:38px;height:38px; }
}

/* === END PATCH v10 === */


/* ── Utility classes for Documentos oficiales (certificados) ── */
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 0;
}
.sub {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: var(--smoke);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 0;
}
.center { text-align: center; }


/* Documentos oficiales (certificados) */
.doc-card{
  max-width: 860px;
  margin: 28px auto 0;
  padding: 28px;
  border-radius: 28px;
  background: rgba(0,0,0,0.03);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  text-align: center;
}
.doc-actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.modal__panel--wide{max-width: 1100px;}
.modal__iframe{
  /* height/width controlled by .modal__body iframe rule above */
  border-radius: 0;
  background: #fff;
}
html.modal-open{overflow: hidden;}

/* =========================================================
   GLOBAL CAROUSELS / GALLERIES FIX
   ========================================================= */

.carousel,
.premium-gallery {
  width: 100%;
}

.carousel {
  position: relative;
  margin-top: 1.5rem;
}

.carousel-track {
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}

.carousel {
  overflow: hidden;
  border-radius: 22px;
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: clamp(260px, 42vw, 620px);
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  background: #f4f4f4;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(15,15,15,.62);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.04);
  background: rgba(15,15,15,.82);
}

.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .55rem;
  padding: 1rem 0 .15rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.2);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.carousel-dot.is-active {
  background: rgba(0,0,0,.75);
  transform: scale(1.15);
}

/* =========================================================
   PREMIUM GALLERY APPLE-LIKE
   ========================================================= */

.premium-gallery-section {
  overflow: hidden;
}

.premium-gallery {
  margin-top: 1.6rem;
}

.premium-gallery__stage {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
}

.premium-gallery__stage img {
  width: 100%;
  height: clamp(320px, 52vw, 760px);
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}

.premium-gallery__thumbs {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: .7rem;
}

.premium-thumb {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  opacity: .72;
  transform: scale(1);
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.premium-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.premium-thumb.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(200,160,96,.9);
}

.premium-thumb img {
  width: 100%;
  height: 88px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__dialog {
  width: min(92vw, 1200px);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__dialog img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 18px;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.lightbox__close {
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  font-size: 20px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 28px;
}

.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

/* =========================================================
   TERRITORY PAGE SPECIFIC
   ========================================================= */

.territory-hero {
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 90px clamp(1.25rem, 5vw, 3rem) clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(170deg, #0c1e09 0%, #17191a 100%);
  position: relative;
  overflow: hidden;
}

.territory-hero__bgmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.06;
  pointer-events: none;
}

.territory-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.territory-hero h1 {
  color: #fff;
  margin-bottom: .8rem;
}

.territory-hero__lead {
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 2vw, 1.22rem);
  max-width: 640px;
  margin: 0 auto;
}

.story-split--territory {
  align-items: stretch;
}

.story-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(0,0,0,.08);
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.territory-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.territory-facts__item {
  background: #faf8f2;
  border-radius: 18px;
  padding: 1rem;
}

.territory-facts__item strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: .4rem;
}

.territory-facts__item span {
  display: block;
  color: rgba(0,0,0,.68);
  font-size: .95rem;
}

.territory-side-photo img,
.territory-seal {
  width: 100%;
  display: block;
  border-radius: 22px;
  box-shadow: 0 20px 56px rgba(0,0,0,.1);
}

.territory-seal {
  max-width: 360px;
  margin: 0 auto;
}

.surface-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.surface-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  padding: 1.1rem 1rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.03);
}

.surface-card h3 {
  font-size: 1rem;
  margin-bottom: .55rem;
}

.surface-card p {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.section-note {
  margin-top: 1rem;
  color: rgba(0,0,0,.68);
}

.reg-badges {
  display: grid;
  gap: .75rem;
}

.reg-badge {
  background: #faf8f2;
  border: 1px solid rgba(200,160,96,.25);
  padding: .95rem 1rem;
  border-radius: 16px;
  font-weight: 600;
}

.bilingual-block {
  max-width: 980px;
}

.bilingual-block p + p {
  margin-top: 1rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .premium-gallery__thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .surface-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .territory-facts {
    grid-template-columns: 1fr;
  }

  .premium-gallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .premium-thumb img {
    height: 74px;
  }

  .carousel-slide img {
    height: clamp(240px, 56vw, 420px);
  }

  .premium-gallery__stage img {
    height: clamp(260px, 62vw, 460px);
  }
}

@media (max-width: 640px) {
  .surface-grid {
    grid-template-columns: 1fr;
  }

  .premium-gallery__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* HERO VIDEO — uniquement page territorio */

.territory-hero--video {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: linear-gradient(170deg, #0c1e09 0%, #17191a 100%);
}

.territory-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.territory-hero__media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%) scale(1.08);
  pointer-events: none;
  opacity: 0.9;
}

.territory-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,17,10,0.38) 0%, rgba(7,17,10,0.55) 100%),
    radial-gradient(circle at center, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.45) 100%);
}

.territory-hero__bgtext {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  font-size: clamp(2.4rem, 7vw, 7rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.08);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  line-height: 0.95;
}

.territory-hero__inner {
  position: relative;
  z-index: 3;
}

.territory-hero--video .eyebrow {
  color: rgba(200,160,96,0.92);
}

.territory-hero--video h1 {
  color: #fff;
  text-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.territory-hero--video .territory-hero__lead {
  color: rgba(255,255,255,0.86);
  text-shadow: 0 6px 24px rgba(0,0,0,0.25);
  max-width: 760px;
}

@media (max-width: 900px) {
  .territory-hero__bgtext {
    font-size: clamp(2rem, 9vw, 4rem);
    padding: 1.5rem;
  }

  .territory-hero__media iframe {
    transform: translate(-50%, -50%) scale(1.18);
  }
}

/* =========================================
CERTIFICADOS / LOGOS OFICIALES
========================================= */

.official-logos-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin-top:34px;
}

.official-logo-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:20px;
  padding:26px 22px;
  box-shadow:0 12px 34px rgba(0,0,0,.05);
  text-align:center;
  min-height:250px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  transition:transform .25s ease, box-shadow .25s ease;
}

.official-logo-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(0,0,0,.08);
}

.official-logo-card img{
  width:100%;
  max-width:150px;
  height:90px;
  object-fit:contain;
  margin-bottom:16px;
}

.official-logo-card h3{
  font-size:1.05rem;
  margin-bottom:10px;
}

.official-logo-card p{
  font-size:.95rem;
  line-height:1.6;
  color:rgba(0,0,0,.72);
}

@media (max-width:980px){
  .official-logos-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:640px){
  .official-logos-grid{
    grid-template-columns:1fr;
  }
}

/* ===== FIX MOBILE HERO VIDEO ===== */

.territory-hero__media{
  position:absolute;
  inset:0;
  overflow:hidden;
  z-index:0;
}

.hero-video{
  position:absolute;
  top:50%;
  left:50%;
  width:100%;
  height:100%;
  min-width:100%;
  min-height:100%;
  object-fit:cover;
  transform:translate(-50%, -50%);
  opacity:.92;
}

@media (max-width: 900px){
  .territory-hero{
    min-height:62vh;
    padding:84px 1.25rem 3.25rem;
  }

  .territory-hero__bgtext{
    font-size:clamp(1.7rem, 8vw, 3.2rem);
    line-height:.95;
    padding:1rem;
    color:rgba(255,255,255,.06);
  }

  .territory-hero__lead{
    max-width:100%;
    font-size:1rem;
  }
}

@media (max-width: 640px){
  .territory-hero{
    min-height:58vh;
    padding:78px 1rem 2.4rem;
  }

  .territory-hero__overlay{
    background:
      linear-gradient(180deg, rgba(7,17,10,.42) 0%, rgba(7,17,10,.64) 100%),
      radial-gradient(circle at center, rgba(0,0,0,.16) 0%, rgba(0,0,0,.48) 100%);
  }

  .territory-hero__bgtext{
    font-size:clamp(1.45rem, 9vw, 2.4rem);
  }
}

/* ===== FIX MOBILE GALLERY ===== */

@media (max-width: 768px){
  .premium-gallery__stage img{
    height:clamp(220px, 62vw, 320px);
    border-radius:20px;
  }

  .premium-gallery__thumbs{
    display:flex;
    gap:.75rem;
    overflow-x:auto;
    overflow-y:hidden;
    padding:.4rem .1rem .2rem;
    grid-template-columns:none;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }

  .premium-thumb{
    flex:0 0 88px;
    scroll-snap-align:start;
  }

  .premium-thumb img{
    width:88px;
    height:88px;
    border-radius:14px;
    object-fit:cover;
  }

  .premium-gallery__thumbs::-webkit-scrollbar{
    height:6px;
  }

  .premium-gallery__thumbs::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.22);
    border-radius:999px;
  }
}

@media (max-width: 480px){
  .premium-gallery__stage img{
    height:220px;
  }

  .premium-thumb{
    flex:0 0 76px;
  }

  .premium-thumb img{
    width:76px;
    height:76px;
  }
}

<!-- CSS pour personnaliser uniquement le tableau des producteurs -->
<style>
  .producers-table {
    width: 80%; /* Centrer le tableau */
    margin: 0 auto; /* Centrer le tableau */
    border-collapse: collapse;
    text-align: center; /* Centrer le texte dans les cellules */
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
  }

  /* Entête du tableau en doré */
  .producers-table th {
    background-color: #D4AF37; /* Couleur dorée */
    color: white;
    padding: 12px;
    font-size: 1rem;
    text-align: center;
  }

  /* Style des cellules du tableau */
  .producers-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
  }

  /* Réduire la largeur de la colonne "Estado" */
  .producers-table td:last-child {
    width: 100px; /* Ajuste la largeur de la colonne "Estado" */
  }

  /* Effet au survol des lignes */
  .producers-table tr:hover {
    background-color: #f1f1f1;
  }

  /* Icône du producteur */
  .producer-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
  }

  /* Statut valide */
  .valid-status {
    color: green;
    font-weight: bold;
  }
.tile-bg {
  display: none !important; /* elimina el fondo oscuro que tapa las imágenes */
}

.tile-placeholder {
  display: none !important; /* elimina el icono/placeholder */
}

.tile-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2; /* está por encima del background */
}