/* ===== AGH DIMENSIONADORES — Web moderna ===== */
/* Fuentes: Azonix (principal/títulos, local), Nunito Sans (textos secundarios, local) */

/* Azonix — fuente principal (títulos)
   (en GitHub Pages la carpeta está en minúsculas: /azonix) */
@font-face {
  font-family: 'Azonix';
  src: url('azonix/Azonix.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Nunito Sans — textos secundarios, fuentes locales TrueType (.ttf) */
@font-face {
  font-family: 'Nunito Sans';
  src: url('Nunito_Sans/NunitoSans-VariableFont.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('Nunito_Sans/NunitoSans-Italic.ttf') format('truetype');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --surface: #161616;
  --border: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --accent: #A6CDAA;
  --accent-dim: rgba(166, 205, 170, 0.2);
  --accent-glow: rgba(166, 205, 170, 0.35);
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-display: 'Azonix', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --container: min(1200px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ocultar el logo del header mientras el hero termina su primera reproducción
   (solo en escritorio; en móvil lo queremos visible). */
@media (min-width: 901px) {
  body.hero-intro-pending .header .logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Overlay de ruido sutil */
.noise {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.header.header--solid {
  background: #0a0a0a;
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.header-inner {
  width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-agh {
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: rgba(240, 244, 248, 0.88);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
  transition: color 0.2s, text-shadow 0.2s;
}

.nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.9);
}

.nav-cta {
  color: var(--accent) !important;
  font-family: var(--font-body);
  font-weight: 700;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  color: rgba(240, 244, 248, 0.88);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: color 0.2s, text-shadow 0.2s;
  padding: 0.25rem 0;
}

.nav-dropdown:hover .nav-dropdown-trigger {
  color: var(--text);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  margin-top: 0.5rem;
  min-width: 280px;
  padding: 0.35rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease-out, visibility 0.35s ease-out, transform 0.35s ease-out;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu .nav-dropdown-link {
  display: block;
  position: relative;
  padding: 0.45rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s cubic-bezier(.73,.32,.34,1.5), transform 0.4s cubic-bezier(.73,.32,.34,1.5), color 0.2s, background 0.2s;
}

/* efecto de "desplegar" items del dropdown con pequeño retraso escalonado */
.nav-dropdown:hover .nav-dropdown-menu .nav-dropdown-link {
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-menu .nav-dropdown-link:nth-child(1) {
  transition-delay: 0.05s;
}
.nav-dropdown:hover .nav-dropdown-menu .nav-dropdown-link:nth-child(2) {
  transition-delay: 0.1s;
}
.nav-dropdown:hover .nav-dropdown-menu .nav-dropdown-link:nth-child(3) {
  transition-delay: 0.15s;
}
.nav-dropdown:hover .nav-dropdown-menu .nav-dropdown-link:nth-child(4) {
  transition-delay: 0.2s;
}
.nav-dropdown:hover .nav-dropdown-menu .nav-dropdown-link:nth-child(5) {
  transition-delay: 0.25s;
}
.nav-dropdown:hover .nav-dropdown-menu .nav-dropdown-link:nth-child(6) {
  transition-delay: 0.3s;
}

/* Línea fina verde entre productos, se difumina a los costados */
.nav-dropdown-menu .nav-dropdown-link:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--accent) 50%, transparent 100%);
  pointer-events: none;
  opacity: 0.7;
}

.nav-dropdown-menu .nav-dropdown-link:hover {
  color: var(--accent);
  background: rgba(78, 128, 90, 0.08);
}

/* ODC: logo a la izquierda, texto a la derecha (forzar fila) */
.nav-dropdown-menu .nav-dropdown-link.nav-dropdown-link--with-icon {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 1rem 0.55rem 0.9rem;
}

.nav-dropdown-link--with-icon:hover .nav-dropdown-link-title,
.nav-dropdown-link--with-icon:hover .nav-dropdown-link-desc {
  color: var(--accent);
}

.nav-dropdown-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.95;
}

.nav-dropdown-link-content {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.nav-dropdown-link-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.15;
  color: #fff;
}

.nav-dropdown-link-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--text-muted);
  font-weight: 400;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Menú móvil abierto */
@media (max-width: 900px) {
  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  background: rgba(10,10,10,0.96);
  font-size: 1.25rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  }

  /* Estilo de enlaces dentro del menú móvil */
  .nav.is-open a,
  .nav.is-open .nav-dropdown-trigger {
  color: var(--text);
  text-shadow: none;
  font-weight: 500;
  letter-spacing: normal;
  font-size: 0.9rem;
  }

  .nav.is-open a:hover,
  .nav.is-open .nav-dropdown-trigger:hover {
  color: var(--text);
  }

  /* Forzar que el CTA de contacto también sea negro en el menú móvil */
  .nav.is-open .nav-cta {
  color: var(--accent) !important;
  }

  /* Forzar color negro específicamente en el trigger de Productos */
  .nav.is-open .nav-dropdown-trigger {
  color: var(--text) !important;
  }

  /* Líneas divisorias entre INICIO / PRODUCTOS / CONTACTO en móvil */
  .nav.is-open > a,
  .nav.is-open > .nav-dropdown {
    position: relative;
    width: 100%;
    text-align: center;
    padding-bottom: 0.25rem;
  }

  .nav.is-open > a::after,
  .nav.is-open > .nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.4rem;
    height: 1px;
  background: rgba(255,255,255,0.06);
  }

  /* No dibujar línea debajo del último (CONTACTO) */
  .nav.is-open > a:last-child::after {
    display: none;
  }

  .nav.is-open .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .nav.is-open .nav-dropdown-trigger {
  font-size: 0.9rem;
    color: var(--text);
  }

  .nav.is-open .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 0;
    visibility: hidden;
    margin-top: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
  }

  /* En móvil, solo mostramos el submenú cuando la opción Productos está abierta */
  .nav.is-open .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: min(72vh, 520px);
  }

  .nav.is-open .nav-dropdown-menu a {
  font-size: 0.9rem;
  padding: 0.9rem 0.25rem;
    opacity: 1;
    transform: none;
    transition: color 0.2s, background 0.2s;
  }

  .nav.is-open .nav-dropdown-menu .nav-dropdown-link.nav-dropdown-link--with-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0.5rem 0;
    gap: 0.75rem;
  }

  .nav.is-open .nav-dropdown-icon {
  width: 34px;
  height: 34px;
  }

  .nav.is-open .nav-dropdown-link-title {
  font-size: 0.9rem;
    text-align: left;
    line-height: 1.15;
  }

  .nav.is-open .nav-dropdown-link-desc {
  font-size: 0.78rem;
  line-height: 1.25;
    text-align: left;
    text-shadow: none;
  color: var(--text-muted);
  }

  .menu-btn.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-btn.is-open span:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Reveal al scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 2rem;
  align-items: start;
  padding: calc(var(--header-h) + 1.5rem) var(--container) 4rem;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  padding-left: max(4vw, calc((100vw - 1200px) / 2 + 4rem));
  padding-right: max(4vw, calc((100vw - 1200px) / 2 + 4rem));
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #0a0a0a;
}

/* Capa 1: gradiente oscuro animado (se nota el movimiento) */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: -100%;
  background:
    radial-gradient(ellipse 90% 70% at 30% 30%, rgba(78, 128, 90, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 70% 90% at 70% 70%, rgba(78, 128, 90, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 55% 25%, rgba(78, 128, 90, 0.12) 0%, transparent 50%);
  animation: hero-bg-shift 18s ease-in-out infinite alternate;
}

@keyframes hero-bg-shift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(-8%, -5%) scale(1.15) rotate(2deg); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent 75%);
  opacity: 0.9;
  animation: hero-grid-pulse 6s ease-in-out infinite;
}

@keyframes hero-grid-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.5; }
}

/* Glow verde más visible y animado */
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 100%;
  max-width: 700px;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(78, 128, 90, 0.25) 0%, rgba(78, 128, 90, 0.1) 40%, transparent 70%);
  filter: blur(50px);
  animation: hero-glow-float 14s ease-in-out infinite;
}

@keyframes hero-glow-float {
  0%, 100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
  33% {
    transform: translate(-48%, -8%) scale(1.15);
    opacity: 0.9;
  }
  66% {
    transform: translate(-52%, 6%) scale(0.9);
    opacity: 0.85;
  }
}

.hero-content {
  grid-column: 1;
  grid-row: 1;
}

.hero-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.75rem;
  font-weight: 600;
}

.hero-logo-wrap {
  margin: 0 0 2.5rem 0;
  line-height: 0;
}

.hero-logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-desc {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ----- Render 3D de la máquina dimensionadora ----- */
.hero-render {
  position: relative;
  width: 620px;
  height: 720px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-top: -160px;
  animation: render-float 4s ease-in-out infinite;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.4));
}

.hero-render-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes render-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Base negra */
.render-base {
  position: absolute;
  bottom: 0;
  width: 100px;
  height: 20px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Columna vertical (perfiles plateados) */
.render-column {
  position: absolute;
  bottom: 20px;
  width: 32px;
  height: 260px;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.render-column-face {
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg, #e8e8e8 0%, #a0a0a0 30%, #707070 60%, #505050 100%);
}

.render-column-edge {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.4) 0%, transparent 15%);
  pointer-events: none;
}

/* Brazo horizontal (arranca desde lo alto de la columna) */
.render-arm {
  position: absolute;
  bottom: 280px;
  left: 50%;
  margin-left: 16px;
  transform-origin: left center;
  display: flex;
  align-items: center;
  animation: render-arm-sway 5s ease-in-out infinite;
}

@keyframes render-arm-sway {
  0%, 100% { transform: translateX(0) rotate(-2deg); }
  50% { transform: translateX(-4px) rotate(1deg); }
}

.render-arm-bar {
  width: 140px;
  height: 14px;
  margin-left: 0;
  background: linear-gradient(180deg, #d0d0d0 0%, #808080 50%, #505050 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Caja del sensor */
.render-sensor {
  position: relative;
  width: 44px;
  height: 36px;
  margin-left: -2px;
}

.render-sensor-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #f0f0f0 0%, #c0c0c0 50%, #909090 100%);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
}

.render-sensor-lens {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 10px;
  background: radial-gradient(ellipse at center, #2a2a2a 0%, #0a0a0a 100%);
  border-radius: 4px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}

/* Línea de escaneo animada */
.render-scan-line {
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 1px;
  box-shadow: 0 0 12px var(--accent);
  animation: render-scan 2s ease-in-out infinite;
}

@keyframes render-scan {
  0% { transform: translateY(0); opacity: 0.3; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(-28px); opacity: 0.3; }
}

/* Plataforma de medición (bajo el sensor) */
.render-platform {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(40px);
  width: 72px;
  height: 8px;
  background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  animation: render-platform-pulse 2.5s ease-in-out infinite;
}

@keyframes render-platform-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 2px 16px rgba(78, 128, 90, 0.3); }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  border-radius: 1px;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ----- Hero video section ----- */
.video-section {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.video-section.hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  /* Hacer que el fondo del hero empiece detrás del header fijo */
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}

/* Intro móvil: oculto en desktop */
.hero-mobile-intro {
  display: none;
}

/* =====================
   DESKTOP: logo izq + render der sobre fondoval
   ===================== */
.hero-desktop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
  background: var(--bg) url("assets/fondoval.png") center center / cover no-repeat;
  /* Bajar ligeramente logo y render para compensar el header fijo */
  align-items: center;
}

.hero-desktop-logo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 3rem 3rem 5vw;
  overflow: hidden;
}

.video-section-gif {
  /* En desktop ahora es una imagen (antes era video):
     usamos contain para que no se corte. */
  width: 121%;
  max-width: none;
  height: auto;
  max-height: 93vh;
  display: block;
  object-fit: contain;
  /* Subir el logo recortando la parte superior vacía */
  object-position: center 20%;
  margin-top: -15px;
  /* Moverlo un poco hacia la derecha dentro del contenedor */
  transform: translateX(4vw);
  background: transparent;
  mix-blend-mode: screen;
}

.hero-desktop-render {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 8vw 3rem 2rem;
  overflow: hidden;
  /* Bajar el render respecto al logo */
  margin-top: 60px;
}

.video-section-player {
  width: 140%;
  height: 90vh;
  max-height: 90vh;
  display: block;
  object-fit: cover;
  /* Recortar fuerte la parte superior del render en desktop */
  object-position: right 80%;
}

/* =====================
   MÓVIL: intro video → fade al render
   ===================== */
@media (max-width: 900px) {
  /* En móvil el logo del header debe verse desde el inicio */
}

@media (max-width: 768px) {
  /* En móvil el logo del header debe verse desde el inicio */

  .video-section.hero {
    min-height: auto;
    display: block;
  }

  /* Intro: ocupa la parte superior pero permite hacer scroll por la página */
  .hero-mobile-intro {
    display: flex;
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
    background: var(--bg);
  }
  .hero-mobile-intro.is-finished {
    display: none;
  }
  .hero-mobile-intro-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transform: translateX(35px) scale(3.9);
    transform-origin: center center;
    display: block;
  }

  /* Layout desktop: oculto hasta que termina el intro */
  .hero-desktop-layout {
    /* Mientras se ve el logo (intro), ocultamos completamente el layout
       para que no ocupe espacio negro por debajo en móvil */
    display: none;
    background: var(--bg);
    position: relative;
  }

  .hero-desktop-layout.hero-intro-done {
    display: block;
    min-height: calc(100vh - var(--header-h));
  }

  .hero-desktop-logo {
    display: none;
  }

  .hero-desktop-render {
    padding: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    position: relative;
  }

  /* Render: oculto hasta fade-in */
  .video-section-player {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.6s ease;
  }
  .hero-desktop-layout.hero-intro-done .video-section-player {
    opacity: 1;
  }
}

@media (min-width: 769px) {
  .hero-mobile-intro {
    display: none !important;
  }
  .video-section-player {
    opacity: 1 !important;
  }
}


/* ----- Sección máquinas (estilo Lambda) ----- */
.machines {
  /* Subir un poco los textos "Las máquinas de tu logística" acercándolos al hero anterior */
  padding: 3.5rem 0 5rem;
  background: var(--bg);
}

.machines-inner {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.machines-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: var(--container);
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.machines-header-left,
.machines-header-right {
  min-width: 0;
}

.machines-header-right {
  padding-top: 0;
}

.machines-title {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* Animación tipo máquina de escribir al aparecer */
.machines-title-line {
  display: block;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  animation: typewriter-line 1.4s ease forwards;
  animation-play-state: paused;
}

.machines-header.is-visible .machines-title-line {
  animation-play-state: running;
}

.machines-title-line:nth-child(2) {
  animation-delay: 1.1s;
  animation-fill-mode: both;
}

@keyframes typewriter-line {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.machines-desc {
  font-family: 'Geist', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  /* Usa todo el ancho de la columna (antes 420px dejaba hueco a la derecha) */
  max-width: 100%;
}

@media (max-width: 768px) {
  .machines-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .machines-desc {
    max-width: none;
  }
}

.machines-strip-wrap {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.machines-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
}

.machine-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg);
  transition: background 0.25s ease;
  min-width: 0;
}

.machine-card:last-child {
  border-right: none;
}

.machine-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.machine-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0a0a;
}

.machine-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* PDC: sin estilos especiales; usa los mismos que ODC */

.machine-card:hover .machine-card-image img {
  transform: scale(1.03);
}

.machine-card-text {
  padding: 1.75rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* Ocupa el alto entre imagen y línea inferior para alinear descripciones y “Ver más” */
  flex: 1 1 auto;
  min-height: 0;
}

.machine-card-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  /* Empuja el botón al fondo de la card para alinear "Ver más" entre tarjetas */
  margin-top: auto;
  font-family: 'Geist', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

.machine-card-btn:hover {
  color: #68946C;
  opacity: 0.9;
}

.machine-card-title {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.machine-card-desc {
  font-family: 'Geist', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  color: #ffffff;
  margin: 0;
  /* El texto queda arriba; el espacio libre queda debajo hasta el botón */
  flex: 1 1 auto;
  min-height: 0;
}

/* Línea inferior en cada card: verde al hover */
.machine-card-line {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
  margin-top: auto;
}

.machine-card:hover .machine-card-line {
  background: var(--accent);
}

@media (max-width: 900px) {
  .machines-strip {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .machine-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .machine-card:last-child {
    border-bottom: none;
  }
}

/* ----- Botones ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: #68946C;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Botones del hero: Geist, sin relleno, forma cuadrada */
.hero-actions .btn {
  font-family: 'Geist', sans-serif;
  border-radius: 0;
}

.hero-actions .btn-primary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.hero-actions .btn-primary:hover {
  background: rgba(78, 128, 90, 0.12);
  box-shadow: none;
}

.hero-actions .btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-actions .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ----- Secciones genéricas ----- */
.section {
  padding: 6rem 0;
  position: relative;
}

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 720px;
}

.section-title .accent {
  color: var(--accent);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ----- Producto ----- */
.product {
  background: var(--bg-elevated);
}

/* ===== PRODUCTO – DISEÑO NEO / GLASS ===== */

.product.product--neo {
  position: relative;
  overflow: hidden;
}

.product.product--neo::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(78, 128, 90, 0.12), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.02), transparent 55%);
  opacity: 0.35;
  pointer-events: none;
}

.product.product--neo .container {
  position: relative;
  z-index: 1;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: stretch;
}

/* Producto #producto: texto a la izquierda + card Integración a la derecha */
.product-layout--integracion {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.product-layout--integracion .product-main {
  padding-top: 1.25rem;
  text-align: center;
}

.product-layout--integracion .product-feature-grid {
  margin-top: 0;
  align-self: start;
}

.product-layout--integracion .product-main .product-title {
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.85rem;
}

.product-layout--integracion .product-main .product-desc {
  font-size: 1.02rem;
  line-height: 1.62;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 38ch;
  color: rgba(235, 239, 242, 0.88);
}

.product-feature-card-head {
  padding: 1.1rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.product-feature-header--integracion {
  align-items: center;
  gap: 0.85rem;
}

.product-feature-title-integracion {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(149, 213, 156, 0.45);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.product-title {
  margin-bottom: 1rem;
}

.product-desc {
  max-width: 520px;
  margin-bottom: 2.4rem;
  font-size: 1.40rem;
  line-height: 1.8;
}

.product-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-metric-card {
  position: relative;
  padding: 1.1rem 1rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(78, 128, 90, 0.35), transparent 65%),
              rgba(10, 10, 10, 0.72);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.product-metric-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.6;
  pointer-events: none;
}

.product-metric-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.product-metric-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.product-metric-value--small {
  font-size: 0.70rem;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

.product-feature-card {
  position: relative;
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius-lg);
  background: rgba(8, 8, 8, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.product-feature-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(78, 128, 90, 0.5), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.product-feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

.product-feature-card:hover::before {
  opacity: 1;
}

.product-feature-card--accent {
  border-color: rgba(149, 213, 156, 0.7);
  background: radial-gradient(circle at 0 0, rgba(78, 128, 90, 0.6), rgba(8, 8, 8, 0.95));
}

.product-feature-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.product-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, rgba(255, 255, 255, 0.15), transparent 55%),
              rgba(14, 14, 14, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.product-feature-icon svg {
  width: 20px;
  height: 20px;
}

.product-feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  font-size: 1.1rem;
}

.product-feature-card p {
  margin-top: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-feature-list li {
  position: relative;
  padding-left: 1.3rem;
}

.product-feature-list li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(149, 213, 156, 0.7);
}

/* Card “Integración TOTAL” (después de reglas base para que aplique bien) */
.product-feature-card.product-feature-card--integracion {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(149, 213, 156, 0.42);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(78, 128, 90, 0.35), transparent 55%),
    linear-gradient(165deg, rgba(12, 14, 13, 0.98) 0%, rgba(6, 8, 7, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 22px 50px rgba(0, 0, 0, 0.55);
}

.product-feature-card.product-feature-card--integracion::before {
  opacity: 0.35;
}

.product-feature-card.product-feature-card--integracion:hover {
  transform: translateY(-3px);
  border-color: rgba(149, 213, 156, 0.55);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(78, 128, 90, 0.42), transparent 55%),
    linear-gradient(165deg, rgba(14, 20, 17, 0.99) 0%, rgba(8, 10, 9, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 26px 58px rgba(0, 0, 0, 0.7);
}

.product-feature-card.product-feature-card--integracion .product-feature-header {
  margin-bottom: 0;
}

.product-feature-card.product-feature-card--integracion .product-feature-title-integracion {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

.product-feature-list--integracion {
  padding: 1.25rem 1.25rem 1.4rem;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: rgba(235, 239, 242, 0.92);
}

.product-feature-list--integracion li {
  padding: 0.65rem 0.7rem 0.65rem 1.55rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.product-feature-list--integracion li::before {
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  box-shadow: 0 0 8px rgba(149, 213, 156, 0.55);
}

@media (max-width: 520px) {
  .product-feature-list--integracion {
    grid-template-columns: 1fr;
  }
}

/* ----- Beneficios – rediseño ----- */

.benefits.benefits--timeline {
  position: relative;
  background: var(--bg-elevated);
}

.benefits-title {
  max-width: 560px;
  margin-bottom: 1.5rem;
  text-align: right;
  margin-left: auto;
}

/* Alinear también la etiqueta "Beneficios" a la derecha */
.benefits .section-label {
  display: block;
  text-align: right;
  margin-left: auto;
}

.benefits-layout {
  position: relative;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.benefits-line {
  position: absolute;
  inset: 0 auto auto 0;
  left: 0;
  right: 0;
  top: 1.6rem;
  height: 0;
  pointer-events: none;
}

.benefit-card {
  position: relative;
  padding: 1.9rem 1.9rem 1.8rem;
  border-radius: 22px;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.7);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.4rem;
  row-gap: 0.5rem;
  align-items: flex-start;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%),
    radial-gradient(circle at 90% 100%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: #18222b;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
}

.benefit-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, rgba(255, 255, 255, 0.15), transparent 60%),
              #0b1013;
  border: 1px solid rgba(149, 213, 156, 0.7);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  box-shadow: 0 0 14px rgba(149, 213, 156, 0.7);
}

.benefit-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benefit-card p {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
  color: rgba(235, 239, 242, 0.92);
  font-size: 0.95rem;
}

.benefit-bullets {
  grid-column: 1 / -1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: rgba(204, 213, 221, 0.9);
}

.benefit-bullets li {
  position: relative;
  padding-left: 1.4rem;
}

.benefit-bullets li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(149, 213, 156, 0.7);
}

/* ----- Tecnología ----- */
.tech {
  background: var(--bg-elevated);
}

.tech-visual {
  margin-top: 2.5rem;
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.tech-card-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.tech-card-inner span {
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* ----- Software (vista estilo hero + bloque claro) ----- */
.software-hero {
  position: relative;
  background: #1a1a1a;
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
  text-align: center;
}

.software-back {
  position: absolute;
  top: calc(var(--header-h) + 1.5rem);
  left: max(1.5rem, calc((100vw - 1200px) / 2 + 1rem));
  margin: 0;
}

.software-back:hover {
  color: #fff;
}

.software-hero-inner {
  width: var(--container);
  max-width: 720px;
  margin: 0 auto;
}

.software-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
}

.software-hero-tagline {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Bloques con fondos distintos */
.software-block {
  padding: 4rem 1.5rem;
}

.software-block-inner {
  width: var(--container);
  max-width: 720px;
  margin: 0 auto;
}

.software-block--1 {
  background: #1a1a1a;
}

.software-block--2 {
  background: #e5e5e5;
}

.software-block--3 {
  background: #252525;
}

.software-block--4 {
  background: #f0f0f0;
}

/* Texto en bloques oscuros */
.software-block--1 .software-product-title,
.software-block--1 .software-product-desc,
.software-block--3 .software-product-title,
.software-block--3 .software-product-desc {
  color: #ffffff;
}

.software-block--1 .software-product-desc,
.software-block--3 .software-product-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Texto en bloques claros */
.software-block--2 .software-product-title,
.software-block--4 .software-product-title {
  color: #1a2744;
}

.software-block--2 .software-product-desc,
.software-block--4 .software-product-desc {
  color: #3d3d3d;
}

.software-product-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
}

.software-product-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 900px) {
  .software-back {
    left: 1.5rem;
  }
}

/* ----- CTA (sección contacto premium) ----- */
.cta {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

/* Pantallas muy grandes: más altura en "¿Listo para dimensionar mejor?" */
@media (min-width: 1400px) {
  .cta {
    padding: 10.5rem 0;
  }

  .cta-box {
    padding: 5.2rem 2.8rem;
  }

  /* En pantallas grandes, mostrar la imagen de fondo completa
     (evitar recortes del clip-path del reveal) y dar más visibilidad. */
  .cta-bg-image {
    clip-path: inset(0 0 0 0) !important;
    filter: saturate(1.05) contrast(1.05) brightness(1.06);
    /* evitar recortes por aspect-ratio (arriba/abajo) */
    background-size: 100% 100%;
    background-position: center;
  }

  .cta-bg {
    background:
      linear-gradient(to bottom, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.45) 100%),
      radial-gradient(ellipse 80% 50% at 50% 100%, rgba(78, 128, 90, 0.12) 0%, transparent 55%),
      radial-gradient(ellipse 60% 40% at 50% 0%, rgba(78, 128, 90, 0.06) 0%, transparent 50%);
  }
}

.cta-bg-image {
  position: absolute;
  inset: 0;
  background-image: url("assets/fondoprueba.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: inset(0 0 calc(100% - 100% * var(--cta-reveal, 0)) 0);
  z-index: 0;
}

/* Versión móvil: usar fondo específico para móvil */
@media (max-width: 768px) {
  .cta-bg-image {
    background-image: url("assets/fondopruebamovil.png");
  }
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.6) 100%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(78, 128, 90, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(78, 128, 90, 0.06) 0%, transparent 50%);
  animation: cta-bg-pulse 8s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes cta-bg-pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.cta .container {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cta-box {
  position: relative;
  text-align: center;
  max-width: 620px;
  padding: 4rem 2rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(60px) scale(0.94);
}

.cta-box.is-visible {
  animation: cta-box-entrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cta-box-entrance {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cta-box-glow {
  display: none;
}

.cta-label {
  display: inline-block;
  font-family: 'Geist', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.cta-box.is-visible .cta-label {
  opacity: 1;
  transform: translateY(0);
}

.cta-title {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.cta-box.is-visible .cta-title {
  opacity: 1;
  transform: translateY(0);
}

.cta-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #ffffff;
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.cta-box.is-visible .cta-desc {
  opacity: 1;
  transform: translateY(0);
}

.cta-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.45s, transform 0.7s ease 0.45s, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 1.1rem 2.6rem;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 0;
  position: relative;
  overflow: visible;
}

.cta-box.is-visible .cta-btn {
  opacity: 1;
  transform: translateY(0);
}

.cta-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: #fff;
}

/* Partículas verdes alrededor del botón al hacer hover */
.cta-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  /* varios puntos alrededor del botón, verdes y suaves */
  box-shadow:
    0 0 0 0 rgba(149, 213, 156, 0.0),
    -8px 0 0 0 rgba(149, 213, 156, 0.9),
    8px 0 0 0 rgba(149, 213, 156, 0.9),
    0 -8px 0 0 rgba(149, 213, 156, 0.8),
    0 8px 0 0 rgba(149, 213, 156, 0.8),
    -12px -6px 0 0 rgba(149, 213, 156, 0.7),
    12px -6px 0 0 rgba(149, 213, 156, 0.7),
    -12px 6px 0 0 rgba(149, 213, 156, 0.7),
    12px 6px 0 0 rgba(149, 213, 156, 0.7);
  filter: blur(0.2px);
}

.cta-btn:hover::after {
  opacity: 1;
  animation: cta-particles 0.9s ease-out forwards;
}

/* ----- Contacto modal ----- */
.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 10, 12, 0.72);
  backdrop-filter: blur(7px);
  z-index: 1300;
}

.contact-modal.is-open {
  display: flex;
}

.contact-modal-card {
  width: min(100%, 460px);
  background: linear-gradient(180deg, #171b1f 0%, #121518 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  padding: 22px;
}

.contact-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-modal-head h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.contact-modal-head p {
  margin: 6px 0 0;
  color: #cbd4da;
  font-size: 0.92rem;
}

.contact-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #f2f7f5;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: #d8e0e6;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(7, 11, 14, 0.9);
  color: #f2f8f5;
  padding: 12px;
  font: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(166, 205, 170, 0.9);
  box-shadow: 0 0 0 3px rgba(166, 205, 170, 0.18);
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.contact-submit-btn {
  font-family: 'Oxanium', sans-serif;
  letter-spacing: 0.03em;
}

@keyframes cta-particles {
  0% {
    transform: scale(0.9);
    box-shadow:
      0 0 0 0 rgba(149, 213, 156, 0.0),
      -8px 0 0 0 rgba(149, 213, 156, 0.9),
      8px 0 0 0 rgba(149, 213, 156, 0.9),
      0 -8px 0 0 rgba(149, 213, 156, 0.8),
      0 8px 0 0 rgba(149, 213, 156, 0.8),
      -12px -6px 0 0 rgba(149, 213, 156, 0.7),
      12px -6px 0 0 rgba(149, 213, 156, 0.7),
      -12px 6px 0 0 rgba(149, 213, 156, 0.7),
      12px 6px 0 0 rgba(149, 213, 156, 0.7);
  }
  60% {
    transform: scale(1.12);
    box-shadow:
      0 0 0 0 rgba(149, 213, 156, 0.0),
      -16px 2px 0 0 rgba(149, 213, 156, 0.7),
      16px -2px 0 0 rgba(149, 213, 156, 0.7),
      2px -16px 0 0 rgba(149, 213, 156, 0.6),
      -2px 16px 0 0 rgba(149, 213, 156, 0.6),
      -22px -10px 0 0 rgba(149, 213, 156, 0.5),
      22px -10px 0 0 rgba(149, 213, 156, 0.5),
      -22px 10px 0 0 rgba(149, 213, 156, 0.5),
      22px 10px 0 0 rgba(149, 213, 156, 0.5);
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
    box-shadow:
      0 0 0 0 rgba(149, 213, 156, 0.0),
      -26px 4px 0 0 rgba(149, 213, 156, 0.0),
      26px -4px 0 0 rgba(149, 213, 156, 0.0),
      4px -26px 0 0 rgba(149, 213, 156, 0.0),
      -4px 26px 0 0 rgba(149, 213, 156, 0.0),
      -32px -16px 0 0 rgba(149, 213, 156, 0.0),
      32px -16px 0 0 rgba(149, 213, 156, 0.0),
      -32px 16px 0 0 rgba(149, 213, 156, 0.0),
      32px 16px 0 0 rgba(149, 213, 156, 0.0);
  }
}

@keyframes cta-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Sección con imagen fondoprueba de fondo ----- */
/* ----- Pasarela de clientes (cinta tipo dhero) ----- */
.clients-pasarela {
  /* Subimos ligeramente la pasarela para reducir el "hueco" negro que queda
     después del hero cuando se muestra la sección del logo */
  padding: 1.5rem 0 4rem;
  margin-top: -1.5rem;
  background: var(--bg);
}

.clients-pasarela .container {
  overflow: visible;
}

.clients-pasarela-title {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  margin: 0 0 1.5rem 0;
  padding-top: 0.5rem;
}

.clients-pasarela-wrap {
  overflow: hidden;
  width: 100%;
}

.clients-pasarela-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: clients-scroll 35s linear infinite;
  padding: 0 2rem;
}

.clients-pasarela-track:hover {
  animation-play-state: paused;
}

.clients-logo {
  flex-shrink: 0;
  width: 160px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clients-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
}

.clients-logo img:hover {
  opacity: 1;
}

@keyframes clients-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ----- Sección detalle por máquina (vista fuera del inicio) ----- */
.machine-detail-view {
  display: none;
  min-height: 100vh;
  background: var(--bg);
}

body:has(#odc:target) #main-wrap {
  display: none;
}

body:has(#odc:target) #odc.machine-detail-view {
  display: block;
}

body:has(#pdc:target) #main-wrap {
  display: none;
}

body:has(#pdc:target) #pdc.machine-detail-view {
  display: block;
}

/* Vista solo Software (acceso desde menú) */
.software-detail-view {
  display: none;
  min-height: 100vh;
  background: var(--bg);
}

body:has(#software:target) #main-wrap {
  display: none;
}

body:has(#software:target) #software.software-detail-view {
  display: block;
}

/* Página Productos (productos.html): intro visible por defecto, se oculta al elegir producto */
.productos-page #productos-intro {
  display: block;
  min-height: 60vh;
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
  background: var(--bg);
}

/* Hero de productos (título "Soluciones precisas para logística") */
.productos-page .productos-hero {
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 3rem;
}

@media (max-width: 768px) {
  .productos-page .productos-hero {
    padding-top: calc(var(--header-h) + 2.2rem);
  }
}

body:has(#odc:target) #productos-intro,
body:has(#pdc:target) #productos-intro,
body:has(#software:target) #productos-intro {
  display: none;
}

.productos-intro-inner {
  width: var(--container);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.productos-intro-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #fff;
  margin: 0 0 0.75rem 0;
}

/* Título "Soluciones" en productos: mejorar legibilidad */
.productos-page .line-outline {
  display: inline-block;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.55);
  text-shadow:
    0 0 14px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .productos-page .line-outline {
    font-size: 2.5rem;
    letter-spacing: 0.14em;
  }
}

.productos-intro-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 2rem 0;
}

.productos-intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.productos-intro-links .btn {
  min-width: 120px;
}

.machine-detail {
  padding: 0;
  background: var(--bg);
}

.machine-detail-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.5rem) 1.5rem 4rem;
}

.machine-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Geist', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.machine-detail-back:hover {
  color: var(--accent);
}

.machine-detail-back-arrow {
  transition: transform 0.2s;
}

.machine-detail-back:hover .machine-detail-back-arrow {
  transform: translateX(-3px);
}

.machine-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 4rem;
  align-items: center;
}

.machine-detail-content {
  min-width: 0;
}

.machine-detail-logo-wrap {
  margin-bottom: 1rem;
}

.machine-detail-logo {
  height: 110px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
  object-position: left;
}

.machine-detail-tagline {
  font-family: 'Geist', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem 0;
}

.machine-detail-title {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1.25rem 0;
}

.machine-detail-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
}

.machine-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.machine-detail-list li {
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
}

.machine-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.machine-detail-visual {
  position: relative;
}

.machine-detail-visual--odc,
.machine-detail-visual--pdc {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: stretch;
}

.machine-detail-visual-main {
  position: relative;
}

.machine-detail-visual-thumbs {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.machine-detail-visual-thumb {
  flex: 1;
  min-height: 0;
}

/* Primera miniatura ODC un poco más arriba */
.machine-detail-visual--odc .machine-detail-visual-thumb:first-child {
  margin-top: -120px;
}

.machine-detail-visual-main,
.machine-detail-visual-thumb {
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.machine-detail-visual img,
.machine-detail-img-main,
.machine-detail-img-thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.machine-detail-img-main {
  max-height: 1100px;
  transform: scale(1.6);
  transform-origin: center;
}

.machine-detail-img-thumb {
  max-height: 380px;
  transform: scale(1.6);
  transform-origin: top center;
}

@media (max-width: 900px) {
  .machine-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .machine-detail-visual {
    order: -1;
  }

  .machine-detail-visual img {
    max-height: 600px;
  }

  .machine-detail-logo {
    height: 80px;
  }
}

/* ===== RESPONSIVE PRODUCTO & BENEFICIOS ===== */

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefits-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .product-layout {
    gap: 2.2rem;
  }

  .product-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Ajustes de tamaño para métricas en móvil para que no se salgan */
  .product-metric-card {
    padding: 0.8rem 0.5rem;
    min-height: 130px;
  }

  .product-metric-label {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .product-metric-value:not(.product-metric-value--small) {
    font-size: 0.85rem;
  }

  .product-metric-value--small {
    font-size: 0.78rem;
  }

  .product-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefits-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefits-line {
    display: none;
  }

  .benefit-card::before {
    display: none;
  }
}

/* ----- Sección con imagen de fondo (estilo Autodesk) ----- */
.section-hero-bg {
  position: relative;
  min-height: 560px;
  padding: 0;
  display: block;
  background: #000;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.5) 40%, rgba(10, 10, 10, 0.1) 100%);
  z-index: 0;
}

.hero-bg-media {
  position: relative;
  z-index: 0;
}

.hero-bg-video {
  width: 100%;
  height: 90%;
  max-height: 640px;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Pantallas muy grandes: dar más altura a "Precisión y diseño industrial" */
@media (min-width: 1400px) {
  .section-hero-bg {
    min-height: 720px;
  }

  .hero-bg-video {
    height: 100%;
    max-height: 760px;
  }
}

.hero-bg-content {
  position: absolute;
  top: 50%;
  left: max(2rem, 8vw);
  transform: translateY(-50%);
  z-index: 1;
  /* Ancho limitado para que el texto no invada la zona del video/render a la derecha */
  max-width: min(400px, 34vw);
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero-bg-title {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  color: #fff;
  margin: 0 0 1rem 0;
}

.hero-bg-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: #ffffff;
  margin: 0;
}

.hero-bg-desc + .hero-bg-desc {
  margin-top: 0.85rem;
}

@media (max-width: 768px) {
  .section-hero-bg {
    min-height: 520px;
  }

  .hero-bg-content {
    position: static;
    transform: none;
    padding: 3rem 1.5rem;
    max-width: 100%;
    text-align: center;
  }

  .hero-bg-media {
    position: relative;
    overflow: hidden;
  }

  /* En móvil, hacer un zoom más marcado al vídeo de fondo
     para que el render del lado derecho se vea más cerca */
  .hero-bg-video {
    height: 100%;
    max-height: none;
    object-position: 75% center;
    transform: scale(1.3);
    transform-origin: center right;
  }
}

/* ----- Footer ----- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer .container {
  padding-left: 0;
  padding-right: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo .logo-text {
  font-size: 1rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding-top: calc(var(--header-h) + 2rem);
    text-align: center;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-image {
    max-width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  .product-features,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4rem 0;
  }

  .footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ----- Página Contacto (contacto.html) ----- */
.page-contacto .contacto-main {
  padding-top: var(--header-h);
}
.contacto-hero {
  padding-top: 3rem;
  padding-bottom: 2rem;
}
.contacto-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.contacto-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: normal;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.contacto-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42rem;
  line-height: 1.65;
}
.contacto-lead a {
  color: var(--accent);
  text-decoration: none;
}
.contacto-lead a:hover {
  text-decoration: underline;
}
.contacto-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
  position: relative;
}
.page-contacto .contacto-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 15% 20%, rgba(78, 128, 90, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 60%, rgba(166, 205, 170, 0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}
.page-contacto .contacto-section .container--contacto {
  position: relative;
  z-index: 1;
}
.container--contacto {
  width: 100%;
  max-width: min(1280px, 94vw);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1.25rem, 3vw);
  padding-right: max(1.25rem, 3vw);
}
.contacto-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(2rem, 4vw, 3rem);
  width: 100%;
}
.contacto-info-card {
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  background:
    linear-gradient(155deg, rgba(26, 28, 26, 0.98) 0%, rgba(12, 12, 14, 0.99) 45%, rgba(10, 10, 12, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow:
    0 0 0 1px rgba(166, 205, 170, 0.05),
    0 4px 6px rgba(0, 0, 0, 0.2),
    0 32px 64px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.contacto-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), rgba(166, 205, 170, 0.4), transparent);
  opacity: 0.95;
}
.contacto-info-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 80%;
  background: radial-gradient(circle, rgba(166, 205, 170, 0.07) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.contacto-info-card > * {
  position: relative;
  z-index: 1;
}
.contacto-info-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.contacto-info-badge {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent) 0%, rgba(120, 160, 130, 0.95) 100%);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(166, 205, 170, 0.25);
}
.contacto-info-head-text {
  min-width: 0;
  text-align: center;
}
.contacto-info-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: normal;
  margin: 0 0 0.2rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.contacto-info-tagline {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}
.contacto-info-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 1.5rem;
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.contacto-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.5);
}
.contacto-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.contacto-detail:last-child {
  border-bottom: none;
}
.contacto-detail-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(166, 205, 170, 0.08);
  border-radius: 10px;
}
.contacto-detail-icon svg {
  display: block;
}
.contacto-detail-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  text-align: left;
}
.contacto-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contacto-details a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  word-break: break-word;
  font-weight: 500;
  transition: opacity 0.2s;
}
.contacto-details a:hover {
  opacity: 0.85;
  text-decoration: underline;
}
.contacto-value {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 300;
}
.contacto-form-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) {
  .contacto-layout {
    display: grid;
    grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(2rem, 3.5vw, 3.5rem);
  }
  .contacto-info-card {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    padding: 2rem 1.75rem;
  }
  .contacto-layout .contacto-info-head {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 1.1rem;
    margin-bottom: 1.35rem;
  }
  .contacto-layout .contacto-info-head-text {
    text-align: left;
  }
  .contacto-layout .contacto-info-text {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
  .contacto-form-wrap {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .contacto-info-badge {
    width: 3.35rem;
    height: 3.35rem;
    font-size: 0.7rem;
    border-radius: 14px;
  }
  .contacto-form-wrap .contacto-success {
    max-width: 100%;
  }
  .wizard {
    padding: 2rem 2.25rem;
  }
}
.contacto-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.contacto-form-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.form-row {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: rgba(166, 205, 170, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}
.contacto-recaptcha-wrap {
  margin: 0.5rem 0 1.25rem;
}
.contacto-msg {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.contacto-msg--error {
  color: #f87171;
}
.contacto-submit {
  width: 100%;
  margin-top: 0.25rem;
}
.contacto-success {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.contacto-success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.contacto-success-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.contacto-success-extra {
  margin-top: -0.25rem;
}
.contacto-success .btn {
  margin-top: 0.5rem;
}
@media (max-width: 900px) {
  .contacto-hero {
    padding-top: 2rem;
  }
}

/* ----- Wizard contacto (multi-paso) ----- */
.contacto-hero--wizard {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.contacto-hero--wizard .container {
  text-align: center;
}
.contacto-hero--wizard .contacto-eyebrow {
  margin-bottom: 0.5rem;
}
.wizard {
  background: linear-gradient(180deg, rgba(22, 22, 24, 0.98) 0%, rgba(14, 14, 16, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  transition: box-shadow 0.35s ease;
  box-shadow:
    0 0 0 1px rgba(166, 205, 170, 0.04),
    0 24px 56px rgba(0, 0, 0, 0.45);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.wizard .wizard-title,
.wizard .wizard-subtitle,
.wizard .wizard-microcopy {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.wizard-fieldset,
.wizard .wizard-fieldset {
  text-align: left;
}
.wizard-final-form {
  text-align: left;
}
.wizard .contacto-recaptcha-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.wizard-progress {
  margin-bottom: 1.75rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.wizard-progress-track {
  height: 4px;
  border-radius: 999px;
  background: var(--bg-elevated);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.wizard-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), rgba(166, 205, 170, 0.55));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.wizard-progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}
.wizard-panel {
  animation: wizard-in 0.4s ease-out;
}
@keyframes wizard-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.wizard-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.wizard-title--step {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.wizard-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-width: 40rem;
}
.wizard-microcopy {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.wizard-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.wizard-choice-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .wizard-choice-grid {
    grid-template-columns: 1fr;
  }
  .wizard-choice-grid--triple {
    grid-template-columns: 1fr;
  }
}
.wizard-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.35rem;
  padding: 1.25rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.wizard-card:hover {
  border-color: rgba(166, 205, 170, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
.wizard-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.wizard-card-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.wizard-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.wizard-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 300;
}
.wizard-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.wizard-legend {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.wizard-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.wizard-option-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 600px) {
  .wizard-option-grid,
  .wizard-option-grid--compact {
    grid-template-columns: 1fr;
  }
}
.wizard-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.wizard-option:has(input:checked) {
  border-color: rgba(166, 205, 170, 0.55);
  background: rgba(166, 205, 170, 0.06);
}
.wizard-option input {
  accent-color: var(--accent);
}
.wizard-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 600px) {
  .wizard-check-grid {
    grid-template-columns: 1fr;
  }
}
.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}
.wizard-nav--solo-back {
  justify-content: center;
}
.wizard-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.wizard-hint code,
.mono {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.88em;
  color: var(--accent);
}
.wizard-final-form .contacto-recaptcha-wrap {
  margin-top: 0.5rem;
}
.wizard-success-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.contacto-success-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.contacto-success-meta strong {
  color: var(--accent);
  font-weight: 600;
}