/* =================================================================
   NELEDIGITAL — SISTEMA DE DISEÑO v2
   Aesthetic: Consultora técnica / Editorial sobrio
   ================================================================= */

/* --- TOKENS --- */
:root {
  /* Paleta */
  --color-bg: #F5F2EB;           /* Marfil cálido */
  --color-bg-alt: #EBE7DC;       /* Marfil más oscuro */
  --color-bg-dark: #0B1D2A;      /* Azul-negro profundo */
  --color-text: #0B1D2A;
  --color-text-muted: #5A6673;
  --color-text-light: #8A939C;
  --color-accent: #1E5AA6;       /* Azul técnico */
  --color-accent-hover: #164680;
  --color-gold: #B8935A;         /* Dorado sutil */
  --color-line: #D8D2C4;
  --color-line-dark: #C4BCA8;
  --color-white: #FFFFFF;

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 8rem;

  /* Layout */
  --max-width: 1280px;
  --content-width: 960px;
  --gutter: 2rem;

  /* Transiciones */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.4s;
}

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  /* Grid técnico sutil de fondo */
  background-image:
    linear-gradient(to right, rgba(11, 29, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 29, 42, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* --- TIPOGRAFÍA --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 500;
}

p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 400;
}

em {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--color-accent);
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

/* --- ETIQUETAS TÉCNICAS (section tags) --- */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
}

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--space-xxl) 0;
  position: relative;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--color-line);
  margin: 0;
}

/* =================================================================
   NAVIGATION
   ================================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
  transition: all var(--dur) var(--ease);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.125rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.nav-brand img {
  width: 32px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--dur) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.625rem 1.25rem;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--dur) var(--ease);
}

.nav-cta:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-text);
  margin: 6px 0;
  transition: all var(--dur) var(--ease);
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  min-height: 100vh;
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(184, 147, 90, 0.15);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(184, 147, 90, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(184, 147, 90, 0.08); }
}

.hero-meta-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero h1 {
  margin-bottom: 2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 300;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual {
  position: relative;
  padding: 2rem;
}

/* Visual técnico: composición geométrica */
.hero-diagram {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin-left: auto;
}

.hero-diagram-frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-line-dark);
}

.hero-diagram-frame::before,
.hero-diagram-frame::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--color-text);
}

.hero-diagram-frame::before {
  top: -6px;
  left: -6px;
  border-right: none;
  border-bottom: none;
}

.hero-diagram-frame::after {
  bottom: -6px;
  right: -6px;
  border-left: none;
  border-top: none;
}

.hero-diagram-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 70%;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

.hero-diagram-circle-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45%;
  height: 45%;
  border: 1px dashed var(--color-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  animation: spin 40s linear infinite;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-diagram-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.hero-diagram-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-line-dark);
}

.hero-diagram-label.lbl-1 { top: 15%; left: -30px; }
.hero-diagram-label.lbl-2 { top: 15%; right: -10px; }
.hero-diagram-label.lbl-3 { bottom: 18%; left: 8%; }
.hero-diagram-label.lbl-4 { bottom: 15%; right: -20px; }

.hero-stats {
  margin-top: 5rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--color-line);
}

.hero-stat {
  flex: 1;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-ghost {
  color: var(--color-text);
  padding: 0.875rem 0;
  position: relative;
}

.btn-ghost::after {
  content: '→';
  transition: transform var(--dur) var(--ease);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* =================================================================
   PILLARS (Tres pilares)
   ================================================================= */
.pillars {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.pillars-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: end;
}

.pillars-header h2 {
  max-width: 500px;
}

.pillars-header p {
  max-width: 420px;
  padding-bottom: 0.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 480px));
  gap: 0;
  border-top: 1px solid var(--color-line-dark);
  justify-content: center;
}

.pillar {
  padding: 3rem 2rem;
  border-right: 1px solid var(--color-line-dark);
  background: var(--color-bg);
  transition: all var(--dur) var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar:last-child {
  border-right: none;
}

.pillar:hover {
  background: var(--color-white);
  transform: translateY(-2px);
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

.pillar h3 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.pillar p {
  font-size: 0.975rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pillar-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-link::after {
  content: '→';
  transition: transform var(--dur) var(--ease);
}

.pillar-link:hover::after {
  transform: translateX(4px);
}

/* =================================================================
   DIFERENCIAL (Por qué Neledigital)
   ================================================================= */
.differential {
  background: var(--color-bg);
}

.differential-header {
  max-width: 720px;
  margin-bottom: 5rem;
}

.differential-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
}

.diff-item {
  padding: 2.5rem;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  display: flex;
  gap: 1.5rem;
}

.diff-mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.diff-content h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.diff-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* =================================================================
   NEGACIONES (Lo que no somos)
   ================================================================= */
.negations {
  background: var(--color-bg-dark);
  color: var(--color-bg);
}

.negations .section-tag {
  color: var(--color-gold);
}

.negations .section-tag::before {
  background: var(--color-gold);
}

.negations h2 {
  color: var(--color-bg);
  max-width: 760px;
  margin-bottom: 4rem;
}

.negations h2 em {
  color: var(--color-gold);
  font-style: italic;
}

.negations-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(245, 242, 235, 0.15);
}

.negation {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(245, 242, 235, 0.15);
  padding-right: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}

.negation:nth-child(odd) {
  padding-right: 3rem;
  border-right: 1px solid rgba(245, 242, 235, 0.15);
  padding-left: 0;
}

.negation:nth-child(even) {
  padding-left: 3rem;
}

.negation-x {
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-size: 1rem;
  flex-shrink: 0;
}

.negation-text {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(245, 242, 235, 0.85);
}

.negation-text strong {
  color: var(--color-bg);
  font-weight: 500;
}

/* =================================================================
   CTA FINAL
   ================================================================= */
.cta-final {
  text-align: center;
  padding: var(--space-xl) 0;
  background: var(--color-bg);
}

.cta-final h2 {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.cta-final p {
  max-width: 540px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

.cta-final-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-bg);
  padding: 5rem 0 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-bg);
}

.footer-brand-logo img {
  width: 36px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(245, 242, 235, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: rgba(245, 242, 235, 0.75);
  font-size: 0.95rem;
  transition: color var(--dur) var(--ease);
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 242, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 242, 235, 0.75);
  transition: all var(--dur) var(--ease);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--color-gold);
  color: var(--color-bg-dark);
  border-color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 242, 235, 0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.825rem;
  color: rgba(245, 242, 235, 0.55);
  font-family: var(--font-mono);
}

.footer-disclaimer {
  max-width: 100%;
  padding: 1.5rem;
  background: rgba(245, 242, 235, 0.05);
  border: 1px solid rgba(245, 242, 235, 0.1);
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: rgba(245, 242, 235, 0.7);
  line-height: 1.6;
}

.footer-disclaimer strong {
  color: var(--color-gold);
  font-weight: 500;
}

/* =================================================================
   NOSOTROS PAGE
   ================================================================= */
.page-header {
  padding: 10rem 0 5rem;
  border-bottom: 1px solid var(--color-line);
}

.page-header-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: end;
}

.page-header-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  max-width: 720px;
}

.page-header .lead {
  max-width: 620px;
  margin-top: 2rem;
}

/* Sobre el fundador */
.founder {
  padding: var(--space-xl) 0;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.founder-portrait {
  position: sticky;
  top: 6rem;
}

.founder-portrait-frame {
  position: relative;
  padding: 1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
}

.founder-portrait-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.6s var(--ease);
}

.founder-portrait-frame:hover img {
  filter: grayscale(0%) contrast(1);
}

.founder-portrait-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
}

.founder-content h2 {
  margin-bottom: 2rem;
  font-weight: 300;
}

.founder-content p {
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  line-height: 1.7;
}

.founder-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  float: left;
  line-height: 0.9;
  padding: 0.3rem 0.8rem 0 0;
  color: var(--color-accent);
  font-weight: 300;
}

.founder-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.founder-meta-item h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.founder-meta-item p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--color-text);
}

/* Misión */
.mission {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: var(--space-xxl) 0;
}

.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.3;
  font-weight: 300;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: -0.02em;
}

.mission-quote em {
  color: var(--color-accent);
  font-style: italic;
}

/* Pilares filosóficos (nosotros) */
.philosophy {
  padding: var(--space-xxl) 0;
}

.philosophy-header {
  max-width: 640px;
  margin-bottom: 5rem;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.philosophy-item {
  padding: 3rem 2rem 3rem 0;
  border-right: 1px solid var(--color-line);
}

.philosophy-item:last-child {
  border-right: none;
  padding-right: 0;
}

.philosophy-item:not(:first-child) {
  padding-left: 2rem;
}

.philosophy-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.philosophy-item h3 {
  margin-bottom: 1rem;
}

.philosophy-item p {
  font-size: 0.975rem;
}

/* Certificaciones */
.certifications {
  background: var(--color-bg-alt);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-line);
}

.certifications-header {
  text-align: center;
  margin-bottom: 4rem;
}

.certifications-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

/* =================================================================
   CONTACTO PAGE
   ================================================================= */
.contact {
  padding: var(--space-xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 2rem;
  font-weight: 400;
}

.contact-info .lead {
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.contact-method {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--dur) var(--ease);
}

.contact-method:hover {
  padding-left: 0.75rem;
}

.contact-method-left h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.contact-method-left p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  margin: 0;
  font-weight: 400;
}

.contact-method-icon {
  font-size: 1.25rem;
  color: var(--color-accent);
  transition: transform var(--dur) var(--ease);
}

.contact-method:hover .contact-method-icon {
  transform: translateX(4px);
}

/* Form */
.contact-form {
  background: var(--color-bg-alt);
  padding: 3rem;
  border: 1px solid var(--color-line);
}

.contact-form h3 {
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.contact-form-intro {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid var(--color-line-dark);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--dur) var(--ease);
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-footer {
  margin-top: 2rem;
}

.form-submit {
  width: 100%;
  padding: 1.125rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.form-submit:hover {
  background: var(--color-accent);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.5;
}

/* =================================================================
   FLOATING SOCIAL BUTTON
   ================================================================= */
.float-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: all var(--dur) var(--ease);
}

.float-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* =================================================================
   REVEAL ANIMATIONS
   ================================================================= */
/* Por defecto todo es visible. Solo cuando JS añade .js-enabled al html
   se activan las animaciones. Así el sitio funciona sin JS también. */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.9s var(--ease);
}

.js-enabled .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .hero-grid,
  .page-header-grid,
  .founder-grid,
  .contact-grid,
  .pillars-header {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pillars-grid,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .pillar,
  .philosophy-item {
    border-right: none;
    border-bottom: 1px solid var(--color-line-dark);
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .pillar:last-child,
  .philosophy-item:last-child {
    border-bottom: none;
  }

  .differential-grid,
  .negations-list {
    grid-template-columns: 1fr;
  }

  .negation:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }

  .negation:nth-child(even) {
    padding-left: 0;
  }

  .founder-portrait {
    position: relative;
    top: 0;
    max-width: 400px;
    margin: 0 auto;
  }

  .founder-meta {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  :root {
    --space-xl: 4rem;
    --space-xxl: 5rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .page-header {
    padding: 7rem 0 3rem;
  }

  .page-header h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-mobile-open .nav-links {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--color-line);
  }

  .nav-mobile-open .nav-links a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    margin-top: 2.5rem;
    flex-wrap: wrap;
    gap: 1.75rem 2rem;
    padding-top: 1.5rem;
  }

  .hero-stat {
    flex: 1 1 40%;
    min-width: 130px;
  }

  .hero-stat-value {
    font-size: 1.75rem;
  }

  .founder-content > p:first-of-type::first-letter {
    font-size: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .float-whatsapp {
    width: 52px;
    height: 52px;
    bottom: 1.25rem;
    right: 1.25rem;
    font-size: 1.35rem;
  }
}

/* =================================================================
   UTILITIES
   ================================================================= */
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =================================================================
   ACADEMIA — PLANES Bronze / Silver / Gold
   ================================================================= */
.academy-intro {
  padding: var(--space-xxl) 0 var(--space-lg);
}

.academy-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.academy-intro h2 {
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.academy-intro h2 em {
  color: var(--color-accent);
  font-style: italic;
}

.academy-intro p {
  font-size: 1.0625rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* Planes grid */
.plans {
  padding: var(--space-lg) 0 var(--space-xxl);
}

.plans-header {
  max-width: 720px;
  margin-bottom: 4rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line-dark);
  border-left: 1px solid var(--color-line-dark);
}

.plan {
  background: var(--color-bg);
  padding: 3rem 2.25rem;
  border-right: 1px solid var(--color-line-dark);
  border-bottom: 1px solid var(--color-line-dark);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--dur) var(--ease);
}

.plan:hover {
  background: var(--color-white);
}

.plan-featured {
  background: var(--color-bg-dark);
  color: var(--color-bg);
}

.plan-featured:hover {
  background: var(--color-bg-dark);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 2rem;
  background: var(--color-gold);
  color: var(--color-bg-dark);
  padding: 0.35rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.plan-tier {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.plan-bronze .plan-tier { color: #A16528; }
.plan-silver .plan-tier { color: #7E8A94; }
.plan-gold .plan-tier { color: var(--color-gold); }

.plan-name {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan-featured .plan-name {
  color: var(--color-bg);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.plan-price-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.plan-price-currency {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.plan-featured .plan-price-currency {
  color: rgba(245, 242, 235, 0.6);
}

.plan-tagline {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-line);
  min-height: 3.5rem;
}

.plan-featured .plan-tagline {
  color: rgba(245, 242, 235, 0.65);
  border-bottom-color: rgba(245, 242, 235, 0.15);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.925rem;
  line-height: 1.5;
  padding: 0.6rem 0 0.6rem 1.75rem;
  position: relative;
  color: var(--color-text);
  border-bottom: 1px dashed var(--color-line);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-featured .plan-features li {
  color: rgba(245, 242, 235, 0.92);
  border-bottom-color: rgba(245, 242, 235, 0.12);
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 10px;
  height: 1px;
  background: var(--color-accent);
}

.plan-featured .plan-features li::before {
  background: var(--color-gold);
}

.plan-features .feature-more {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  padding-left: 0;
  border-bottom: none;
}

.plan-featured .feature-more {
  color: var(--color-gold);
}

.plan-features .feature-more::before {
  display: none;
}

.plan-cta {
  margin-top: auto;
}

.plan-pay {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.plan-pay-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.plan-featured .plan-pay-label {
  color: rgba(245, 242, 235, 0.55);
}

.plan-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-line-dark);
  background: var(--color-bg);
  font-size: 0.85rem;
  font-weight: 500;
  gap: 0.5rem;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
}

.plan-featured .plan-pay-btn {
  background: rgba(245, 242, 235, 0.05);
  border-color: rgba(245, 242, 235, 0.2);
  color: var(--color-bg);
}

.plan-pay-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.plan-featured .plan-pay-btn:hover {
  background: var(--color-gold);
  color: var(--color-bg-dark);
  border-color: var(--color-gold);
}

.plan-pay-btn img {
  height: 18px;
  width: auto;
}

/* Notas debajo de planes */
.plans-note {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: var(--color-bg-alt);
  border-left: 2px solid var(--color-accent);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.plans-note strong {
  color: var(--color-text);
}

/* =================================================================
   TIENDA — D'CENT WALLET
   ================================================================= */
.store {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: var(--space-xxl) 0;
}

.store-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

.store-header h2 em {
  color: var(--color-accent);
  font-style: italic;
}

.store-header p {
  padding-bottom: 0.25rem;
  max-width: 460px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--color-line-dark);
}

.product {
  padding: 3rem;
  background: var(--color-bg);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: center;
  border-right: 1px solid var(--color-line-dark);
  transition: background var(--dur) var(--ease);
}

.product:last-child {
  border-right: none;
}

.product:hover {
  background: var(--color-white);
}

.product-img {
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img img {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.product-sku {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.product-features li {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
  color: var(--color-text);
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 1px;
  background: var(--color-accent);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
  flex-wrap: wrap;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.product-price-currency {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-left: 0.25rem;
}

.product-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--dur) var(--ease);
}

.product-buy:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* =================================================================
   VIDEO EMBED
   ================================================================= */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--color-line-dark);
  background: var(--color-bg-dark);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-section {
  padding: var(--space-lg) 0;
  background: var(--color-bg);
}

.video-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.video-section-header h2 {
  font-weight: 300;
}

.video-section-header h2 em {
  color: var(--color-accent);
  font-style: italic;
}

/* =================================================================
   CIBERSEGURIDAD — topics
   ================================================================= */
.cyber-topics {
  padding: var(--space-xxl) 0;
}

.cyber-topics-header {
  max-width: 720px;
  margin-bottom: 4rem;
}

.cyber-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line-dark);
  border-left: 1px solid var(--color-line-dark);
}

.cyber-topic {
  padding: 2.5rem 2rem;
  background: var(--color-bg);
  border-right: 1px solid var(--color-line-dark);
  border-bottom: 1px solid var(--color-line-dark);
  transition: background var(--dur) var(--ease);
}

.cyber-topic:hover {
  background: var(--color-white);
}

.cyber-topic-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.cyber-topic-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--color-text);
}

.cyber-topic h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.cyber-topic p {
  font-size: 0.925rem;
  line-height: 1.55;
}

/* =================================================================
   RESPONSIVE para academia, tienda, cyber
   ================================================================= */
@media (max-width: 1024px) {
  .academy-intro-grid,
  .store-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    border-left: none;
    border-top: none;
  }

  .plan {
    border-right: none;
  }

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

  .product {
    border-right: none;
    border-bottom: 1px solid var(--color-line-dark);
  }

  .product:last-child {
    border-bottom: none;
  }

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

@media (max-width: 720px) {
  .product {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .product-img {
    max-width: 220px;
    margin: 0 auto;
  }

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

  .plan {
    padding: 2.5rem 1.5rem;
  }

  .plans-note {
    padding: 1.25rem 1.5rem;
  }
}
