/* ==========================================================================
   MARCAM - ARTISANAL BUTIFARRAS
   Pixel-Accurate Fullscreen Editorial Layout matching Reference Mockup
   ========================================================================== */

:root {
  --color-bg-hero: #fbe3b8;
  --color-bg-white: #ffffff;
  --color-ink-primary: #421c14;
  --color-ink-secondary: #5a271c;
  --color-ink-light: #f7eedf;
  --color-wa: #25D366;
  --font-logo: 'Alex Brush', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bezier-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-white);
  color: var(--color-ink-primary);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

/* Complete Page Load Gate - Locks scrolling until entire page is 100% loaded */
html.is-loading,
body.is-loading {
  overflow: hidden !important;
  height: 100% !important;
}

/* Clean Section Offsets for Navigation & Header Clearance */
#inicio,
#historia,
#productos,
#beneficios,
#contacto {
  scroll-margin-top: 90px;
}

/* ==========================================================================
   0. PAGE PRELOADER (WHITE BACKGROUND, TWO HALFTONE LEMONS FILLING GREEN)
   ========================================================================== */
.page-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: #ffffff; /* Requested: Pure White Background */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.halftone-lemon-wrap {
  position: relative;
  width: clamp(230px, 28vw, 320px);
  max-width: 88vw;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: halftoneSubtleFloat 2.8s ease-in-out infinite alternate;
}

@keyframes halftoneSubtleFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-5px);
  }
}

.halftone-lemon-svg {
  width: 100%;
  height: auto;
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.full-page-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4vw;
}

.section-relative {
  position: relative;
}

/* ==========================================================================
   1. HERO SECTION (FULL SCREEN)
   ========================================================================== */
.hero-section {
  width: 100vw;
  min-height: 90vh;
  background-color: var(--color-bg-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 14px 4.5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: rgba(251, 227, 184, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(66, 28, 20, 0.08);
  box-shadow: 0 4px 20px rgba(66, 28, 20, 0.04);
  transition: all 0.3s ease;
}

/* ORIGINAL LOGO (Loved by user) */
.brand-logo {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}

.brand-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.brand-name {
  font-family: var(--font-logo);
  font-size: 50px;
  line-height: 0.95;
  color: var(--color-ink-primary);
  letter-spacing: 0.5px;
}

.brand-flourish {
  width: 185px;
  height: 2px;
  background-color: var(--color-ink-primary);
  border-radius: 2px;
  margin-top: 3px;
  margin-bottom: 3px;
  position: relative;
}

.brand-flourish::after {
  content: '';
  position: absolute;
  right: -9px;
  top: -2px;
  width: 12px;
  height: 5px;
  border-radius: 50%;
  border-bottom: 2px solid var(--color-ink-primary);
}

.brand-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--color-ink-secondary);
  text-transform: uppercase;
  margin-left: 22px;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

.nav-item {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-ink-primary);
  text-transform: lowercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-ink-primary);
  transition: width 0.25s var(--bezier-smooth);
}

.nav-item:hover {
  opacity: 0.8;
}

.nav-item:hover::after {
  width: 100%;
}

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

.header-whatsapp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-ink-primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 22px;
  transition: transform 0.2s, background-color 0.2s;
}

.header-whatsapp-pill:hover {
  background-color: #270c06;
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-ink-primary);
  border-radius: 2px;
}

/* Hero Body */
.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1.25fr;
  align-items: center;
  position: relative;
  width: 100%;
  padding-left: clamp(24px, 8vw, 120px);
  padding-right: 2vw;
  min-height: 520px;
}

.hero-content {
  z-index: 10;
  max-width: 530px;
  margin-left: clamp(10px, 4vw, 65px);
  margin-bottom: 30px;
}

.hero-heading {
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 800;
  color: var(--color-ink-primary);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.hero-subtext {
  font-size: 14px;
  line-height: 1.62;
  color: var(--color-ink-primary);
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta-btn {
  background-color: var(--color-ink-primary);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(66, 28, 20, 0.2);
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.hero-cta-btn:hover {
  background-color: #260b06;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(66, 28, 20, 0.3);
}

.hero-link-secondary {
  border: 1.5px solid var(--color-ink-primary);
  color: var(--color-ink-primary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 11.5px 22px;
  border-radius: 30px;
  transition: background-color 0.2s;
}

.hero-link-secondary:hover {
  background-color: rgba(66, 28, 20, 0.08);
}

/* Hero Visual Bleed - Organic floating image without rectangular borders */
.hero-visual-bleed {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 2;
  pointer-events: none;
}

.hero-halftone-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 15px 35px rgba(66, 28, 20, 0.08));
}

/* ==========================================================================
   2. PRODUCTS SHOWCASE SECTION (4 PRODUCTS)
   ========================================================================== */
.products-section {
  width: 100%;
  background-color: var(--color-bg-white);
  padding: 95px 0 110px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 45px;
}

.section-heading {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--color-ink-primary);
  letter-spacing: -0.015em;
}

.section-subheading {
  font-size: 14.5px;
  color: var(--color-ink-secondary);
  font-weight: 500;
  margin-top: 10px;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   3D CAROUSEL CONTAINER & PERSPECTIVE STAGE
   ========================================================================== */
.products-carousel-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 28px);
  perspective: 1400px;
}

.carousel-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 30px 10px 42px;
  cursor: grab;
  user-select: none;
  perspective: 1200px;
  perspective-origin: center center;
}

.carousel-viewport:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.carousel-track.no-transition {
  transition: none !important;
}

.carousel-slide {
  flex: 0 0 calc((100% - 3 * 24px) / 4);
  min-width: 250px;
  box-sizing: border-box;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Minimalist Editorial Navigation Buttons (Clean & Flat, Completely Outside Products) */
.carousel-nav-btn {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-ink-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(66, 28, 20, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  outline: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.carousel-nav-btn svg {
  transition: transform 0.2s ease;
}

.carousel-nav-btn:hover {
  background-color: #240a04;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(66, 28, 20, 0.26);
}

.carousel-prev-btn:hover svg {
  transform: translateX(-3px);
}

.carousel-next-btn:hover svg {
  transform: translateX(3px);
}

.carousel-nav-btn:active {
  transform: scale(0.94);
  box-shadow: 0 2px 8px rgba(66, 28, 20, 0.2);
}

/* 3D Product Card */
.product-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background-color: #f7f5f2;
  transform-style: preserve-3d;
  will-change: transform, box-shadow, opacity;
  box-shadow: 0 16px 36px rgba(66, 28, 20, 0.16);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.45s ease, opacity 0.45s ease;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 22px 48px rgba(66, 28, 20, 0.24);
}

/* Carousel Dots Indicator */
.carousel-dots-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dfc2a6;
  border: 1px solid rgba(66, 28, 20, 0.25);
  box-shadow: inset 0 1px 2px rgba(66, 28, 20, 0.25), 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--bezier-smooth);
}

.carousel-dot.active {
  background: linear-gradient(180deg, #5e281e 0%, #3a150e 100%);
  width: 30px;
  border-radius: 8px;
  border-color: #2a0e08;
  box-shadow: 0 2px 6px rgba(42, 14, 8, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.products-grid-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.2vw, 30px);
  width: 100%;
  align-items: start;
}

.product-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-style: preserve-3d;
}

.card-media {
  width: 100%;
  height: clamp(270px, 25vw, 350px);
  border-radius: 16px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--bezier-smooth);
}

.product-card:hover .card-media img {
  transform: scale(1.05);
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 18, 12, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.card-hover-overlay span {
  background: #ffffff;
  color: var(--color-ink-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-card:hover .card-hover-overlay {
  opacity: 1;
}

.product-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-ink-primary);
  margin-top: 16px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.card-caption {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-ink-secondary);
  line-height: 1.45;
  max-width: 270px;
  text-align: center;
}

.product-price-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #b85d38;
  background: rgba(184, 93, 56, 0.09);
  border: 1px solid rgba(184, 93, 56, 0.22);
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.modal-price-badge {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  color: #b85d38;
  margin-bottom: 12px;
}

/* ==========================================================================
   3 & 4. HISTORY & INFOGRAPHIC SECTION
   ========================================================================== */
.history-infographic-section {
  width: 100vw;
  background-color: var(--color-bg-white);
  padding: 40px 0 50px;
  position: relative;
  overflow: hidden;
}

/* Botanical branch hanging from the left edge - PINNED TO THE EXTREME LEFT CORNER */
.branch-hanging-element {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(620px, 52vw, 880px);
  z-index: 2;
  pointer-events: none;
}

.branch-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(66, 28, 20, 0.08));
}

/* History Card with High-Transparency Frosted Glass Effect */
.history-card-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 5;
  margin-bottom: clamp(60px, 8vh, 100px);
}

.frosted-glass-card {
  width: clamp(520px, 66vw, 920px);
  background: rgba(254, 241, 222, 0.38); /* More transparent so the branch behind is visible */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  padding: clamp(38px, 4.2vw, 56px) clamp(40px, 4.8vw, 68px);
  box-shadow: 0 14px 40px rgba(66, 28, 20, 0.05);
}

.history-heading {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--color-ink-primary);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.history-lead-banner h3 {
  font-size: 17px;
  font-weight: 700;
  color: #8b3420;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.history-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 3.5vw, 48px);
}

.history-text-col p {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--color-ink-primary);
  margin-bottom: 14px;
  font-weight: 450;
}

.history-text-col p:last-child {
  margin-bottom: 0;
}

.history-text-col strong {
  color: var(--color-ink-primary);
  font-weight: 700;
}

/* 4. Infographic Diagram with Butifarras Platter */
.infographic-area {
  margin-top: clamp(160px, 18vh, 240px);
  position: relative;
  width: 100%;
  min-height: calc(100vh - 90px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: clamp(95px, 12vh, 130px);
  padding-bottom: clamp(35px, 5vh, 55px);
  scroll-margin-top: 90px;
}

.butifarra-center-wrap {
  position: relative;
  width: clamp(450px, 48vw, 680px); /* Full rounded platter */
  z-index: 4;
  text-align: center;
}

.butifarra-glow-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 530px;
  height: 380px;
  background: radial-gradient(circle, rgba(251, 227, 184, 0.58) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.butifarra-center-image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 36px rgba(66, 28, 20, 0.14));
  transition: transform 0.4s var(--bezier-smooth);
}

.butifarra-center-image:hover {
  transform: scale(1.03);
}

/* Radial Diagram Feature Items (Extra-Large Benefits Labels) */
.diagram-feature {
  position: absolute;
  display: flex;
  align-items: center;
  color: var(--color-ink-primary);
  z-index: 10;
}

.feature-text {
  display: flex;
  flex-direction: column;
  font-size: clamp(20px, 1.85vw, 26px); /* Noticeably larger, bold and clear */
  font-weight: 800;
  color: var(--color-ink-primary);
  line-height: 1.16;
  white-space: nowrap;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.feature-line-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Refined Radial Positions Framing the Larger Platter */
.feature-pos-top {
  top: clamp(12px, 2vh, 25px);
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.feature-pos-top-left {
  top: clamp(105px, 13vh, 135px);
  left: calc(50% - clamp(290px, 32vw, 470px));
  flex-direction: row;
  gap: 16px;
  text-align: right;
}

.feature-pos-top-right {
  top: clamp(105px, 13vh, 135px);
  right: calc(50% - clamp(290px, 32vw, 470px));
  flex-direction: row-reverse;
  gap: 16px;
  text-align: left;
}

.feature-pos-bottom-left {
  bottom: clamp(40px, 5.5vh, 65px);
  left: calc(50% - clamp(240px, 26vw, 360px));
  flex-direction: row;
  gap: 14px;
  text-align: right;
}

.feature-pos-bottom-right {
  bottom: clamp(40px, 5.5vh, 65px);
  right: calc(50% - clamp(240px, 26vw, 360px));
  flex-direction: row-reverse;
  gap: 14px;
  text-align: left;
}

/* ==========================================================================
   5. EDITORIAL FOOTER
   ========================================================================== */
.editorial-footer {
  width: 100%;
  background-color: var(--color-ink-primary);
  color: #f7eedf;
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr;
  gap: clamp(24px, 3vw, 50px);
  padding-bottom: 50px;
}

.footer-logo-wrap .font-light {
  color: var(--color-bg-hero);
}

.footer-logo-wrap .line-light {
  background-color: var(--color-bg-hero);
}

.footer-logo-wrap .line-light::after {
  border-bottom-color: var(--color-bg-hero);
}

.footer-logo-wrap .font-sub-light {
  color: #d8c2ad;
}

.footer-lead {
  font-size: 13.5px;
  color: #d8c2ad;
  line-height: 1.6;
  max-width: 320px;
  margin-top: 14px;
}

.footer-heading {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-bg-hero);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.footer-col-nav a {
  display: block;
  font-size: 13.5px;
  color: #d8c2ad;
  margin-bottom: 10px;
  text-transform: lowercase;
  transition: color 0.2s, transform 0.2s;
}

.footer-col-nav a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-col-legal-nav a {
  display: block;
  font-size: 13.5px;
  color: #d8c2ad;
  margin-bottom: 10px;
  text-transform: lowercase;
  transition: color 0.2s, transform 0.2s;
  cursor: pointer;
}

.footer-col-legal-nav a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-legal-tagline {
  font-size: 11.5px;
  color: #bfa793;
  line-height: 1.45;
  margin-top: 12px;
}

.footer-col-contact p {
  font-size: 13.5px;
  color: #d8c2ad;
  margin-bottom: 18px;
  line-height: 1.5;
}

.whatsapp-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: var(--color-bg-hero);
  color: var(--color-ink-primary);
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 25px;
  transition: transform 0.2s, background-color 0.2s;
}

.whatsapp-badge-btn:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

.footer-legal {
  border-top: 1px solid rgba(251, 227, 184, 0.15);
  padding: 22px 4vw;
  text-align: center;
  font-size: 12px;
  color: #bfa793;
}

.footer-legal a {
  color: #d8c2ad;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* ==========================================================================
   6. EDITORIAL LEGAL MODALS (TERMS & PRIVACY)
   ========================================================================== */
.editorial-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.editorial-legal-modal.active {
  display: flex;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(39, 12, 6, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-modal-dialog {
  position: relative;
  background: #fdfaf6;
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  border-radius: 18px;
  border: 1px solid rgba(66, 28, 20, 0.15);
  box-shadow: 0 24px 60px rgba(39, 12, 6, 0.4);
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.legal-modal-header {
  padding: 22px 28px 18px;
  border-bottom: 1px solid rgba(66, 28, 20, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-hero);
}

.modal-logo .brand-name {
  font-size: 38px;
}

.modal-logo .brand-flourish {
  width: 140px;
}

.legal-modal-close {
  background: rgba(66, 28, 20, 0.08);
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-ink-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.legal-modal-close:hover {
  background: var(--color-ink-primary);
  color: #ffffff;
  transform: rotate(90deg);
}

.legal-modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  color: var(--color-ink-primary);
  font-size: 14.5px;
  line-height: 1.65;
}

.legal-modal-body h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--color-ink-primary);
  margin-top: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  margin-bottom: 14px;
  color: #4b2319;
}

.legal-modal-body ul {
  margin: 10px 0 16px 22px;
  color: #4b2319;
}

.legal-modal-body li {
  margin-bottom: 6px;
}

.legal-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid rgba(66, 28, 20, 0.1);
  background: #f7eedf;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-external-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink-primary);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.legal-external-link:hover {
  opacity: 0.8;
}

.legal-modal-btn {
  background: var(--color-ink-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.legal-modal-btn:hover {
  background: #270c06;
}

/* Floating WhatsApp Button */
.floating-wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: var(--color-wa);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: transform 0.25s, box-shadow 0.25s;
}

.floating-wa-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.floating-wa-tooltip {
  position: absolute;
  right: 70px;
  background-color: var(--color-ink-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.floating-wa-btn:hover .floating-wa-tooltip {
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================================== */
@media (max-width: 1080px) {
  .carousel-slide {
    flex: 0 0 calc((100% - 2 * 20px) / 3);
    min-width: 240px;
  }
  .carousel-track {
    gap: 20px;
  }
  .products-grid-four {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 680px;
    margin: 0 auto;
  }
}

@media (max-width: 980px) {
  .hero-body {
    grid-template-columns: 1fr;
    padding-left: 4.5vw;
    padding-right: 4.5vw;
    padding-bottom: 350px;
  }

  /* Centered words on responsive */
  .hero-content {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-heading {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtext {
    text-align: center;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  /* Raised up hero image */
  .hero-visual-bleed {
    width: min(84%, 480px);
    height: 360px;
    top: auto;
    bottom: clamp(35px, 6vh, 65px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-halftone-image {
    object-position: center bottom;
  }

  /* Entire section and branch raised up on responsive without cropping the image */
  .products-section {
    padding-bottom: 50px;
  }

  .history-infographic-section {
    padding-top: 15px;
  }

  /* Restored to complete uncut state (top: 0; left: 0), fully visible */
  .branch-hanging-element {
    top: 0;
    left: 0;
    width: clamp(480px, 85vw, 640px);
    opacity: 0.95;
    z-index: 2;
  }

  .history-card-wrap {
    justify-content: center;
  }

  .frosted-glass-card {
    width: 100%;
    background: rgba(254, 241, 222, 0.28);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .history-two-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .products-carousel-wrap {
    gap: 12px;
  }
  .carousel-slide {
    flex: 0 0 calc((100% - 1 * 16px) / 2);
    min-width: 210px;
  }
  .carousel-track {
    gap: 16px;
  }
  .carousel-nav-btn {
    width: 42px;
    height: 42px;
    box-shadow: 0 3px 10px rgba(66, 28, 20, 0.16);
  }
  .carousel-nav-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(66, 28, 20, 0.22);
  }
  .carousel-nav-btn:active {
    transform: scale(0.94);
    box-shadow: 0 2px 6px rgba(66, 28, 20, 0.16);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-hero);
    flex-direction: column;
    padding: 24px 0;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .site-nav.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .products-grid-four {
    grid-template-columns: 1fr;
    max-width: 340px;
    gap: 36px;
  }

  .infographic-area {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: clamp(60px, 9vh, 90px);
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .butifarra-center-wrap {
    width: 290px;
    margin-bottom: 24px;
  }

  .diagram-feature {
    position: static;
    transform: none;
    width: 100%;
    max-width: 360px;
    background-color: rgba(254, 241, 222, 0.85);
    border: 1px solid rgba(66, 28, 20, 0.08);
    padding: 12px 20px;
    border-radius: 12px;
    justify-content: space-between;
    flex-direction: row !important;
  }

  .feature-text {
    text-align: left !important;
  }

  .feature-line-arrow {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 10px 16px;
  }
  .brand-name {
    font-size: 32px;
  }
  .header-whatsapp-pill {
    padding: 7px 12px;
    font-size: 11px;
    gap: 5px;
  }
  .hero-heading {
    font-size: clamp(32px, 8.5vw, 44px);
    line-height: 1.1;
    text-align: center;
  }
  .hero-subtext {
    font-size: 13.5px;
    line-height: 1.55;
    text-align: center;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 10px;
  }
  .hero-cta-btn, .hero-link-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  .hero-body {
    padding-bottom: 300px;
    padding-top: 20px;
  }
  .hero-visual-bleed {
    height: 270px;
    width: min(92%, 350px);
    bottom: clamp(20px, 4vh, 45px);
    left: 50%;
    transform: translateX(-50%);
  }
  .products-section {
    padding-bottom: 35px;
  }
  .history-infographic-section {
    padding-top: 10px;
  }
  .branch-hanging-element {
    top: 0;
    left: 0;
    width: clamp(420px, 95vw, 540px);
    opacity: 0.95;
  }
  .frosted-glass-card {
    padding: 24px 18px;
    border-radius: 16px;
    background: rgba(254, 241, 222, 0.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .history-heading {
    font-size: 24px;
  }
  .history-lead-banner h3 {
    font-size: 15px;
    margin-bottom: 16px;
  }
  .history-text-col p {
    font-size: 13px;
  }
  .butifarra-center-wrap {
    width: min(280px, 86vw);
    margin-bottom: 18px;
  }
  .diagram-feature {
    padding: 10px 16px;
  }
  .feature-text {
    font-size: 16px;
  }
  .products-carousel-wrap {
    gap: 8px;
  }
  .carousel-slide {
    flex: 0 0 calc(100% - 10px);
    min-width: 200px;
  }
  .carousel-nav-btn {
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(66, 28, 20, 0.16);
  }
  .carousel-nav-btn:hover {
    transform: scale(1.05);
  }
  .carousel-nav-btn:active {
    transform: scale(0.92);
  }
  .footer-inner {
    gap: 28px;
  }
  .floating-wa-btn {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
  }
  .legal-modal-dialog {
    padding: 20px 16px;
    max-height: 92vh;
    width: calc(100% - 20px);
  }
}

/* ==========================================================================
   AUTO-UPDATE NOTIFICATION MODAL
   ========================================================================== */
.update-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.update-modal.active {
  opacity: 1;
  visibility: visible;
}

.update-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 10, 5, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.update-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 30px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(66, 28, 20, 0.35);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(237, 228, 216, 0.8);
}

.update-modal.active .update-modal-card {
  transform: translateY(0) scale(1);
}

.update-modal-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #e8f7ed 0%, #d1f2dc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1eb857;
  box-shadow: 0 8px 20px rgba(30, 184, 87, 0.22);
  animation: pulseUpdateIcon 2s infinite ease-in-out;
}

@keyframes pulseUpdateIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.update-modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-ink-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.update-modal-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #633226;
  margin-bottom: 22px;
}

.update-progress-container {
  width: 100%;
  height: 6px;
  background: #f1ebd8;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 22px;
}

.update-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1eb857, #4d851c);
  border-radius: 99px;
  transition: width 3s linear;
}

.update-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  background: var(--color-ink-primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(66, 28, 20, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.update-modal-btn:hover {
  background: #2a110b;
  transform: translateY(-2px);
}
