/* ============================================================
   GYTE S.A.S — Sistema de Diseño Base
   main.css · Variables · Reset · Tipografía · Utilidades
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Lora:ital,wght@1,400;1,500&display=swap');

/* ── Variables ── */
:root {
  /* Colores */
  --color-bg:          #0A1628;
  --color-bg-alt:      #0D1F3C;
  --color-bg-dark:     #0A1628;
  --color-bg-footer:   #0A1628;
  --color-primary:     #1E2F8F;
  --color-accent:      #00C3FF;
  --color-text:        #ffffff;
  --color-text-muted:  rgba(255,255,255,0.65);
  --color-border:      rgba(0,195,255,0.15);
  --color-card-bg:     rgba(255,255,255,0.04);
  --color-bg-white:    #0D1F3C;

  /* Overlays */
  --overlay-hero:  linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.5) 60%, transparent 100%);
  --overlay-photo: linear-gradient(to top, rgba(10,22,40,0.95), transparent);

  /* Tipografía */
  --font-primary: 'Sora', sans-serif;
  --font-serif:   'Lora', serif;

  --text-xs:   0.75rem;
  --text-sm:   0.85rem;
  --text-base: 0.95rem;
  --text-md:   1rem;
  --text-lg:   1.15rem;
  --text-xl:   1.35rem;
  --text-2xl:  1.75rem;
  --text-3xl:  clamp(1.6rem, 3vw, 2.4rem);
  --text-4xl:  2.6rem;
  --text-hero: clamp(2.8rem, 6vw, 5rem);

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

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Transiciones */
  --transition-fast:  0.2s ease;
  --transition-base:  0.35s ease;
  --transition-slow:  0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --max-width: 1280px;
  --navbar-h:  70px;
  --topbar-h:  38px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.85);
  transition: filter var(--transition-base);
}

img:hover {
  filter: saturate(1);
}

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
}

/* ── Tipografía ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: var(--text-hero); font-weight: 800; line-height: 1.1; }
h2 { font-size: var(--text-3xl);  font-weight: 700; }
h3 { font-size: var(--text-2xl);  font-weight: 600; }
h4 { font-size: var(--text-xl);   font-weight: 500; }

p { color: var(--color-text-muted); line-height: 1.7; font-size: var(--text-base); }

em { font-style: italic; font-weight: 300; }

/* ── Contenedor ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Secciones ── */
.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

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

.section-header {
  margin-bottom: var(--space-xl);
}

/* Cyan accent line under section labels */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: 1rem;
}

/* Cyan underline accent on section titles */
.section-title::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background-color: var(--color-accent);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base), color var(--transition-base),
              border-color var(--transition-base), transform var(--transition-fast),
              box-shadow var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Botón primario — fondo cyan, texto oscuro */
.btn-primary {
  background-color: var(--color-accent);
  color: #0A1628;
  border: 1.5px solid transparent;
}

.btn-primary:hover {
  background-color: #33ccff;
  box-shadow: 0 8px 24px rgba(0,195,255,0.35);
}

/* Botón ghost — borde blanco translúcido */
.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-ghost:hover {
  background-color: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.6);
}

/* Botón CTA navbar — cyan */
.btn-cta {
  background-color: var(--color-accent);
  color: #0A1628;
  border: 1.5px solid transparent;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.btn-cta:hover {
  background-color: #33ccff;
  box-shadow: 0 6px 20px rgba(0,195,255,0.4);
}

/* Botón WhatsApp — verde */
.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  transition: background-color var(--transition-base), transform var(--transition-fast),
              box-shadow var(--transition-base);
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

/* ── Separadores ── */
hr, .divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Flex utilidades ── */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-sm      { gap: var(--space-sm); }
.gap-md      { gap: var(--space-md); }
.gap-lg      { gap: var(--space-lg); }

/* ── Texto utilidades ── */
.text-accent  { color: var(--color-accent); }
.text-muted   { color: var(--color-text-muted); }
.text-center  { text-align: center; }
.text-sm      { font-size: var(--text-sm); }
.text-xs      { font-size: var(--text-xs); }
.uppercase    { text-transform: uppercase; letter-spacing: 0.1em; }
.font-serif   { font-family: var(--font-serif); font-style: italic; }

/* ── Tagline con borde ── */
.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
  line-height: 1.5;
}

/* ── Badge / Tag ── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--color-accent);
  color: #0A1628;
  border: none;
}

/* ── Stat ── */
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 0.4rem;
}

/* ── Animaciones base ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.visible,
.fade-in.visible,
.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-in, .slide-left, .slide-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0A1628; }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #33ccff; }

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Responsive base ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 4rem;
    --space-xl:  2.5rem;
  }
  .container { padding: 0 1.25rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-xl) 0; }
}

@media (max-width: 480px) {
  .btn { padding: 0.75rem 1.5rem; font-size: var(--text-xs); }
}
