/* ═══════════════════════════════════════════════
   global.css — Reset, tipografía base y utilidades
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Nunito+Sans:wght@300;400;600;700&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg2);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 10px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Tipografía ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { color: var(--text2); line-height: 1.75; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section-sm {
  padding: 60px 0;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(0, 200, 255, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(0, 200, 255, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border2);
}
.btn-outline:hover {
  background: var(--cyan-glow2);
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ── Section heading ── */
.section-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--cyan);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text);
  margin-bottom: 16px;
}
.section-title span { color: var(--cyan); }

.section-desc {
  font-size: 1rem;
  color: var(--text2);
  max-width: 640px;
  line-height: 1.75;
}

/* ── Grids ── */
.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; }

/* ── Utilitarios ── */
.text-cyan   { color: var(--cyan); }
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-label::before { display: none; }
.text-center .section-desc { margin: 0 auto; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  color: var(--cyan);
  background: var(--cyan-glow2);
}

/* ── Separador decorativo ── */
.divider-cyan {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cyan), transparent);
  margin: 0;
  opacity: 0.3;
}

/* ── Animaciones de entrada ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Page Hero banner ── */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
  margin-top: var(--nav-h);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #020a16 0%, #071428 50%, #030d1f 100%);
  z-index: 0;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(0, 200, 255, 0.08) 0%, transparent 60%);
}
.page-hero .hex-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64'%3E%3Cpath d='M14 0l14 8v16l-14 8L0 24V8z' fill='none' stroke='%2300c8ff' stroke-width='0.8'/%3E%3Cpath d='M42 0l14 8v16l-14 8L28 24V8z' fill='none' stroke='%2300c8ff' stroke-width='0.8'/%3E%3Cpath d='M28 32l14 8v16l-14 8L14 56V40z' fill='none' stroke='%2300c8ff' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 56px 64px;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
  opacity: 0.8;
}
.page-hero h1 { color: #fff; }
.page-hero h1 span { color: var(--cyan); }
.page-hero p {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 600px;
  font-weight: 300;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
