/*
Microcor — Servicio Técnico Gastronómico
*/

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

:root {

  --bone-950: #1B1712;
  --bone-900: #221D16;
  --bone-850: #2A241B;
  --bone-800: #332C20;
  --ivory: #F3ECDD;
  --ivory-muted: #D8CDB6;
  --warm-grey: #9C917C;
  --warm-grey-dim: #6E6553;
  --red: #D5303F;
  --red-bright: #EA4B58;
  --red-dim: #5C2029;
  --blue: #1F5FA8;
  --blue-bright: #3D82D1;
  --blue-dim: #17385C;
  --panel-bg: rgba(42, 36, 27, 0.55);
  --panel-border: rgba(243, 236, 221, 0.08);
  --silk-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scrollbar-width: none;
  /* Firefox */
}

html::-webkit-scrollbar {
  display: none;
  /* Chrome, Edge, Safari */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  background: var(--bone-950);
  color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
.display {
  font-family: 'Space Grotesk', sans-serif;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

/* ── Grain ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* ── BG ── */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #1B1712 0%, #221D16 35%, #2A241B 70%, #18140F 100%);
}

/* ── Nav ── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  transition: background 0.8s var(--silk-ease), padding 0.8s var(--silk-ease);
}

.top-nav.scrolled {
  background: rgba(27, 23, 18, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--panel-border);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.nav-brand .brand-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--red-bright);
}

.nav-brand .brand-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-grey);
  text-decoration: none;
  position: relative;
  padding: 14px 0 6px;
  transition: color 0.8s var(--silk-ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--red-bright);
  border-bottom: 1px solid var(--red-bright);
  transform: translateX(-50%) rotate(45deg) translateY(-8px);
  opacity: 0;
  transition: transform 0.8s var(--silk-ease), opacity 0.6s var(--silk-ease);
  pointer-events: none;
}

.nav-links a:hover {
  color: var(--ivory);
}

.nav-links a:hover::after {
  opacity: 0.8;
  transform: translateX(-50%) rotate(45deg) translateY(0);
}

.nav-links a.active {
  color: var(--ivory);
}

.nav-links a.active::after {
  opacity: 0.5;
  transform: translateX(-50%) rotate(45deg) translateY(0);
}

.nav-cta {
  padding: 10px 26px;
  border-radius: 3px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  color: var(--ivory);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease);
}

.nav-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 30px rgba(213, 48, 63, 0.28);
}

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  padding: 0;
}

.toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ivory);
  position: absolute;
  left: 0;
  transition: transform 0.6s var(--silk-ease), top 0.6s var(--silk-ease);
}

.toggle-bar:nth-child(1) {
  top: 6px;
}

.toggle-bar:nth-child(2) {
  top: 16px;
}

.nav-toggle.active .toggle-bar:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.nav-toggle.active .toggle-bar:nth-child(2) {
  top: 11px;
  transform: rotate(-45deg);
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 550;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--silk-ease), visibility 0.6s var(--silk-ease);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-inner {
  position: absolute;
  inset: 0;
  background: rgba(27, 23, 18, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 40px 60px;
  overflow-y: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.mobile-menu-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ivory);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--panel-border);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.6s var(--silk-ease);
}

.mobile-menu.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--silk-ease), transform 0.5s var(--silk-ease), color 0.6s var(--silk-ease);
}

.mobile-menu.open .mobile-menu-link:nth-child(1) {
  transition-delay: 0.06s;
}

.mobile-menu.open .mobile-menu-link:nth-child(2) {
  transition-delay: 0.12s;
}

.mobile-menu.open .mobile-menu-link:nth-child(3) {
  transition-delay: 0.18s;
}

.mobile-menu.open .mobile-menu-link:nth-child(4) {
  transition-delay: 0.24s;
}

.mobile-menu.open .mobile-menu-link:nth-child(5) {
  transition-delay: 0.30s;
}

.mobile-menu.open .mobile-menu-link:nth-child(6) {
  transition-delay: 0.36s;
}

.mobile-menu.open .mobile-menu-link:nth-child(7) {
  transition-delay: 0.42s;
}

.mobile-menu-link::before {
  content: attr(data-index);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--red-bright);
  opacity: 0.6;
  min-width: 24px;
  font-variant-numeric: tabular-nums;
}

.mobile-menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
  transition: opacity 0.5s var(--silk-ease) 0.55s;
}

.mobile-menu-footer a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-grey);
  opacity: 0.6;
  text-decoration: none;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .top-nav {
  background: rgba(27, 23, 18, 0.97);
  backdrop-filter: blur(20px);
}

/* ── Container ── */
.main {
  position: relative;
  z-index: 10;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Shared ── */
.section {
  padding: 90px 0;
  position: relative;
}

.section-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before {
  color: var(--red-bright);
}

.section-tag.tag-blue::before {
  color: var(--blue-bright);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 20px;
}

.section-title strong {
  font-weight: 700;
  color: var(--red-bright);
}

.section-title strong.blue {
  color: var(--blue-bright);
}

.section-body {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.85;
  color: var(--ivory-muted);
  max-width: 540px;
}

.section-center {
  text-align: center;
}

.section-center .section-tag {
  justify-content: center;
}

.section-center .section-body {
  margin: 0 auto;
}

.silk-divider {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-border), transparent);
  margin: 0 auto;
}

.silk-divider.trace {
  position: relative;
  width: 140px;
}

.silk-divider.trace::after {
  content: none;
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  color: var(--ivory);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 40px rgba(213, 48, 63, 0.3);
}

.btn-secondary {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 3px;
  background: transparent;
  color: var(--ivory-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--panel-border);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.8s var(--silk-ease), border-color 0.8s var(--silk-ease), background 0.8s var(--silk-ease);
}

.btn-secondary:hover {
  transform: scale(1.02);
  border-color: var(--blue-bright);
  background: rgba(61, 130, 209, 0.06);
  color: var(--ivory);
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.2s var(--silk-ease), transform 1.2s var(--silk-ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: 0.1s;
}

.reveal-d2 {
  transition-delay: 0.2s;
}

.reveal-d3 {
  transition-delay: 0.3s;
}

.reveal-d4 {
  transition-delay: 0.4s;
}

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 40px;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

/* ── Hero video + pantalla final ── */
.hero-video {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  transition: opacity 0.6s var(--silk-ease);
}

.hero.video-done .hero-video {
  opacity: 0;
}

.hero-endcard {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--silk-ease), visibility 0.5s;
}

.hero.video-done .hero-endcard {
  opacity: 1;
  visibility: visible;
}

.endcard-line1 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(13px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #6E6553;
  opacity: 0;
}

.hero.video-done .endcard-line1 {
  animation: ecSlideLeft 1s var(--silk-ease) 0.3s forwards;
}

.endcard-logo {
  width: clamp(320px, 58vw, 760px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
}

.hero.video-done .endcard-logo {
  animation: ecBlurIn 0.8s var(--silk-ease) 0.3s forwards;
}

@keyframes ecSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-90px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ecBlurIn {
  from {
    opacity: 0;
    filter: blur(16px);
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.hero-grid {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 80%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  --mx: 50%;
  --my: 50%;
  background-image:
    linear-gradient(to right, rgba(243, 236, 221, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243, 236, 221, 0.14) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: center bottom;
  -webkit-mask-image:
    radial-gradient(circle 300px at var(--mx) var(--my), rgba(0, 0, 0, 1) 0%, transparent 65%),
    linear-gradient(to bottom, transparent 0%, transparent 25%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.25) 70%, rgba(0, 0, 0, 0.4) 100%);
  mask-image:
    radial-gradient(circle 300px at var(--mx) var(--my), rgba(0, 0, 0, 1) 0%, transparent 65%),
    linear-gradient(to bottom, transparent 0%, transparent 25%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.25) 70%, rgba(0, 0, 0, 0.4) 100%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}


#heroLogo {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1.2s var(--silk-ease) 0.2s forwards;
  filter: drop-shadow(0 4px 30px rgba(213, 48, 63, 0.15));
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.06;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1.4s var(--silk-ease) 0.4s forwards;
}

.hero h1 em {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(135deg, var(--red-bright), var(--blue-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ivory-muted);
  max-width: 560px;
  margin: 26px auto 44px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1.4s var(--silk-ease) 0.6s forwards;
}

.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 64px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1.4s var(--silk-ease) 0.8s forwards;
}

.metric {
  text-align: center;
}

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ivory);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-value span {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--warm-grey);
  vertical-align: super;
  margin-left: 2px;
}

.metric-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-top: 8px;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════
   TICKER DE MARCAS
   ══════════════════════════════════ */
.logo-ticker {
  padding: 36px 0;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.logo-ticker-label {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 30px;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 32s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  flex-shrink: 0;
  padding: 0 36px;
  display: flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--warm-grey);
  opacity: 0.55;
  transition: opacity 0.6s var(--silk-ease), color 0.6s var(--silk-ease);
}

.ticker-item:hover {
  opacity: 1;
  color: var(--ivory);
}

.ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red-bright);
  opacity: 0.4;
  margin: 0 36px;
  flex-shrink: 0;
}

@keyframes tickerScroll {
  to {
    transform: translateX(-50%);
  }
}

/* ══════════════════════════════════
   CATEGORÍAS FULL WIDTH SPLIT
   ══════════════════════════════════ */
.category-fullwidth {
  padding: 0;
  margin: 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
}

.category-fullwidth .main {
  max-width: 100%;
  padding: 0;
}

.category-split {
  display: flex;
  width: 100%;
  gap: 0;
  min-height: 70vh;
  position: relative;
}

.category-half {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 50px 50px;
  text-decoration: none;
  color: var(--ivory);
  min-height: 500px;
}

.category-half-left {
  background: none;
}

.category-half-right {
  background: linear-gradient(180deg, rgba(213, 48, 63, 0.15) 0%, rgba(27, 23, 18, 0.95) 70%, var(--bone-950) 100%);
}

.category-half:hover {
  animation: catPulse 0.5s ease-out 1;
}

@keyframes catPulse {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

/* Overlay oscuro para legibilidad sobre imagen */
.category-half::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(27, 23, 18, 0.55);
  transition: background 0.6s var(--silk-ease);
}

.category-half:hover::before {
  background: rgba(27, 23, 18, 0.4);
}

.category-half-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-half-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

.category-half-content {
  position: relative;
  z-index: 2;
}

.category-half-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 16px;
}

.category-half-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.category-half-title strong {
  font-weight: 700;
  color: var(--red-bright);
}

.category-half-title strong.blue {
  color: var(--blue-bright);
}

.category-half-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ivory-muted);
  max-width: 420px;
  margin-bottom: 24px;
}

.category-half-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  transition: color 0.5s var(--silk-ease), transform 0.5s var(--silk-ease);
}

.category-half:hover .category-half-cta {
  color: var(--ivory);
  transform: translateX(6px);
}

.category-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-placeholder svg {
  width: 200px;
  height: 200px;
  opacity: 0.15;
  transition: opacity 0.6s var(--silk-ease), transform 0.8s var(--silk-ease);
}

.category-half:hover .category-placeholder svg {
  opacity: 0.25;
  transform: scale(1.05);
}

.industrial-placeholder svg {
  color: var(--blue-bright);
}

.domestic-placeholder svg {
  color: var(--red-bright);
}

.category-connector {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  display: none;
}

.connector-line {
  width: 2px;
  height: 120px;
  background: linear-gradient(to bottom, var(--blue-bright), var(--red-bright));
  opacity: 0.6;
  animation: connectorPulse 3s ease-in-out infinite;
}

.connector-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ivory-muted);
  opacity: 0.3;
  animation: connectorRing 3s ease-in-out infinite;
}

@keyframes connectorPulse {

  0%,
  100% {
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(61, 130, 209, 0.3), 0 0 20px rgba(234, 75, 88, 0.2);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(61, 130, 209, 0.5), 0 0 40px rgba(234, 75, 88, 0.3);
  }
}

@keyframes connectorRing {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.1;
  }
}

/* ══════════════════════════════════
   CATEGORÍAS DETALLE (masonry)
   ══════════════════════════════════ */
.category-section {
  position: relative;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  margin-top: 48px;
}

.masonry-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bone-900);
  border: 1px solid var(--panel-border);
  transition: transform 0.5s var(--silk-ease), box-shadow 0.5s var(--silk-ease);
}

/* hover desactivado: la tarjeta queda estática */

.masonry-tall {
  grid-row: span 2;
}

.masonry-wide {
  grid-column: span 2;
}

.masonry-text-block {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bone-850), var(--bone-900));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.masonry-text-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 10px;
}

.masonry-text-content p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ivory-muted);
}

.masonry-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(180deg, var(--bone-900) 0%, var(--bone-950) 100%);
  position: relative;
}

.masonry-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(243, 236, 221, 0.03) 0%, transparent 70%);
}

.masonry-img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
  transition: opacity 0.5s var(--silk-ease), transform 0.5s var(--silk-ease);
}



.cat-blue .masonry-img-placeholder svg {
  color: var(--blue-bright);
}

.cat-red .masonry-img-placeholder svg {
  color: var(--red-bright);
}

#otras .masonry-img-placeholder svg {
  color: var(--warm-grey);
}

.masonry-img-placeholder span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ivory-muted);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════
   CLIENTES — GRID DE LOGOS
   ══════════════════════════════════ */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.logo-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 20px 16px;
  /* sin tarjeta: el logo flota sobre la pared */
  filter: grayscale(100%) brightness(1.1);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--silk-ease), transform 1s var(--silk-ease),
    filter 0.5s var(--silk-ease), box-shadow 0.5s var(--silk-ease);
}

.logo-grid-item.revealed {
  opacity: 0.8;
  transform: translateY(0);
}

/* hover desactivado en logos de clientes */

.logo-grid-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-grid-item .logo-placeholder {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

/* ══════════════════════════════════
   FOOTER CTA
   ══════════════════════════════════ */
.footer-cta {
  padding: 140px 0 60px;
  text-align: center;
}

.footer-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--panel-border);
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--warm-grey);
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a,
.footer-credit {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-grey);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--red-bright);
}

.footer-credit a {
  color: var(--warm-grey);
  text-decoration: underline;
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .category-split {
    flex-direction: column;
  }

  .category-half {
    min-height: 350px;
  }

  .category-connector {
    display: none;
  }

  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .masonry-text-block {
    grid-column: span 2;
  }

  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .main {
    padding: 0 24px;
  }

  .section {
    padding: 84px 0;
  }

  .hero-metrics {
    gap: 36px;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .masonry-tall {
    grid-row: span 1;
  }

  .masonry-wide {
    grid-column: span 1;
  }

  .masonry-text-block {
    grid-column: span 1;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-half {
    padding: 40px 24px 30px;
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .logo-grid-item {
    height: 90px;
  }
}

/* ══════════════════════════════════
   TEMA CLARO — fondo blanco
   ══════════════════════════════════ */
:root {
  --bone-950: #FFFFFF;
  --bone-900: #F4F1EA;
  --bone-850: #ECE7DC;
  --bone-800: #E0D9CC;
  --ivory: #1B1712;
  --ivory-muted: #4A4438;
  --warm-grey: #7A7264;
  --warm-grey-dim: #A39A88;
  --panel-bg: rgba(27, 23, 18, 0.04);
  --panel-border: rgba(27, 23, 18, 0.12);
}

body {
  background: #FFFFFF;
}

.atmosphere {
  background: #FFFFFF;
}

/* Botones rojos: texto claro para contrastar */
.btn-primary,
.nav-cta {
  color: #F3ECDD;
}

/* Navegación al scrollear y menú mobile: fondo claro */
.top-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(27, 23, 18, 0.08);
}

body.menu-open .top-nav {
  background: rgba(255, 255, 255, 0.97);
}

.mobile-menu-inner {
  background: rgba(255, 255, 255, 0.97);
}

.category-half-left,
.category-half-right {
  background: none;
}

.category-half::before {
  background: transparent;
}

.category-half:hover::before {
  background: transparent;
}

/* Sombra suave para que el texto se lea sobre las fotos */
.category-half-content {
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.65);
}

/* Texto oscuro sobre las fotos (más legible) */
.category-half,
.category-half-title {
  color: #1B1712;
}

.category-half-body {
  color: #4A4438;
}

.category-half-tag {
  color: #7A7264;
}

/* ══════════════════════════════════
   CATEGORÍAS — imagen panorámica continua
   ══════════════════════════════════ */
.category-combo {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

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

/* Zonas clickeables sobre cada mitad */
.combo-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 50px;
  text-decoration: none;
  line-height: normal;
  box-sizing: border-box;
}

.combo-left {
  left: 0;
  justify-content: flex-start;
  padding-top: 56px;
}

.combo-right {
  right: 0;
}

/* Texto OSCURO sobre el fondo blanco (izquierda) */
.combo-left .category-half-title {
  color: #1B1712;
}

.combo-left .category-half-body {
  color: #4A4438;
}

.combo-left .category-half-tag {
  color: #7A7264;
}

.combo-left .combo-content {
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.65);
}

/* Texto OSCURO sobre el fondo blanco (derecha) */
.combo-right .category-half-title {
  color: #1B1712;
}

.combo-right .category-half-body {
  color: #4A4438;
}

.combo-right .category-half-tag {
  color: #7A7264;
}

.combo-right .combo-content {
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.65);
}



/* En celular: la imagen va arriba y los textos se apilan debajo */
@media (max-width: 640px) {
  .category-combo {
    display: flex;
    flex-direction: column;
  }

  .combo-half {
    position: static;
    width: 100%;
    padding: 24px;
  }

  .combo-left .category-half-title,
  .combo-right .category-half-title {
    color: #1B1712;
  }

  .combo-left .category-half-body,
  .combo-right .category-half-body {
    color: #4A4438;
  }

  .combo-left .category-half-tag,
  .combo-right .category-half-tag {
    color: #7A7264;
  }
}

/* ══════════════════════════════════
   CATEGORÍAS — dos mitades continuas
   ══════════════════════════════════ */
.category-split {
  min-height: 0;
}

.category-half {
  display: block;
  padding: 0;
  min-height: 0;
  line-height: 0;
}

.category-half-bg {
  position: relative;
  inset: auto;
}

.category-half-bg img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: fill;
}

.category-half-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 45px;
  line-height: normal;
}

.category-half:hover {
  animation: none;
}

.category-half:hover .category-half-bg img {
  animation: catPulse 0.5s ease-out 1;
}

@media (max-width: 1024px) {
  .category-half {
    min-height: 0;
  }
}

/* ══════════════════════════════════
   CATEGORÍAS — versión móvil apilada
   ══════════════════════════════════ */
.category-combo-mobile {
  display: none;
}

@media (max-width: 768px) {
  .combo-desktop {
    display: none;
  }

  .category-combo-mobile {
    display: block;
  }

  .combo-mobile-half {
    display: block;
    text-decoration: none;
    line-height: 0;
  }

  .combo-mobile-half img {
    width: 100%;
    height: auto;
    display: block;
  }

  .combo-mobile-text {
    padding: 24px;
    line-height: normal;
  }
}

/* Estela de foco: al pasar el mouse, una línea de luz blanca recorre
   los productos de SOLO esa mitad (efecto "enfoque" de cámara).
   Requiere que assets/categorias.png conserve su fondo transparente. */
.combo-half::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("assets/categorias.png");
  background-size: 200% auto;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.combo-left::before {
  background-position: left top;
}

.combo-right::before {
  background-position: right top;
}

.combo-half:hover::before {
  opacity: 1;
  filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 7px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.55));
}

/* El texto siempre por encima de la estela de foco */
.combo-content {
  position: relative;
  z-index: 1;
}

/* Texto doméstico más bajo, más cerca del borde inferior */
.combo-right {
  justify-content: flex-end;
  padding-bottom: 20px;
}

/* ══════════════════════════════════
   FOTOS DE PRODUCTOS (PNG sin fondo)
   Las tarjetas quedan "invisibles": el
   producto flota sobre la página.
   ══════════════════════════════════ */
.masonry-item {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* hover desactivado en productos */

.masonry-img-placeholder {
  background: transparent;
}

.masonry-img-placeholder::before {
  content: none;
}

.masonry-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  box-sizing: border-box;
}

.masonry-img-placeholder.has-photo svg,
.masonry-img-placeholder.has-photo span {
  opacity: 0;
}

/* ══════════════════════════════════
   FONDO — PARED DE BLOQUES (foto)
   ══════════════════════════════════ */
.atmosphere {
  background: #FFFFFF;
}

.atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/bloques-fondo.png');
  background-size: 1100px auto;
  background-repeat: repeat;
  opacity: 0.45;
}

/* ══════════════════════════════════
   AJUSTES — paneles difuminados, contacto, crédito
   ══════════════════════════════════ */

/* Panel blanco translúcido para textos sobre la pared */
.intro-panel {
  display: inline-block;
  text-align: left;
  margin-bottom: 8px;
}

.section-center .intro-panel {
  text-align: center;
}

.intro-panel .section-title {
  margin-bottom: 10px;
}

.intro-panel .section-body {
  margin-bottom: 0;
}

/* Tarjetas de producto: fondo blanco difuminado con transparencia */
.masonry-item,
.masonry-text-block {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Nube blanca difuminada detrás de cada producto,
   proporcional al tamaño real de la imagen (la ajusta el JS) */
.masonry-photo {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 1;
  width: 84%;
  height: 84%;
  object-fit: contain;
  padding: 5%;
  box-sizing: border-box;
  border-radius: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-image: radial-gradient(ellipse at center,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.78) 58%,
      rgba(255, 255, 255, 0) 100%);
}

/* Zonas y Contacto */
.contact-map-wrap {
  position: relative;
  max-width: 860px;
  margin: 40px auto 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(27, 23, 18, 0.12);
  box-shadow: 0 14px 44px rgba(27, 23, 18, 0.10);
}

.contact-map {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.5s ease;
}

.contact-map-wrap:hover .contact-map {
  filter: grayscale(0);
}

.contact-map-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-instagram img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Crédito ACLiNa */
.footer-aclina {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

.footer-aclina img {
  height: 20px;
  width: auto;
  opacity: 0.75;
}

@media (max-width: 640px) {
  .contact-map {
    height: 260px;
  }

  .intro-panel {
    padding: 20px;
  }
}