/* ==========================================================================
   NEXAVEN — Stylesheet compartido (landing + contacto)
   ========================================================================== */

/* ==========================================================================
   FUENTES LOCALES (variable fonts servidas desde /assets/fonts)
   ========================================================================== */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/opensans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/opensans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green-1: #49AD33;
  --green-2: #00AC84;
  --ink: #151615;
  --paper: #FFFFFF;
  --soft: #F2F2F2;
  --soft-2: #EDEDED;
  --line: rgba(21, 22, 21, 0.08);
  --line-dark: rgba(255, 255, 255, 0.1);
  --grad: linear-gradient(135deg, #49AD33 0%, #00AC84 100%);
  --maxw: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', 'Open Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

body.page-contact {
  background: var(--ink);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 120px 0;
  position: relative;
}

/* ==========================================================================
   NAVBAR (compartido)
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled,
body.page-contact .nav {
  background: rgba(21, 22, 21, 0.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--line-dark);
}

.nav.scrolled {
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo svg {
  display: block;
}

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

.nav.scrolled .logo-img {
  height: 28px;
}

footer .logo-img {
  height: 36px;
}

.logo-word {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 172, 132, 0.28);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 172, 132, 0.42);
  filter: brightness(1.05);
}

.nav-cta svg {
  transition: transform 0.25s ease;
}

.nav-cta:hover svg {
  transform: translateX(3px);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   BUTTONS (compartido)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, filter 0.25s ease;
}

.btn:disabled {
  cursor: not-allowed;
  filter: saturate(0.5) brightness(0.85);
}

.btn svg {
  transition: transform 0.25s ease;
}

.btn:hover:not(:disabled) svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--grad);
  color: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 172, 132, 0.32);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 172, 132, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-outline:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(21, 22, 21, 0.2);
}

.btn-outline-dark:hover {
  border-color: var(--ink);
  background: rgba(21, 22, 21, 0.04);
  transform: translateY(-2px);
}

.btn-xl {
  padding: 20px 40px;
  font-size: 17px;
}

/* ==========================================================================
   SECTION HEADERS (compartido)
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(0, 172, 132, 0.7);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-2);
  margin-bottom: 28px;
}

.section-eyebrow .bar {
  width: 28px;
  height: 2px;
  background: var(--grad);
  display: inline-block;
}

h2.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: inherit;
  text-wrap: balance;
}

.section-title .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 72px;
}

.section-head .left {
  max-width: 720px;
}

.section-head p {
  font-family: 'Open Sans', sans-serif;
  color: rgba(21, 22, 21, 0.7);
  font-size: 17px;
  margin: 16px 0 0;
  max-width: 540px;
}

/* ==========================================================================
   HERO (landing)
   ========================================================================== */

.hero {
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  padding: 180px 0 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0, 172, 132, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(73, 173, 51, 0.14), transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

h1.hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  text-wrap: balance;
}

.hero-title .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}

.hero-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
  margin: 0 0 48px;
  line-height: 1.6;
}

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

.hero-tickers {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-dark);
  padding-top: 32px;
}

.ticker-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticker-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ticker-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.ticker-value .unit {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 4px;
}

/* ==========================================================================
   MISSION (landing)
   ========================================================================== */

.mission {
  background: var(--paper);
  text-align: center;
}

.mission-inner {
  max-width: 980px;
  margin: 0 auto;
}

.mission p {
  font-family: 'Open Sans', sans-serif;
  font-size: 19px;
  line-height: 1.7;
  color: rgba(21, 22, 21, 0.72);
  max-width: 720px;
  margin: 0 auto;
}

.mission .underline {
  width: 64px;
  height: 3px;
  background: var(--grad);
  margin: 0 auto 36px;
  border-radius: 4px;
}

/* ==========================================================================
   SERVICES (landing)
   ========================================================================== */

.services {
  background: var(--soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  min-height: 380px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 172, 132, 0.35);
  box-shadow: 0 24px 60px rgba(21, 22, 21, 0.06);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(73, 173, 51, 0.1), rgba(0, 172, 132, 0.1));
  color: var(--green-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--grad);
  color: var(--paper);
}

.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(21, 22, 21, 0.65);
  margin: 0 0 28px;
  flex: 1;
}

.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 0.3s ease, gap 0.3s ease;
}

.service-card:hover .more {
  color: var(--green-2);
  gap: 12px;
}

.service-tag {
  position: absolute;
  top: 32px;
  right: 32px;
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  color: rgba(21, 22, 21, 0.4);
  letter-spacing: 0.18em;
}

/* ==========================================================================
   DIFFERENTIATORS (landing)
   ========================================================================== */

.differs {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.differs .section-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.differs .section-eyebrow .bar {
  background: var(--grad);
}

.differs .section-head p {
  color: rgba(255, 255, 255, 0.65);
}

.differs h2 {
  color: var(--paper);
}

.differs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.differ-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: flex-start;
}

.differ-row:nth-child(odd) {
  border-right: 1px solid var(--line-dark);
  padding-right: 48px;
}

.differ-row:nth-child(even) {
  padding-left: 48px;
}

.differ-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--green-1);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

.differ-row h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.differ-row p {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin: 0;
}

.differs-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ==========================================================================
   VALUES (landing)
   ========================================================================== */

.values {
  background: var(--grad);
  color: var(--paper);
  overflow: hidden;
}

.values::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(21, 22, 21, 0.18), transparent 60%);
  pointer-events: none;
}

.values .section-eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.values .section-eyebrow .bar {
  background: var(--paper);
}

.values h2 {
  color: var(--paper);
}

.values .section-head p {
  color: rgba(255, 255, 255, 0.85);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.value-card {
  background: linear-gradient(135deg, rgba(73, 173, 51, 0.95), rgba(0, 172, 132, 0.95));
  padding: 44px 36px;
  transition: background 0.4s ease, transform 0.4s ease;
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.value-card:hover {
  background: rgba(21, 22, 21, 0.92);
}

.value-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.value-card:hover .value-icon {
  border-color: rgba(0, 172, 132, 0.6);
  background: rgba(0, 172, 132, 0.15);
}

.value-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.value-card p {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.value-card .num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   HISTORY / STATS (landing)
   ========================================================================== */

.history {
  background: var(--paper);
}

.history-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.history .copy h2 {
  margin-bottom: 24px;
}

.history .copy p {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(21, 22, 21, 0.7);
  margin: 0 0 16px;
  max-width: 520px;
}

.stat-block {
  position: relative;
  padding: 56px 48px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.stat-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(0, 172, 132, 0.25), transparent 55%);
}

.stat-hero {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}

.stat-hero .big {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(72px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.stat-hero .label {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
  display: block;
}

.stat-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-item .num {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 38px;
  color: var(--paper);
  letter-spacing: -0.02em;
  display: block;
}

.stat-item .num .plus {
  color: var(--green-1);
}

.stat-item .lbl {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

.tri-deco {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: var(--grad);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  opacity: 0.18;
  z-index: 1;
}

/* ==========================================================================
   FINAL CTA (landing)
   ========================================================================== */

.final-cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 172, 132, 0.22), transparent 70%);
  pointer-events: none;
}

.final-cta .wrap {
  position: relative;
  z-index: 2;
}

.final-cta h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.final-cta h2 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}

.final-cta p {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact {
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  padding: 180px 0 120px;
  overflow: hidden;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0, 172, 132, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(73, 173, 51, 0.14), transparent 60%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: flex-start;
}

h1.contact-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 5.8vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  text-wrap: balance;
}

.contact-title .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}

.contact-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 460px;
  margin: 0 0 40px;
  line-height: 1.65;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-item .icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(73, 173, 51, 0.18), rgba(0, 172, 132, 0.18));
  color: var(--green-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item .label {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 2px;
}

.contact-info-item .value {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-item .value:hover {
  color: var(--green-2);
}

.form-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: 48px 44px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
  position: relative;
}

.honeypot-field {
  opacity: 0;
  position: absolute;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.turnstile-wrapper {
  margin: 8px 0 24px;
  min-height: 65px;
  display: flex;
  justify-content: flex-start;
}

.turnstile-wrapper .cf-turnstile {
  border-radius: 8px;
  overflow: hidden;
}

.form-field label {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.form-field label .req {
  color: var(--green-2);
  margin-left: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--paper);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
  font-family: 'Open Sans', sans-serif;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2300AC84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-field select option {
  background: var(--ink);
  color: var(--paper);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(0, 172, 132, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(0, 172, 132, 0.12);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 80, 80, 0.45);
}

.field-error {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #fca5a5;
  margin: 6px 0 0;
  min-height: 0;
}

.field-error:empty {
  display: none;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-note {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.form-status {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 12px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: rgba(0, 172, 132, 0.12);
  border: 1px solid rgba(0, 172, 132, 0.4);
  color: #6ee7b7;
}

.form-status.error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #fca5a5;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn.loading .spinner {
  display: inline-block;
}

.btn.loading svg {
  display: none;
}

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

/* ==========================================================================
   PRODUCTOS PAGE
   ========================================================================== */

body.page-productos {
  background: var(--ink);
  color: var(--paper);
}

.productos {
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  padding: 180px 0 120px;
  overflow: hidden;
  position: relative;
}

.productos::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0, 172, 132, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(73, 173, 51, 0.14), transparent 60%);
  pointer-events: none;
}

.productos .wrap {
  position: relative;
  z-index: 2;
}

.productos-intro {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 72px;
}

.productos-intro .eyebrow {
  justify-content: center;
}

h1.productos-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 5.8vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.productos-title .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}

.productos-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.product-card {
  background: rgba(21, 22, 21, 0.6);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background 0.4s ease, transform 0.4s ease;
  min-height: 280px;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.product-card:hover {
  background: linear-gradient(135deg, rgba(73, 173, 51, 0.08), rgba(0, 172, 132, 0.08));
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(73, 173, 51, 0.16), rgba(0, 172, 132, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--green-2);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.product-card:hover .product-icon {
  background: var(--grad);
  border-color: transparent;
  color: var(--paper);
}

.product-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.product-tag {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-2);
  margin-bottom: 14px;
}

.product-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.productos-cta {
  margin-top: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.productos-cta p {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 540px;
  line-height: 1.6;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

body.page-404 {
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.notfound {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 180px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.notfound::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0, 172, 132, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(73, 173, 51, 0.14), transparent 60%);
  pointer-events: none;
}

.notfound-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.notfound-code {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(120px, 22vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.notfound-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.notfound-title .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}

.notfound-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.notfound-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-min {
  background: var(--ink);
  color: var(--soft);
  border-top: 1px solid var(--line-dark);
  padding: 28px 0;
}

.footer-min-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER (compartido)
   ========================================================================== */

footer {
  background: var(--ink);
  color: var(--soft);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin: 24px 0 0;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 20px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-2), transparent);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.socials a:hover {
  background: var(--grad);
  color: var(--paper);
  border-color: transparent;
}

/* ==========================================================================
   REVEAL ANIMATIONS (compartido)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
  .footer-grid {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  section {
    padding: 96px 0;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 140px 0 96px;
  }

  .hero-tickers {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 72px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .differs-list {
    grid-template-columns: 1fr;
  }

  .differ-row:nth-child(odd),
  .differ-row:nth-child(even) {
    padding: 32px 0;
    border-right: 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .history-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 56px;
  }

  .contact {
    padding: 130px 0 80px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .form-card {
    padding: 36px 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .productos {
    padding: 130px 0 80px;
  }

  .productos-intro {
    margin-bottom: 56px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 20px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .nav-cta {
    display: none;
  }

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

  .form-card {
    padding: 32px 22px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}
