
:root {
  --bg: #f5f6f4;
  --bg-alt: #ffffff;
  --bg-deep: #1f2a1f;
  --ink: #2a342a;
  --ink-soft: #4a544a;
  --ink-mute: #8a948a;
  --line: #dde0db;
  --line-soft: #e9ece6;
  --accent: #2d5a2d;
  --accent-deep: #1f4a1f;
  --accent-soft: #e6ede4;
  --kraft: #8aab66;
  --gray: #6b7268;
  --gray-soft: #c8ccc4;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --radius: 4px;
  /* Anchos máximos fluidos: ancho cómodo en pantallas grandes pero usa todo el espacio disponible */
  --content-width: min(1680px, 92vw);
  --content-width-narrow: min(1400px, 90vw);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Asegurar que header/main/footer queden por encima de cualquier capa decorativa */
.site-header, main, footer { position: relative; z-index: 1; }

/* ============ BARRA DE PROGRESO DE SCROLL ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--kraft) 100%);
  z-index: 9998;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(90, 140, 60, 0.5);
}

/* ============ BOTÓN SCROLL-TO-TOP ============ */
.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.scroll-top:hover {
  background: var(--accent);
  transform: translateY(-4px) scale(1.05);
}
.scroll-top svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}
@media (max-width: 700px) {
  .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ============ TILT 3D EN CARDS ============ */
/* Las tarjetas con .tiltable se inclinan ligeramente siguiendo el cursor */
.tiltable {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.tiltable > * { transform: translateZ(0); }
@media (prefers-reduced-motion: reduce) {
  .tiltable { transform: none !important; }
}

/* ============ MAGNETIC HOVER EN BOTONES PRIMARIOS ============ */
.magnetic { transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }

/* Reduce motion: desactivar todo lo dinámico */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
  .scroll-top { transition: opacity 0.2s ease; }
}

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

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 244, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(245, 246, 244, 0.92);
  box-shadow: 0 1px 24px -12px rgba(31, 42, 31, 0.12);
}

.header-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: padding 0.3s ease;
}

.site-header.scrolled .header-inner {
  padding: 14px 40px;
}

/* ---- LOGO ---- */
.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.75; }

.logo-svg {
  height: 38px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.site-header.scrolled .logo-svg {
  height: 32px;
}

/* ---- SEARCH ---- */
.search-box {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  transition: all 0.2s ease;
}

.search-box input::placeholder { color: var(--ink-mute); }

.search-box input:hover {
  border-color: var(--gray-soft);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: #fff;
}

.search-box > svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--ink-mute);
  pointer-events: none;
  transition: color 0.2s ease;
}
.search-box input:focus ~ svg,
.search-box:focus-within > svg { color: var(--accent); }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}
.search-results.active { display: block; }
.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-result-item:hover { background: var(--bg); }
.search-result-item:last-child { border-bottom: none; }
.search-result-cat {
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
  cursor: pointer;
  padding: 6px 0;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:not(.nav-cta):hover { color: var(--ink); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.main-nav a.active {
  color: var(--accent);
}
.main-nav a.active::after { width: 100%; }

/* ---- DROPDOWN (¿Qué hacemos?) ---- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown > .nav-dropdown-toggle {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  position: relative;
  transition: color 0.2s ease;
}
.nav-dropdown > .nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-dropdown:hover > .nav-dropdown-toggle,
.nav-dropdown.open > .nav-dropdown-toggle {
  color: var(--ink);
}
.nav-dropdown:hover > .nav-dropdown-toggle::after,
.nav-dropdown.open > .nav-dropdown-toggle::after {
  width: 100%;
}
.nav-dropdown > .nav-dropdown-toggle svg {
  width: 11px;
  height: 11px;
  transition: transform 0.25s ease;
}
.nav-dropdown:hover > .nav-dropdown-toggle svg,
.nav-dropdown.open > .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 42px -16px rgba(31, 42, 31, 0.22), 0 4px 10px -4px rgba(31, 42, 31, 0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px !important;
  border-radius: 7px;
  cursor: pointer;
  color: var(--ink) !important;
  transition: background 0.18s ease;
  text-decoration: none;
}
.nav-dropdown-item::after { display: none !important; }
.nav-dropdown-item:hover {
  background: var(--bg-alt);
}
.nav-dropdown-item-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.nav-dropdown-item-icon svg { width: 16px; height: 16px; }
.nav-dropdown-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.nav-dropdown-item-desc {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.35;
}

/* ---- CTA BUTTON ---- */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px !important;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.005em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin-left: 4px;
}
.nav-cta svg {
  width: 14px; height: 14px;
  transition: transform 0.25s ease;
}
.nav-cta:hover {
  background: var(--accent-deep);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(45, 90, 45, 0.5);
}
.nav-cta:hover svg { transform: translateX(3px); }
.nav-cta::after { display: none !important; }

/* ---- MENU TOGGLE (mobile) ---- */
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}
.menu-toggle:hover { border-color: var(--accent); }
.menu-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .header-inner { gap: 24px; padding: 18px 32px; }
  .main-nav { gap: 22px; }
}

@media (max-width: 900px) {
  .header-inner { padding: 14px 20px; gap: 12px; }
  .site-header.scrolled .header-inner { padding: 10px 20px; }
  .search-box { max-width: none; }
  .search-box input { padding: 10px 16px 10px 40px; font-size: 13.5px; }
  .main-nav {
    position: fixed;
    top: 100%; left: 0; right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 24px 28px 32px;
    gap: 6px;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px -16px rgba(0,0,0,0.15);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.25s;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav a:not(.nav-cta) {
    padding: 14px 4px !important;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }
  .main-nav a:not(.nav-cta)::after { display: none; }
  /* Dropdown on mobile: render inline as a regular section with the items visible */
  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-dropdown > .nav-dropdown-toggle {
    padding: 14px 4px;
    font-size: 15px;
    width: 100%;
    justify-content: space-between;
    color: var(--ink-soft);
  }
  .nav-dropdown > .nav-dropdown-toggle::after { display: none; }
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 12px 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu { max-height: 260px; }
  .nav-dropdown-item {
    padding: 12px 6px 12px 14px !important;
    border-radius: 6px;
  }
  .nav-cta {
    margin-top: 12px;
    justify-content: center;
    padding: 14px 18px !important;
    font-size: 14px !important;
  }
  .menu-toggle { display: flex; }
  .logo-svg { height: 32px; }
  .site-header.scrolled .logo-svg { height: 28px; }
}

@media (max-width: 480px) {
  .search-box svg { left: 14px; }
  .search-box input { padding-left: 38px; }
}

/* ============ PAGE SYSTEM ============ */
.page { display: none; animation: fadeIn 0.4s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 0;
  margin: 0 auto;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--bg);
}

/* ====== Capa de vídeo de fondo ====== */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* Filtro: blanco y negro con ligero contraste extra (estética taller vintage) */
  filter: grayscale(1) contrast(1.15) brightness(0.85);
  /* Si el vídeo no carga, queda invisible y se ve el fallback de detrás */
}
/* Fallback animado cuando no hay vídeo: ESCENA DE IMPRENTA */
.hero-bg-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a1810;
  overflow: hidden;
}
.hero-machinery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Rodillos: el patrón "rueda" desplazándose horizontalmente simula rotación */
.m-roller {
  animation: roller-spin 3s linear infinite;
  transform-origin: center;
}
.m-roller-2 {
  animation: roller-spin-rev 3.5s linear infinite;
  transform-origin: center;
}
@keyframes roller-spin {
  from { transform: translateX(0); }
  to   { transform: translateX(-40px); }
}
@keyframes roller-spin-rev {
  from { transform: translateX(0); }
  to   { transform: translateX(40px); }
}

/* Engranajes: rotaciones suaves a distintas velocidades */
.m-gear-1 { animation: gear-spin 14s linear infinite; transform-origin: 180px 220px; transform-box: fill-box; }
.m-gear-2 { animation: gear-spin-rev 18s linear infinite; transform-origin: 1430px 230px; transform-box: fill-box; }
.m-gear-3 { animation: gear-spin 11s linear infinite; transform-origin: 1330px 720px; transform-box: fill-box; }
@keyframes gear-spin     { from { rotate: 0deg; }   to { rotate: 360deg; } }
@keyframes gear-spin-rev { from { rotate: 360deg; } to { rotate: 0deg; } }

/* Hojas de papel pasando entre rodillos */
.m-paper {
  animation: paper-pass 4s ease-in-out infinite;
  transform-origin: center;
}
.m-paper-2 {
  animation: paper-pass 4s ease-in-out infinite;
  animation-delay: 2s;
}
@keyframes paper-pass {
  0%   { transform: translateX(0);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(2000px); opacity: 0; }
}

/* Gotas de tinta cayendo */
.m-ink {
  animation: ink-drop 3.5s ease-in infinite;
  transform-origin: center;
}
.m-ink-2 { animation-delay: 1.2s; animation-duration: 4s; }
.m-ink-3 { animation-delay: 2.4s; animation-duration: 3.2s; }
@keyframes ink-drop {
  0%   { transform: translateY(0)    scaleY(1);   opacity: 0; }
  10%  { opacity: 0.9; }
  60%  { transform: translateY(120px) scaleY(1.6); opacity: 0.9; }
  100% { transform: translateY(220px) scaleY(0.5); opacity: 0; }
}

/* Polvo flotando */
.m-particles {
  animation: dust-float 12s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes dust-float {
  from { transform: translateY(0)   translateX(0); opacity: 0.7; }
  to   { transform: translateY(-30px) translateX(15px); opacity: 1; }
}

/* Reduce motion: paramos las animaciones */
@media (prefers-reduced-motion: reduce) {
  .m-roller, .m-roller-2, .m-gear-1, .m-gear-2, .m-gear-3,
  .m-paper, .m-paper-2, .m-ink, .m-particles {
    animation: none;
  }
}
/* Overlay oscuro para legibilidad del texto */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(13, 34, 24, 0.78) 0%, rgba(13, 34, 24, 0.55) 50%, rgba(13, 34, 24, 0.4) 100%),
    linear-gradient(180deg, rgba(13, 34, 24, 0) 60%, rgba(13, 34, 24, 0.6) 100%);
}
/* Grano sutil para textura */
.hero-bg-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  padding: 80px 60px;
  display: flex;
  align-items: center;
}

.hero-content {
  text-align: left;
  max-width: 720px;
}

.hero-content .hero-cta {
  justify-content: flex-start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(247, 245, 241, 0.8);
  margin-bottom: 32px;
  font-weight: 500;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--bg);
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero h1 em {
  font-style: italic;
  color: #c9d6a4;
  font-weight: 300;
}

.hero-sub {
  font-size: 18px;
  color: rgba(247, 245, 241, 0.88);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Botón secundario sobre fondo oscuro */
.hero .btn-secondary {
  background: rgba(247, 245, 241, 0.08);
  color: var(--bg);
  border: 1px solid rgba(247, 245, 241, 0.4);
  backdrop-filter: blur(8px);
}
.hero .btn-secondary:hover {
  background: rgba(247, 245, 241, 0.18);
  border-color: rgba(247, 245, 241, 0.7);
}

/* Indicador de scroll */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(247, 245, 241, 0.6);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, rgba(247, 245, 241, 0.6));
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  animation: hero-scroll-drop 2.4s ease-in-out infinite;
}
@keyframes hero-scroll-drop {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ============ HERO MINI TRUST-BAR ============ */
.hero-trust {
  display: flex;
  gap: 0;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(247, 245, 241, 0.18);
  max-width: 720px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  min-width: 130px;
  padding-right: 24px;
  border-right: 1px solid rgba(247, 245, 241, 0.18);
  padding-left: 24px;
}
.hero-trust-item:first-child { padding-left: 0; }
.hero-trust-item:last-child { border-right: none; padding-right: 0; }
.hero-trust-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--bg);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}
.hero-trust-num svg { color: var(--bg); opacity: 0.95; }
.hero-trust-plus {
  font-size: 0.55em;
  color: #c9d6a4;
  font-style: italic;
  margin-left: 2px;
  font-weight: 300;
}
.hero-trust-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.7);
  font-weight: 500;
}

/* ============ HERO SUBRAYADO ANIMADO en "acabados gráficos" ============ */
.hero-underline {
  position: relative;
  display: inline-block;
}
.hero-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.05em;
  height: 2.5px;
  width: 100%;
  background: linear-gradient(90deg, #c9d6a4 0%, #8aab66 50%, #5a8c3c 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: hero-underline-draw 1.4s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
  /* Pequeña sombra de tinta */
  box-shadow: 0 1px 8px rgba(168, 200, 120, 0.4);
}
@keyframes hero-underline-draw {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* ============ HERO SELLO CIRCULAR VINTAGE ============ */
.hero-stamp {
  position: absolute;
  bottom: 80px;
  right: max(60px, 5vw);
  width: 180px;
  height: 180px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  animation: stamp-appear 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
}
@keyframes stamp-appear {
  from { opacity: 0; transform: scale(0.7) rotate(-30deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
.hero-stamp-svg {
  width: 100%;
  height: 100%;
  animation: stamp-rotate 30s linear infinite;
  /* Empieza después de que aparezca */
  animation-delay: 3s;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}
@keyframes stamp-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* La estrella + texto central NO rotan, mantienen su orientación */
.hero-stamp-svg > g:last-child { animation: stamp-counter-rotate 30s linear infinite; transform-origin: 100px 100px; animation-delay: 3s; }
@keyframes stamp-counter-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* delay-4 para el trust-bar (hereda de fade-in) */
.fade-in.delay-4 { animation-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  .hero-underline::after { transform: scaleX(1); animation: none; }
  .hero-stamp { opacity: 1; animation: none; }
  .hero-stamp-svg, .hero-stamp-svg > g:last-child { animation: none; }
}

/* ---- 3D FOLDER (Carpeta) ---- */
.hero-3d {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  min-height: 380px;
  position: relative;
}

/* Halo suave detrás de la carpeta */
.hero-3d::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 140, 60, 0.18) 0%, rgba(90, 140, 60, 0) 65%);
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

/* Sombra elíptica bajo la carpeta */
.hero-3d::after {
  content: '';
  position: absolute;
  bottom: 50px;
  width: 240px;
  height: 26px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 70%);
  filter: blur(7px);
  z-index: 0;
  animation: shadow-pulse 7s ease-in-out infinite;
}
@keyframes shadow-pulse {
  0%, 100% { transform: scaleX(1) scaleY(1); opacity: 0.7; }
  50%      { transform: scaleX(1.08) scaleY(0.9); opacity: 0.55; }
}

/* CARPETA (caja 3D plana) */
.box-3d {
  position: relative;
  width: 220px;
  height: 290px;
  transform-style: preserve-3d;
  animation: folder-rock 8s ease-in-out infinite;
  will-change: transform;
  z-index: 1;
}

/* Animación de balanceo elegante de carpeta */
@keyframes folder-rock {
  0%, 100% { transform: rotateX(-12deg) rotateY(-22deg); }
  50%      { transform: rotateX(-8deg)  rotateY(-38deg); }
}

/* Caras base de la carpeta */
.box-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.18) 100%),
    linear-gradient(160deg, var(--accent-deep) 0%, var(--accent) 50%, var(--accent-deep) 100%);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.25),
    inset 0 -40px 60px rgba(0, 0, 0, 0.18);
  border-radius: 3px 6px 6px 3px;
}

/* Textura de "tela" sutil en la carpeta */
.box-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  border-radius: inherit;
}

/* CARA FRONTAL — con logo Carpimaster en oro */
.box-face--front::after {
  content: 'Carpimaster';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(218, 184, 99, 1);
  text-shadow:
    0 1px 0 rgba(255, 220, 140, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(218, 184, 99, 0.3);
  white-space: nowrap;
  z-index: 3;
}

/* Borde dorado decorativo en la cara frontal */
.box-face--front .border-frame {
  position: absolute;
  inset: 16px;
  border: 1.5px solid rgba(218, 184, 99, 0.55);
  border-radius: 2px;
  pointer-events: none;
}
.box-face--front .border-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 0.5px solid rgba(218, 184, 99, 0.3);
  border-radius: 1px;
}

/* CARA TRASERA */
.box-face--back::after {
  content: '';
  position: absolute;
  inset: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

/* LOMO (cara izquierda) — más oscuro, con líneas de encuadernación */
.box-face--left {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%),
    linear-gradient(180deg, var(--accent-deep) 0%, #0d2218 50%, var(--accent-deep) 100%);
}
.box-face--left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(180deg,
      transparent 0px, transparent 22px,
      rgba(0,0,0,0.3) 22px, rgba(0,0,0,0.3) 23px,
      transparent 23px, transparent 26px,
      rgba(255,255,255,0.04) 26px, rgba(255,255,255,0.04) 27px);
  pointer-events: none;
}

/* Cara derecha — borde abierto del libro */
.box-face--right {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.3) 0%, rgba(255,255,255,0.05) 100%),
    linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.box-face--right::after {
  content: '';
  position: absolute;
  inset: 4px;
  background-image: repeating-linear-gradient(180deg,
    rgba(255,253,245,0.92) 0px, rgba(255,253,245,0.92) 2px,
    rgba(220,210,190,0.6) 2px, rgba(220,210,190,0.6) 3px);
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* Caras superior e inferior */
.box-face--top {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(0,0,0,0.18) 100%),
    linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-deep));
}
.box-face--bottom {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%),
    linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-deep));
}

/* GOMA ELÁSTICA DIAGONAL en la frontal */
.elastic-band {
  position: absolute;
  width: 140%;
  height: 7px;
  top: 50%;
  left: -20%;
  transform: translateY(-50%) rotate(-22deg);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.4) 100%),
    linear-gradient(90deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 1px 3px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 2;
}

/* PESTAÑA LATERAL (etiqueta de la carpeta saliente, opcional) */
.tab-label {
  position: absolute;
  top: 30px;
  right: -8px;
  width: 14px;
  height: 50px;
  background: linear-gradient(90deg, rgba(218,184,99,0.95), rgba(170,135,55,1));
  border-radius: 2px 0 0 2px;
  box-shadow:
    inset 0 1px 1px rgba(255,220,140,0.4),
    -1px 1px 3px rgba(0,0,0,0.3);
  z-index: 2;
  transform: translateZ(2px);
}

/* Posicionamiento de las caras (carpeta plana = baja profundidad) */
.box-face--front  { transform: translateZ(20px); }
.box-face--back   { transform: rotateY(180deg) translateZ(20px); }
.box-face--right  { transform: rotateY(90deg)  translateZ(110px); width: 40px; left: 90px; }
.box-face--left   { transform: rotateY(-90deg) translateZ(110px); width: 40px; left: 90px; }
.box-face--top    { transform: rotateX(90deg)  translateZ(145px); height: 40px; top: 0; }
.box-face--bottom { transform: rotateX(-90deg) translateZ(145px); height: 40px; top: 250px; }

@media (prefers-reduced-motion: reduce) {
  .box-3d { animation: none; transform: rotateX(-12deg) rotateY(-22deg); }
  .hero-3d::after { animation: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s;
  font-family: var(--sans);
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-ghost {
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}

@media (max-width: 900px) {
  .hero { min-height: 78vh; }
  .hero-inner {
    padding: 60px 24px;
    text-align: center;
    justify-content: center;
  }
  .hero-content { text-align: center; max-width: 100%; }
  .hero-content .hero-cta { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-scroll { display: none; }
  /* Overlay un poco más oscuro en móvil para legibilidad */
  .hero-bg-overlay {
    background:
      linear-gradient(180deg, rgba(13, 34, 24, 0.65) 0%, rgba(13, 34, 24, 0.55) 50%, rgba(13, 34, 24, 0.75) 100%);
  }
  /* Trust bar mobile: 2 columnas en lugar de 4 */
  .hero-trust {
    margin-top: 40px;
    padding-top: 24px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    gap: 0;
  }
  .hero-trust-item {
    flex: 0 0 calc(50% - 0px);
    padding: 12px 12px;
    border-right: 1px solid rgba(247, 245, 241, 0.18);
    border-bottom: 1px solid rgba(247, 245, 241, 0.18);
    align-items: center;
    text-align: center;
  }
  .hero-trust-item:nth-child(2n) { border-right: none; }
  .hero-trust-item:nth-last-child(-n+2) { border-bottom: none; }
  .hero-trust-num { font-size: 28px; }
  .hero-trust-label { font-size: 10px; letter-spacing: 0.15em; }
  /* Sello más pequeño y reposicionado en móvil */
  .hero-stamp {
    width: 110px;
    height: 110px;
    bottom: 20px;
    right: 16px;
    opacity: 0.7;
  }
}
@media (max-width: 600px) {
  /* En móvil muy pequeño, ocultar sello para no estorbar */
  .hero-stamp { display: none; }
}

/* ============ ANIMACIÓN BOTONES "CAEN" (drop-in con rebote) ============ */
.drop-in {
  opacity: 0;
  transform: translateY(-120px);
}
.drop-in.is-dropped {
  animation: drop-in-bounce 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.drop-in-1.is-dropped { animation-delay: 0.05s; }
.drop-in-2.is-dropped { animation-delay: 0.25s; }
@keyframes drop-in-bounce {
  0%   { opacity: 0; transform: translateY(-120px); }
  60%  { opacity: 1; transform: translateY(12px); }   /* baja de más */
  78%  {              transform: translateY(-6px); }  /* rebote */
  90%  {              transform: translateY(2px); }   /* asentamiento */
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .drop-in { opacity: 1; transform: none; }
}

/* ============ ANIMACIONES ON-SCROLL ============ */
/* Notable: slide-up de 60px + fade-in de 0 a 1 */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.is-visible { transition-delay: 0.10s; }
.reveal-delay-2.is-visible { transition-delay: 0.20s; }
.reveal-delay-3.is-visible { transition-delay: 0.30s; }
.reveal-delay-4.is-visible { transition-delay: 0.40s; }
.reveal-delay-5.is-visible { transition-delay: 0.50s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ SECCIÓN PROCESO (3 pasos) ============ */
.process {
  padding: 100px 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.process-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.process-header {
  text-align: center;
  margin-bottom: 64px;
}
.process-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 16px;
}
.process-eyebrow::before, .process-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.process h2,
.sectors h2,
.finishes h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}
.process h2 em,
.sectors h2 em,
.finishes h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}
.process-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  /* Línea horizontal conectando los pasos (decorativa) */
  content: '';
  position: absolute;
  top: 60px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
  z-index: 0;
  opacity: 0.5;
}
.process-step {
  position: relative;
  padding: 32px 32px 0;
  text-align: center;
  z-index: 1;
}
.process-num {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 44px;
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 400;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.process-step:hover .process-num {
  border-color: var(--accent);
  transform: scale(1.05);
}
.process-num::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.2;
}
.process-step h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.process-step p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .process { padding: 60px 24px; }
  .process-grid { grid-template-columns: 1fr; gap: 48px; }
  .process-grid::before { display: none; }
  .process-step { padding: 0; }
}

/* ============ SECCIÓN CONTADORES ============ */
.stats {
  padding: 80px 60px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.stats-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat {
  text-align: center;
  padding: 16px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  color: var(--accent-deep);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: inline-block;
}
.stat-suffix {
  font-family: var(--serif);
  font-size: 0.5em;
  color: var(--accent);
  vertical-align: super;
  font-style: italic;
  margin-left: 2px;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
@media (max-width: 900px) {
  .stats { padding: 50px 24px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .stat:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
}

/* ============ SECCIÓN SECTORES ============ */
.sectors {
  padding: 100px 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.sectors-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.sectors-header {
  text-align: center;
  margin-bottom: 56px;
}
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.sector-item {
  padding: 36px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: default;
}
.sector-item:last-child { border-right: none; }
.sector-item:hover {
  background: var(--bg-alt);
}
.sector-item:hover .sector-icon {
  color: var(--accent);
  transform: translateY(-4px);
}
.sector-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: var(--accent-deep);
  transition: color 0.3s ease, transform 0.3s ease;
}
.sector-icon svg {
  width: 100%;
  height: 100%;
}
.sector-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
@media (max-width: 900px) {
  .sectors { padding: 60px 24px; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .sector-item:nth-child(2n) { border-right: none; }
  .sector-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============ SECCIÓN ACABADOS ============ */
.finishes {
  padding: 100px 60px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.finishes-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.finishes-header {
  text-align: center;
  margin-bottom: 56px;
}
.finishes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.finish-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  position: relative;
  overflow: visible;
}
.finish-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(45, 90, 45, 0.12);
}

/* Tooltip explicativo al pasar el cursor */
.finish-card-tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: var(--bg);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  width: max(260px, 100%);
  max-width: 320px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}
.finish-card-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--ink);
}
.finish-card:hover .finish-card-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 900px) {
  .finish-card-tip { display: none; }
}
/* Imagen del acabado (placeholder hasta que subas la foto real) */
.finish-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #d8e5cf 100%);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--line);
}
.finish-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;  /* oculta por defecto: el JS la mostrará si carga bien */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.finish-card-img img.loaded {
  display: block;
}
.finish-card:hover .finish-card-img img.loaded {
  transform: scale(1.05);
}
/* Placeholder visible por defecto, hasta que cargue la foto real */
.finish-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--accent-deep);
  background:
    repeating-linear-gradient(45deg,
      var(--accent-soft) 0px,
      var(--accent-soft) 12px,
      #d8e5cf 12px,
      #d8e5cf 24px);
  transition: opacity 0.3s ease;
}
.finish-card-img img.loaded ~ .finish-card-placeholder {
  display: none;
}
.finish-card-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}
.finish-card-placeholder-text {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-deep);
  opacity: 0.7;
}
.finish-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.finish-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .finishes { padding: 60px 24px; }
  .finishes-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ============ CAPACIDADES TÉCNICAS (nueva sección, sustituye al marquee de tecnología) ============ */
.capabilities {
  padding: 100px 60px;
  background: var(--ink);
  color: var(--bg);
  border-bottom: 1px solid rgba(247, 245, 241, 0.08);
  position: relative;
  overflow: hidden;
}
/* Patrón decorativo sutil de fondo */
.capabilities::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(90, 140, 60, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(45, 90, 45, 0.22) 0%, transparent 55%);
  pointer-events: none;
}
.capabilities-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.capabilities-header {
  text-align: center;
  margin-bottom: 64px;
}
.capabilities-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.65);
  font-weight: 600;
  margin-bottom: 16px;
}
.capabilities-eyebrow::before, .capabilities-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.capabilities h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--bg);
  margin-bottom: 16px;
}
.capabilities h2 em {
  font-style: italic;
  color: #c9d6a4;
  font-weight: 300;
}
.capabilities-sub {
  font-size: 16px;
  color: rgba(247, 245, 241, 0.72);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid: 3 columnas iguales + 1 ancha de certificaciones */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cap-card {
  background: rgba(247, 245, 241, 0.04);
  border: 1px solid rgba(247, 245, 241, 0.12);
  border-radius: 8px;
  padding: 36px 30px;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cap-card:hover {
  background: rgba(247, 245, 241, 0.08);
  border-color: rgba(168, 200, 120, 0.45);
  transform: translateY(-4px);
}
.cap-card-num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(168, 200, 120, 0.55);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.cap-card-icon {
  width: 48px;
  height: 48px;
  color: #c9d6a4;
  margin-bottom: 24px;
}
.cap-card-icon svg {
  width: 100%;
  height: 100%;
}
.cap-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--bg);
  margin-bottom: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cap-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cap-card-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: rgba(247, 245, 241, 0.78);
  line-height: 1.5;
  margin-bottom: 10px;
}
.cap-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* Card de certificaciones (fondo más cálido) */
.cap-card-cert {
  background: rgba(168, 200, 120, 0.08);
  border-color: rgba(168, 200, 120, 0.25);
}
.cap-card-cert .cap-card-icon { color: #c9d6a4; }
.cap-card-cert-content { display: block; }
.cap-card-cert-text {
  font-size: 14px;
  color: rgba(247, 245, 241, 0.85);
  line-height: 1.55;
}
.cap-card-cert-text strong {
  color: #c9d6a4;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .capabilities { padding: 60px 24px; }
  .capabilities-grid { grid-template-columns: 1fr; }
}

/* ============ MARQUEE MAQUINARIA / TECNOLOGÍA ============ */
.tech-marquee {
  padding: 70px 0;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid rgba(247, 245, 241, 0.08);
}
.tech-marquee-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 60px;
}
.tech-marquee-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.6);
  font-weight: 600;
  margin-bottom: 14px;
}
.tech-marquee-eyebrow::before, .tech-marquee-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.tech-marquee h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--bg);
  letter-spacing: -0.02em;
}
.tech-marquee h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}
.tech-track-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.tech-track {
  display: flex;
  gap: 56px;
  animation: tech-scroll 40s linear infinite;
  width: max-content;
}
.tech-marquee:hover .tech-track {
  animation-play-state: paused;
}
@keyframes tech-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(247, 245, 241, 0.04);
  border: 1px solid rgba(247, 245, 241, 0.12);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}
.tech-item:hover {
  background: rgba(247, 245, 241, 0.1);
  border-color: var(--accent);
}
.tech-item-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
}
.tech-item-icon svg {
  width: 100%;
  height: 100%;
}
.tech-item-text {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .tech-marquee-header { padding: 0 24px; }
  .tech-item { padding: 12px 22px; }
  .tech-item-text { font-size: 13px; }
}

/* ============ TRUST BAR ============ */
.trust-bar {
  border-block: 1px solid var(--line);
  padding: 12px 0 22px;
  background: var(--bg-alt);
  overflow: hidden;
}
.trust-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trust-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-weight: 600;
  padding: 0 40px;
}

.trust-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  /* La animación arranca cuando el JS añade .is-ready (tras precargar los SVG),
     así evitamos el "tirón" que produciría un reflow del track ya en marcha. */
  will-change: transform;
  transform: translateX(0);
}
.trust-track.is-ready {
  animation: trust-scroll 40s linear infinite;
}

@keyframes trust-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
}

.client-logo {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.client-logo:hover { opacity: 1; }

.client-logo-svg {
  height: 38px;
  width: auto;
  color: var(--ink-soft);
  opacity: 0.55;
  flex-shrink: 0;
}

.brand-word {
  color: var(--gray);
  opacity: 0.7;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  text-transform: none;
}

.brand-logo-img {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.brand-logo-img:hover { opacity: 0.85; }

.brand-logo-svg {
  display: inline-flex;
  align-items: center;
  height: 22px;
  flex-shrink: 0;
  color: var(--gray);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.brand-logo-svg:hover { opacity: 0.85; }
.brand-logo-svg svg {
  height: 100%;
  width: auto;
  display: block;
}

@media (max-width: 700px) {
  .trust-label { padding: 0 20px; }
  .trust-track { gap: 48px; animation-duration: 32s; }
  .trust-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  }
}

/* ============ TWO-CTA SECTION ============ */
.dual-cta {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 40px;
}

.cta-card {
  position: relative;
  padding: 56px 48px;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Variante horizontal (full-width) — texto a la izquierda, flecha a la derecha */
.cta-card-wide {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-height: 220px;
  padding: 48px 64px;
}
.cta-card-wide .cta-card-content {
  flex: 1;
  max-width: 760px;
}
.cta-card-wide .cta-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.cta-card-wide h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 14px;
}
.cta-card-wide p {
  margin-bottom: 0;
  max-width: 640px;
  font-size: 15px;
}
.cta-card-wide .cta-arrow {
  align-self: center;
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.cta-card-wide:hover .cta-arrow {
  background: var(--accent-deep);
}

.cta-card:hover { transform: translateY(-6px); }

.cta-card.dark {
  background: var(--ink);
  color: var(--bg);
}
.cta-card.light {
  background: var(--accent-soft);
  color: var(--ink);
}

.cta-num {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.25em;
  opacity: 0.6;
  margin-bottom: 24px;
}

.cta-card h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.cta-card h2 em { font-style: italic; }
.cta-card.dark h2 em { color: var(--kraft); }
.cta-card.light h2 em { color: var(--accent); }

.cta-card p {
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.85;
  max-width: 380px;
  margin-bottom: 40px;
}

.cta-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  align-self: flex-start;
}
.cta-arrow svg {
  transition: transform 0.3s;
}
.cta-card:hover .cta-arrow svg {
  transform: translateX(8px);
}

.cta-bg-shape {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  opacity: 0.15;
}
.cta-card.dark .cta-bg-shape { background: var(--kraft); }
.cta-card.light .cta-bg-shape { background: var(--accent); opacity: 0.2; }

@media (max-width: 800px) {
  .dual-cta { padding: 60px 20px; }
  .cta-card { padding: 40px 32px; min-height: 320px; }
  .cta-card-wide {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 36px 28px;
    gap: 24px;
  }
  .cta-card-wide .cta-arrow { align-self: stretch; justify-content: center; }
}

/* ============ CUÉNTANOS TU PROYECTO ============ */
.cta-tell {
  background: var(--bg-alt);
  padding: 110px 40px;
}
.cta-tell-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.cta-tell-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.cta-tell-line {
  display: inline-block;
  width: 36px;
  height: 1.5px;
  background: var(--accent);
}

.cta-tell-title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 28px;
}
.cta-tell-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.cta-tell-sub {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 19px);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 44px;
}

.cta-tell-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cta-tell-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.cta-tell-btn svg {
  width: 14px; height: 14px;
  transition: transform 0.25s ease;
}
.cta-tell-btn:hover svg { transform: translateX(4px); }

.cta-tell-btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.cta-tell-btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(45, 90, 45, 0.5);
}

.cta-tell-btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.cta-tell-btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .cta-tell { padding: 70px 20px; }
  .cta-tell-buttons { flex-direction: column; gap: 12px; width: 100%; }
  .cta-tell-btn { width: 100%; justify-content: center; }
  .cta-tell-eyebrow { font-size: 11px; }
}

/* ============ SECTION HEADERS ============ */
.section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 100px 40px;
}

.section-tight { padding: 60px 40px; }

.section-header {
  margin-bottom: 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 720px;
}
.section h2 em { font-style: italic; color: var(--accent); }

.section-intro {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 420px;
  line-height: 1.55;
}

.section-cats { padding-top: 20px; }
.section-sus-tight { padding-bottom: 30px; }
.section-test-tight { padding-top: 40px; }
.section-faq { padding-top: 30px; }

/* Variante: descripción a la derecha alineada con el texto del título (no al final) */
.section-header-aligned {
  align-items: flex-start;
}
.section-header-aligned .section-intro {
  max-width: 380px;
  margin-top: 36px; /* desplaza la descripción para alinearla con la primera línea del h2 (después del eyebrow) */
}

/* ============ CATEGORIES GRID ============ */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  border: 1px solid var(--line);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.15);
}

.cat-visual {
  aspect-ratio: 4/3;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-visual svg {
  width: 46%;
  height: auto;
  max-height: 68%;
  color: var(--accent);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.category-card:hover .cat-visual svg {
  transform: scale(1.06);
  color: var(--accent-deep);
}

.cat-body {
  padding: 24px 26px 28px;
}

.cat-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 10px;
}

.cat-body h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cat-body p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}

.cat-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 900px) {
  .categories { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 20px; }
}
@media (max-width: 580px) {
  .categories { grid-template-columns: 1fr; }
}

/* ============ SOLUTIONS / SECTORS ============ */
.solutions {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 120px 0;
}
.solutions .section { padding-block: 0; }
.solutions .section-eyebrow { color: var(--kraft); }
.solutions .section-eyebrow::before { background: var(--kraft); }
.solutions h2 em { color: var(--kraft); }
.solutions .section-intro { color: rgba(247,245,241,0.7); }

/* === Grid de sectores 2x3 (sobre fondo oscuro) === */
.sectors-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 50px;
  background: rgba(247,245,241,0.1);
  border: 1px solid rgba(247,245,241,0.1);
  border-radius: 14px;
  overflow: hidden;
}

.sector-card {
  background: var(--bg-deep);
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s ease;
  position: relative;
  cursor: pointer;
}
.sector-card:hover {
  background: #221f1a;
}

/* Bordes internos del grid 2x3 */
.sectors-grid-v2 .sector-card:nth-child(odd) {
  border-right: 1px solid rgba(247,245,241,0.1);
}
.sectors-grid-v2 .sector-card:not(:nth-last-child(-n+2)) {
  border-bottom: 1px solid rgba(247,245,241,0.1);
}

.sector-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kraft);
}
.sector-num { font-variant-numeric: tabular-nums; }
.sector-tag { color: var(--kraft); }
.sector-card-icon {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: rgba(247,245,241,0.5);
  transition: color 0.3s ease, transform 0.3s ease;
}
.sector-card:hover .sector-card-icon {
  color: var(--kraft);
  transform: rotate(-6deg) scale(1.1);
}

.sector-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--bg);
  margin: 0;
}

.sector-card > p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(247,245,241,0.65);
  margin: 0;
  flex: 1;
}

.sector-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px dashed rgba(247,245,241,0.15);
  margin-top: 6px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgba(247,245,241,0.2);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(247,245,241,0.75);
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.sector-card:hover .brand-pill {
  border-color: rgba(247,245,241,0.4);
  color: var(--bg);
}

@media (max-width: 800px) {
  .sectors-grid-v2 { grid-template-columns: 1fr; }
  .sectors-grid-v2 .sector-card:nth-child(odd) { border-right: none; }
  .sectors-grid-v2 .sector-card:not(:last-child) { border-bottom: 1px solid rgba(247,245,241,0.1); }
  .sector-card { padding: 32px 28px; }
  .sector-card h3 { font-size: 24px; }
  .solutions { padding: 70px 0; }
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.testimonial {
  background: var(--bg-alt);
  padding: 36px 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.quote-mark {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.8;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 400;
}
.testimonial.featured .quote-mark { color: var(--kraft); }

.testimonial blockquote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 28px;
  flex: 1;
  letter-spacing: -0.005em;
}
.testimonial.featured blockquote { font-size: 22px; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.testimonial.featured .testimonial-author {
  border-color: rgba(247,245,241,0.15);
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial.featured .author-avatar {
  background: rgba(168,200,120,0.2);
  color: var(--kraft);
}
.author-avatar.default-avatar {
  background: var(--gray-soft);
  color: var(--gray);
}
.author-avatar.default-avatar svg {
  width: 36px; height: 36px;
}
.testimonial.featured .author-avatar.default-avatar {
  background: rgba(245,246,244,0.15);
  color: rgba(245,246,244,0.7);
}

.author-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}
.author-role {
  font-size: 12px;
  color: var(--ink-mute);
}
.testimonial.featured .author-role { color: rgba(247,245,241,0.55); }

.stars {
  color: var(--accent);
  font-size: 14px;
  margin-left: auto;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.testimonial.featured .stars { color: var(--kraft); }

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

/* ============ SUSTAINABILITY ============ */
.sustainability {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.cert {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-alt);
}
.cert-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}
.cert-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

.sus-3d-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--accent-deep);
  box-shadow:
    0 30px 60px -30px rgba(20, 35, 25, 0.45),
    0 0 0 1px rgba(255,255,255,0.05);
  isolation: isolate;
}

/* === ESCENA SVG ANIMADA REALISTA === */
.sus-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Sol: halo que respira + núcleo con leve pulso */
.sus-sun-halo {
  transform-origin: 290px 125px;
  animation: sunHaloBreath 6s ease-in-out infinite;
}
.sus-sun-core {
  transform-origin: 290px 125px;
  animation: sunCorePulse 4s ease-in-out infinite;
}
@keyframes sunHaloBreath {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.12); opacity: 1; }
}
@keyframes sunCorePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* Rayos del sol rotando lentamente */
.sus-rays-rotate {
  transform-origin: 0 0;
  animation: raysRotate 60s linear infinite, raysShimmer 4s ease-in-out infinite;
}
@keyframes raysRotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes raysShimmer {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* Bandadas de pájaros cruzando la escena */
.sus-bird-group-1 {
  animation: birdGroup1 32s linear infinite;
  animation-delay: -5s;
}
.sus-bird-group-2 {
  animation: birdGroup2 38s linear infinite;
  animation-delay: -18s;
}
@keyframes birdGroup1 {
  0%   { transform: translate(-60px, 200px); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translate(440px, 130px); opacity: 0; }
}
@keyframes birdGroup2 {
  0%   { transform: translate(-60px, 240px); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translate(440px, 170px); opacity: 0; }
}

/* Nubes moviéndose con velocidades distintas */
.sus-cloud { will-change: transform; }
.sus-cloud-1 {
  transform: translate(-80px, 95px);
  animation: cloudMove1 32s linear infinite;
}
.sus-cloud-2 {
  transform: translate(-60px, 65px);
  animation: cloudMove2 42s linear infinite;
  animation-delay: -10s;
}
.sus-cloud-3 {
  transform: translate(-100px, 140px);
  animation: cloudMove3 52s linear infinite;
  animation-delay: -25s;
}
@keyframes cloudMove1 { 0% { transform: translate(-80px, 95px); }  100% { transform: translate(490px, 95px); } }
@keyframes cloudMove2 { 0% { transform: translate(-60px, 65px); }  100% { transform: translate(490px, 65px); } }
@keyframes cloudMove3 { 0% { transform: translate(-100px, 140px); } 100% { transform: translate(490px, 140px); } }

/* Niebla atmosférica que se desplaza muy lento */
.sus-mist {
  animation: mistDrift 18s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes mistDrift {
  0%   { transform: translateX(-8px) scaleY(1);    opacity: 0.7; }
  100% { transform: translateX(8px)  scaleY(1.15); opacity: 0.85; }
}

/* Bosque medio mecido por el viento */
.sus-mid-trees {
  transform-origin: 200px 360px;
  animation: forestSway 8s ease-in-out infinite;
}
.sus-distant-trees {
  transform-origin: 200px 320px;
  animation: forestSway 12s ease-in-out infinite reverse;
}
@keyframes forestSway {
  0%, 100% { transform: skewX(0deg)    rotate(0deg); }
  50%      { transform: skewX(-0.7deg) rotate(0.15deg); }
}

/* Hierba moviéndose con la brisa */
.sus-grass {
  transform-origin: center bottom;
  animation: grassWave 5s ease-in-out infinite;
}
@keyframes grassWave {
  0%, 100% { transform: skewX(0deg); }
  50%      { transform: skewX(-1.5deg); }
}

/* Brillos en el suelo, "respiran" */
.sus-glow-1 { animation: glowBreath 7s ease-in-out infinite; }
.sus-glow-2 { animation: glowBreath 7s ease-in-out infinite reverse; animation-delay: -3s; }
@keyframes glowBreath {
  0%, 100% { opacity: 0.18; transform: scale(1);    }
  50%      { opacity: 0.35; transform: scale(1.12); }
}

/* Partículas / polen flotando hacia arriba lentamente */
.sus-particle { will-change: transform; }
.sus-p1 { animation: particleFloat1 12s ease-in-out infinite; }
.sus-p2 { animation: particleFloat2 14s ease-in-out infinite; animation-delay: -2s; }
.sus-p3 { animation: particleFloat3 16s ease-in-out infinite; animation-delay: -5s; }
.sus-p4 { animation: particleFloat1 18s ease-in-out infinite; animation-delay: -7s; }
.sus-p5 { animation: particleFloat2 13s ease-in-out infinite; animation-delay: -1s; }
.sus-p6 { animation: particleFloat3 15s ease-in-out infinite; animation-delay: -9s; }
.sus-p7 { animation: particleFloat1 17s ease-in-out infinite; animation-delay: -4s; }
.sus-p8 { animation: particleFloat2 11s ease-in-out infinite; animation-delay: -6s; }

@keyframes particleFloat1 {
  0%   { transform: translate(0, 0);     opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { transform: translate(15px, -40px); opacity: 0.9; }
  90%  { opacity: 0.7; }
  100% { transform: translate(-10px, -80px); opacity: 0; }
}
@keyframes particleFloat2 {
  0%   { transform: translate(0, 0);     opacity: 0; }
  15%  { opacity: 0.7; }
  50%  { transform: translate(-12px, -35px); opacity: 0.85; }
  85%  { opacity: 0.6; }
  100% { transform: translate(8px, -70px); opacity: 0; }
}
@keyframes particleFloat3 {
  0%   { transform: translate(0, 0);     opacity: 0; }
  20%  { opacity: 0.85; }
  50%  { transform: translate(20px, -50px); opacity: 0.9; }
  80%  { opacity: 0.6; }
  100% { transform: translate(-5px, -90px); opacity: 0; }
}

/* Hojas grandes flotando en primer plano */
.sus-leaf-svg {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
  will-change: transform;
}
.sus-leaf-svg-1 {
  transform: translate(60px, 220px);
  animation: leafBigFloat1 14s ease-in-out infinite;
}
.sus-leaf-svg-2 {
  transform: translate(330px, 290px);
  animation: leafBigFloat2 11s ease-in-out infinite;
  animation-delay: -4s;
}
@keyframes leafBigFloat1 {
  0%   { transform: translate(60px, 220px) rotate(0deg); }
  33%  { transform: translate(85px, 195px) rotate(20deg); }
  66%  { transform: translate(50px, 240px) rotate(-15deg); }
  100% { transform: translate(60px, 220px) rotate(0deg); }
}
@keyframes leafBigFloat2 {
  0%   { transform: translate(330px, 290px) rotate(15deg); }
  50%  { transform: translate(305px, 265px) rotate(-25deg); }
  100% { transform: translate(330px, 290px) rotate(15deg); }
}

/* Tarjeta principal: glass card con stat */
.sus-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.35);
  animation: cardRise 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.sus-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sus-stat-num {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--accent-deep);
  margin-bottom: 4px;
  display: inline-flex;
  align-items: baseline;
}
.sus-stat-num span {
  font-size: 22px;
  font-weight: 400;
  margin-left: 2px;
  color: var(--accent);
}
.sus-stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.3;
}

.sus-card-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--accent-deep);
  flex-shrink: 0;
  animation: iconSpin 18s linear infinite;
}
.sus-card-icon svg { width: 18px; height: 18px; }

@keyframes iconSpin {
  to { transform: rotate(360deg); }
}

/* Barra de progreso animada */
.sus-progress {
  margin-top: 12px;
  height: 4px;
  background: rgba(45, 90, 45, 0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.sus-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--kraft) 0%, var(--accent) 100%);
  border-radius: 2px;
  transform-origin: left;
  animation: progressFill 1.6s 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  position: relative;
  overflow: hidden;
}
.sus-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  animation: shimmer 2.5s linear infinite;
}
@keyframes progressFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.sus-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}
.sus-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.sus-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: dotPing 2s ease-out infinite;
}
@keyframes dotPing {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badge "Eco-friendly" arriba derecha */
.sus-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px 9px 11px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  animation: badgePulse 3s ease-in-out infinite;
}
.sus-badge svg {
  width: 14px; height: 14px;
  color: var(--accent);
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,0.18), 0 0 0 0 rgba(45, 90, 45, 0.4); }
  50%      { box-shadow: 0 6px 18px rgba(0,0,0,0.18), 0 0 0 14px rgba(45, 90, 45, 0); }
}

@media (max-width: 900px) {
  .sustainability { grid-template-columns: 1fr; gap: 40px; }
  .sus-3d-wrap { max-width: 520px; aspect-ratio: 4/5; margin: 0 auto; }
  .sus-stat-num { font-size: 36px; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 40px 32px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(247,245,241,0.12);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.footer-logo:hover { opacity: 0.75; }

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(245,246,244,0.65);
  line-height: 1.55;
  max-width: 320px;
  margin-bottom: 22px;
}
.footer-info {
  list-style: none;
}
.footer-info li {
  font-size: 13px;
  color: rgba(245,246,244,0.85);
  line-height: 1.7;
  padding: 4px 0;
}
.footer-info li span {
  display: block;
  font-size: 10px;
  color: rgba(245,246,244,0.45);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 1px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(245,246,244,0.08);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid rgba(245,246,244,0.15);
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  text-decoration: none;
}
.footer-pill:hover {
  background: var(--kraft);
  color: var(--ink);
  border-color: var(--kraft);
}
.footer-pill svg { flex-shrink: 0; }

/* Botón de teléfono: muestra el número al hacer hover (en escritorio) */
.footer-pill-phone {
  position: relative;
}
.footer-pill-phone .footer-pill-reveal {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .footer-pill-phone:hover .footer-pill-label {
    display: none;
  }
  .footer-pill-phone:hover .footer-pill-reveal {
    display: inline;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }
}

.footer-addr {
  font-size: 13px;
  color: rgba(240,245,237,0.55);
  font-style: normal;
  line-height: 1.7;
}

/* ============ QUOTE WIZARD MODAL ============ */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 22, 16, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.quote-modal.open {
  opacity: 1;
  visibility: visible;
}

.qm-dialog {
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  background: var(--bg);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.quote-modal.open .qm-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Header del modal */
.qm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.qm-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 6px 10px 6px 6px;
  margin-left: -10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.qm-back:hover { background: var(--line-soft); color: var(--ink); }
.qm-back svg { width: 14px; height: 14px; }

.qm-step-counter {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.qm-close {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.qm-close:hover { background: var(--line-soft); color: var(--ink); }
.qm-close svg { width: 18px; height: 18px; }

/* Body del modal con scroll */
.qm-body {
  padding: 32px 32px 28px;
  overflow-y: auto;
  flex: 1;
}

.qm-step {
  animation: qmFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes qmFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.qm-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}

.qm-subtitle {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 520px;
}

/* Opciones */
.qm-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qm-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px 14px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.qm-option:hover {
  border-color: var(--accent);
  background: #fff;
  transform: translateX(2px);
}
.qm-option:hover .qm-option-arrow { transform: translateX(3px); color: var(--accent); }

.qm-option-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  min-width: 24px;
  font-variant-numeric: tabular-nums;
}

.qm-option-label {
  flex: 1;
}

.qm-option-arrow {
  width: 16px; height: 16px;
  color: var(--ink-mute);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

/* Campos */
.qm-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qm-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  resize: none;
}
.qm-input::placeholder { color: var(--ink-mute); }
.qm-input:hover { border-color: var(--gray-soft); }
.qm-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.qm-input.qm-error {
  border-color: #c44;
  box-shadow: 0 0 0 3px rgba(196, 68, 68, 0.12);
}

.qm-textarea {
  min-height: 110px;
  line-height: 1.5;
}

/* Subida de archivos (logo / boceto) */
.qm-file-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-alt);
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  font-family: var(--sans);
  color: var(--ink-soft);
  margin-top: 4px;
}
.qm-file-drop:hover {
  border-color: var(--accent);
  background: var(--bg);
}
.qm-file-drop svg {
  color: var(--accent-deep);
}
.qm-file-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.qm-file-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.qm-file-hint {
  font-size: 11.5px;
  color: var(--ink-mute);
  line-height: 1.4;
  word-break: break-word;
}
.qm-file-drop.has-files {
  border-color: var(--accent);
  border-style: solid;
  background: var(--bg);
}
.qm-file-drop.has-files .qm-file-hint {
  color: var(--accent-deep);
  font-weight: 500;
}

/* Etiqueta para campos */
.qm-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  margin-top: 4px;
}
.qm-label:first-child { margin-top: 0; }

/* Select como input */
.qm-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23556' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 42px;
  cursor: pointer;
}

/* Grupo de radio buttons como tarjetas pulsables */
.qm-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.qm-radio-group.qm-error {
  outline: 2px solid #c44;
  outline-offset: 6px;
  border-radius: 8px;
}

/* Campos condicionales (banner que sólo aparece si se cumple la dependencia) */
.qm-conditional {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  padding: 0 18px;
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  transition:
    max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    padding 0.3s ease,
    margin-top 0.3s ease,
    border-color 0.3s ease;
}
.qm-conditional.is-visible {
  max-height: 600px;
  opacity: 1;
  margin-top: 8px;
  padding: 18px;
  border-color: var(--line);
}
.qm-conditional > .qm-label {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .qm-conditional { transition: none; }
}
.qm-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg);
  user-select: none;
}
.qm-radio:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.qm-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.qm-radio.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 14px -4px rgba(45, 90, 45, 0.4);
}

/* Botones */
.qm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.qm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.qm-btn svg {
  width: 14px; height: 14px;
  transition: transform 0.2s ease;
}

.qm-btn-primary {
  background: var(--accent);
  color: #fff;
}
.qm-btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(45, 90, 45, 0.5);
}
.qm-btn-primary:hover svg { transform: translateX(3px); }

/* Footer del modal */
.qm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-mute);
}
.qm-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.qm-brand-mark svg { width: 13px; height: 13px; }
.qm-brand-logo {
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Pantalla de éxito */
.qm-success {
  text-align: center;
  padding: 12px 0;
  animation: qmFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.qm-success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.qm-success-icon svg { width: 36px; height: 36px; }
@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.qm-success .qm-actions {
  justify-content: center;
}

@media (max-width: 640px) {
  .quote-modal { padding: 0; align-items: stretch; }
  .qm-dialog {
    max-height: 100vh;
    border-radius: 0;
    max-width: none;
  }
  .qm-body { padding: 24px 20px; }
  .qm-header { padding: 14px 16px; }
  .qm-footer { padding: 12px 16px; flex-direction: column; gap: 4px; align-items: flex-start; }
  .qm-title { font-size: 24px; }
}

/* LEGAL MODAL */
.legal-modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 36, 24, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.legal-modal.active { display: flex; }

.legal-content {
  background: var(--bg-alt);
  border-radius: 12px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  animation: slideUp 0.35s ease;
}

.legal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  z-index: 10;
  transition: background 0.2s;
}
.legal-close:hover { background: var(--accent-soft); }

.legal-body {
  overflow-y: auto;
  padding: 56px 56px 44px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.legal-body h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.legal-body .legal-sub {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 28px;
  display: block;
}
.legal-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.legal-body p, .legal-body ul {
  margin-bottom: 14px;
}
.legal-body ul {
  padding-left: 22px;
}
.legal-body li {
  margin-bottom: 6px;
}
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 700px) {
  .legal-body { padding: 50px 28px 32px; }
  .legal-body h2 { font-size: 28px; }
  .footer-info li span { width: 90px; font-size: 10px; }
}

.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--kraft);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(247,245,241,0.7);
  transition: color 0.2s;
  cursor: pointer;
}
.footer-col a:hover { color: var(--bg); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(247,245,241,0.45);
}
.footer-legal a { color: rgba(247,245,241,0.55); margin-right: 20px; cursor: pointer; }
.footer-legal a:hover { color: var(--bg); }

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }
}

/* ============ INTERIOR PAGES ============ */
.page-hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 40px 60px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumbs a { cursor: pointer; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { opacity: 0.5; }

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 900px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }

.page-hero p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.55;
}


/* ============ CATALOG INDEX (Productos / Materiales / Acabados) ============ */
.catalog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--content-width);
  margin: 0 auto;
}
.catalog-index-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 44px 36px 36px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.catalog-index-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(45, 90, 45, 0.18);
}
.catalog-index-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft, #e6f0e1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.catalog-index-card-icon svg { width: 28px; height: 28px; }
.catalog-index-card-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 10px;
}
.catalog-index-card h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--ink);
}
.catalog-index-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 22px;
  flex-grow: 1;
}
.catalog-index-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
}
.catalog-index-card:hover .catalog-index-link svg { transform: translateX(4px); }
.catalog-index-link svg { transition: transform 0.3s; }
@media (max-width: 900px) {
  .catalog-index-grid { grid-template-columns: 1fr; gap: 18px; }
  .catalog-index-card { padding: 32px 26px 28px; }
  .catalog-index-card h2 { font-size: 26px; }
}

/* ============ CATALOG GRID ============ */
.catalog {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.filter-bar-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.filter-bar-wrap .filter-bar {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
  flex: 1;
  min-width: 280px;
}

/* Botón "Ver ejemplos" en la barra de filtros del catálogo */
.examples-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  border: 1px solid var(--accent);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
}
.examples-btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 90, 45, 0.3);
}
.examples-btn svg { flex-shrink: 0; }
@media (max-width: 700px) {
  .filter-bar-wrap { flex-direction: column; }
  .examples-btn { align-self: stretch; justify-content: center; }
}

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--bg-alt);
  font-weight: 500;
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ============ Botón VER EJEMPLOS dentro de página producto (grande, destacado) ============ */
.pd-examples-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 28px 0 18px;
  padding: 22px 26px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #d8e5cf 100%);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  color: var(--accent-deep);
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.pd-examples-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(247, 245, 241, 0.4), transparent);
  transition: left 0.6s ease;
}
.pd-examples-btn:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: var(--accent-deep);
  color: var(--bg);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(45, 90, 45, 0.25);
}
.pd-examples-btn:hover::before { left: 100%; }
.pd-examples-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
}
.pd-examples-btn:hover .pd-examples-icon {
  background: var(--bg);
  color: var(--accent-deep);
  transform: rotate(-8deg) scale(1.05);
}
.pd-examples-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pd-examples-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pd-examples-sub {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.78;
  letter-spacing: 0.01em;
}
.pd-examples-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.pd-examples-btn:hover .pd-examples-arrow {
  transform: translateX(6px);
}
@media (max-width: 600px) {
  .pd-examples-btn { padding: 18px; gap: 14px; }
  .pd-examples-title { font-size: 17px; }
  .pd-examples-sub { font-size: 12px; }
  .pd-examples-icon { width: 44px; height: 44px; }
}

/* ============ WORKS PAGE (portfolio por sector) ============ */
.works-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.works-eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1.4px;
  background: var(--accent);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}

.work-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -16px rgba(31, 42, 31, 0.2);
  border-color: var(--accent);
}

.work-img {
  aspect-ratio: 4 / 3;
  background: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.work-img svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.work-card:hover .work-img svg {
  transform: scale(1.04);
}

/* ---- Foto real (sustituye al SVG cuando hay fotos) ---- */
.work-img-photo {
  background: #f3f4f1;
}
.work-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  padding: 0;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.works-grid[data-sector="horeca"] .work-photo {
  object-fit: cover;
  padding: 0;
}
.work-photo.active {
  opacity: 1;
}
.work-card:hover .work-photo.active {
  transform: scale(1.04);
}

/* Flechas de navegación */
.work-img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.work-img-nav svg {
  width: 16px;
  height: 16px;
}
.work-img-nav:hover {
  background: #fff;
  color: var(--accent);
}
.work-img-nav-prev { left: 10px; }
.work-img-nav-next { right: 10px; }
.work-img-photo:hover .work-img-nav,
.work-img-photo:focus-within .work-img-nav {
  opacity: 1;
}

/* Dots indicadores */
.work-img-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
}
.work-img-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease, width 0.25s ease;
}
.work-img-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 999px;
}

.work-img-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.work-body {
  padding: 22px 24px 24px;
}
.work-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 6px;
}
.work-client {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.work-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.works-back-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .works-grid { grid-template-columns: 1fr; }
}

.product-card {
  cursor: pointer;
  transition: all 0.3s;
}
.product-card:hover .product-img { transform: scale(1.02); }

.product-img-wrap {
  aspect-ratio: 1;
  background: var(--bg-alt);
  border-radius: 6px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.product-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s;
}

.product-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 6px;
}
.product-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.product-meta {
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .catalog { padding: 40px 20px 60px; }
}
@media (max-width: 540px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ============ PRODUCT DETAIL ============ */
.product-detail {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 40px 100px;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.pd-gallery {
  position: sticky;
  top: 100px;
  align-self: start;
}

.pd-main-img {
  aspect-ratio: 1;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pd-thumb {
  aspect-ratio: 1;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-thumb.active { border-color: var(--ink); border-width: 2px; }

.pd-info h1 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.pd-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.pd-desc {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  line-height: 1.6;
}

.pd-specs {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-bottom: 36px;
}

.pd-spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.pd-spec-row dt {
  color: var(--ink-mute);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding-top: 2px;
}
.pd-spec-row dd { color: var(--ink); }

.pd-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pd-options li {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

.color-swatches {
  display: flex;
  gap: 8px;
}
.swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s;
}
.swatch:hover { transform: scale(1.1); }

.pd-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.pd-tip {
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; gap: 40px; }
  .pd-gallery { position: static; }
  .product-detail { padding: 30px 20px 60px; }
  .pd-info h1 { font-size: 34px; }
}

/* ============ SUBCATEGORÍAS EN DETALLE ============ */
.pd-subcat {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.pd-subcat-header {
  margin-bottom: 32px;
  max-width: 720px;
}
.pd-subcat-header h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.15;
}
.pd-subcat-header p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

.pd-subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.pd-subcat-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pd-subcat-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px -12px rgba(45, 90, 45, 0.25);
}
.pd-subcat-img {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8efe2;
  overflow: hidden;
}
.pd-subcat-img svg { display: block; }
.pd-subcat-body {
  padding: 16px 18px 18px;
}
.pd-subcat-body h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.25;
}
.pd-subcat-link {
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: gap 0.2s ease;
}
.pd-subcat-card:hover .pd-subcat-link { color: var(--accent-deep); }

@media (max-width: 600px) {
  .pd-subcat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pd-subcat-body h3 { font-size: 15px; }
  .pd-subcat-header h2 { font-size: 26px; }
}

/* ============ QUOTE FORM ============ */
.quote-form-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.form-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--ink-mute);
}
.progress-track {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 25%;
  transition: width 0.4s ease;
}

.form-card {
  background: var(--bg-alt);
  padding: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.form-section { margin-bottom: 36px; }
.form-section h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-section .help {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.form-group label .req { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  transition: all 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-alt);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { min-height: 110px; resize: vertical; font-family: var(--sans); }

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.option-tile {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.option-tile:hover { border-color: var(--ink-soft); }
.option-tile.selected {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.option-tile-check {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.option-tile.selected .option-tile-check {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
}

.upload-zone {
  border: 2px dashed var(--line);
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone svg { width: 36px; height: 36px; color: var(--ink-mute); margin-bottom: 12px; }
.upload-zone p { font-size: 14px; color: var(--ink-soft); }
.upload-zone strong { color: var(--ink); }

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 16px;
}

.consent {
  font-size: 12px;
  color: var(--ink-mute);
  max-width: 380px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.consent input { margin-top: 3px; flex-shrink: 0; }
.consent a { color: var(--accent); text-decoration: underline; cursor: pointer; }

.form-success {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  padding: 28px;
  border-radius: 8px;
  margin-bottom: 32px;
  display: none;
}
.form-success.active { display: block; animation: slideUp 0.4s ease; }
.form-success h4 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--accent-deep);
}
.form-success p { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 700px) {
  .form-card { padding: 28px 22px; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-form-wrap { padding: 30px 16px 60px; }
}

/* ============ ABOUT PAGE ============ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
}
.about-img {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--accent-soft);
  position: relative;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-img-label {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(31, 42, 31, 0.85);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.about-text h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.about-text h2 em { font-style: italic; color: var(--accent); }
.about-text p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.7;
}

.timeline {
  margin: 80px 0 100px;
  padding: 60px 0;
  border-block: 1px solid var(--line);
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}
.timeline-grid::before {
  content: '';
  position: absolute;
  top: 30px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.timeline-item { position: relative; }
.timeline-dot {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}
.timeline-year {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.timeline-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.value {
  padding: 32px 28px;
  background: var(--bg-alt);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.value-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.value h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}
.value p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* CUATRO RAZONES PARA FABRICAR CON NOSOTROS */
.four-reasons {
  margin: 80px 0 100px;
}

.four-reasons-header {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 70px 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}

.four-reasons-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.four-reasons-line {
  display: inline-block;
  width: 28px;
  height: 1.4px;
  background: var(--accent);
}

.four-reasons-title {
  font-family: var(--serif);
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.four-reasons-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.four-reasons-intro-wrap {
  padding-top: 12px;
  padding-left: 28px;
  border-left: 1.5px solid var(--accent);
}

.four-reasons-slider {
  position: relative;
  min-height: 180px;
}
.reason-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.reason-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reason-slide-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.reason-slide-title {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.reason-slide-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.four-reasons-dots {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  position: relative;
  z-index: 2;
}
.reason-dot-nav {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, width 0.3s ease;
}
.reason-dot-nav:hover { background: var(--gray-soft); }
.reason-dot-nav.active {
  background: var(--accent);
  width: 44px;
}

@media (max-width: 900px) {
  .four-reasons-header {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 32px;
  }
  .four-reasons-intro-wrap { padding-top: 0; }
}

/* PILARES (4 columnas) */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 80px;
  background-color: var(--line);
}
.pillar {
  background: var(--bg-alt);
  padding: 40px 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: background 0.25s;
}
.pillar:hover { background: var(--accent-soft); }
.pillar-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.pillar-content h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pillar-content p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.pillar-content strong {
  color: var(--ink);
  font-weight: 700;
}

/* COMPROMISO CON LA CALIDAD */
.commitment {
  margin-top: 100px;
}
.commitment-header {
  margin-bottom: 56px;
  text-align: center;
}
.commitment-header .section-eyebrow {
  justify-content: center;
}
.commitment-header h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: none;
  margin: 0 auto;
}
.commitment-header h2 em { font-style: italic; color: var(--accent); }

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.commitment-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 32px;
  transition: all 0.3s;
}
.commitment-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(56, 161, 56, 0.18);
}
.commitment-icon {
  width: 38px; height: 38px;
  color: var(--accent);
  margin-bottom: 22px;
}
.commitment-card h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.commitment-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* LEMA */
.motto {
  margin-top: 80px;
  padding: 70px 60px;
  background: var(--bg-deep);
  color: var(--bg);
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.motto::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(168, 200, 120, 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(56, 161, 56, 0.06), transparent 50%);
  pointer-events: none;
}
.motto-quote {
  font-family: var(--serif);
  font-size: 110px;
  line-height: 0.5;
  color: var(--kraft);
  font-weight: 400;
  margin-bottom: 14px;
  height: 50px;
}
.motto-text {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.motto-text em {
  font-style: italic;
  color: var(--kraft);
}
.motto-sub {
  font-size: 15px;
  color: rgba(240, 245, 237, 0.7);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid::before { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr !important; }
  .spec-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .packaging-spotlight { grid-template-columns: 1fr !important; }
  .pillars { grid-template-columns: 1fr; }
  .commitment-grid { grid-template-columns: 1fr; }
  .motto { padding: 50px 28px; }
  .motto-quote { font-size: 80px; height: 36px; }
}

/* MISIÓN Y VISIÓN */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 80px;
}
.mv-card {
  background: var(--bg-alt);
  padding: 44px 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  position: relative;
}
.mv-card:nth-child(2) {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}
.mv-num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 18px;
}
.mv-card h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.mv-card h3 em { font-style: italic; color: var(--accent); }
.mv-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ÁREAS DE ESPECIALIZACIÓN */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 20px;
}
.spec-item {
  background: var(--bg-alt);
  padding: 36px 32px;
  transition: background 0.25s;
}
.spec-item:hover { background: var(--accent-soft); }
.spec-icon {
  width: 32px; height: 32px;
  color: var(--accent);
  margin-bottom: 20px;
}
.spec-item h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.spec-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* PACKAGING SPOTLIGHT */
.packaging-spotlight {
  margin: 100px 0 80px;
  background: var(--bg-deep);
  color: var(--bg);
  border-radius: 12px;
  padding: 80px 64px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.ps-content h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--bg);
}
.ps-content h2 em {
  font-style: italic;
  color: var(--kraft);
}
.ps-content p {
  font-size: 16px;
  color: rgba(240, 245, 237, 0.75);
  line-height: 1.65;
  max-width: 520px;
}
.ps-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-secondary-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(240, 245, 237, 0.4);
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.25s;
}
.btn-secondary-light:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

@media (max-width: 700px) {
  .packaging-spotlight { padding: 50px 28px; }
  .mv-card { padding: 32px 26px; }
}

/* ============ CONTACT / MAP ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.contact-block {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.contact-block:last-child { border-bottom: none; }
.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 8px;
}
.contact-value {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.contact-value a { color: inherit; }
.contact-value a:hover { color: var(--accent); }

.map-frame {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  position: relative;
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

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

/* ============ CONTACT CHANNELS ============ */
.contact-flex {
  max-width: 720px;
  margin: 0 auto;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.3s;
  cursor: pointer;
}
.contact-channel:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 12px 30px -12px rgba(45, 90, 45, 0.2);
}
.contact-channel:hover .channel-arrow { transform: translateX(4px); color: var(--accent); }

.channel-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel-icon svg { width: 22px; height: 22px; }

.channel-content { flex: 1; }
.channel-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 4px;
}
.channel-value {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.channel-arrow {
  width: 18px;
  height: 18px;
  color: var(--ink-mute);
  transition: all 0.25s;
  flex-shrink: 0;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  font-size: 18px;
  color: var(--ink-soft);
}
.faq-item.open .faq-toggle {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 14px;
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  max-width: 480px;
  background: var(--ink);
  color: var(--bg);
  padding: 22px 26px;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  z-index: 200;
  display: none;
}
.cookie-banner.active { display: block; animation: slideUp 0.4s ease; }
.cookie-banner h5 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}
.cookie-banner p {
  font-size: 13px;
  color: rgba(247,245,241,0.7);
  margin-bottom: 16px;
  line-height: 1.5;
}
.cookie-banner a { color: var(--kraft); text-decoration: underline; cursor: pointer; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--sans);
}
.cookie-btn.accept { background: var(--bg); color: var(--ink); }
.cookie-btn.reject { background: transparent; color: var(--bg); border: 1px solid rgba(247,245,241,0.3); }

/* ============ SELECTOR DE IDIOMA ============ */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.lang-toggle svg {
  width: 11px;
  height: 11px;
  transition: transform 0.2s ease;
}
.lang-switcher.open .lang-toggle {
  border-color: var(--accent);
  color: var(--ink);
}
.lang-switcher.open .lang-toggle svg {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  min-width: 160px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}
.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lang-option:hover {
  background: var(--bg);
}
.lang-option.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
}
.lang-flag {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.lang-code {
  flex: 1;
}
.lang-check {
  width: 14px;
  height: 14px;
  color: var(--accent);
  opacity: 0;
  flex-shrink: 0;
}
.lang-option.active .lang-check {
  opacity: 1;
}
@media (max-width: 900px) {
  .lang-switcher {
    margin: 8px 0 4px;
    align-self: stretch;
  }
  .lang-toggle {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    font-size: 13px;
  }
  .lang-menu {
    right: auto;
    left: 0;
    width: 100%;
  }
}

/* ============ UTIL ============ */
.fade-in { animation: slideUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============ ABOUT — HERO CON IMAGEN ============ */
#page-about .page-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 540px;
  display: flex;
  align-items: center;
}
#page-about .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#page-about .page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.55) saturate(1.1);
  transform: scale(1.05);
  transition: transform 12s ease;
}
#page-about .page-hero.in-view .page-hero-bg img { transform: scale(1.0); }
#page-about .page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,34,24,0.65) 0%, rgba(13,34,24,0.45) 50%, rgba(13,34,24,0.75) 100%);
  z-index: 1;
}
#page-about .page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 40px;
  color: #f7f5f1;
}
#page-about .page-hero-content .breadcrumbs { color: rgba(247,245,241,0.7); }
#page-about .page-hero-content .breadcrumbs a { color: rgba(247,245,241,0.85); }
#page-about .page-hero-content .breadcrumbs a:hover { color: #fff; }
#page-about .page-hero-content h1 {
  color: #f7f5f1;
  font-size: clamp(36px, 5vw, 64px);
  max-width: 900px;
  margin-bottom: 24px;
}
#page-about .page-hero-content h1 em {
  color: var(--accent);
  font-style: italic;
}
#page-about .page-hero-content > p {
  color: rgba(247,245,241,0.88);
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
}
#page-about .page-hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 44px;
  flex-wrap: wrap;
}
#page-about .page-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#page-about .page-hero-stat-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
#page-about .page-hero-stat-label {
  font-size: 12px;
  color: rgba(247,245,241,0.75);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ============ ABOUT — HISTORIA CON DOBLE IMAGEN ============ */
.about-intro-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 100px 0 80px;
}
.about-intro-v2 .about-imgs {
  position: relative;
  height: 560px;
}
.about-intro-v2 .about-img-main,
.about-intro-v2 .about-img-second {
  position: absolute;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
.about-intro-v2 .about-img-main {
  top: 0;
  left: 0;
  width: 75%;
  height: 65%;
  z-index: 2;
}
.about-intro-v2 .about-img-second {
  bottom: 0;
  right: 0;
  width: 65%;
  height: 55%;
  z-index: 1;
  border: 6px solid var(--bg);
}
.about-intro-v2 .about-img-main img,
.about-intro-v2 .about-img-second img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.about-intro-v2 .about-imgs:hover .about-img-main img,
.about-intro-v2 .about-imgs:hover .about-img-second img {
  transform: scale(1.04);
}
.about-intro-v2 .about-img-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(13,34,24,0.85);
  color: #f7f5f1;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 3px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  z-index: 3;
}
.about-intro-v2 .about-text { padding: 20px 0; }
@media (max-width: 900px) {
  .about-intro-v2 { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .about-intro-v2 .about-imgs { height: 420px; }
}

/* ============ ABOUT — TALLER EN ACCIÓN (galería interactiva) ============ */
.workshop-section {
  background: var(--bg-alt);
  padding: 100px 0;
  margin: 80px -40px 60px;
  position: relative;
}
.workshop-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.workshop-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}
.workshop-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.workshop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.workshop-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.workshop-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.workshop-title em {
  color: var(--accent);
  font-style: italic;
}
.workshop-intro {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .workshop-header { grid-template-columns: 1fr; gap: 24px; }
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
/* Imagen 1 (Kolbus): grande arriba izquierda */
.workshop-card-1 { grid-column: span 6; grid-row: span 2; }
.workshop-card-2 { grid-column: span 3; grid-row: span 1; }
.workshop-card-3 { grid-column: span 3; grid-row: span 1; }
.workshop-card-4 { grid-column: span 3; grid-row: span 1; }
.workshop-card-5 { grid-column: span 3; grid-row: span 1; }
.workshop-card-6 { grid-column: span 4; grid-row: span 2; }
.workshop-card-7 { grid-column: span 4; grid-row: span 2; }
.workshop-card-8 { grid-column: span 4; grid-row: span 2; }
@media (max-width: 1100px) {
  .workshop-grid { grid-auto-rows: 180px; }
  .workshop-card-1 { grid-column: span 12; grid-row: span 2; }
  .workshop-card-2, .workshop-card-3, .workshop-card-4, .workshop-card-5 {
    grid-column: span 6;
  }
  .workshop-card-6, .workshop-card-7, .workshop-card-8 {
    grid-column: span 6; grid-row: span 2;
  }
}
@media (max-width: 600px) {
  .workshop-grid { grid-auto-rows: 200px; }
  .workshop-card-1, .workshop-card-2, .workshop-card-3, .workshop-card-4,
  .workshop-card-5, .workshop-card-6, .workshop-card-7, .workshop-card-8 {
    grid-column: span 12; grid-row: span 1;
  }
}

.workshop-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: #1a2418;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.workshop-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.workshop-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.4s ease;
  filter: saturate(0.95);
}
.workshop-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}
.workshop-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,34,24,0) 40%, rgba(13,34,24,0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  pointer-events: none;
}
.workshop-card-info {
  color: #f7f5f1;
  width: 100%;
  transform: translateY(8px);
  transition: transform 0.4s ease;
}
.workshop-card:hover .workshop-card-info { transform: translateY(0); }
.workshop-card-num {
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.workshop-card-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.2;
}
.workshop-card-desc {
  font-size: 12.5px;
  color: rgba(247,245,241,0.8);
  line-height: 1.45;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, margin-top 0.5s ease;
}
.workshop-card:hover .workshop-card-desc {
  max-height: 80px;
  margin-top: 6px;
}

/* ============ ABOUT — COMMITMENT CON FOTOS ============ */
.commitment-card-v2 {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.commitment-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.commitment-card-v2 .commitment-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.commitment-card-v2 .commitment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.commitment-card-v2:hover .commitment-img img {
  transform: scale(1.05);
}
.commitment-card-v2 .commitment-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.commitment-card-v2 .commitment-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 16px;
}
.commitment-card-v2 h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--ink);
}
.commitment-card-v2 p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ============ ABOUT — PACKAGING SPOTLIGHT CON FOTO ============ */
.packaging-spotlight-v2 .ps-visual {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  min-height: 420px;
}
.packaging-spotlight-v2 .ps-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}
.packaging-spotlight-v2 .ps-visual:not(.ps-visual-3d)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,34,24,0.15) 0%, rgba(13,34,24,0.05) 100%);
  pointer-events: none;
}
.packaging-spotlight-v2 .ps-visual-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(247,245,241,0.95);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 3px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  z-index: 2;
}

/* ============ 3D ANIMATED BOX (packaging spotlight) ============
   Geometry: open box (no top wall) + a lid hinged at the back-top edge.
   Box dimensions: 220 (W) × 100 (H) × 220 (D). Half: 110, 50, 110.
   All faces are centered at the container's origin using negative margins,
   then translated/rotated into place. */
.ps-visual-3d {
  background:
    radial-gradient(ellipse at 50% 85%, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(160deg, #1a3a28 0%, #0d2218 60%, #08170f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
  perspective-origin: 50% 45%;
}
.box-3d-scene {
  width: 320px;
  height: 320px;
  position: relative;
  transform-style: preserve-3d;
  animation: box-scene-rotate 16s ease-in-out infinite;
}
@keyframes box-scene-rotate {
  0%   { transform: rotateX(20deg) rotateY(-28deg); }
  50%  { transform: rotateX(24deg) rotateY(28deg); }
  100% { transform: rotateX(20deg) rotateY(-28deg); }
}
.box-3d {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.box-3d-face {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  overflow: hidden;
}
.face-outer { background: linear-gradient(135deg, #efe4cf 0%, #d9c8a6 100%); }
.face-inner { background: linear-gradient(180deg, #c9b388 0%, #a88f63 100%); box-shadow: inset 0 0 24px rgba(0,0,0,0.32); }
.face-edge  { background: linear-gradient(180deg, #d9c8a6 0%, #b89e72 100%); }

/* Outer walls of the box */
.box-3d-bottom-outer { width:220px; height:220px; margin:-110px 0 0 -110px; transform: translateY(50px) rotateX(90deg); }
.box-3d-bottom-inner { width:220px; height:220px; margin:-110px 0 0 -110px; transform: translateY(49px) rotateX(-90deg); }
.box-3d-front-outer  { width:220px; height:100px; margin:-50px 0 0 -110px; transform: translateZ(110px); }
.box-3d-front-inner  { width:220px; height:100px; margin:-50px 0 0 -110px; transform: translateZ(109px) rotateY(180deg); }
.box-3d-back-outer   { width:220px; height:100px; margin:-50px 0 0 -110px; transform: translateZ(-110px) rotateY(180deg); }
.box-3d-back-inner   { width:220px; height:100px; margin:-50px 0 0 -110px; transform: translateZ(-109px); }
.box-3d-left-outer   { width:220px; height:100px; margin:-50px 0 0 -110px; transform: translateX(-110px) rotateY(-90deg); }
.box-3d-left-inner   { width:220px; height:100px; margin:-50px 0 0 -110px; transform: translateX(-109px) rotateY(90deg); }
.box-3d-right-outer  { width:220px; height:100px; margin:-50px 0 0 -110px; transform: translateX(110px) rotateY(90deg); }
.box-3d-right-inner  { width:220px; height:100px; margin:-50px 0 0 -110px; transform: translateX(109px) rotateY(-90deg); }

/* Top-edge rims: thin strips along the top of each wall (gives visible thickness when open) */
.box-3d-rim-front { width:220px; height:3px; margin:-1.5px 0 0 -110px; background: linear-gradient(180deg,#efe4cf,#c9b388); transform: translateY(-50px) translateZ(110px) rotateX(90deg); }
.box-3d-rim-back  { width:220px; height:3px; margin:-1.5px 0 0 -110px; background: linear-gradient(180deg,#efe4cf,#c9b388); transform: translateY(-50px) translateZ(-110px) rotateX(90deg); }
.box-3d-rim-left  { width:220px; height:3px; margin:-1.5px 0 0 -110px; background: linear-gradient(180deg,#efe4cf,#c9b388); transform: translateY(-50px) translateX(-110px) rotateX(90deg) rotateZ(90deg); }
.box-3d-rim-right { width:220px; height:3px; margin:-1.5px 0 0 -110px; background: linear-gradient(180deg,#efe4cf,#c9b388); transform: translateY(-50px) translateX(110px) rotateX(90deg) rotateZ(90deg); }

/* Logo on the front face and inside the lid */
.box-3d-front-outer img,
.box-3d-lid-top img {
  max-width: 72%;
  max-height: 58%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.4));
}

/* LID — hinged at the back-top edge (world position 0, -50, -110) */
.box-3d-lid-hinge {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translate3d(0, -50px, -110px) rotateX(0deg);
  transform-origin: 0 0 0;
  animation: box-lid-open 4.5s ease-in-out infinite;
}
@keyframes box-lid-open {
  0%, 100% { transform: translate3d(0, -50px, -110px) rotateX(0deg); }
  35%, 65% { transform: translate3d(0, -50px, -110px) rotateX(125deg); }
}
.box-3d-lid {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  transform-style: preserve-3d;
}
/* Lid is a thin slab. Centered at z=+110 relative to the hinge so it lies flat on top of the box. */
.box-3d-lid-top {
  width: 220px; height: 220px;
  margin: -110px 0 0 -110px;
  background: linear-gradient(135deg, #efe4cf 0%, #d9c8a6 100%);
  transform: translateZ(110px) rotateX(-90deg) translateZ(8px);
}
.box-3d-lid-bottom {
  width: 220px; height: 220px;
  margin: -110px 0 0 -110px;
  background: linear-gradient(180deg, #b89e72 0%, #9c8358 100%);
  transform: translateZ(110px) rotateX(-90deg);
}
.box-3d-lid-edge-front {
  width: 220px; height: 8px;
  margin: -4px 0 0 -110px;
  background: linear-gradient(180deg, #d9c8a6 0%, #b89e72 100%);
  transform: translateZ(220px) translateY(0) rotateX(0);
}
.box-3d-lid-edge-back {
  width: 220px; height: 8px;
  margin: -4px 0 0 -110px;
  background: linear-gradient(180deg, #d9c8a6 0%, #b89e72 100%);
  transform: translateZ(0) translateY(0) rotateX(0);
}
.box-3d-lid-edge-left {
  width: 220px; height: 8px;
  margin: -4px 0 0 -110px;
  background: linear-gradient(180deg, #d9c8a6 0%, #b89e72 100%);
  transform: translateX(-110px) translateZ(110px) translateY(0) rotateY(90deg);
}
.box-3d-lid-edge-right {
  width: 220px; height: 8px;
  margin: -4px 0 0 -110px;
  background: linear-gradient(180deg, #d9c8a6 0%, #b89e72 100%);
  transform: translateX(110px) translateZ(110px) translateY(0) rotateY(-90deg);
}

/* Floor shadow */
.box-3d-scene::after {
  content: '';
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 290px;
  height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 70%);
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .packaging-spotlight-v2 .ps-visual-3d { min-height: 360px; }
  .box-3d-scene { width: 260px; height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .box-3d-scene, .box-3d-lid-hinge { animation: none; }
  .box-3d-scene { transform: rotateX(20deg) rotateY(-26deg); }
  .box-3d-lid-hinge { transform: translate3d(0, -50px, -110px) rotateX(108deg); }
}

