/* ==========================================================================
   Harrix — Landing page B2B
   Tokens: negro #0A0A0C · carbón #121216 · blanco #FFFFFF
           gris fondo #F4F5F7 · gris texto #9CA3AF · acento naranja #FF5E00
   Tipografía: Plus Jakarta Sans (display) + Inter (texto)
   Motivo de marca: el corte diagonal de la "X" de Harrix, reutilizado como
   dispositivo estructural (esquinas cortadas, separadores de sección).
   ========================================================================== */

:root{
  --black: #0A0A0C;
  --charcoal: #121216;
  --white: #FFFFFF;
  --gray-bg: #F4F5F7;
  --gray-text: #9CA3AF;
  --orange: #FF5E00;
  --orange-dark: #D24E00;
  --border-dark: rgba(255,255,255,0.09);
  --border-light: rgba(10,10,12,0.08);

  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --cut: 22px; /* tamaño del corte diagonal de marca */
  --maxw: 1180px;

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg{ display:block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p{ margin:0; }
button{ font: inherit; cursor: pointer; }
input, select, textarea{ font: inherit; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible{
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background: var(--orange); color: var(--white);
  padding: 10px 16px; z-index: 999; border-radius: 4px;
}
.skip-link:focus{ left: 12px; top: 12px; }
.brand-highlight {
  font-weight: 700;       /* Hace la letra negrita */
  font-size: 1.15em;      /* Hace el texto un poco más grande proporcionalmente */
  color: var(--black);    /* Asegura el color oscuro (o var(--white) si está sobre fondo oscuro) */
}
.wrap{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1,h2,h3{ font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

/* ---------- eyebrow / heads ---------- */
.eyebrow{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orange);
  margin: 0 0 14px;
}
.section-head{
  max-width: 640px;
  margin: 0 0 52px;
}
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.15; }
.section-head p{ margin-top: 14px; color: #4B5160; font-size: 1.05rem; }
.section-head-light h2{ color: var(--white); }
.section-head-light p{ color: #B7BAC3; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.btn-primary{
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover{ background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  color: var(--black);
  border: 1.5px solid rgba(10,10,12,0.18);
  clip-path: none;
}
.section-dark .btn-ghost{ color: var(--white); border-color: rgba(255,255,255,0.22); }
.btn-ghost:hover{ border-color: var(--black); }
.section-dark .btn-ghost:hover{ border-color: var(--white); }
.btn-small{ padding: 10px 18px; font-size: 0.88rem; }
.btn-full{ width: 100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92); /* Fondo blanco semitransparente */
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-light); /* Borde claro en lugar del oscuro */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Sombra sutil para legibilidad */
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--black); /* Cambiado de var(--white) a var(--black) */
  letter-spacing: -0.02em;
}
.logo-x{ color: var(--orange); }
.nav{
  display: flex;
  gap: 32px;
}
.nav a{
  color: #4B5160; /* Gris oscuro para los enlaces */
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover{ color: var(--orange); } /* Hover en color naranja para hacer juego */
.header-cta{ margin-left: 24px; }
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
}
.nav-toggle span{
  display: block; width: 22px; height: 2px; background: var(--black); /* Cambiado a negro/gris para que se vea sobre blanco */
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  background: var(--black);
  color: var(--white);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(255,94,0,0.16) 0%, rgba(255,94,0,0) 70%);
  pointer-events: none;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-copy h1{
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  color: var(--white);
}
.hero-sub{
  margin-top: 22px;
  font-size: 1.1rem;
  color: #B7BAC3;
  max-width: 46ch;
}
.hero-actions{
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trust{
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #7C7F89;
  font-size: 0.88rem;
}
.hero-trust strong{ color: #D7D8DD; font-weight: 600; }

/* --- hero dashboard mockup --- */
.hero-visual{ position: relative; }
.dash-card{
  background: linear-gradient(180deg, #17171C 0%, #121216 100%);
  border: 1px solid var(--border-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
}
.dash-card-head{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-dark);
}
.dash-dot-group{ display: flex; gap: 6px; }
.dash-dot-group span{
  width: 8px; height: 8px; border-radius: 50%;
  background: #33343B;
}
.dash-title{
  font-size: 0.82rem;
  color: #8B8E97;
  font-family: var(--font-display);
  font-weight: 500;
}
.dash-body{ padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 24px; }

.dash-metric{ display: flex; flex-direction: column; gap: 6px; }
.dash-metric-label{ font-size: 0.82rem; color: #8B8E97; }
.dash-metric-value{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  color: var(--white);
}
.dash-metric-value small{ font-size: 1rem; color: #8B8E97; font-weight: 600; }
.dash-metric-delta{ font-size: 0.85rem; font-weight: 600; }
.dash-metric-delta.up{ color: #4ADE80; }

.dash-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-mini{
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.dash-mini-label{ font-size: 0.78rem; color: #8B8E97; }
.dash-mini-value{ font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--white); }
.dash-mini-value small{ font-size: 0.72rem; color: #8B8E97; font-weight: 500; }
.dash-pulse{
  position: absolute; top: 14px; right: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,94,0,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(255,94,0,0.5); }
  70%{ box-shadow: 0 0 0 8px rgba(255,94,0,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,94,0,0); }
}

.dash-validations{
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.validation-list{ display: flex; flex-direction: column; gap: 10px; }
.validation-list li{
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; color: #D7D8DD;
}
.light{ width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.light.green{ background: #4ADE80; box-shadow: 0 0 8px rgba(74,222,128,0.5); }
.light.amber{ background: #FBBF24; box-shadow: 0 0 8px rgba(251,191,36,0.5); }

.hero-visual-cut{
  position: absolute;
  width: 130px; height: 130px;
  right: -30px; bottom: -30px;
  background: var(--orange);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
  z-index: -1;
}

/* ==========================================================================
   SECTIONS — generic
   ========================================================================== */
.section{ padding: 108px 0; }
.section-dark{ background: var(--black); color: var(--white); }
.section-alt{ background: var(--gray-bg); }

/* ==========================================================================
   BENEFICIOS
   ========================================================================== */
.benefit-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}
.benefit-card{
  background: var(--white);
  padding: 34px 30px;
  transition: background-color 0.18s ease;
}
.benefit-card:hover{ background: var(--gray-bg); }
.benefit-icon{
  width: 46px; height: 46px;
  color: var(--orange);
  margin-bottom: 20px;
}
.benefit-card h3{
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.benefit-card p{ color: #4B5160; font-size: 0.96rem; }

/* ==========================================================================
   FLUJO OPERATIVO
   ========================================================================== */
.flow-path{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: none;
  position: relative;
}
.flow-step{
  position: relative;
  padding: 0 22px 0 0;
  border-top: 2px solid rgba(255,255,255,0.14);
  padding-top: 28px;
}
.flow-step:not(:last-child)::after{
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 0%;
  height: 2px;
  background: var(--orange);
}
.flow-step:nth-child(1)::after{ width: 100%; }
.flow-step:nth-child(2)::after{ width: 100%; }
.flow-num{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 14px;
}
.flow-step h3{ color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }
.flow-step p{ color: #9C9FA8; font-size: 0.92rem; }

/* ==========================================================================
   MÓDULOS
   ========================================================================== */
.module-list{ display: flex; flex-direction: column; }
.module-row{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--border-light);
}
.module-row:last-child{ border-bottom: 1px solid var(--border-light); }
.module-index{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--orange);
}
.module-content h3{ font-size: 1.15rem; margin-bottom: 8px; }
.module-content p{ color: #4B5160; max-width: 60ch; }

/* ==========================================================================
   SEGURIDAD
   ========================================================================== */
.security-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.security-copy h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; margin-top: 2px;}
.security-copy .hero-sub{ color: #4B5160; }

.security-features{ 
  display: flex; 
  flex-direction: column; 
  gap: 0; 
}

.security-item{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 16px;
  border-top: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.25s ease;
}

.security-item:last-child{ 
  border-bottom: 1px solid var(--border-light); 
}

/* Efecto interactivo al pasar el cursor (Hover) */
.security-item:hover {
  background: rgba(255, 94, 0, 0.04);
  transform: translateX(6px);
}

/* Icono viñeta naranja */
.security-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 94, 0, 0.1);
  color: var(--orange);
  border-radius: 10px;
  border: 1px solid rgba(255, 94, 0, 0.2);
  transition: all 0.25s ease;
}

.security-icon svg {
  width: 22px;
  height: 22px;
}

/* Animación del icono al hacer hover */
.security-item:hover .security-icon {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 94, 0, 0.3);
  transform: scale(1.05);
}

.security-text h3 { 
  font-size: 1.05rem; 
  margin-bottom: 6px; 
  color: var(--black);
}

.security-text p { 
  color: #4B5160; 
  margin: 0;
  font-size: 0.95rem;
}

/* ==========================================================================
   CONTACTO / FORM
   ========================================================================== */
.contact-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.contact-copy h2{ color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
.contact-copy .hero-sub{ color: #B7BAC3; }

.contact-form{
  background: var(--charcoal);
  border: 1px solid var(--border-dark);
  padding: 36px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row{ display: flex; flex-direction: column; gap: 8px; }
.form-row-split{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row label{
  font-size: 0.86rem;
  color: #B7BAC3;
  font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea{
  background: #0E0E12;
  border: 1px solid var(--border-dark);
  color: var(--white);
  padding: 13px 14px;
  font-size: 0.96rem;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  border-color: var(--orange);
}
.form-row select{ appearance: none; }
.form-status{
  min-height: 20px;
  font-size: 0.88rem;
  margin: 0;
}
.form-status.ok{ color: #4ADE80; }
.form-status.error{ color: #F87171; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  background: var(--white);
  color: #4B5160;
  padding-top: 36px; /* Reducido de 64px a 36px */
  border-top: 1px solid var(--border-light);
}

.footer-inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px; /* Reducido el espacio horizontal entre columnas de 40px a 24px */
  padding-bottom: 28px; /* Reducido de 48px a 28px */
}

.footer-brand p{ 
  margin-top: 8px; /* Reducido de 14px a 8px */
  max-width: 32ch; 
  font-size: 0.88rem; /* Ligeramente más pequeño */
  line-height: 1.35; /* Interlineado más ajustado */
  color: #4B5160; 
}

.footer-nav{ 
  display: flex; 
  flex-direction: column; 
  gap: 6px; /* Reducido la separación entre enlaces de 12px a 6px */
  font-size: 0.9rem;
}

.footer-contact{ 
  display: flex; 
  flex-direction: column; 
  gap: 4px; /* Reducido de 12px a 4px */
  font-size: 0.9rem;
}

.footer-bottom{
  border-top: 1px solid var(--border-light);
  padding: 14px 0 18px; /* Reducido de 22px 0 28px a 14px 0 18px */
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem; /* Fuente más discreta */
  line-height: 1.3; /* Interlineado ajustado */
  color: #6D6F79;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; max-width: 460px; }
  .hero{ padding: 140px 0 70px; }
  .benefit-grid{ grid-template-columns: repeat(2, 1fr); }
  .flow-path{ grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .flow-step:nth-child(2)::after{ width: 0; }
  .security-grid, .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .nav{
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98); /* Fondo blanco móvil */
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 20px 24px 26px;
    gap: 18px;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .nav.is-open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .header-cta{ display: none; }
  .nav-toggle{ display: flex; }
  .nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2){ opacity: 0; }
  .nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .section{ padding: 76px 0; }
  .benefit-grid{ grid-template-columns: 1fr; }
  .flow-path{ grid-template-columns: 1fr; }
  .flow-step{ border-top: none; border-left: 2px solid rgba(255,255,255,0.14); padding: 0 0 0 20px; }
  .flow-step::after{ display: none; }
  .form-row-split{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; gap: 32px; }
  .module-row{ grid-template-columns: 40px 1fr; gap: 16px; }
}
