/* ═══════════════════════════════════════════════════════════════
   ULPIANUS.ai — Brand CSS
   Identidad: achromática — grafito, obsidiana, titanio cepillado
   Sin color de acento cromático. El material ES la paleta.
   Ver: BRAND_SYSTEM.md §3
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@font-face { font-family: 'Brandon Text'; src: url('../LOGO Ulpianus & Setnet/brandon-text/BrandonText-Light.woff2') format('woff2'); font-weight: 300; }
@font-face { font-family: 'Brandon Text'; src: url('../LOGO Ulpianus & Setnet/brandon-text/BrandonText-Regular.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'Brandon Text'; src: url('../LOGO Ulpianus & Setnet/brandon-text/BrandonText-Medium.woff2') format('woff2'); font-weight: 500; }
@font-face { font-family: 'Brandon Text'; src: url('../LOGO Ulpianus & Setnet/brandon-text/BrandonText-Bold.woff2') format('woff2'); font-weight: 700; }

/* ── Tokens grafito ──────────────────────────────────────────── */
:root {
  /* Material: de obsidiana a platino */
  --g-deep:    #111113;   /* obsidiana — bg máximo contraste */
  --g-dark:    #1A1A1C;   /* grafito profundo — bg principal */
  --g-mid:     #2C2C2E;   /* grafito medio — cards */
  --g-stone:   #3C3C3E;   /* piedra — bordes, separadores */
  --g-silver:  #8C8C8E;   /* plata — texto secundario, borders hover */
  --g-light:   #C8C8CA;   /* platino claro — texto primario */
  --g-white:   #F0F0F2;   /* blanco cálido — headlines */

  /* Funcional: un solo toque de luz para interactividad */
  --accent:    #C8C8CA;   /* plata — elementos interactivos, no un "color" */
  --accent-s:  #8C8C8E;   /* plata oscura — hover */

  --bg:        #1A1A1C;
  --bg-card:   rgba(44, 44, 46, 0.55);
  --bg-card-h: rgba(60, 60, 62, 0.80);
  --border:    rgba(140, 140, 142, 0.14);
  --border-h:  rgba(200, 200, 202, 0.40);

  --text-1: #F0F0F2;
  --text-2: #A0A0A2;
  --text-3: #606062;

  --font-brand: 'Brandon Text', 'Inter', -apple-system, sans-serif;
  --font-body:  'Inter', sans-serif;
  --max-w: 1200px;
  --radius: 3px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Textura facetada (planos del cristal en ghost) ──────────── */
/* Evoca las caras del sólido geométrico del logo */
.hex-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64'%3E%3Cpolygon points='28,2 54,16 54,48 28,62 2,48 2,16' fill='none' stroke='%23C8C8CA' stroke-width='0.8' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 56px 64px;
}

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 100;
  background: rgba(17, 17, 19, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 200, 202, 0.08);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-1);
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 5px;
  text-transform: uppercase;
}
.nav-logo svg { width: 32px; height: 32px; }

/* Logo PNG en nav: cristal, aristas plateadas sobre grafito */
.nav-crystal {
  height: 56px;
  width: auto;
  display: block;
  filter: brightness(1.5) contrast(1.1);
}

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--g-light); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 24px 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 32px;
  border: 1px solid var(--border-h);
  color: var(--text-2);
  background: transparent;
}

.hero h1 {
  font-family: var(--font-brand);
  font-size: 3.6rem;
  font-weight: 300;   /* light — elegancia sobre fuerza */
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: var(--g-white);
}
/* Ulpianus no usa .highlight rojo — usa peso tipográfico como énfasis */
.hero h1 strong { font-weight: 700; color: var(--g-white); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.8;
  font-weight: 300;
}

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

.cta-primary {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--g-light);
  color: var(--g-dark);
  border: 1px solid var(--g-light);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-primary:hover {
  background: var(--g-white);
  border-color: var(--g-white);
  transform: translateY(-2px);
}

.cta-secondary {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cta-secondary:hover { border-color: var(--border-h); color: var(--g-light); }

.hero-trust {
  margin-top: 60px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-trust span {
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(200, 200, 202, 0.07);
  border-radius: var(--radius);
}

/* Ícono Ulpianus en el hero — el sólido geométrico */
.hero-visual {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: visible;
}

/* Diagonal geométrica Ulpianus — gris sobre grafito */
.hero-diagonal {
  position: absolute;
  top: 0; right: 0;
  width: 520px; height: 580px;
  pointer-events: none;
  z-index: 0;
}

/* Logo PNG oficial — cristal obsidiana, grande, desplazado a la izquierda */
.crystal-logo {
  width: 850px;
  flex-shrink: 0;
  height: auto;
  display: block;
  animation: none;
  filter: none;
  position: relative;
  z-index: 1;
  margin-left: -460px;
}

/* ── Sections ────────────────────────────────────────────────── */
section { padding: 120px 24px; position: relative; z-index: 1; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--g-silver);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-brand);
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
  line-height: 1.12;
  color: var(--g-white);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 660px;
  margin-bottom: 60px;
  line-height: 1.78;
  font-weight: 300;
}

.pain { background: rgba(0,0,0,0.22); border-top: 1px solid rgba(200,200,202,0.04); border-bottom: 1px solid rgba(200,200,202,0.04); }

/* ── Cards ───────────────────────────────────────────────────── */
.pain-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.pain-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.pain-item:hover { transform: translateY(-3px); border-color: var(--border-h); }
.pain-item .quote {
  color: var(--g-stone);
  font-size: 3rem;
  font-family: 'Georgia', serif;
  position: absolute;
  top: 14px; left: 28px;
  opacity: 0.4;
  line-height: 1;
}
.pain-item p { font-size: 1rem; color: var(--text-2); line-height: 1.7; position: relative; z-index: 1; }

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--g-silver) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.benefit-card:hover { transform: translateY(-3px); border-color: var(--border-h); }
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-card .num {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--g-silver);
  line-height: 1;
  margin-bottom: 20px;
}
.benefit-card h3 {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.benefit-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-3px); border-color: var(--border-h); }
.step-num {
  font-family: var(--font-brand);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--g-stone);
  line-height: 1;
  margin-bottom: 14px;
  transition: color 0.25s ease;
}
.step:hover .step-num { color: var(--g-silver); }
.step h3 { font-family: var(--font-brand); font-size: 1.15rem; font-weight: 500; margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

.proof { background: rgba(0,0,0,0.15); border-top: 1px solid rgba(200,200,202,0.04); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.proof-card:hover { transform: translateY(-3px); border-color: var(--border-h); }
.proof-card h3 { font-family: var(--font-brand); font-size: 1.15rem; font-weight: 500; margin-bottom: 14px; }
.proof-card p { font-size: 0.92rem; color: var(--text-2); line-height: 1.65; margin-bottom: 20px; }
.proof-card .tag {
  align-self: flex-start;
  padding: 5px 12px;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--border-h);
  color: var(--g-silver);
  border-radius: var(--radius);
}

/* ── CTA Final ───────────────────────────────────────────────── */
.cta-final {
  text-align: center;
  padding: 140px 24px;
  border-top: 1px solid rgba(200,200,202,0.06);
}
.cta-final h2 {
  font-family: var(--font-brand);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
  line-height: 1.12;
  color: var(--g-white);
}
.cta-final p {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.78;
  font-weight: 300;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  padding: 56px 24px;
  border-top: 1px solid rgba(200,200,202,0.06);
  background: rgba(0,0,0,0.3);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}
.eco-text { font-size: 0.8rem; color: var(--text-3); }
.eco { display: flex; gap: 24px; }
.eco a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.2s ease;
}
.eco a:hover { color: var(--g-silver); }

/* Badge Powered by SETNET — siempre en rojo SETNET, nunca grafito */
.setnet-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E2231A;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.setnet-badge:hover { opacity: 1; }
.setnet-badge svg { width: 17px; height: 17px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  .section-title { font-size: 2rem; }
  .cta-final h2 { font-size: 2.2rem; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .eco { flex-wrap: wrap; justify-content: center; }
}
