/*
Theme Name: Crayon IT
Template: generatepress
Version: 1.0
Description: Tema personalizado de Crayon IT SpA basado en GeneratePress
Author: Crayon IT SpA
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --accent:      #FB5C3B;
  --accent-h:    #ff7254;
  --accent-glow: rgba(251,92,59,0.35);
  --accent-dim:  rgba(251,92,59,0.12);
}

[data-theme="dark"] {
  --bg:       #080c12;
  --bg2:      #0d1320;
  --text:     #e8edf5;
  --muted:    #8fa3bc;
  --border:   rgba(251,92,59,0.15);
  --card:     rgba(255,255,255,0.03);
  --nav-bg:   rgba(8,12,18,0.9);
  --hr:       rgba(255,255,255,0.06);
  --shadow:   0 20px 60px rgba(0,0,0,0.5);
  --logo-filter: brightness(1.1);
}

[data-theme="light"] {
  --bg:       #f7f5f2;
  --bg2:      #ffffff;
  --text:     #111111;
  --muted:    #6b7280;
  --border:   rgba(251,92,59,0.2);
  --card:     rgba(0,0,0,0.025);
  --nav-bg:   rgba(247,245,242,0.94);
  --hr:       rgba(0,0,0,0.06);
  --shadow:   0 20px 60px rgba(0,0,0,0.07);
  --logo-filter: brightness(0.85);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg) !important;
  color: var(--text) !important;
  overflow-x: hidden;
  transition: background .35s, color .35s;
}

/* ── NAVEGACIÓN ── */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  background: var(--nav-bg) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background .35s;
}

.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 6%;
  max-width: 100%;
}

.site-logo img { height: 44px; filter: var(--logo-filter); }

.main-nav ul { display: flex; gap: 2rem; list-style: none; }
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: .55rem 1.4rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.nav-cta:hover { background: var(--accent-h); transform: translateY(-1px); }

.theme-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 52px;
  height: 28px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.theme-toggle::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .3s;
  box-shadow: 0 0 8px var(--accent-glow);
}
[data-theme="light"] .theme-toggle::before { transform: translateX(24px); }

.site-content { padding-top: 80px; }

/* ── CONTENIDO ── */
.site-main,
.content-area,
.widget-area,
.sidebar,
article,
.hentry,
.type-post,
.type-page,
.entry-header,
.entry-content,
.entry-footer,
.widget {
  background: transparent !important;
  background-color: transparent !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text) !important;
}

p { color: var(--muted); line-height: 1.75; }
a { color: var(--accent); }

.entry-title a { color: var(--text) !important; }
.entry-meta, .entry-meta a { color: var(--muted) !important; }
.widget-title { color: var(--text) !important; }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg2) !important;
  border-top: 1px solid var(--border);
  padding: 2.5rem 6%;
}
.site-footer .inside-site-info {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo img { height: 32px; filter: var(--logo-filter); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  color: var(--muted);
  font-size: .83rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: all .2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-copy { color: var(--muted); font-size: .78rem; }

/* ── WHATSAPP ── */
.wa-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 150;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.4);
  text-decoration: none;
  transition: all .2s;
  animation: wa-bounce 2s ease-in-out infinite;
}
.wa-btn:hover { transform: scale(1.12); animation: none; }
.wa-btn svg { width: 28px; height: 28px; fill: #fff; }
@keyframes wa-bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-header .inside-header { padding: 1rem 5%; }
  .main-nav { display: none; }
  .site-content { padding-top: 70px; }
}

/* ── FIX INSIDE-ARTICLE ── */
.inside-article {
  background: transparent !important;
  background-color: transparent !important;
}
