:root {
  --green-950: #071F17;
  --green-900: #0F3B2C;
  --green-800: #14532D;
  --green-700: #1F6B35;
  --green-600: #2E7D32;
  --green-500: #3E9B3A;
  --lime: #A9D25B;
  --gold: #F4C02E;
  --gold-300: #FFD866;
  --cream: #FFF8E6;
  --sand: #F6EFDC;
  --ink: #1C2A22;
  --muted: #5D6B62;
  --line: #E5DECB;
  --wa: #25D366;
  --radius: 20px;
  --shadow: 0 12px 34px -16px rgba(20, 60, 35, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .5em; color: var(--green-800); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.015em; text-wrap: balance; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 700; color: var(--green-600); margin-bottom: .9em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); } .small { font-size: .82rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; font: 600 .95rem var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .25s, box-shadow .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 18px -8px rgba(46,125,50,.7); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { background: transparent; border-color: var(--green-600); color: var(--green-700); }
.btn-ghost:hover { background: rgba(62,155,58,.08); }
.btn-gold { background: var(--gold); color: var(--green-950); box-shadow: 0 14px 34px -12px rgba(244,192,46,.75); }
.btn-gold:hover { background: var(--gold-300); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-sm { padding: .6em 1em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--muted); font: 500 .9rem var(--sans); cursor: pointer; text-decoration: underline; margin-top: .6rem; }
.icon-btn { background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: var(--muted); width: 36px; height: 36px; border-radius: 50%; }
.icon-btn:hover { background: var(--sand); }

/* ---------- header (transparent over the hero, solid on scroll) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .4s, box-shadow .4s, border-color .4s; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -50px 0; background: linear-gradient(rgba(4,18,12,.6), transparent); pointer-events: none; z-index: -1; transition: opacity .4s; }
.site-header.scrolled, body.nav-open .site-header { background: rgba(255, 248, 230, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(0,0,0,.45); }
.site-header.scrolled::before, body.nav-open .site-header::before { opacity: 0; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 4px 14px -6px rgba(0,0,0,.4); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); color: var(--green-800); font-size: 1.12rem; font-weight: 600; transition: color .4s; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; transition: color .4s; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; transition: color .4s; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--gold); transition: right .3s var(--ease); }
.main-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; background: var(--sand); border-radius: 999px; padding: 3px; transition: background .4s; }
.lang-switch button { border: 0; background: none; font: 600 .8rem var(--sans); padding: .45em .8em; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang-switch button.active { background: var(--green-600); color: #fff; }
.cart-btn { display: flex; align-items: center; gap: 8px; background: var(--green-800); color: #fff; border: 0; border-radius: 999px; padding: .62em 1.1em; font: 600 .9rem var(--sans); cursor: pointer; }
.cart-count { display: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold); color: var(--green-900); font-size: .78rem; align-items: center; justify-content: center; }
.cart-count.show { display: inline-flex; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; height: 2px; background: var(--green-800); border-radius: 2px; transition: background .4s; }
/* over the video */
body:not(.nav-open) .site-header:not(.scrolled) .brand-text strong,
body:not(.nav-open) .site-header:not(.scrolled) .main-nav a { color: #fff; }
body:not(.nav-open) .site-header:not(.scrolled) .brand-text small { color: rgba(255,255,255,.72); }
body:not(.nav-open) .site-header:not(.scrolled) .lang-switch { background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
body:not(.nav-open) .site-header:not(.scrolled) .lang-switch button { color: rgba(255,255,255,.82); }
body:not(.nav-open) .site-header:not(.scrolled) .lang-switch button.active { background: var(--gold); color: var(--green-950); }
body:not(.nav-open) .site-header:not(.scrolled) .cart-btn { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
body:not(.nav-open) .site-header:not(.scrolled) .menu-toggle span { background: #fff; }

/* ---------- HERO: cinematic video ---------- */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--green-950); }
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; transform-origin: 62% 46%; animation: kenburns 34s ease-in-out infinite alternate; }
.hero-video { opacity: 0; transition: opacity 1.8s ease; }
.hero-video.ready { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13) translate3d(-1.2%, -.8%, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(5,24,17,.9) 0%, rgba(5,24,17,.66) 34%, rgba(5,24,17,.18) 66%, rgba(5,24,17,.32) 100%),
  linear-gradient(0deg, rgba(5,24,17,.95) 0%, rgba(5,24,17,.35) 30%, rgba(5,24,17,0) 55%),
  radial-gradient(130% 100% at 65% 40%, transparent 55%, rgba(0,0,0,.4) 100%); }
.hero-shade::after { content: ""; position: absolute; inset: 0; mix-blend-mode: soft-light; background:
  radial-gradient(45% 55% at 82% 18%, rgba(255,200,90,.55), transparent 70%),
  linear-gradient(180deg, rgba(244,192,46,.12), transparent 40%); }
.hero-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero-content { padding-top: 150px; padding-bottom: 40px; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--gold); margin-bottom: 1.4em; }
.hero-eyebrow .rule { width: 48px; height: 1px; background: currentColor; flex: none; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.9rem); line-height: 1.02; letter-spacing: -.028em; max-width: 15ch; margin-bottom: .45em; text-wrap: balance; text-shadow: 0 2px 40px rgba(0,0,0,.25); }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 22px 0 34px; border-top: 1px solid rgba(255,255,255,.2); }
.stats { list-style: none; padding: 0; margin: 0; display: flex; gap: clamp(22px, 4.5vw, 64px); }
.stats strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; color: #fff; }
.stats span { font-size: .78rem; color: rgba(255,255,255,.7); letter-spacing: .02em; }
.hero-caption { display: flex; align-items: center; gap: 14px; text-align: right; font-size: .76rem; line-height: 1.5; color: rgba(255,255,255,.72); }
.hero-caption b { color: var(--gold); letter-spacing: .16em; font-weight: 600; }
.hero-caption { margin-right: clamp(0px, calc(96px - (100vw - 1200px) / 2), 80px); } /* keep clear of the WhatsApp button */
.video-toggle { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.2); color: #fff; display: grid; place-items: center; cursor: pointer; order: 2; transition: background .2s; }
.video-toggle:hover { background: rgba(255,255,255,.18); }
.video-toggle[hidden] { display: none; }
.video-toggle .i-play, .video-toggle.is-paused .i-pause { display: none; }
.video-toggle.is-paused .i-play { display: block; }
/* entrance */
.js .anim { opacity: 0; transform: translateY(22px); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- trust ---------- */
.trust { background: var(--green-900); color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; flex-wrap: wrap; }
.trust-title { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--gold); }
.trust-list { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; flex-wrap: wrap; }
.trust-list li { display: flex; align-items: center; gap: 10px; }
.seal { font-weight: 800; font-size: .78rem; letter-spacing: .08em; border: 1.5px solid var(--lime); color: var(--lime); padding: .35em .7em; border-radius: 8px; }
.trust-list small { color: #CFE3D6; font-size: .82rem; max-width: 22ch; line-height: 1.3; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--sand); }
.section-head { text-align: center; margin: 0 auto 44px; max-width: 760px; }
.section-head .lead { margin-inline: auto; }
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.feature-grid .reveal:nth-child(2), .cards-3 .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .1s; }
.feature-grid .reveal:nth-child(3), .cards-3 .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .2s; }
.feature-grid .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- catalog ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { border: 1.5px solid var(--line); background: #fff; padding: .55em 1.15em; border-radius: 999px; font: 500 .9rem var(--sans); cursor: pointer; color: var(--ink); transition: .2s; }
.chip.active, .chip:hover { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), var(--shadow); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -28px rgba(20,60,35,.5); }
.product-grid.enter .product-card { animation: cardIn .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.p-open { border: 0; padding: 0; background: none; cursor: pointer; display: block; width: 100%; }
.p-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 22%, #fff) 0%, color-mix(in srgb, var(--accent) 8%, var(--cream)) 70%); }
.p-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 1.1s var(--ease); }
.p-media::after { content: ""; position: absolute; inset: 55% 0 0 0; z-index: 2; background: linear-gradient(transparent, rgba(0,0,0,.22)); pointer-events: none; }
.product-card:hover .p-media > img { transform: scale(1.06); }
.p-art { position: absolute; inset: 10% 14%; display: grid; place-items: center; }
.p-art svg { width: 100%; height: 100%; filter: drop-shadow(0 12px 14px rgba(0,0,0,.18)); }
.p-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--green-600); font-weight: 700; }
.p-body h3 { margin: .3em 0 .1em; font-size: 1.32rem; }
.p-alt { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 500; }
.p-sci { margin: .2em 0 .8em; color: var(--green-700); font-size: .88rem; }
.p-sci span { color: var(--muted); font-size: .8rem; }
.p-short { font-size: .93rem; color: #3E4B43; }
.p-pack { font-size: .82rem; color: var(--muted); background: var(--sand); padding: .5em .75em; border-radius: 10px; }
.p-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.p-actions .btn { flex: 1; }

/* ---------- product modal ---------- */
.modal { border: 0; padding: 0; border-radius: 24px; width: min(1000px, 100% - 24px); max-height: 92vh; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.modal::backdrop { background: rgba(7, 31, 23, .6); backdrop-filter: blur(4px); }
.modal-body { position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; background: #fff; }
.pm-grid { display: grid; grid-template-columns: 1fr 1.15fr; }
.pm-media .p-media { height: 100%; aspect-ratio: auto; min-height: 360px; }
.pm-info { padding: 32px 34px; overflow: auto; max-height: 92vh; }
.pm-info h2 { margin: .2em 0 0; }
.pm-info h4 { margin: 1.3em 0 .4em; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green-600); }
.pm-info p { color: #3E4B43; font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--sand); border-radius: 999px; padding: .35em .85em; font-size: .85rem; }
.pm-add { display: flex; gap: 12px; align-items: end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pm-add label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); }
.pm-add input { width: 110px; }

/* ---------- why panama ---------- */
.section-dark { background: var(--green-900); color: #E3EFE0; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .lead { color: #B9D2C3; }
.panama { overflow: hidden; }
.panama-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.panama-head h2 { margin: 0; max-width: 18ch; }
.panama-head .lead { margin: 0; }
.panorama { margin: 0 0 64px; }
.panorama-frame { position: relative; height: clamp(320px, 44vw, 640px); overflow: hidden; }
.panorama-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; filter: contrast(1.16) saturate(1.25) brightness(.95); animation: pan 70s ease-in-out infinite alternate; }
@keyframes pan { from { object-position: 0% 58%; } to { object-position: 100% 58%; } }
.panorama-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, var(--green-900) 0%, rgba(15,59,44,0) 22%, rgba(15,59,44,0) 68%, var(--green-900) 100%),
  linear-gradient(90deg, rgba(15,59,44,.55) 0%, transparent 18%, transparent 82%, rgba(15,59,44,.55) 100%),
  radial-gradient(55% 70% at 72% 8%, rgba(244,192,46,.22), transparent 70%); }
.panorama-tag { position: absolute; z-index: 1; left: 50%; bottom: 20%; transform: translateX(-50%); font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3.4vw, 2.6rem); letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.82); white-space: nowrap; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.panorama figcaption { display: flex; gap: 16px 28px; align-items: baseline; flex-wrap: wrap; margin-top: 18px; font-size: .9rem; color: #B9D2C3; }
.pin { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.pin i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(244,192,46,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(244,192,46,0); } 100% { box-shadow: 0 0 0 0 rgba(244,192,46,0); } }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); padding: 26px 24px; border-radius: var(--radius); transition: background .3s, border-color .3s; }
.feature:hover { background: rgba(255,255,255,.07); border-color: rgba(244,192,46,.35); }
.feature .icon { width: 46px; height: 46px; border-radius: 14px; background: var(--gold); color: var(--green-900); display: grid; place-items: center; font-size: 1.25rem; font-weight: 800; margin-bottom: 18px; }
.feature h3 { color: #fff; margin-bottom: .4em; }
.feature p { margin: 0; color: #B9D2C3; font-size: .94rem; }

/* ---------- logistics ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), var(--shadow); }
.info-card svg { margin-bottom: 18px; }
.info-card p { color: var(--muted); margin: 0; }
.terms { text-align: center; margin: 34px auto 0; max-width: 70ch; color: var(--muted); font-size: .92rem; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: #fff; padding: 28px 24px; border-radius: var(--radius); }
.steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--green-900); font-weight: 700; margin-bottom: 14px; font-family: var(--serif); font-size: 1.2rem; }
.steps p { color: var(--muted); margin: 0; font-size: .93rem; }

/* ---------- contact ---------- */
.contact-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; background: linear-gradient(135deg, #fff, var(--sand)); border-radius: 28px; padding: 56px; box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.contact-list span { width: 84px; flex: none; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-list a { color: var(--green-700); font-weight: 600; text-decoration: none; word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-950); color: #B9D2C3; padding: 36px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner .brand-text strong { color: #fff; }
.footer-inner .brand-text small { color: #B9D2C3; text-transform: none; letter-spacing: 0; font-size: .8rem; }
.footer-inner p { margin: 0; font-size: .85rem; }
.credits { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: .76rem; color: #8FB3A1; }
.credits summary { cursor: pointer; width: fit-content; }
.credits ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.credits a { color: #CFE3D6; }

/* ---------- whatsapp float ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37,211,102,.6); z-index: 40; transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }

/* ---------- drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(7,31,23,.5); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(460px, 100%); background: var(--cream); z-index: 70; transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0,0,0,.4); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-step { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer-step[hidden] { display: none; }
.drawer-items { flex: 1; overflow: auto; padding: 16px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: #fff; text-align: center; }
.drawer-total { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.drawer-total strong { font-size: 1.3rem; color: var(--green-700); }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.line { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 10px; margin-bottom: 10px; border: 1px solid var(--line); }
.line-art { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--accent) 18%, #fff); }
.line-art svg { width: 100%; height: 100%; padding: 6px; }
.line-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.line-info strong { font-size: .92rem; }
.line-info em, .line-info small { font-size: .75rem; color: var(--muted); }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { border: 0; background: var(--sand); width: 28px; height: 32px; cursor: pointer; font-size: 1rem; }
.qty input { width: 48px; border: 0; text-align: center; font: 600 .9rem var(--sans); height: 32px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- form ---------- */
.form-grid { display: grid; gap: 12px; align-content: start; }
.form-grid h4 { margin: 0 0 4px; font-family: var(--serif); color: var(--green-800); font-size: 1.1rem; }
.form-grid label, .pm-add label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--ink); }
input, select, textarea { font: 400 .95rem var(--sans); padding: .65em .8em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(62,155,58,.15); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: #B3261E; font-size: .85rem; margin: 0; }

/* ---------- purchase order ---------- */
.po-modal { width: min(860px, 100% - 24px); }
.po-modal .modal-body { padding: 28px; overflow: auto; max-height: 92vh; }
.po-status { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
.po-status.sent { background: #E6F4E3; color: var(--green-700); }
.po-status.failed { background: #FFF2D6; color: #8A5A00; }
.po-doc { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: #fff; }
.po-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 3px solid var(--gold); padding-bottom: 18px; }
.po-head .brand img { width: 64px; height: 64px; box-shadow: none; }
.po-meta h2 { margin: 0 0 6px; font-size: 1.6rem; text-align: right; }
.po-meta p { margin: 0; display: flex; gap: 12px; justify-content: flex-end; font-size: .88rem; }
.po-meta span { color: var(--muted); }
.po-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0; }
.po-parties h4 { margin: 0 0 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green-600); }
.po-parties p { font-size: .9rem; margin: 0; }
.po-table-wrap { overflow-x: auto; }
.po-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.po-table th { text-align: left; background: var(--green-800); color: #fff; padding: 10px; font-weight: 600; }
.po-table td { padding: 10px; border-bottom: 1px solid var(--line); }
.po-table .num { text-align: right; }
.po-table tfoot td { font-weight: 700; background: var(--sand); }
.po-notes { margin-top: 16px; font-size: .9rem; }
.po-foot { margin: 18px 0 0; font-size: .78rem; color: var(--muted); }
.po-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--green-800); color: #fff; padding: .8em 1.3em; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 90; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { position: fixed; inset: 78px 0 auto 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); display: none; padding: 8px 16px 16px; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  body.nav-open .main-nav { display: flex; }
  .menu-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  .panama-head, .contact-card { grid-template-columns: 1fr; }
  .panama-head { gap: 16px; }
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-caption { text-align: left; }
  .hero-caption .video-toggle { order: 0; }
}
@media (max-width: 760px) {
  .hero-shade { background:
    linear-gradient(0deg, rgba(5,24,17,.96) 0%, rgba(5,24,17,.72) 45%, rgba(5,24,17,.3) 75%, rgba(5,24,17,.5) 100%); }
  .hero-media img, .hero-media video { object-position: 68% 50%; }
  .hero-content { padding-top: 120px; padding-bottom: 28px; }
  .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
  .hero-caption { margin-right: 0; padding-right: 76px; }
}
@media (max-width: 480px) {
  .brand-text { display: none; }
  .lang-switch button { padding: .45em .7em; }
}
@media (max-width: 680px) {
  .brand-text small { display: none; }
  .brand-text strong { font-size: .95rem; }
  .brand img { width: 44px; height: 44px; }
  .cart-btn span[data-i18n] { display: none; }
  .header-inner { gap: 10px; }
  .cards-3, .steps, .feature-grid, .po-parties, .row-2 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .contact-card { padding: 28px 20px; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-media .p-media { min-height: 240px; }
  .pm-info { padding: 24px 20px; max-height: none; }
  .modal { overflow: auto; }
  .po-modal .modal-body { padding: 14px; }
  .po-doc { padding: 16px; }
  .po-meta h2, .po-meta p { text-align: left; justify-content: flex-start; }
  .po-table { min-width: 520px; }
  .line { grid-template-columns: 44px 1fr auto; }
  .line-art { width: 44px; height: 44px; }
  .line .icon-btn { grid-column: 3; grid-row: 1; justify-self: end; }
  .line .qty { grid-column: 2 / 4; justify-self: start; }
  .panorama-tag { letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img, .hero-media video, .panorama-frame img, .pin i { animation: none; }
  .js .anim, .js .reveal, .product-grid.enter .product-card { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ---------- print: only the purchase order ---------- */
@media print {
  body > *:not(#poModal) { display: none !important; }
  #poModal { position: static; box-shadow: none; width: 100%; max-height: none; }
  #poModal::backdrop { display: none; }
  .po-status, .po-actions { display: none !important; }
  .po-doc { border: 0; padding: 0; }
  .po-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
