/*
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,
.site-header .inside-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.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 {
  padding: 0 6%;
  height: 70px;
  width: 100%;
  box-sizing: border-box;
}
.site-header .inside-header > * { align-self: center; }

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

.main-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  height: 100%;
  margin-top: 24px;
}
.main-nav li { display: flex; align-items: center; }
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1;
  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-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.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);
  align-self: center;
}
.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;
  align-self: center;
}
.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: 0 !important;
  margin: 0 !important;
  display: block !important;
  width: 100% !important;
}
.separate-containers .site-content,
.separate-containers #inicio {
  padding: 0 !important;
  margin: 0 !important;
}
.separate-containers #inicio { width: 100% !important; }

.grid-container,
.inside-page-hero,
.page-hero-inner {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ══════════════════════════════════════
   CONTENIDO
   ══════════════════════════════════════ */
.site-main,
.content-area,
.widget-area,
.sidebar,
article,
.hentry,
.type-post,
.type-page,
.entry-header,
.entry-content,
.entry-footer,
.widget,
.inside-article {
  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;
  flex-direction: row;
  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;
  align-self: center;
}
.footer-links a {
  color: var(--muted);
  font-size: .83rem;
  line-height: 1;
  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 svg { width: 15px; height: 15px; display: block; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-copy {
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
  align-self: center;
  margin: 0;
  line-height: 1;
}

/* ══════════════════════════════════════
   WHATSAPP FLOTANTE
   ══════════════════════════════════════ */
.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 (animación de entrada al hacer scroll)
   ══════════════════════════════════════ */
.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; }

/* ══════════════════════════════════════
   FORMULARIOS EN MODO OSCURO
   ══════════════════════════════════════ */
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .search-field {
  background: #0d1320 !important;
  color: #e8edf5 !important;
  border: 1px solid rgba(251,92,59,0.2) !important;
  border-radius: 6px;
}
[data-theme="dark"] input[type="submit"],
[data-theme="dark"] button[type="submit"],
[data-theme="dark"] .search-submit {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px;
  cursor: pointer;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #6b7e96 !important;
}

/* ══════════════════════════════════════
   PÁGINA DE INICIO — SECCIONES BASE
   ══════════════════════════════════════ */
.section-dark  { background: var(--bg);  padding: 6rem 6% 1rem; position: relative; z-index: 1; }
.section-alt   { background: var(--bg2); padding: 6rem 6% 1rem; position: relative; z-index: 1; }
.s-inner       { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

/* Reduce el espacio superior cuando una sección oscura viene justo después del hero de página interna */
.page-hero + .section-dark,
.page-hero + .section-alt {
  padding-top: 2rem;
}

.s-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.s-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.s-inner h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 1rem;
}

.s-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ══════════════════════════════════════
   HERO (portada / inicio)
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 6% 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
  animation: grid-shift 22s linear infinite;
}
@keyframes grid-shift { to { background-position: 64px 64px; } }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(251,92,59,.15) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation: orb-f 8s ease-in-out infinite;
}
.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(251,92,59,.08) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation: orb-f 10s ease-in-out infinite reverse;
}
@keyframes orb-f {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
  color: var(--text) !important;
}
.hero-content h1 span { color: var(--accent); }

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: .9rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 20px var(--accent-glow);
  display: inline-block;
}
.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  padding: .9rem 2rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: .92rem;
  text-decoration: none;
  transition: all .2s;
  display: inline-block;
  background: var(--card);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Shield SVG */
.hero-shield { width: 280px; flex-shrink: 0; }
.hero-shield svg { width: 100%; height: auto; overflow: visible; }
.pulse-ring {
  animation: pulse 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes pulse {
  0%,100% { opacity: .3; transform: scale(1); }
  50%      { opacity: .7; transform: scale(1.08); }
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 1200px;
  margin: 3rem auto 0;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hstat {
  padding: 1.2rem 2rem;
  flex: 1;
  border-right: 1px solid var(--border);
}
.hstat:last-child { border-right: none; }
.hstat-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: .2rem;
}
.hstat-l { font-size: .78rem; color: var(--muted); }

/* ══════════════════════════════════════
   PAGE HERO (hero de páginas internas: servicios, blog, etc.)
   ══════════════════════════════════════ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 6% 2.5rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  min-height: auto;
}
.page-hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: block;
}
.page-hero .hero-eyebrow,
.page-hero h1,
.page-hero .hero-sub {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  color: var(--text) !important;
}
.page-hero h1 span { color: var(--accent) !important; }
.page-hero .hero-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 0;
}

/* ══════════════════════════════════════
   PARTNERS
   ══════════════════════════════════════ */
.partners-section {
  background: var(--bg);
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.partners-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.2rem;
}
.partners-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.partners-track {
  display: flex;
  gap: 1rem;
  padding-left: 2rem;
  animation: scroll-track 30s linear infinite;
  width: max-content;
}
.partners-track:hover { animation-play-state: paused; }
@keyframes scroll-track {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.partner-chip {
  padding: .5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
  background: var(--card);
}

/* ══════════════════════════════════════
   SERVICIOS GRID (home)
   ══════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.svc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: all .3s;
}
.svc-card:hover {
  border-color: rgba(251,92,59,.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.svc-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(251,92,59,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: box-shadow .3s;
}
.svc-card:hover .svc-icon-wrap { box-shadow: 0 0 20px var(--accent-glow); }
.svc-icon-wrap svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
}
.svc-card h3 {
  font-size: 1rem;
  margin-bottom: .6rem;
  color: var(--text) !important;
}
.svc-card p { font-size: .88rem; line-height: 1.65; }

/* ══════════════════════════════════════
   SERVICIOS ESPECÍFICOS (home)
   ══════════════════════════════════════ */
.specific-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.specific-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.specific-card:hover {
  border-color: rgba(251,92,59,.4);
  transform: translateY(-5px);
}
.specific-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(251,92,59,.25);
  padding: .2rem .7rem;
  border-radius: 20px;
  margin-bottom: .8rem;
}
.specific-card h3 {
  font-size: 1.05rem;
  margin-bottom: .6rem;
  color: var(--text) !important;
}
.specific-card p { font-size: .88rem; line-height: 1.65; flex: 1; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }
.specific-footer { text-align: center; }

/* ══════════════════════════════════════
   CATÁLOGO DE SERVICIOS (archive-servicios.php)
   Posicionamiento (evita que las tarjetas queden bajo los orbs
   decorativos del hero). El diseño visual completo de las tarjetas
   está en la sección "DISEÑO VISUAL DEL CATÁLOGO DE SERVICIOS" más abajo.
   ══════════════════════════════════════ */
.filter-bar,
.catalog-grid,
.catalog-card {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   CONTENIDO (blog / videos)
   ══════════════════════════════════════ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.content-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.content-type-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.content-ver-todos {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.content-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all .2s;
}
.content-card:hover {
  border-color: rgba(251,92,59,.4);
  transform: translateY(-3px);
}
.content-card .wp-post-image,
.content-card figure,
.content-card .post-thumbnail {
  display: none !important;
}
.content-card-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(251,92,59,.25);
  padding: .2rem .7rem;
  border-radius: 20px;
  margin-bottom: .8rem;
}
.content-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text) !important;
  line-height: 1.35;
  margin-bottom: .6rem;
}
.content-card p { font-size: .85rem; color: var(--muted); line-height: 1.65; }
.content-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--muted);
}
.content-leer { font-weight: 700; color: var(--accent); }

.video-card { padding: 0; overflow: hidden; }
.video-thumb {
  position: relative;
  padding-bottom: 52%;
  background: #000;
  overflow: hidden;
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  opacity: .85;
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play div {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.video-play svg { width: 20px; height: 20px; margin-left: 3px; }
.video-card .content-card-tag,
.video-card h3,
.video-card p { padding: 0 1.5rem; }
.video-card .content-card-tag { margin-top: 1.2rem; }
.video-card h3 { margin-top: .5rem; }
.video-card p  { padding-bottom: 1.5rem; }

/* ══════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: .2rem;
}
.contact-item strong { display: block; color: var(--text); margin-bottom: .3rem; }
.contact-item p { font-size: .9rem; margin: 0; }

/* Contact Form 7 (si se usa en vez del formulario propio) */
.wpcf7-form { display: flex; flex-direction: column; gap: 1rem; }
.wpcf7-form p { margin: 0; }
.wpcf7-form input,
.wpcf7-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .92rem;
  transition: border-color .2s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.wpcf7-form textarea { height: 130px; resize: vertical; }
.wpcf7-form input[type="submit"] {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 700;
  cursor: pointer;
  border: none !important;
  transition: all .2s;
}
.wpcf7-form input[type="submit"]:hover {
  background: var(--accent-h) !important;
  transform: translateY(-2px);
}

/* Formulario propio (crayon-form) */
.crayon-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .92rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { height: 130px; resize: vertical; }

.form-captcha {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}
.form-captcha span {
  color: var(--text);
  font-size: .9rem;
  min-width: 180px;
  flex-shrink: 0;
  white-space: nowrap;
}
.form-captcha input {
  width: 120px;
  min-width: 120px;
  flex-shrink: 0;
  padding: .85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .92rem;
  transition: border-color .2s;
}
.form-captcha input:focus {
  outline: none;
  border-color: var(--accent);
}

.crayon-form button[type="submit"] {
  background: var(--accent);
  color: #fff;
  padding: .9rem 2rem;
  border: none;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.crayon-form button[type="submit"]:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
}
.crayon-form button:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

#form-status {
  font-size: .9rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  display: none;
}
#form-status.success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: #22c55e;
  display: block;
}
#form-status.error {
  background: rgba(251,92,59,.1);
  border: 1px solid rgba(251,92,59,.3);
  color: var(--accent);
  display: block;
}

/* ══════════════════════════════════════
   COMENTARIOS
   ══════════════════════════════════════ */
#comments,
.comments-area,
.comment-list,
.comment-body,
.comment-content,
.comment-form,
.comment-respond {
  background: transparent !important;
  background-color: transparent !important;
}
.comments-title,
.comment-reply-title {
  color: var(--text) !important;
}
.comment-form input,
.comment-form textarea {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 6px;
  padding: .75rem 1rem;
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent) !important;
}
.comment-form .submit {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  padding: .75rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner       { grid-template-columns: 1fr; }
  .hero-shield      { display: none; }
  .services-grid    { grid-template-columns: 1fr 1fr; }
  .specific-grid    { grid-template-columns: 1fr 1fr; }
  .content-grid     { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .hero-stats       { flex-wrap: wrap; }
  .hstat            { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 600px) {
  .section-dark,
  .section-alt      { padding: 4rem 5%; }
  .hero             { padding: 7rem 5% 3rem; }
  .services-grid    { grid-template-columns: 1fr; }
  .specific-grid    { grid-template-columns: 1fr; }
  .hstat            { min-width: 100%; }
}


/* ══════════════════════════════════════
   CONTENIDO DE SINGLE-SERVICIOS
   (stats, urgencia, entregables, alcance, beneficios, pasos)
   ══════════════════════════════════════ */

/* Barra de stats (bajo el hero, ej: "21.719 · Dic 2026 · ISO/NIST · 4") */
.stat-bar {
  display: flex;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.stat-item {
  padding: 1.2rem 2rem;
  flex: 1;
  min-width: 140px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: .2rem;
}
.stat-l { font-size: .78rem; color: var(--muted); }

/* Grid de tarjetas informativas (ej: "Por qué es urgente", 3 columnas) */
.info-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
}
.info-card h4 {
  font-size: .98rem;
  margin-bottom: .6rem;
  color: var(--text);
}
.info-card p { font-size: .88rem; line-height: 1.65; margin: 0; }

/* Lista de entregables (checklist simple) */
.deliverables-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 2rem;
  list-style: none;
}
.deliverables-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.5;
}
.deliverables-list li::before {
  content: '\2713';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: .1rem;
  border-radius: 5px;
  background: var(--accent-dim);
  border: 1px solid rgba(251,92,59,.4);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* CTA final destacado (fondo naranja, como en el sitio original) */
.cta-banner {
  background: var(--accent);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin-top: 3rem;
}
.cta-banner h2 {
  color: #fff !important;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: rgba(255,255,255,.9);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.cta-banner .service-cta-btns {
  margin-top: 0;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--accent) !important;
  box-shadow: none;
}
.cta-banner .btn-primary:hover {
  background: #f2f2f2;
  color: var(--accent) !important;
}
.cta-banner .btn-ghost {
  border-color: rgba(255,255,255,.5);
  color: #fff;
  background: transparent;
}
.cta-banner .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* Dos columnas (alcance técnico vs legal) */
.scope-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.scope-col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: block;
}
.scope-item {
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.scope-item:first-of-type { border-top: none; }
.scope-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: .1rem;
}
.scope-icon svg {
  width: 100%; height: 100%;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scope-item h4 {
  font-size: .92rem;
  margin-bottom: .4rem;
  color: var(--text);
}
.scope-item p { font-size: .85rem; line-height: 1.6; margin: 0; }

/* Grid de beneficios (4 columnas) */
.benefits-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem;
}
.benefit-card h4 {
  font-size: .92rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.benefit-card p { font-size: .84rem; line-height: 1.6; margin: 0; }

/* Pasos numerados (ej: proceso DPO) */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
}
.step-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
.step-item:first-child { border-top: none; }
.step-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  width: 50px;
}
.step-item h4 {
  font-size: .95rem;
  margin-bottom: .4rem;
  color: var(--text);
}
.step-item p { font-size: .87rem; line-height: 1.6; margin: 0; color: var(--muted); }

/* Caja de modalidad / nota destacada */
.highlight-box {
  background: var(--accent-dim);
  border: 1px solid rgba(251,92,59,.3);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-top: 1.5rem;
}
.highlight-box strong { color: var(--accent); display: block; margin-bottom: .3rem; font-size: .85rem; }
.highlight-box p { font-size: .85rem; margin: 0; }

/* CTA final de la página de servicio */
.service-cta {
  text-align: center;
  padding: 3rem 0 1rem;
}
.service-cta h2 { margin-bottom: 1rem; }
.service-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

@media (max-width: 900px) {
  .info-grid-3, .benefits-grid-4, .scope-cols, .deliverables-list {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════
   PÁGINA DE LICENCIAS — badges y tarjetas de producto
   ══════════════════════════════════════ */

/* Badges de certificación (Microsoft AI Cloud Partner / CSP Direct) */
.cert-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}
.cert-badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.cert-badge-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(251,92,59,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-badge-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; }
.cert-badge h4 { font-size: .92rem; margin-bottom: .3rem; color: var(--text); }
.cert-badge p { font-size: .82rem; margin: 0; line-height: 1.5; }

/* Tarjetas de producto (Microsoft 365 / Dynamics 365 / Azure) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all .3s;
}
.product-card:hover {
  border-color: rgba(251,92,59,.4);
  transform: translateY(-5px);
}
.product-card-badge {
  position: absolute;
  top: -12px; right: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .3rem .8rem;
  border-radius: 20px;
}
.product-card .specific-tag { align-self: flex-start; }
.product-card h3 {
  font-size: 1.15rem;
  margin: .8rem 0 .6rem;
  color: var(--text);
}
.product-card > p { font-size: .88rem; line-height: 1.6; margin-bottom: 1.2rem; }
.product-feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.product-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}
.product-feat-list li::before {
  content: '\2713';
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--accent-dim);
  border: 1px solid rgba(251,92,59,.4);
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: .1rem;
}
.product-card .btn-primary,
.product-card .btn-ghost {
  text-align: center;
  align-self: stretch;
}

@media (max-width: 900px) {
  .cert-grid-2, .product-grid {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════
   DISEÑO VISUAL DEL CATÁLOGO DE SERVICIOS
   (archive-servicios.php) — mismo lenguaje que .svc-card / .content-card
   ══════════════════════════════════════ */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.catalog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all .3s;
}
.catalog-card:hover {
  border-color: rgba(251,92,59,.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-top { flex: 1; margin-bottom: 1.5rem; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(251,92,59,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.card-tag,
.card-partner {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .08em;
  padding: .2rem .7rem;
  border-radius: 20px;
  margin: 0 .4rem .8rem 0;
}
.card-tag {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(251,92,59,.25);
}
.card-partner {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(251,92,59,.3);
  text-transform: none;
  letter-spacing: normal;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: all .2s;
}
a.card-partner:visited {
  color: var(--accent);
}
a.card-partner:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.card-partner svg { width: 12px; height: 12px; flex-shrink: 0; }

.catalog-card h2 {
  font-size: 1.15rem;
  margin-bottom: .6rem;
}
.catalog-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.catalog-card h2 a:hover { color: var(--accent); }

.card-desc p {
  font-size: .88rem;
  line-height: 1.65;
  margin: 0;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.card-cta:hover { color: var(--accent); }
.card-cta svg { width: 14px; height: 14px; flex-shrink: 0; stroke: currentColor; transition: transform .2s; }
.card-cta:hover svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════
   MENÚ MÓVIL (hamburguesa)
   ══════════════════════════════════════ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  height: 70px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .site-header .inside-header { padding: 1rem 5%; }
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 1.5rem 6% 2rem;
  gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .nav-cta {
  display: inline-block;
  align-self: flex-start;
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}


/* ══════════════════════════════════════
   PÁGINA 404 — formulario de búsqueda
   ══════════════════════════════════════ */
.error-search {
  display: flex;
  gap: .8rem;
  max-width: 480px;
  margin-top: 1rem;
}
.error-search input {
  flex: 1;
  padding: .85rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .92rem;
}
.error-search input:focus {
  outline: none;
  border-color: var(--accent);
}
.error-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .85rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s;
}
.error-search button:hover { background: var(--accent-h); }

@media (max-width: 500px) {
  .error-search { flex-direction: column; }
}


/* ══════════════════════════════════════
   CONTENIDO LEGAL (Términos, Privacidad, etc.)
   ══════════════════════════════════════ */
.legal-content { max-width: 820px; }
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul, .legal-content ol {
  margin: 0 0 1.2rem 1.3rem;
  color: var(--muted);
  line-height: 1.75;
}
.legal-content li { margin-bottom: .5rem; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--accent); }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: .88rem;
}
.legal-content th, .legal-content td {
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  text-align: left;
}
.legal-content th {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}
.legal-content td { color: var(--muted); }
.legal-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-family: 'JetBrains Mono', monospace;
}
