/* ============================================
   TELVIA — Estilos compartidos
   ============================================ */

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

:root {
  --blue:      #3B82F6;
  --blue-dk:   #2563EB;
  --blue-lt:   #60A5FA;
  --dark:      #0F1117;
  --dark-2:    #1A1D27;
  --mid:       #6B7280;
  --light-bg:  #F8FAFC;
  --border:    #E5E7EB;
  --white:     #FFFFFF;
  --radius:    12px;
  --shadow:    0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

/* ── TIPOGRAFÍA ── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px;
  background: rgba(15, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex; gap: 32px; list-style: none; align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--blue);
  color: white;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-dk); }

/* ── BOTONES ── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--blue);
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--blue);
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--blue); color: white; }

/* ── HERO (páginas interiores) ── */
.page-hero {
  padding: 160px 60px 80px;
  background: linear-gradient(135deg, var(--dark) 0%, #1a2035 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}
.page-hero-content { position: relative; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── SECCIONES ── */
section { padding: 90px 60px; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 16px;
}
.section-sub {
  color: var(--mid);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 56px;
}
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--blue-lt);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.card-icon {
  width: 52px; height: 52px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.card p { color: var(--mid); font-size: 0.92rem; line-height: 1.65; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 48px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.footer-logo span { color: var(--blue); }
footer p { font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue-lt);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.badge::before { content: '●'; font-size: 0.45rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  section { padding: 60px 24px; }
  .page-hero { padding: 120px 24px 60px; }
  footer { padding: 40px 24px; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
