/*
Theme Name:   Apifica Child
Theme URI:    https://apifica.cl
Description:  Tema hijo de Hello Elementor para Apifica.cl
Author:       ResIT
Author URI:   https://resit.cl
Template:     hello-elementor
Version:      1.0.0
License:      Proprietary
Text Domain:  apifica-child
*/

/* ─── Design Tokens (mismo sistema que el Next.js) ──────────────────────── */
:root {
  /* Colores base (stone) */
  --bg:        #FAFAF9;
  --surface:   #F5F5F4;
  --surface-2: #E7E5E4;
  --border:    #D6D3D1;
  --text:      #1C1917;
  --text-2:    #57534E;
  --text-3:    #A8A29E;

  /* Brand */
  --brand:         #1E40AF;
  --brand-subtle:  #DBEAFE;
  --brand-subtler: #EFF6FF;
  --accent:        #0F766E;
  --accent-subtle: #CCFBF1;

  /* Semánticos */
  --success:       #16A34A;
  --success-subtle:#DCFCE7;
  --warning:       #D97706;
  --danger:        #DC2626;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(28,25,23,0.07), 0 1px 2px rgba(28,25,23,0.04);
  --shadow-md: 0 4px 12px rgba(28,25,23,0.08), 0 2px 6px rgba(28,25,23,0.04);
  --shadow-lg: 0 12px 32px rgba(28,25,23,0.10), 0 4px 12px rgba(28,25,23,0.06);

  /* Tipografía */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', monospace;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0C0A09;
    --surface:   #1C1917;
    --surface-2: #292524;
    --border:    #3D3835;
    --text:      #F5F5F4;
    --text-2:    #A8A29E;
    --text-3:    #57534E;
  }
}

/* ─── Reset base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

/* ─── Tipografía ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

/* ─── Animaciones globales (mismas que Next.js) ──────────────────────────── */
@keyframes apifica-ping {
  0%       { transform: scale(1); opacity: 0.5; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

@keyframes apifica-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes apifica-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Marquee mask */
.marquee-mask {
  -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
  mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
}

/* Hover lift */
.hover-lift {
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ─── Elementor overrides ────────────────────────────────────────────────── */
.elementor-section {
  position: relative;
}

/* Botón primario Apifica */
.e-btn-primary,
.elementor-button.apifica-primary {
  background: var(--brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  transition: opacity 150ms ease, transform 150ms ease !important;
}
.e-btn-primary:hover,
.elementor-button.apifica-primary:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
}

/* Botón outline Apifica */
.elementor-button.apifica-outline {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
}
.elementor-button.apifica-outline:hover {
  background: var(--surface) !important;
  border-color: var(--text-3) !important;
}

/* Cards */
.apifica-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

/* Eyebrow label */
.apifica-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--accent);
}

/* Pill/badge */
.apifica-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--brand-subtle);
  color: var(--brand);
}

/* ─── Fuentes (importar Geist desde Google Fonts o CDN) ──────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap');
