/* ==========================================================
   NIBEMAR IMPRESORES · Landing
   Paleta y tipografía editables en :root
   ========================================================== */
:root {
  /* Colores CMYK + base */
  --violet: #2E2470;
  --violet-deep: #1E1750;
  --yellow: #FFD23F;
  --yellow-dark: #E0A800;
  --magenta: #D63384;
  --magenta-dark: #B5246C;
  --cyan: #22B8E6;
  --ink: #141414;
  --text: #141414;
  --muted: #6B6B6B;
  --soft: #F4F5F9;
  --line: #E4E5EC;
  --white: #FFFFFF;

  /* Tipografía */
  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Subtítulos (eyebrows). Con fuente manuscrita usar: escala 1, sin mayúsculas, espaciado 0, peso 400 */
  --font-subtitle: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --eyebrow-scale: .66;
  --eyebrow-case: uppercase;
  --eyebrow-spacing: .2em;
  --eyebrow-weight: 700;

  /* Layout */
  --container: 1200px;
  --gutter: 16px;
  --radius: 14px;
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 72px;
  --shadow: 0 18px 40px -18px rgba(30, 23, 80, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.section { padding-block: var(--section-y); position: relative; }
.bg-soft { background: var(--soft); }

/* ---------- Tipos ---------- */
.eyebrow {
  font-family: var(--font-subtitle);
  font-size: calc(clamp(1.05rem, 1.6vw, 1.3rem) * var(--eyebrow-scale));
  font-weight: var(--eyebrow-weight);
  text-transform: var(--eyebrow-case);
  letter-spacing: var(--eyebrow-spacing);
  margin: 0 0 .6em;
  line-height: 1.2;
}
.eyebrow-yellow { color: var(--yellow); }
.eyebrow-magenta { color: var(--magenta); }

.section-title {
  font-weight: 900;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: .6em;
}
.section-title.light { color: #fff; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; }
.section-head .section-title { margin-bottom: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 2.2em;
  border: 2px solid transparent; border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffdc63; }
.btn-magenta { background: var(--magenta); color: #fff; }
.btn-magenta:hover { background: var(--magenta-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 42px; padding: 0 1.6em; font-size: .72rem; }
.btn-whatsapp { background: #1FAF55; color: #fff; width: 100%; }
.btn-whatsapp:hover { background: #17964a; }
.btn-whatsapp svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.arrow-circle {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: .8rem; letter-spacing: 0;
  transition: transform .25s var(--ease);
}
.link-arrow:hover .arrow-circle { transform: translateX(4px); }
.link-arrow-light { color: #fff; }
.link-arrow-light .arrow-circle { background: #fff; color: var(--violet); }

/* ---------- Puntos decorativos ---------- */
.dots-tr::before, .dots-bl::after {
  content: ""; position: absolute; width: 220px; height: 220px; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(46, 36, 112, .16) 1.6px, transparent 1.8px);
  background-size: 16px 16px;
}
.dots-tr::before { top: 40px; right: 0; }
.dots-bl::after { bottom: 40px; left: 0; }
.section > .container { position: relative; z-index: 1; }
@media (max-width: 899px) { .dots-tr::before, .dots-bl::after { display: none; } }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(8px);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
}
.brand img { width: 150px; transition: width .3s var(--ease); }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.ico-magenta { color: var(--magenta); }

.socials { display: flex; gap: 8px; }
.socials a {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  color: #fff; transition: transform .2s var(--ease);
}
.socials a:hover { transform: translateY(-2px) scale(1.06); }
.socials svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.s-cyan { background: var(--cyan); }
.s-magenta { background: var(--magenta); }
.s-yellow { background: var(--yellow); color: var(--ink) !important; }
.s-dark { background: var(--ink); }

/* Toggle móvil */
.nav-toggle {
  width: 46px; height: 46px; border: 0; background: transparent;
  display: grid; place-content: center; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel móvil */
.header-bar {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25);
  padding: 8px var(--gutter) 24px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.header-bar.is-open { visibility: visible; opacity: 1; transform: none; }
.main-nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 1.05rem;
}
.main-nav a.is-active { color: var(--magenta); }
.header-contact { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.hc-item { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--muted); }
.hc-item:hover { color: var(--ink); }

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: none; }
  .header-inner {
    flex-direction: column; justify-content: center; gap: 14px;
    padding-block: 22px 14px;
    transition: padding .3s var(--ease);
  }
  .brand img { width: 200px; }
  .header-bar {
    position: static; visibility: visible; opacity: 1; transform: none;
    display: flex; align-items: center; justify-content: center; gap: 36px;
    padding: 0; border: 0; box-shadow: none; background: none; max-height: none; overflow: visible;
  }
  .main-nav ul { display: flex; gap: 26px; }
  .main-nav a {
    position: relative; padding: 6px 0; border: 0;
    font-size: .88rem; font-weight: 500; color: #3a3a3a;
  }
  .main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
    background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
  .main-nav a.is-active { color: var(--ink); }
  .header-contact { flex-direction: row; align-items: center; gap: 22px; margin: 0; }
  .hc-item { font-size: .82rem; }

  /* Versión compacta al hacer scroll */
  .site-header.is-compact { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .3); }
  .site-header.is-compact .header-inner { flex-direction: row; justify-content: space-between; padding-block: 10px; }
  .site-header.is-compact .brand img { width: 130px; }
  .site-header.is-compact .hc-item { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .hc-item:first-child { display: none; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  display: grid; overflow: hidden;
  background: var(--violet-deep);
}
.hero-slide {
  grid-area: 1 / 1; display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
  position: relative;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: var(--bg) var(--bg-pos, center) / cover no-repeat;
  transform: scale(1.04);
  will-change: transform;
}
.hero-slide.kb::before { animation: kenburns 9s linear forwards; }
.hero-slide:nth-child(2).kb::before { animation-name: kenburns-2; }
.hero-slide:nth-child(3).kb::before { animation-name: kenburns-3; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
@keyframes kenburns-2 { from { transform: scale(1.16) translate(1.5%, 0); } to { transform: scale(1.04); } }
@keyframes kenburns-3 { from { transform: scale(1.04); } to { transform: scale(1.15) translate(1.5%, 1%); } }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46, 36, 112, .82), rgba(30, 23, 80, .86));
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-content {
  position: relative; z-index: 1; color: #fff; text-align: center;
  padding-block: 120px 100px;
}
.hero h1, .hero .hero-title {
  font-weight: 800; font-size: clamp(2.3rem, 6.4vw, 4.6rem); letter-spacing: -.02em;
  margin-bottom: .45em;
}
.hero .eyebrow { font-size: calc(clamp(1.1rem, 2vw, 1.45rem) * var(--eyebrow-scale)); }
.hero-lead { max-width: 560px; margin: 0 auto 2.2em; font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 34px; }

.hero-slide.is-active .hero-content > * { animation: rise .9s var(--ease) both; }
.hero-slide.is-active .hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-slide.is-active .hero-content > :nth-child(3) { animation-delay: .2s; }
.hero-slide.is-active .hero-content > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-dots {
  position: absolute; z-index: 2;
  left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 28px; height: 28px; border: 0; padding: 0; background: transparent; position: relative;
}
.hero-dots button::before {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 18px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .45);
  transition: width .3s, background .3s;
}
.hero-dots button::after {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -16px -50%;
  width: 0; height: 3px; border-radius: 2px; background: var(--yellow);
}
.hero-dots button.is-active::before { width: 32px; }
.hero-dots button.is-active::after { animation: dot-progress var(--slide-time, 6.5s) linear forwards; }
.hero.is-still .hero-dots button.is-active::after, .hero:hover .hero-dots button.is-active::after { animation: none; width: 32px; }
@keyframes dot-progress { to { width: 32px; } }

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 30px; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px;
  display: none;
}
.scroll-cue::before {
  content: ""; position: absolute; left: 50%; top: 8px; translate: -50% 0;
  width: 4px; height: 8px; border-radius: 2px; background: var(--yellow);
  animation: scroll-cue 1.8s var(--ease) infinite;
}
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (min-width: 768px) {
  .hero-dots { left: auto; right: 32px; bottom: auto; top: 50%; transform: translateY(-50%); flex-direction: column; gap: 4px; }
  .hero-dots button { width: 44px; height: 20px; }
  .hero-dots button::before { left: auto; right: 0; translate: 0 -50%; }
  .hero-dots button::after { left: auto; right: 0; translate: 0 -50%; }
  .scroll-cue { display: block; }
}

/* ==========================================================
   CLIENTES
   ========================================================== */
.clients { background: var(--soft); padding-block: 44px; overflow: hidden; }
.clients-title {
  text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 24px;
}
.clients-track-wrap { --gap: 56px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.clients-track { display: flex; align-items: center; gap: var(--gap); width: max-content; animation: marquee var(--marquee-time, 36s) linear infinite; }
.clients-track li { flex: none; }
.clients-track-wrap:hover .clients-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

.logo-ph {
  display: grid; place-items: center; height: 56px; padding: 0 6px;
  font-size: 1.35rem; color: #a5a7b3; white-space: nowrap;
  filter: grayscale(1); opacity: .85; transition: color .3s, opacity .3s, filter .3s;
}
.logo-ph:hover { filter: none; opacity: 1; }
.lp-1 { font-weight: 800; font-style: italic; }
.lp-2 { font-weight: 300; letter-spacing: .25em; font-size: 1.05rem; }
.lp-3 { font-family: Georgia, serif; font-size: 1.5rem; }
.lp-4 { font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; }
.lp-5 { font-weight: 600; font-size: 1.1rem; letter-spacing: .1em; }
.lp-6 { font-family: var(--font-subtitle); }
.lp-7 { font-weight: 700; border: 2px solid currentColor; height: 40px; padding: 0 12px; font-size: 1rem; }
.lp-8 { font-weight: 500; font-size: 1.5rem; letter-spacing: -.04em; }
.client-logo {
  height: 52px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s;
}
.client-logo:hover { filter: none; opacity: 1; }
.lp-1:hover { color: var(--magenta); } .lp-2:hover { color: var(--cyan); } .lp-3:hover { color: var(--violet); }
.lp-4:hover { color: var(--ink); } .lp-5:hover { color: var(--magenta); } .lp-6:hover { color: var(--cyan); }
.lp-7:hover { color: var(--violet); } .lp-8:hover { color: var(--yellow-dark); }

@media (min-width: 1024px) {
  .clients-track-wrap { --gap: 80px; }
}

/* ==========================================================
   NOSOTROS / TRAYECTORIA
   ========================================================== */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-text p:not(.eyebrow) { color: var(--muted); }
.about-text .btn { margin-top: 1em; }
.about-media { margin: 0; position: relative; }
.media-frame { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-media::before {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%;
  border-radius: var(--radius); background: var(--yellow); z-index: -1;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1.05fr; gap: 72px; }
}

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: clamp(56px, 8vw, 96px);
}
.stats li {
  background: #fff; padding: 28px 16px 36px; text-align: center; position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stats li::after {
  content: ""; position: absolute; left: 50%; bottom: 16px; translate: -50% 0;
  width: 0; height: 3px; border-radius: 2px; background: var(--bar, var(--violet));
  transition: width .9s var(--ease) .5s;
}
.stats li:nth-child(4n+2) { --bar: var(--magenta); }
.stats li:nth-child(4n+3) { --bar: var(--cyan); }
.stats li:nth-child(4n+4) { --bar: var(--yellow-dark); }
.stats li:hover { transform: translateY(-6px); box-shadow: var(--shadow); z-index: 1; }
.js .stats li { opacity: 0; transform: translateY(24px) scale(.96); }
.js .stats.is-visible li { animation: stat-in .7s var(--ease) both; }
.js .stats.is-visible li:nth-child(2) { animation-delay: .12s; }
.js .stats.is-visible li:nth-child(3) { animation-delay: .24s; }
.js .stats.is-visible li:nth-child(4) { animation-delay: .36s; }
.stats.is-visible li::after { width: 40px; }
@keyframes stat-in { to { opacity: 1; transform: none; } }
.stats strong { display: block; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; line-height: 1; color: var(--violet); }
.stats li:nth-child(2) strong { color: var(--magenta); }
.stats li:nth-child(3) strong { color: var(--cyan); }
.stats li:nth-child(4) strong { color: var(--yellow-dark); }
.stats li > span { display: block; margin-top: 10px; font-size: .9rem; color: var(--muted); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.timeline-title {
  font-weight: 800; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .04em;
  margin: clamp(56px, 8vw, 96px) 0 32px;
}
.timeline { display: grid; gap: 28px; position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--cyan), var(--magenta), var(--yellow));
}
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -28px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--magenta);
}
.timeline li:nth-child(3n+1)::before { border-color: var(--cyan); }
.timeline li:nth-child(3n)::before { border-color: var(--yellow-dark); }
.tl-year { display: block; font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 28px; padding: 36px 0 0; }
  .timeline::before { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow)); }
  .timeline li::before { left: 0; top: -37px; }
}

/* ==========================================================
   SERVICIOS
   ========================================================== */
.band-violet {
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 184, 230, .18), transparent 40%),
    radial-gradient(circle at 95% 100%, rgba(214, 51, 132, .22), transparent 45%),
    var(--violet);
  color: #fff;
}
.services-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.service-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 34px 30px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); border-color: var(--accent); }
.service-card:hover::before { transform: scaleX(1); }
.service-card svg { width: 48px; height: 48px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 20px; }
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: rgba(255, 255, 255, .78); font-size: .97rem; margin: 0; }

/* ==========================================================
   PLANTA
   ========================================================== */
.plant-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.plant-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; min-height: 200px; }
.plant-grid img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .8s var(--ease); }
.plant-grid figure:hover img { transform: scale(calc(var(--zoom, 1) * 1.05)); }
.plant-grid figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-size: .82rem; font-weight: 600; color: #fff;
  background: rgba(20, 20, 20, .55); backdrop-filter: blur(4px);
  padding: 6px 12px; border-radius: 999px; width: fit-content;
}
.pg-a { grid-column: 1 / -1; min-height: 260px !important; }
@media (min-width: 900px) {
  .plant-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: 260px 260px; }
  .pg-a { grid-column: 1 / 3; grid-row: 1 / 3; }
  .pg-b { grid-column: 3 / 5; }
  .pg-c { grid-column: 3; }
  .pg-d { grid-column: 4; }
  .pg-e { display: none; }
}

/* ==========================================================
   CATÁLOGO
   ========================================================== */
.filters {
  display: flex; gap: 10px; margin: 0 calc(var(--gutter) * -1) 36px; padding: 4px var(--gutter);
  overflow-x: auto; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .filters { justify-content: center; flex-wrap: wrap; margin-inline: 0; } }
.filter {
  flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: 10px 20px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  transition: background .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--magenta); color: var(--magenta); }
.filter.is-active { background: var(--magenta); border-color: var(--magenta); color: #fff; }

.products { display: grid; gap: 24px; }
@media (min-width: 600px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (min-width: 1400px) { .products { grid-template-columns: repeat(4, 1fr); } }
.product {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease), box-shadow .35s, opacity .35s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product.is-hidden { display: none; }
.product.is-entering { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.product-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product:hover .product-img img { transform: scale(calc(var(--zoom, 1) * 1.06)); }
.product-img-ph {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 40%, rgba(34, 184, 230, .9) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 60%, rgba(214, 51, 132, .9) 0 18%, transparent 19%),
    radial-gradient(circle at 70% 40%, rgba(255, 210, 63, .95) 0 18%, transparent 19%),
    var(--violet);
}
.product-img-ph span { font-family: var(--font-subtitle); color: #fff; font-size: 1.6rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); }
.product h3 { font-size: 1.2rem; font-weight: 700; margin: 6px 0 8px; }
.specs { font-size: .9rem; color: var(--muted); line-height: 1.55; flex: 1; }
.product .btn { align-self: flex-start; }

/* ==========================================================
   PROCESO
   ========================================================== */
.steps { display: grid; gap: 36px; counter-reset: s; position: relative; }
.steps li { position: relative; text-align: center; padding: 0 8px; }
.step-n {
  display: grid; place-items: center; margin: 0 auto 20px;
  width: 84px; height: 84px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  font-weight: 900; font-size: 1.6rem; color: var(--ink);
  position: relative; z-index: 1;
  box-shadow: 0 0 0 10px #fff;
}
.steps h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .97rem; max-width: 280px; margin-inline: auto; }
@media (max-width: 899px) {
  .steps li:not(:last-child)::after {
    content: ""; display: block; height: 36px; width: 0; margin: 24px auto -12px;
    border-left: 2px dashed #c9cad6;
  }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps::before {
    content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 42px;
    border-top: 2px dashed #c9cad6;
  }
}

/* ==========================================================
   TESTIMONIOS
   ========================================================== */
.testi { max-width: 820px; margin-inline: auto; }
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; transition: transform .6s var(--ease); }
.testi-card {
  flex: 0 0 100%; text-align: center; padding: 8px 4px;
}
.stars { color: var(--yellow-dark); font-size: 1.2rem; letter-spacing: .2em; margin-bottom: 18px; }
.testi-card blockquote {
  margin: 0 0 28px; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 500; line-height: 1.5;
}
.testi-author { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800;
}
.testi-author strong { display: block; }
.testi-author span { color: var(--muted); font-size: .9rem; }
.testi-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 36px; }
.testi-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.1rem; transition: background .25s, color .25s, border-color .25s;
}
.testi-btn:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.testi-dots { display: flex; gap: 4px; }
.testi-dots button { width: 24px; height: 24px; border: 0; background: transparent; padding: 0; position: relative; }
.testi-dots button::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-radius: 50%;
  background: #c9cad6; transition: background .25s, transform .25s;
}
.testi-dots button[aria-current="true"]::before { background: var(--magenta); transform: scale(1.3); }

/* ==========================================================
   CTA
   ========================================================== */
.cta-band {
  position: relative; color: #fff; text-align: center;
  padding-block: clamp(80px, 12vw, 140px);
  background: var(--bg) var(--bg-pos, center) / cover no-repeat;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(46, 36, 112, .84); }
.cta-inner { position: relative; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: .4em; }
.cta-band p:not(.eyebrow) { color: rgba(255, 255, 255, .85); max-width: 520px; margin: 0 auto 2em; }

/* ==========================================================
   CONTACTO
   ========================================================== */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.35fr 1fr; gap: 72px; } }
.contact-form { display: grid; gap: 18px; }
@media (min-width: 600px) { .contact-form { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  padding: 12px 14px; min-height: 50px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input[type="file"] { padding: 10px; background: var(--soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(46, 36, 112, .12);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C62828; }
.error { font-size: .8rem; color: #C62828; min-height: 1em; }
.form-status { margin: 14px 0 0; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* trampa para robots */
.contact-form button[disabled] { opacity: .7; cursor: wait; transform: none; }
.form-status.ok { color: #1B7F3B; }
.form-status.err { color: #C62828; }

.info-list { display: grid; gap: 22px; margin-bottom: 28px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-ico { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--c); color: #fff; }
.info-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.info-list strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.info-list span, .info-list a { color: var(--muted); }
.info-list a:hover { color: var(--magenta); }
.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: #0F0F14; color: rgba(255, 255, 255, .72); padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.f-brand img { width: 180px; margin-bottom: 18px; }
.f-brand p { max-width: 320px; }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul:not(.socials) li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: .85rem;
}
.footer-bottom p { margin: 0; }
/* Que el botón flotante de WhatsApp no tape "Volver arriba" */
@media (max-width: 1300px) { .footer-bottom { padding-right: 84px; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #1FAF55; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(31, 175, 85, .6);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* Encuadre de fotos (definido por foto desde el editor) */
.about-media img, .plant-grid img, .product-img img {
  object-position: var(--pos, 50% 50%);
  transform-origin: var(--pos, 50% 50%);
  transform: scale(var(--zoom, 1));
}

/* ==========================================================
   Animaciones de aparición
   ========================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .clients-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gutter); }
  .clients-track li[aria-hidden="true"] { display: none; }
}
