/* ═══════════════════════════════════════════════════
   OLVEX — styles.css  (global base)
   Paleta: #0A0A0F | #7B2FFF | #2F6BFF
═══════════════════════════════════════════════════ */

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

:root {
  --bg:          #0A0A0F;
  --bg-2:        #0F0F17;
  --bg-card:     #111118;
  --bg-card2:    #16161f;
  --purple:      #7B2FFF;
  --blue:        #2F6BFF;
  --purple-dim:  rgba(123,47,255,0.12);
  --blue-dim:    rgba(47,107,255,0.10);
  --white:       #FFFFFF;
  --gray:        #6B6B7A;
  --gray-2:      rgba(255,255,255,0.45);
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(123,47,255,0.22);
  --grad:        linear-gradient(135deg,#7B2FFF,#2F6BFF);
  --grad-r:      linear-gradient(135deg,#2F6BFF,#7B2FFF);
  --shadow:      0 24px 80px rgba(0,0,0,0.5);
  --shadow-sm:   0 8px 32px rgba(0,0,0,0.3);
  --radius:      16px;
  --radius-sm:   10px;
  --ease:        cubic-bezier(0.4,0,0.2,1);
  --t:           0.35s;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── Gradiente texto ── */
.g { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Container ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 5%; }

/* ── Secciones ── */
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-dark { background: var(--bg-2); }
.section-darker { background: var(--bg-card); }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--purple);
  background: var(--purple-dim);
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(123,47,255,0.2);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 5px; height: 5px; background: var(--purple); border-radius: 50%; }

/* ── Títulos de sección ── */
.section-title { font-size: clamp(36px,4.5vw,58px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 18px; }
.section-sub   { font-size: 17px; font-weight: 300; color: var(--gray-2); line-height: 1.8; max-width: 580px; }
.header-center { text-align: center; }
.header-center .section-sub { margin: 0 auto; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 100px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; transition: all var(--t) var(--ease); cursor: pointer; }
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-sm { padding: 9px 20px; font-size: 13px; }

.btn-primary { background: var(--grad); color: #fff; border: none; }
.btn-primary:hover { opacity: 0.82; transform: scale(1.03); }
.btn-primary:active { transform: scale(0.97); }

.btn-outline { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.18); }
.btn-outline:hover { border-color: var(--purple); color: #fff; }

.btn-ghost { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.75); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); color: #fff; }

.btn svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ── Badge ── */
.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(123,47,255,0.2); }

/* ── Divider ── */
.divider { width: 40px; height: 2px; background: var(--grad); border-radius: 2px; margin: 20px 0; }
.divider-center { margin: 20px auto; }

/* ── Reveal animaciones ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.up { transform: translateY(36px); }
.reveal.left { transform: translateX(-36px); }
.reveal.right { transform: translateX(36px); }
.reveal.scale { transform: scale(0.94); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Grid utils ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── Noise overlay (textura sutil en hero) ── */
.noise::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.035;
}

/* ── Glow blobs ── */
.blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.blob-purple { background: rgba(123,47,255,0.18); }
.blob-blue   { background: rgba(47,107,255,0.14); }

/* ── Scroll hint ── */
.scroll-hint { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3; transition: opacity 0.5s; }
.scroll-hint span { font-size: 10px; letter-spacing: 0.18em; color: rgba(255,255,255,0.22); text-transform: uppercase; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom,rgba(123,47,255,0.65),transparent); animation: scrollPulse 2.2s ease-in-out infinite; }

/* ── Stat number ── */
.stat-num { font-size: clamp(44px,5vw,72px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.stat-label { font-size: 13px; color: var(--gray-2); letter-spacing: 0.04em; margin-top: 6px; }

/* ── Tag pills ── */
.tag { display: inline-block; font-size: 11px; font-weight: 500; padding: 4px 12px; border-radius: 100px; border: 1px solid var(--border-2); color: rgba(123,47,255,0.85); background: var(--purple-dim); }

/* ── Listas con check ── */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: rgba(255,255,255,0.72); }
.check-list li::before { content: ''; flex-shrink: 0; width: 20px; height: 20px; background: var(--grad); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 12px; }

/* ── Cards base ── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; transition: border-color var(--t), transform var(--t), box-shadow var(--t); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad); opacity: 0; transition: opacity var(--t); }
.card:hover { border-color: var(--border-2); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(123,47,255,0.12); }
.card:hover::before { opacity: 1; }

/* ── Número grande decorativo ── */
.deco-num { font-size: 80px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0.5; }

/* ── Separador de sección ── */
.section-sep { width: 100%; height: 1px; background: var(--border); }

/* ── Formulario ── */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.form-control { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px; color: #fff; font-size: 14px; font-weight: 300; outline: none; transition: border-color var(--t), background var(--t); resize: none; -webkit-appearance: none; appearance: none; width: 100%; }
.form-control::placeholder { color: rgba(255,255,255,0.18); }
.form-control:focus { border-color: rgba(123,47,255,0.5); background: rgba(123,47,255,0.04); }
.form-control option { background: #111118; color: #fff; }
select.form-control { cursor: pointer; }

/* ── Page hero (páginas internas) ── */
.page-hero { padding: 160px 0 100px; position: relative; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg::before { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(123,47,255,0.12) 0%, transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .section { padding: 90px 0; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .section-title { font-size: clamp(30px,8vw,44px); }
}

/* ── Keyframes ── */
@keyframes fadeUp     { to { opacity:1; transform:translateY(0); } }
@keyframes scrollPulse{ 0%,100%{opacity:.3} 50%{opacity:.9} }
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes pulse      { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes float      { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes shimmer    { 0%{background-position:-400px 0} 100%{background-position:400px 0} }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
