/* ============================================================
   All4Pack — Colores corporativos: Verde oscuro + Naranja
   ============================================================ */

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

:root {
  /* Colores corporativos All4Pack */
  --green-deep:   #0F2118;   /* verde muy oscuro (fondo) */
  --green-dark:   #1B3F29;   /* verde oscuro primario */
  --green-mid:    #2A5C3F;   /* verde medio */
  --green-light:  #3D7A56;   /* verde claro */
  --orange:       #D98A0A;   /* naranja/dorado principal */
  --orange-light: #F0A020;   /* naranja claro hover */
  --orange-dim:   #B8720A;   /* naranja oscuro */
  --cream:        #F5F0E8;   /* texto principal (cálido) */
  --cream-soft:   #C8BFA8;   /* texto secundario */
  --cream-mute:   #7A7060;   /* texto apagado */
  --line:         rgba(217, 138, 10, 0.2);   /* línea naranja suave */
  --line-green:   rgba(61, 122, 86, 0.3);    /* línea verde suave */
  --line-soft:    rgba(255, 255, 255, 0.07); /* línea blanca suave */
  --radius:       16px;
  --radius-sm:    8px;
  --nav-h:        72px;
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
  background: var(--green-deep);
  color: var(--cream);
  overflow-x: clip;
  line-height: 1.6;
}

img { display: block; max-width: 100%; object-fit: cover; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6.5vw, 6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; }

h1 em, h2 em {
  font-style: italic;
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

/* ── Reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ── SPLASH ───────────────────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashSafety 0.01s 4.5s forwards;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.splash.is-out { opacity: 0; transform: translateY(-8px); pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }

.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.splash-logo { width: 180px; }
.splash-logo svg,
.splash-logo img { width: 100%; height: auto; display: block; }
.splash-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.splash-progress {
  height: 100%; width: 0%;
  background: var(--orange);
  border-radius: 2px;
  animation: splashLoad 1.8s var(--ease-out) forwards;
}
@keyframes splashLoad { to { width: 100%; } }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(15, 33, 24, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: var(--line-green);
}
.nav-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 100%; max-width: 1280px; margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--orange);
}
/* Logotipo oficial All4Pack (vectorial) */
.nav-logo-img {
  height: 40px; width: auto; display: block;
  transition: opacity 0.2s var(--ease-out);
}
.nav-logo:hover .nav-logo-img { opacity: 0.82; }
@media (max-width: 640px) { .nav-logo-img { height: 34px; } }
.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-link {
  font-size: 0.875rem; font-weight: 500;
  color: var(--cream-soft);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--orange);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }

.btn-nav {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.2rem; border-radius: 100px;
  background: var(--orange); color: var(--green-deep);
  font-size: 0.875rem; font-weight: 700; white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.btn-nav:hover { background: var(--orange-light); transform: translateY(-1px); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; margin-left: auto;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: rgba(15,33,24,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  z-index: 99;
}
/* Hide mobile nav on desktop regardless of hidden attr */
@media (min-width: 769px) {
  .nav-mobile { display: none !important; }
  .nav-burger  { display: none !important; }
}
.nav-mobile ul { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.nav-mobile .nav-link { font-size: 1.5rem; color: var(--cream); }
.nav-mobile .btn-nav { margin-top: 0.5rem; padding: 0.75rem 2rem; font-size: 1rem; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 100px;
  background: var(--orange); color: var(--green-deep);
  font-weight: 700; font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(217, 138, 10, 0.4);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 100px;
  border: 1.5px solid var(--line-green);
  color: var(--cream-soft); font-weight: 500; font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--cream); transform: translateY(-2px); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2.5rem; border-radius: 100px;
  background: #25d366; color: #fff;
  font-weight: 700; font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Full-bleed hero photo */
.hero-bg-photo {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.10); }
}

/* Gradient overlays for text legibility */
.hero-overlay-top {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    rgba(11, 26, 17, 0.92) 0%,
    rgba(11, 26, 17, 0.75) 45%,
    rgba(11, 26, 17, 0.25) 75%,
    transparent 100%
  );
}
.hero-overlay-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 40%; z-index: 1;
  background: linear-gradient(to top, rgba(15, 33, 24, 0.95), transparent);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none; mix-blend-mode: overlay;
}

/* Accent light beam */
.hero-beam {
  position: absolute; top: -20%; right: 5%; z-index: 1;
  width: 2px; height: 70%;
  background: linear-gradient(to bottom, transparent, var(--orange), transparent);
  opacity: 0.35;
  animation: beamPulse 4s ease-in-out infinite;
}
@keyframes beamPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.95); }
  50%       { opacity: 0.45; transform: scaleY(1.05); }
}

.hero-content {
  position: relative; z-index: 5;
  max-width: 1280px; margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  padding-block: 6rem 5rem;
  max-width: 680px;
  margin-left: 0;
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(217,138,10,0.35);
  border-radius: 100px;
  background: rgba(217,138,10,0.1);
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease-out) 0.3s forwards;
}
.hero-kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-title {
  margin-bottom: 1.5rem; max-width: 14ch;
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
  color: var(--cream);
}

.hero-sub {
  max-width: 50ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--cream-soft); line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero right — product showcase */
.hero-right {
  position: absolute; right: 5%; top: 50%; z-index: 5;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1rem;
  opacity: 0; animation: fadeUp 1s var(--ease-out) 1s forwards;
}
.hero-pill {
  background: rgba(15,33,24,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-green);
  border-radius: 12px; padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 200px;
}
.hero-pill-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(217,138,10,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); flex-shrink: 0;
}
.hero-pill strong { display: block; font-size: 0.85rem; color: var(--cream); }
.hero-pill span   { font-size: 0.72rem; color: var(--cream-mute); }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  color: var(--cream-mute); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  animation: scrollBob 2.5s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
.hero-scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--orange));
}

/* ── MARQUEE ──────────────────────────────────────────────── */
.marquee-band {
  overflow: hidden;
  border-top: 1px solid var(--line-green);
  border-bottom: 1px solid var(--line-green);
  background: var(--green-dark);
  padding-block: 0.85rem;
}
.marquee-track {
  display: flex; gap: 2rem;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream-mute);
}
.marquee-track .dot { color: var(--orange); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTION COMMON ───────────────────────────────────────── */
.section-header { text-align: center; max-width: 780px; margin-inline: auto; margin-bottom: 4rem; }
.section-kicker {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem; display: block;
}
.section-desc { color: var(--cream-soft); font-size: 1rem; line-height: 1.75; margin-top: 1rem; }

/* ── SECTORES ─────────────────────────────────────────────── */
.sectores {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--green-deep);
}
.sectores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.sector-card {
  position: relative; border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--green-dark);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.4s;
  cursor: default;
}
.sector-card:hover {
  border-color: var(--line);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.sector-card[data-sector="pharma"]:hover   { box-shadow: 0 24px 60px rgba(217,138,10,0.18); }
.sector-card[data-sector="food"]:hover     { box-shadow: 0 24px 60px rgba(61,122,86,0.25); }
.sector-card[data-sector="cosmetic"]:hover { box-shadow: 0 24px 60px rgba(217,138,10,0.22); }

.sector-card-bg {
  height: 220px;
  position: relative; overflow: hidden;
}
.sector-card-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.6s var(--ease-out);
  display: block;
}
.sector-card:hover .sector-card-bg img { transform: scale(1.07); }

/* Dark gradient overlay for legibility */
.sector-card-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 26, 17, 0.35) 0%,
    rgba(11, 26, 17, 0.65) 100%
  );
  pointer-events: none;
}

/* Colored accent strip per sector */
.sector-card[data-sector="pharma"]   .sector-card-bg::before,
.sector-card[data-sector="food"]     .sector-card-bg::before,
.sector-card[data-sector="cosmetic"] .sector-card-bg::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; z-index: 2; pointer-events: none;
}
.sector-card[data-sector="pharma"]   .sector-card-bg::before { background: var(--orange); }
.sector-card[data-sector="food"]     .sector-card-bg::before { background: var(--green-light); }
.sector-card[data-sector="cosmetic"] .sector-card-bg::before { background: var(--orange-light); }

.sector-card-content { padding: 2rem; }
.sector-num {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  color: var(--cream-mute); margin-bottom: 0.5rem;
}
.sector-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--cream); }
.sector-card p  { color: var(--cream-soft); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }

.sector-tags { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.75rem; }
.sector-tags li {
  font-size: 0.8rem; color: var(--cream-mute);
  padding-left: 1.1rem; position: relative;
}
.sector-tags li::before { content: '→'; position: absolute; left: 0; color: var(--orange); font-size: 0.75rem; }

.sector-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; color: var(--orange);
  transition: gap 0.2s;
}
.sector-cta:hover { gap: 0.8rem; }

/* ── NOSOTROS ─────────────────────────────────────────────── */
.nosotros {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--green-dark);
  border-top: 1px solid var(--line-green);
}
.nosotros-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.nosotros-text p { color: var(--cream-soft); font-size: 1rem; line-height: 1.8; margin-bottom: 1.25rem; }
.nosotros-text h2 { margin-bottom: 1.5rem; }

.valores-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.valor-item { display: flex; gap: 1rem; align-items: flex-start; }
.valor-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: rgba(217,138,10,0.12);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; padding: 8px; color: var(--orange);
}
.valor-item strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--cream); margin-bottom: 0.25rem; }
.valor-item span { font-size: 0.82rem; color: var(--cream-mute); line-height: 1.6; }

.nosotros-visual { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.visual-card-main, .visual-card-secondary {
  position: relative; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line-green);
}
.visual-card-main { aspect-ratio: 16/9; }
.visual-card-secondary { aspect-ratio: 21/9; }
.visual-card-main img, .visual-card-secondary img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.visual-card-main:hover img, .visual-card-secondary:hover img { transform: scale(1.04); }
.visual-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,33,24,0.7) 0%, transparent 60%); }
.visual-badge {
  position: absolute; bottom: 1rem; left: 1rem;
  background: rgba(15,33,24,0.85);
  backdrop-filter: blur(12px); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.5rem 0.9rem;
}
.visual-badge span { display: block; font-size: 0.65rem; color: var(--cream-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.visual-badge strong { display: block; font-size: 0.85rem; color: var(--orange); }

/* ── STATS ────────────────────────────────────────────────── */
.stats-band {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--green-mid);
  border-top: 1px solid var(--line-green);
  border-bottom: 1px solid var(--line-green);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item { text-align: center; }
.stat-item p { font-size: 0.82rem; color: var(--cream-soft); line-height: 1.5; margin-top: 0.5rem; }
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700;
  color: var(--orange);
}
.stat-plus {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700;
  color: var(--orange-light); vertical-align: super;
}

/* ── PORTAFOLIO ───────────────────────────────────────────── */
.portafolio {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--green-deep);
}

.portfolio-filters {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: center; margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem; border-radius: 100px;
  border: 1px solid var(--line-green);
  color: var(--cream-soft); font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--orange); color: var(--cream); }
.filter-btn.active {
  background: var(--orange); border-color: transparent;
  color: var(--green-deep); font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border-radius: var(--radius); border: 1px solid var(--line-soft);
  background: var(--green-dark); overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.product-card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.product-card.is-hidden { display: none; }

.product-card-img {
  height: 220px;
  background: #fff;  /* white bg for product photos */
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.4s var(--ease-out);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

/* Category color strip top */
.product-card[data-cat="pharma"]   .product-card-img::after,
.product-card[data-cat="food"]     .product-card-img::after,
.product-card[data-cat="cosmetic"] .product-card-img::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.product-card[data-cat="pharma"]   .product-card-img::after { background: var(--orange); }
.product-card[data-cat="food"]     .product-card-img::after { background: var(--green-light); }
.product-card[data-cat="cosmetic"] .product-card-img::after { background: var(--orange-light); }

.product-card-body { padding: 1.5rem; }
.product-cat {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.product-card[data-cat="pharma"]   .product-cat { color: var(--orange); }
.product-card[data-cat="food"]     .product-cat { color: var(--green-light); }
.product-card[data-cat="cosmetic"] .product-cat { color: var(--orange-light); }

.product-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--cream); }
.product-card p  { font-size: 0.85rem; color: var(--cream-mute); line-height: 1.65; margin-bottom: 1.25rem; }

.product-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.1rem; border-radius: 100px;
  background: #25d366; color: #fff;
  font-size: 0.82rem; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,0.35); }

.portfolio-cta-wrap {
  text-align: center; margin-top: 4rem; padding: 3rem;
  border-radius: var(--radius); border: 1px solid var(--line-green);
  background: var(--green-dark);
}
.portfolio-cta-wrap p { color: var(--cream-soft); margin-bottom: 1.5rem; font-size: 1.05rem; }

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
  padding: clamp(6rem, 12vw, 10rem) 0;
  position: relative; overflow: hidden;
  background: var(--green-dark);
  border-top: 1px solid var(--line-green);
}
.cta-gradient {
  position: absolute; inset: -20%;
  background:
    radial-gradient(circle 600px at 20% 50%, rgba(217,138,10,0.12), transparent 60%),
    radial-gradient(circle 500px at 80% 50%, rgba(61,122,86,0.15), transparent 60%);
  filter: blur(80px); pointer-events: none;
}
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-inner h2 { margin-bottom: 1.25rem; }
.cta-desc {
  color: var(--cream-soft); max-width: 52ch; margin-inline: auto;
  margin-bottom: 2.5rem; font-size: 1.05rem; line-height: 1.7;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
.cta-info { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.cta-info span {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--cream-mute);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--green-deep);
  border-top: 1px solid var(--line-green);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 4rem; margin-bottom: 3rem; }
.footer-logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.5rem; letter-spacing: -0.02em;
  color: var(--orange); display: block; margin-bottom: 0.75rem;
}
.footer-logo-img { height: 74px; width: auto; display: block; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.85rem; color: var(--cream-mute); line-height: 1.7; }
.footer-dist { margin-top: 0.75rem !important; font-size: 0.8rem !important; color: var(--cream-mute) !important; }
.footer-dist strong { color: var(--orange); }
.footer-nav { display: flex; gap: 4rem; }
.footer-col-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--cream-mute); margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col li a, .footer-col li span { font-size: 0.85rem; color: var(--cream-mute); transition: color 0.2s; }
.footer-col li a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid var(--line-soft);
  font-size: 0.75rem; color: var(--cream-mute);
}
.footer-credits a { color: var(--cream-mute); transition: color 0.2s; }
.footer-credits a:hover { color: var(--cream); }

/* ── FLOATING WHATSAPP ────────────────────────────────────── */
.wha-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.wha-float:hover { transform: scale(1.1); box-shadow: 0 12px 48px rgba(37,211,102,0.5); }
.wha-float svg { color: #fff; }
.wha-tooltip {
  position: absolute; right: calc(100% + 0.75rem); top: 50%;
  transform: translateY(-50%);
  background: rgba(15,33,24,0.95); border: 1px solid var(--line-green);
  border-radius: 8px; padding: 0.4rem 0.8rem;
  font-size: 0.8rem; color: var(--cream); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.wha-float:hover .wha-tooltip { opacity: 1; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-right { display: none; }
}
@media (max-width: 1024px) {
  .nosotros-split { grid-template-columns: 1fr; }
  .nosotros-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-burger { display: flex; }
  .valores-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-nav { gap: 2rem; flex-wrap: wrap; }
  .cta-info { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { justify-content: center; }
  .footer-nav { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .wha-float { bottom: 1.25rem; right: 1.25rem; }
}
