/* ═══════════════════════════════════════════════════
   IQSentral – main.css
   Estilos globales del tema
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── VARIABLES ───────────────────────────────────── */
:root {
  --white: #ffffff;
  --off-white: #f8f9fb;
  --light-gray: #f0f2f6;
  --border: #e4e8ef;
  --text-primary: #0d1117;
  --text-secondary: #5a6478;
  --text-light: #8b95a8;
  --accent: #0055ff;
  --accent-light: #3b82f6;
  --accent-pale: #eff4ff;
  --accent-mid: #dbeafe;
  --teal: #00b4a6;
  --teal-pale: #e6faf8;
  --success: #10b981;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --max-width: 1280px;
  --header-height: 70px;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,85,255,0.3);
}
.btn-primary:hover { background: #003dd6; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,85,255,0.35); color: white; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-primary);
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── HEADER ─────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 15px; color: white;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 19px;
  color: var(--text-primary); letter-spacing: -0.5px;
}
.logo-text span { color: var(--accent); }

/* Custom logo from WordPress */
.site-logo .custom-logo-link img {
  max-height: 40px; width: auto;
}

/* Hamburger */
.menu-toggle {
  background: none; border: none; cursor: pointer; padding: 6px;
  display: flex; flex-direction: column; gap: 5px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav Drawer */
#site-navigation {
  position: fixed; top: var(--header-height); right: 0;
  width: 260px; background: var(--white);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 0 var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 0;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 99;
}
#site-navigation.is-open { transform: translateX(0); }
#site-navigation ul { padding: 0; margin: 0; list-style: none; }
#site-navigation ul li a {
  display: block; padding: 14px 32px;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px;
  color: var(--text-primary);
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
#site-navigation ul li a:hover {
  color: var(--accent); border-left-color: var(--accent); background: var(--accent-pale);
}
#site-navigation .menu-cta a {
  margin: 16px 24px 0;
  display: block; text-align: center;
  background: var(--accent); color: white !important;
  border-radius: var(--radius-pill); padding: 12px 24px;
  border-left: none !important; border: none;
  font-family: 'Sora', sans-serif; font-weight: 600;
}
#site-navigation .menu-cta a:hover { background: #003dd6 !important; transform: translateY(-1px); }

.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.18); z-index: 98;
}
.nav-overlay.is-active { display: block; }

/* ── LAYOUT HELPERS ──────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-left: auto; margin-right: auto;
  padding: 0 80px;
}
.section-tag {
  display: inline-block;
  background: var(--teal-pale); color: var(--teal);
  border-radius: var(--radius-pill); padding: 5px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800; letter-spacing: -1px;
  color: var(--text-primary); margin-bottom: 12px; line-height: 1.2;
}
.section-sub {
  font-size: 16px; color: var(--text-secondary);
  max-width: 520px; margin-bottom: 50px; line-height: 1.7;
}

/* ── HERO ─────────────────────────────────────────── */
.hero-section {
  margin-top: var(--header-height);
  padding: 90px 80px 80px;
  max-width: var(--max-width); margin-left: auto; margin-right: auto;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-pale); border: 1px solid var(--accent-mid);
  border-radius: var(--radius-pill); padding: 6px 16px;
  font-size: 13px; font-weight: 500; color: var(--accent);
  margin-bottom: 24px;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:0.5; transform: scale(1.4); }
}
.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -1.5px; color: var(--text-primary); margin-bottom: 22px;
}
.hero-title .highlight {
  background: linear-gradient(120deg, var(--accent), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-description {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.75; max-width: 460px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image-col { position: relative; }
.hero-image-bg {
  position: absolute; inset: -20px;
  background: linear-gradient(135deg, var(--accent-pale), var(--teal-pale));
  border-radius: 24px; z-index: 0;
}
.hero-image-wrap {
  position: relative; z-index: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.hero-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-image-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 30px; width: 100%;
}
.hero-image-placeholder p {
  font-size: 13px; color: var(--text-light); text-align: center;
}

/* ── STATS STRIP ─────────────────────────────────── */
.stats-strip {
  background: var(--off-white);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 36px 80px;
}
.stats-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap;
}
.stat-item {
  text-align: center; padding: 10px 40px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 36px; font-weight: 800;
  color: var(--accent); letter-spacing: -1px; display: block;
}
.stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; margin-top: 2px; }

/* ── SERVICES ────────────────────────────────────── */
.services-section { padding: 90px 80px; max-width: var(--max-width); margin: 0 auto; }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 26px;
  position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0; transition: opacity 0.25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.card-icon.blue  { background: var(--accent-pale); }
.card-icon.teal  { background: var(--teal-pale); }
.card-icon.green { background: #d1fae5; }
.card-icon.orange{ background: #fff7ed; }
.service-card h3 {
  font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 10px; letter-spacing: -0.3px;
}
.service-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 18px; font-size: 13px; font-weight: 600;
  color: var(--accent); transition: gap 0.2s;
}
.card-link:hover { gap: 8px; color: var(--accent); }

/* ── ABOUT ───────────────────────────────────────── */
.about-section {
  background: var(--off-white);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 90px 80px;
}
.about-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.feature-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-secondary); }
.check-icon {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--accent); flex-shrink: 0; margin-top: 1px;
}
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  box-shadow: var(--shadow-sm); transition: transform 0.2s;
}
.about-card:hover { transform: translateY(-3px); }
.about-card.full { grid-column: span 2; }
.about-num { font-family: 'Sora', sans-serif; font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.about-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.about-bar { height: 4px; border-radius: 2px; margin-top: 14px; background: var(--light-gray); overflow: hidden; }
.about-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--teal)); }

/* ── CLIENTS ─────────────────────────────────────── */
.clients-section { padding: 80px 80px; max-width: var(--max-width); margin: 0 auto; text-align: center; }
.clients-section .section-title { margin-left: auto; margin-right: auto; }
.clients-section .section-sub { margin-left: auto; margin-right: auto; text-align: center; }
.clients-placeholder {
  margin-top: 40px; border: 2px dashed var(--border);
  border-radius: var(--radius); padding: 70px 40px;
  text-align: center; background: var(--off-white);
}
.clients-placeholder p { color: var(--text-light); font-size: 15px; }
.clients-logos-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  justify-content: center; margin-top: 24px;
}
.client-logo-slot {
  width: 120px; height: 50px;
  background: var(--light-gray); border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}
/* When logos are added via WordPress */
.clients-logos-row img {
  height: 50px; width: auto; object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.3s;
}
.clients-logos-row img:hover { filter: grayscale(0) opacity(1); }

/* ── CTA BAND ────────────────────────────────────── */
.cta-band {
  background: linear-gradient(120deg, var(--accent), #0044cc, var(--teal));
  padding: 70px 80px; text-align: center;
}
.cta-band h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800; color: white; letter-spacing: -1px;
  margin-bottom: 14px; max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.cta-band p {
  color: rgba(255,255,255,0.8); font-size: 16px; margin-bottom: 32px;
  max-width: 440px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--accent);
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px;
  padding: 15px 32px; border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.btn-white:hover { transform: translateY(-2px); color: var(--accent); }

/* ── FOOTER ──────────────────────────────────────── */
#colophon {
  background: #0d1117; color: #94a3b8;
  padding: 60px 80px 36px;
}
.footer-top {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 60px; align-items: start;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-col .logo-text { color: white; }
.footer-tagline { font-size: 13px; margin-top: 14px; line-height: 1.6; max-width: 220px; color: #64748b; }
.footer-badges { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  font-size: 12px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); padding: 4px 12px;
  border-radius: var(--radius-pill); color: #64748b;
}
.footer-nav-col { text-align: center; }
.footer-nav-col h4 {
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: #475569; margin-bottom: 18px;
}
.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-nav-col a { color: #94a3b8; font-size: 14px; transition: color 0.2s; }
.footer-nav-col a:hover { color: white; }
.footer-social-col { text-align: right; }
.footer-social-col h4 {
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: #475569; margin-bottom: 18px;
}
.social-links { display: flex; gap: 10px; justify-content: flex-end; }
.social-link {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #94a3b8;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.social-link:hover { background: var(--accent); color: white; border-color: var(--accent); transform: translateY(-2px); }
.footer-contact { margin-top: 24px; font-size: 13px; color: #64748b; line-height: 1.8; }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto; padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #475569; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: white; }

/* ── ANIMATIONS ──────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }

/* ── WORDPRESS BLOCK EDITOR ──────────────────────── */
.wp-block-image { margin: 2rem 0; }
.entry-content p { font-size: 16px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 1.25rem; }
.entry-content h1,.entry-content h2,.entry-content h3 {
  font-family: 'Sora', sans-serif; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-section, .services-section, .about-section, .stats-strip, .cta-band, #colophon { padding-left: 40px; padding-right: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { gap: 50px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-social-col { text-align: left; }
  .social-links { justify-content: flex-start; }
  .clients-section { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 768px) {
  #site-header { padding: 0 20px; }
  .hero-section { padding: 60px 24px 50px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image-col { max-width: 400px; margin: 0 auto; }
  .stats-strip { padding: 24px 24px; }
  .stat-item { border-right: none; padding: 8px 16px; }
  .services-section, .clients-section { padding: 60px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-section { padding: 60px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 50px 24px; }
  #colophon { padding: 40px 24px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-social-col { text-align: left; }
  .social-links { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
