/* ═══════════════════════════════════════════════════════════════
   SETNET.io — Brand CSS
   Paleta: Pantone 485C (#E2231A) + Pantone Black 4C (#31251C)
   Ver: BRAND_SYSTEM.md para decisiones de diseño
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&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; }
@font-face { font-family: 'Brandon Text'; src: url('../LOGO Ulpianus & Setnet/brandon-text/BrandonText-Black.woff2') format('woff2'); font-weight: 900; }

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --red:       #E2231A;   /* Pantone 485C — único acento cromático */
  --brown:     #31251C;   /* Pantone Black 4C — oscuro canónico */
  --brown-mid: #4A3828;   /* derivado — bordes, separadores */

  --bg:        #31251C;   /* fondo principal */
  --bg-card:   rgba(74, 56, 40, 0.40);
  --bg-card-h: rgba(74, 56, 40, 0.65);
  --border:    rgba(226, 35, 26, 0.14);
  --border-h:  rgba(226, 35, 26, 0.50);

  --text-1: #F5F0EC;      /* primario */
  --text-2: #B8A898;      /* secundario */
  --text-3: #7A6858;      /* muted */

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

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

/* ── Hex ghost texture (background) ─────────────────────────── */
/* Patrón hexagonal ghost — deriva del ícono de marca */
.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='%23E2231A' stroke-width='0.6' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 56px 64px;
  opacity: 1;
}

/* ── Diagonal hero element (geometría del logo escalada) ─────── */
.hero-diagonal {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 520px;
  height: 580px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 100;
  background: rgba(49, 37, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 35, 26, 0.12);
  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;
  text-decoration: none;
  line-height: 0;   /* evita espacio extra bajo la img */
}
.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--red); }

/* ── 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.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-inner { position: relative; }

.hero-badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 32px;
  border: 1px solid var(--red);
  color: var(--red);
  background: rgba(226, 35, 26, 0.08);
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero h1 .highlight { color: var(--red); }

.hero p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.75;
}

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

.cta-primary {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.cta-primary:hover { filter: brightness(1.12); transform: translateY(-2px); }

.cta-secondary {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid rgba(245, 240, 236, 0.15);
  color: var(--text-1);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cta-secondary:hover { border-color: var(--red); color: var(--red); }

.hero-trust {
  margin-top: 60px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trust span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid rgba(245, 240, 236, 0.07);
  border-radius: var(--radius);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  animation: floatGeo 9s ease-in-out infinite;
}
@keyframes floatGeo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ── 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.76rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
  line-height: 1.1;
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 680px;
  margin-bottom: 60px;
  line-height: 1.75;
}

/* Alternating section bg */
.pain {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* ── Cards ───────────────────────────────────────────────────── */
.pain-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.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, background 0.25s ease;
}
.pain-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-h);
  background: var(--bg-card-h);
}
.pain-item .quote {
  color: var(--red);
  font-size: 3rem;
  font-family: 'Georgia', serif;
  line-height: 1;
  position: absolute;
  top: 14px; left: 28px;
  opacity: 0.25;
}
.pain-item p {
  font-family: var(--font-body);
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.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, background 0.25s ease;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-h);
  background: var(--bg-card-h);
}
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-card .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.7;
}
.benefit-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.benefit-card p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}
.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(-4px); border-color: var(--red); }
.step-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.35;
  transition: opacity 0.25s ease;
}
.step:hover .step-num { opacity: 0.9; }
.step h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-family: var(--font-body); font-size: 0.92rem; color: var(--text-2); line-height: 1.65; }

.proof { background: rgba(0,0,0,0.12); border-top: 1px solid rgba(255,255,255,0.03); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.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(-4px); border-color: var(--red); }
.proof-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.proof-card p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.proof-card .tag {
  align-self: flex-start;
  padding: 5px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid var(--red);
  color: var(--red);
  background: rgba(226, 35, 26, 0.08);
  border-radius: var(--radius);
}

/* ── CTA Final ───────────────────────────────────────────────── */
.cta-final {
  text-align: center;
  padding: 140px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.cta-final h2 {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.cta-final p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  padding: 56px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.25);
}
.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-family: var(--font-body); font-size: 0.82rem; color: var(--text-3); }
.eco { display: flex; gap: 24px; }
.eco a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}
.eco a:hover { color: var(--red); }

/* ── Powered by SETNET badge ─────────────────────────────────── */
.setnet-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.setnet-badge:hover { opacity: 1; }
.setnet-badge svg { width: 18px; height: 18px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-inner { display: flex; flex-direction: column; align-items: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-diagonal { display: none; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.6rem; }
  .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; }
}
