/*
Theme Name: WizTech Child
Theme URI: https://wiztechcr.com
Description: Tema hijo de Astra para WizTech — Confianza instalada.
Author: WizTech
Template: astra
Version: 0.5.0
Text Domain: wiztech-child
*/

/* ============ TOKENS ============ */
:root {
  /* Color */
  --morado: #4D1D95;
  --morado-oscuro: #2D1B5E;
  --morado-tinte: #F4F1FB;
  --azul-carbon: #1E293B;
  --azul-medio: #334155;
  --cyan: #06B6D4;          /* Acentos visuales sobre fondos claros u oscuros */
  --cyan-text: #0891B2;     /* Texto pequeño sobre claro — WCAG AA (ratio 4.55) */
  --cyan-claro: #67E8F9;
  --negro: #0A0A0F;
  --gris-900: #1F1F2A;
  --gris-700: #475569;
  --gris-500: #64748B;
  --gris-300: #CBD5E1;
  --gris-100: #F1F5F9;
  --blanco: #FAFAF7;
  --blanco-puro: #FFFFFF;

  /* Tipografía */
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'Poppins', -apple-system, sans-serif;

  /* Escala tipográfica unificada */
  --fs-display-1: clamp(48px, 7vw, 88px);   /* H1 hero */
  --fs-display-2: clamp(40px, 5vw, 64px);   /* H2 sección */
  --fs-display-3: clamp(34px, 4.5vw, 56px); /* H2 sub / H3 grande */
  --fs-display-4: clamp(28px, 3.5vw, 40px); /* H3 / cards grandes */
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 13px;
  --fs-eyebrow: 12px;

  /* Spacing tokens */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Radios */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 100px;
}

/* ============ RESET DE ASTRA EN LA HOME ============ */
body.home,
body.page-template-front-page {
  font-family: var(--body);
  background: var(--blanco);
  color: var(--negro);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Romper TODOS los wrappers de Astra para que las secciones vayan edge-to-edge */
body.home #page,
body.page-template-front-page #page {
  background: var(--blanco);
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.home #content,
body.page-template-front-page #content,
body.home .site-content,
body.page-template-front-page .site-content,
body.home .ast-container,
body.page-template-front-page .ast-container,
body.home #primary,
body.page-template-front-page #primary,
body.home .ast-article-single,
body.page-template-front-page .ast-article-single,
body.home .entry-content,
body.page-template-front-page .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  background: transparent !important;
}

/* ocultar header/footer y barra admin top de Astra en home */
body.home #masthead,
body.page-template-front-page #masthead,
body.home #colophon,
body.page-template-front-page #colophon,
body.home .entry-header,
body.page-template-front-page .entry-header { display: none !important; }

/* ============ A11Y ============ */
.wz-skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--morado); color: white;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  text-decoration: none; z-index: 9999;
  transition: top 0.2s ease;
}
.wz-skip-link:focus { top: 16px; outline: 3px solid var(--cyan); }

/* Focus visible global — solo aparece para teclado, no para mouse */
.wz-bare a:focus-visible,
.wz-bare button:focus-visible,
.wz-bare input:focus-visible,
.wz-bare select:focus-visible,
.wz-bare textarea:focus-visible {
  outline: 3px solid var(--morado);
  outline-offset: 2px;
  border-radius: 4px;
}
.wz-bare .wz-btn-primary:focus-visible,
.wz-bare .wz-product-cta:focus-visible,
.wz-bare .wz-btn-nav:focus-visible { outline-offset: 4px; }

/* ============ NAV ============ */
.wz-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 40px;
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(30,41,59,0.08);
  transition: all 0.3s ease;
}
.wz-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.wz-logo { text-decoration: none; cursor: pointer; display: flex; align-items: center; }
.wz-logo img { height: 36px; width: auto; display: block; }
.wz-nav-links { display: flex; gap: 36px; align-items: center; list-style: none; margin: 0; padding: 0; }
.wz-nav-links a {
  color: var(--azul-medio); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s ease;
}
.wz-nav-links a:hover, .wz-nav-links a.active { color: var(--morado); }
.wz-btn-nav {
  background: var(--morado); color: white !important;
  padding: 10px 22px; border-radius: 100px;
  font-size: 13px !important; font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(77, 29, 149, 0.25);
  text-decoration: none;
}
.wz-btn-nav:hover {
  background: var(--azul-carbon);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.3);
}

/* ============ PAGES / CONTAINER ============ */
.wz-page { min-height: 100vh; padding-top: 86px; }
.wz-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ============ HERO ============ */
.wz-hero { padding: 80px 0 120px; position: relative; overflow: hidden; }
.wz-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
.wz-eyebrow {
  font-family: var(--body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--morado);
  margin-bottom: 24px; display: inline-block;
}
.wz-eyebrow.cyan { color: var(--cyan-text); }
.wz-hero h1 {
  font-family: var(--display);
  font-size: var(--fs-display-1);
  font-weight: 400; line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--azul-carbon); margin-bottom: 28px;
}
.wz-hero h1 em { font-style: italic; font-weight: 500; color: var(--morado); }
.wz-hero p.lead {
  font-size: 18px; color: var(--gris-700);
  max-width: 480px; line-height: 1.6;
  margin-bottom: 40px; font-weight: 400;
}
.wz-cta-group { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.wz-btn-primary {
  background: var(--morado); color: white;
  padding: 16px 32px; border-radius: 100px;
  text-decoration: none; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s ease; border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(77, 29, 149, 0.25);
}
.wz-btn-primary:hover {
  background: var(--azul-carbon);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(30, 41, 59, 0.3);
  color: white;
}
.wz-btn-secondary {
  color: var(--azul-carbon); padding: 16px 8px;
  text-decoration: none; font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.3s ease;
}
.wz-btn-secondary:hover { gap: 12px; color: var(--morado); }

.wz-hero-visual { position: relative; height: 540px; }
.wz-visual-card {
  position: absolute; background: var(--blanco-puro);
  border-radius: 24px;
  box-shadow: 0 40px 80px -20px rgba(77, 29, 149, 0.25), 0 2px 4px rgba(0,0,0,0.04);
  padding: 32px;
  border: 1px solid rgba(30,41,59,0.06);
}
.wz-visual-card.main {
  top: 40px; left: 0; right: 60px; bottom: 40px;
  background: linear-gradient(135deg, var(--morado) 0%, var(--azul-carbon) 100%);
  overflow: hidden;
}
.wz-visual-card.main::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.25) 0%, transparent 50%);
}
.wz-visual-card-main-content {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  justify-content: space-between; color: white;
}
.wz-shield-icon {
  width: 80px; height: 80px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.wz-shield-icon svg { width: 36px; height: 36px; }
.wz-visual-stats {
  font-family: var(--display);
  font-size: 56px; font-weight: 500;
  line-height: 1; font-style: italic;
  margin-bottom: 8px; color: white;
}
.wz-visual-stats-label {
  font-size: 11px; color: rgba(255,255,255,0.7);
  letter-spacing: 0.18em; font-weight: 500;
}
.wz-visual-card.float {
  bottom: 0; right: 0; width: 240px;
  padding: 24px; background: white; z-index: 2;
  border-left: 3px solid var(--cyan);
}
.wz-float-icon {
  width: 40px; height: 40px;
  background: var(--morado-tinte);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.wz-float-title { font-size: 14px; font-weight: 600; color: var(--azul-carbon); margin-bottom: 4px; }
.wz-float-desc { font-size: 12px; color: var(--gris-500); line-height: 1.5; }

/* ============ MARCAS ============ */
.wz-brands {
  padding: 60px 0;
  border-top: 1px solid var(--gris-300);
  border-bottom: 1px solid var(--gris-300);
  background: var(--blanco);
}
.wz-brands-label {
  text-align: center; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gris-500); margin-bottom: 32px; font-weight: 600;
}
.wz-brands-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 48px 56px; align-items: center; justify-items: center;
}
.wz-brand-logo {
  width: 100%; max-width: 140px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.wz-brand-logo img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
}
/* Grayscale solo en el grid del home (no contamina Nosotros) */
.wz-brands-grid .wz-brand-logo img { filter: grayscale(100%) opacity(0.65); }
.wz-brands-grid .wz-brand-logo:hover img { filter: grayscale(0%) opacity(1); }

/* ============ SECCIONES ============ */
.wz-section { padding: 120px 0; }
.wz-section-header { max-width: 720px; margin-bottom: 80px; }
.wz-section h2 {
  font-family: var(--display);
  font-size: var(--fs-display-2);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--azul-carbon); margin-bottom: 24px;
}
.wz-section h2 em { font-style: italic; color: var(--morado); }
.wz-section p.section-lead { font-size: 18px; color: var(--gris-700); line-height: 1.6; }

.wz-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wz-service-card {
  background: white;
  border: 1px solid var(--gris-300);
  border-radius: 24px; padding: 40px 36px;
  transition: all 0.4s ease;
  cursor: pointer; position: relative; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
}
.wz-service-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--morado), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.wz-service-card:hover {
  border-color: var(--morado);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(77, 29, 149, 0.15);
}
.wz-service-card:hover::before { transform: scaleX(1); }
.wz-service-number {
  font-family: var(--display);
  font-size: 14px; font-weight: 500;
  font-style: italic; color: var(--morado);
  margin-bottom: 32px; display: block;
}
.wz-service-icon {
  width: 56px; height: 56px;
  background: var(--morado-tinte); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.wz-service-icon svg { width: 26px; height: 26px; stroke: var(--morado); }
.wz-service-card h3 {
  font-family: var(--display);
  font-size: 28px; font-weight: 500;
  letter-spacing: -0.02em; margin-bottom: 12px;
  line-height: 1.15; color: var(--azul-carbon);
}
.wz-service-card p { color: var(--gris-700); font-size: 15px; line-height: 1.6; margin-bottom: 28px; }
.wz-service-link {
  font-size: 14px; font-weight: 600;
  color: var(--azul-carbon);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.3s ease;
}
.wz-service-card:hover .wz-service-link { gap: 10px; color: var(--morado); }

/* ============ MANIFIESTO ============ */
.wz-manifest {
  background: var(--negro); color: var(--blanco);
  padding: 140px 0; position: relative; overflow: hidden;
}
.wz-manifest::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(77, 29, 149, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
}
.wz-manifest-content { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.wz-manifest h2 {
  font-family: var(--display);
  font-size: var(--fs-display-1);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -0.035em; margin-bottom: 40px; color: white;
}
.wz-manifest h2 em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wz-manifest p {
  font-size: 18px; color: rgba(255,255,255,0.75);
  max-width: 640px; margin: 0 auto; line-height: 1.7;
}

/* ============ POR QUÉ ============ */
.wz-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.wz-why-list { display: flex; flex-direction: column; gap: 32px; }
.wz-why-item { display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: start; }
.wz-why-num {
  font-family: var(--display);
  font-size: 32px; font-weight: 500;
  font-style: italic; color: var(--morado); line-height: 1;
}
.wz-why-item h4 {
  font-family: var(--display);
  font-size: 22px; font-weight: 500;
  margin-bottom: 8px; letter-spacing: -0.01em;
  color: var(--azul-carbon);
}
.wz-why-item p { color: var(--gris-700); font-size: 15px; line-height: 1.6; }

/* ============ FOOTER CTA ============ */
.wz-footer-cta {
  background: linear-gradient(180deg, var(--blanco) 0%, var(--morado-tinte) 100%);
  padding: 120px 40px; text-align: center;
}
.wz-footer-cta .wz-container { max-width: 900px; }
.wz-footer-cta h2 {
  font-family: var(--display);
  font-size: var(--fs-display-1);
  font-weight: 300; line-height: 1.05;
  letter-spacing: -0.035em; margin-bottom: 24px;
  color: var(--azul-carbon);
}
.wz-footer-cta h2 em { font-style: italic; color: var(--morado); }
.wz-footer-cta p {
  font-size: 18px; color: var(--gris-700);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.6;
}

/* ============ FOOTER ============ */
.wz-footer {
  background: var(--negro); color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
  position: relative; overflow: hidden;
}
.wz-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--morado), var(--cyan), var(--morado));
}
.wz-footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 80px;
}
.wz-footer-logo { margin-bottom: 24px; }
.wz-footer-logo img { height: 48px; width: auto; }
.wz-footer-tagline {
  font-family: var(--display); font-style: italic;
  font-size: 18px; color: var(--cyan);
  margin-bottom: 24px; font-weight: 400;
}
.wz-footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.wz-footer-col h5 {
  color: white; font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 20px;
}
.wz-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
.wz-footer-col a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 14px; transition: color 0.2s ease;
}
.wz-footer-col a:hover { color: var(--cyan); }
.wz-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.wz-footer-bottom p { font-size: 13px; margin: 0; }

/* ============ NOSOTROS ============ */
.wz-nosotros-hero {
  padding: 90px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(77,29,149,0.06) 0%, transparent 60%), var(--blanco);
}
.wz-nosotros-hero h1 {
  font-family: var(--display);
  font-size: var(--fs-display-1);
  font-weight: 400; line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--azul-carbon);
  margin: 20px auto 28px; max-width: 1000px;
}
.wz-nosotros-hero h1 em { font-style: italic; color: var(--morado); }
.wz-nosotros-hero p {
  font-size: 18px; color: var(--gris-700);
  max-width: 640px; margin: 0 auto; line-height: 1.65;
}
.wz-nosotros-hero .wz-eyebrow { font-size: 14px; letter-spacing: 0.24em; }

.wz-story-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: center; padding: 100px 0;
  overflow: visible;
}
.wz-story-img {
  aspect-ratio: 4/5;
  position: relative;
  /* overflow visible para que el técnico pueda salirse */
  overflow: visible;
}
/* El cuadro de color (gradient + halo cyan) queda en un pseudo-elemento
   con overflow: hidden, así el fondo está contenido pero la figura no. */
.wz-story-img::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--azul-carbon) 0%, var(--morado) 100%);
  border-radius: 24px;
  overflow: hidden;
  z-index: 0;
}
.wz-story-img::after {
  content: ""; position: absolute;
  bottom: 0; right: 0; width: 70%; height: 70%;
  background: radial-gradient(circle at bottom right, var(--cyan) 0%, transparent 65%);
  opacity: 0.18;
  border-bottom-right-radius: 24px;
  pointer-events: none;
  z-index: 0;
}
.wz-story-img img {
  position: absolute;
  left: 50%;
  bottom: 0;
  /* Figura contenida dentro del recuadro (sin out-of-frame). */
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: lighten;
  z-index: 1;
  pointer-events: none;
}
.wz-story-content h2 {
  font-family: var(--display);
  font-size: var(--fs-display-3);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--azul-carbon); margin: 16px 0 28px;
}
.wz-story-content h2 em { font-style: italic; color: var(--morado); }
.wz-story-content p {
  font-size: 17px; color: var(--gris-700);
  line-height: 1.75; margin-bottom: 20px;
}

.wz-values {
  background: var(--gris-100);
  padding: 120px 0;
}
.wz-values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.wz-value-item {
  background: white; padding: 44px 36px;
  border-radius: 20px;
  border: 1px solid var(--gris-300);
  border-top: 3px solid var(--morado);
  position: relative;
}
.wz-value-item:nth-child(2) { border-top-color: var(--cyan); }
.wz-value-item:nth-child(3) { border-top-color: var(--azul-carbon); }
.wz-value-item h4 {
  font-family: var(--display);
  font-size: 26px; font-weight: 500;
  margin-bottom: 20px; letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--negro);
  padding-bottom: 14px;
  position: relative;
}
.wz-value-item h4::after {
  content: ""; position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 3px;
  background: var(--morado);
  border-radius: 100px;
}
.wz-value-item:nth-child(2) h4::after { background: var(--cyan); }
.wz-value-item:nth-child(3) h4::after { background: var(--azul-carbon); }
.wz-value-item p {
  color: var(--gris-700);
  font-size: 15px; line-height: 1.65;
}

.wz-brand-categories {
  display: grid; grid-template-columns: 1fr; gap: 0;
  max-width: 1000px; margin: 0 auto;
}
.wz-brand-category {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px; align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--gris-300);
}
.wz-brand-category:last-child { border-bottom: 1px solid var(--gris-300); }
.wz-brand-category-head h3 {
  font-family: var(--display);
  font-size: 26px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.2;
  color: var(--azul-carbon); margin-bottom: 6px;
}
.wz-brand-category-head p {
  font-size: 14px; color: var(--gris-700);
  line-height: 1.55;
}
.wz-brand-category-logos {
  display: flex; flex-wrap: wrap; gap: 28px 44px;
  align-items: center;
}
/* Scope: dentro de category-logos, romper la regla heredada del grid de marcas
   del home. Cada wrapper tiene su altura óptica vía custom property --brand-h. */
.wz-brand-category-logos .wz-brand-logo {
  width: auto; height: auto; min-height: 56px;
  max-width: none;
}
.wz-brand-category-logos .wz-brand-logo img {
  height: var(--brand-h, 48px);
  max-height: var(--brand-h, 48px);
  max-width: none;
  width: auto;
  object-fit: contain;
  filter: none;        /* anula grayscale heredado del .wz-brand-logo del home */
  opacity: 1;
}
/* Equiparación óptica por marca usando custom properties (sin !important) */
.wz-brand-category-logos .wz-brand-logo--dahua           { --brand-h: 38px; }
.wz-brand-category-logos .wz-brand-logo--hikvision       { --brand-h: 32px; }
.wz-brand-category-logos .wz-brand-logo--imou            { --brand-h: 75px; }
.wz-brand-category-logos .wz-brand-logo--ajax            { --brand-h: 36px; }
.wz-brand-category-logos .wz-brand-logo--paradox         { --brand-h: 50px; }
.wz-brand-category-logos .wz-brand-logo--zkteco          { --brand-h: 36px; }
.wz-brand-category-logos .wz-brand-logo--seco-larm       { --brand-h: 81px; }
.wz-brand-category-logos .wz-brand-logo--fire-lite       { --brand-h: 105px; }
.wz-brand-category-logos .wz-brand-logo--sti             { --brand-h: 84px; }
.wz-brand-category-logos .wz-brand-logo--reyee           { --brand-h: 44px; }
.wz-brand-category-logos .wz-brand-logo--western-digital { --brand-h: 36px; }
.wz-brand-category-logos .wz-brand-logo--tolsen          { --brand-h: 66px; }

/* ============ CATÁLOGO ============ */
.wz-catalogo-hero {
  padding: 90px 0 50px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(77,29,149,0.06) 0%, transparent 60%), var(--blanco);
}
.wz-catalogo-hero h1 {
  font-family: var(--display);
  font-size: var(--fs-display-1);
  font-weight: 400; line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--azul-carbon);
  margin: 18px auto 24px;
}
.wz-catalogo-hero h1 em { font-style: italic; color: var(--morado); }
.wz-catalogo-hero p {
  font-size: 18px; color: var(--gris-700);
  max-width: 680px; margin: 0 auto; line-height: 1.65;
}
.wz-catalogo-hero .wz-eyebrow { font-size: 14px; letter-spacing: 0.24em; }

.wz-catalogo-nav {
  padding: 30px 0 50px;
  position: sticky; top: 70px; z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wz-cat-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
}
.wz-cat-chip {
  padding: 10px 18px; border-radius: 100px;
  border: 1px solid var(--gris-300);
  background: white;
  font-size: 13px; font-weight: 500;
  color: var(--gris-700);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.wz-cat-chip:hover {
  border-color: var(--morado);
  color: var(--morado);
  transform: translateY(-1px);
}

.wz-cat-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--gris-300);
  scroll-margin-top: 130px;
}
.wz-cat-section:first-of-type { border-top: none; }
.wz-cat-section:nth-of-type(even) { background: var(--gris-100); }

.wz-cat-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 40px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.wz-cat-head-left {
  max-width: 720px;
}
.wz-cat-head h2 {
  font-family: var(--display);
  font-size: var(--fs-display-4);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--azul-carbon);
  margin-bottom: 10px;
}
.wz-cat-head p {
  font-size: 16px; color: var(--gris-700);
  line-height: 1.6;
}
.wz-cat-brands {
  font-size: 12px; font-weight: 600;
  color: var(--cyan-text); letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wz-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.wz-product {
  background: white;
  border: 1px solid var(--gris-300);
  border-radius: 20px;
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.wz-product::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--morado), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}
.wz-product:hover {
  border-color: var(--morado);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(77, 29, 149, 0.12);
}
.wz-product:hover::before { transform: scaleX(1); }

/* IMAGEN DEL PRODUCTO + MARCA DE AGUA */
.wz-product-img {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--gris-100) 0%, var(--morado-tinte) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.wz-product-img > img:not(.wz-product-watermark) {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18px;
  position: relative; z-index: 2;
  transition: transform 0.4s ease;
}
.wz-product:hover .wz-product-img > img:not(.wz-product-watermark) {
  transform: scale(1.04);
}
.wz-product-img > svg {
  width: 56px; height: 56px;
  color: var(--morado);
  opacity: 0.55;
  position: relative; z-index: 2;
}
/* Marca de agua sutil con el logo WizTech */
.wz-product-watermark {
  position: absolute;
  bottom: 8px; right: 10px;
  width: 56px; height: auto;
  opacity: 0.10;
  pointer-events: none;
  z-index: 1;
  filter: grayscale(100%);
}

.wz-product-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column;
  flex-grow: 1;
}
.wz-product-brand {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--cyan-text);
  text-transform: uppercase; margin-bottom: 6px;
}
.wz-product-name {
  font-family: var(--display);
  font-size: 19px; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.25;
  color: var(--azul-carbon); margin-bottom: 8px;
}
.wz-product-desc {
  font-size: 13px; color: var(--gris-700);
  line-height: 1.55; margin-bottom: 14px;
  flex-grow: 1;
}
.wz-product-sku {
  font-size: 11px; font-weight: 500;
  color: var(--gris-500); margin-bottom: 16px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}
.wz-product-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 100px;
  background: transparent;
  border: 1px solid var(--gris-300);
  font-size: 13px; font-weight: 600;
  color: var(--azul-carbon);
  text-decoration: none;
  transition: all 0.25s ease;
  justify-content: center;
  margin-top: auto;
}
.wz-product-cta:hover {
  background: #25D366; color: white;
  border-color: #25D366;
}
.wz-product-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* CTA EXTRA */
.wz-catalogo-extra { padding: 100px 0; }
.wz-extra-card {
  background: linear-gradient(135deg, var(--morado) 0%, var(--azul-carbon) 100%);
  border-radius: 28px;
  padding: 80px 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.wz-extra-card::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.20) 0%, transparent 50%);
  pointer-events: none;
}
.wz-extra-card > * { position: relative; }
.wz-extra-card h2 {
  font-family: var(--display);
  font-size: var(--fs-display-3);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -0.025em;
  color: white;
  margin: 20px auto 20px; max-width: 680px;
}
.wz-extra-card h2 em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wz-extra-card p {
  font-size: 17px; color: rgba(255,255,255,0.85);
  max-width: 600px; margin: 0 auto 32px; line-height: 1.65;
}
.wz-extra-card .wz-btn-secondary {
  color: white;
}
.wz-extra-card .wz-btn-secondary:hover { color: var(--cyan); }

/* ============ SERVICIOS ============ */
.wz-servicios-hero {
  padding: 90px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(77,29,149,0.06) 0%, transparent 60%), var(--blanco);
}
.wz-servicios-hero h1 {
  font-family: var(--display);
  font-size: var(--fs-display-1);
  font-weight: 400; line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--azul-carbon);
  margin: 20px auto 28px; max-width: 1000px;
}
.wz-servicios-hero h1 em { font-style: italic; color: var(--morado); }
.wz-servicios-hero p {
  font-size: 18px; color: var(--gris-700);
  max-width: 640px; margin: 0 auto; line-height: 1.65;
}
.wz-servicios-hero .wz-eyebrow { font-size: 14px; letter-spacing: 0.24em; }

.wz-service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--gris-300);
  scroll-margin-top: 90px;
}
.wz-service-detail:last-of-type { border-bottom: none; }
.wz-service-detail-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: center;
}
.wz-service-detail.reverse .wz-service-detail-grid {
  grid-template-columns: 1.2fr 1fr;
}
.wz-service-detail.reverse .wz-service-detail-content { order: 2; }

.wz-service-detail-content h2 {
  font-family: var(--display);
  font-size: var(--fs-display-3);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 16px 0 24px;
  color: var(--azul-carbon);
}
.wz-service-detail-content h2 em { font-style: italic; color: var(--morado); }
.wz-service-lead {
  font-size: 17px; color: var(--gris-700);
  line-height: 1.7; margin-bottom: 32px;
}
.wz-service-features {
  list-style: none; margin: 0 0 36px; padding: 0;
}
.wz-service-features li {
  padding: 18px 0;
  border-top: 1px solid var(--gris-300);
  display: grid; grid-template-columns: 28px 1fr;
  gap: 16px; align-items: start;
}
.wz-service-features li:last-child { border-bottom: 1px solid var(--gris-300); }
.wz-service-features strong {
  display: block;
  font-size: 15px; font-weight: 600;
  color: var(--azul-carbon); margin-bottom: 4px;
}
.wz-service-features li > div span {
  display: block;
  font-size: 14px; color: var(--gris-700); line-height: 1.6;
}
.wz-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--morado-tinte);
  color: var(--morado);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.wz-check svg { width: 14px; height: 14px; }

.wz-service-image {
  aspect-ratio: 4/3; border-radius: 24px;
  position: relative; overflow: hidden; padding: 48px;
  display: flex; flex-direction: column;
  justify-content: flex-end; color: white;
  box-shadow: 0 30px 60px -20px rgba(30, 27, 75, 0.35);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Cada variante usa la imagen final (productos sobre el color de marca) */
.wz-service-image.variant-1 {
  background-color: var(--morado-oscuro);
  background-image: url('assets/img/services/sistemas-integrados.png');
}
.wz-service-image.variant-2 {
  background-color: var(--negro);
  background-image: url('assets/img/services/cobertura-completa.png');
}
.wz-service-image.variant-3 {
  background-color: var(--azul-carbon);
  background-image: url('assets/img/services/postventa-real.png');
}

/* Oscurecido suave abajo solo para legibilidad del título */
.wz-service-image::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none; z-index: 1;
}

.wz-service-image-tag {
  position: relative; z-index: 2;
  font-family: var(--display); font-style: italic;
  font-size: var(--fs-display-2); font-weight: 500;
  line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.5);
}
.wz-service-image-sub {
  position: relative; z-index: 2;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.22em;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}

/* ============ CONTACTO ============ */
.wz-contact-hero {
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(77,29,149,0.06) 0%, transparent 60%),
    var(--blanco);
}
.wz-contact-hero .wz-eyebrow {
  font-size: 14px;
  letter-spacing: 0.24em;
  margin-bottom: 8px;
}
.wz-contact-hero h1 {
  font-family: var(--display);
  font-size: var(--fs-display-1);
  font-weight: 400; line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--azul-carbon);
  margin: 18px auto 28px; max-width: 900px;
}
.wz-contact-hero h1 em { font-style: italic; color: var(--morado); }
.wz-contact-hero p {
  font-size: 18px; color: var(--gris-700);
  max-width: 600px; margin: 0 auto; line-height: 1.65;
}
.wz-contact-hero-divider {
  width: 64px; height: 3px;
  margin: 48px auto 0;
  background: linear-gradient(90deg, var(--morado), var(--cyan));
  border-radius: 100px;
}

.wz-contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 80px; padding: 60px 0 120px;
}
.wz-form-container {
  background: white;
  border: 1px solid var(--gris-300);
  border-radius: 24px; padding: 48px;
  border-top: 3px solid var(--morado);
}
.wz-form-fallback p { color: var(--gris-700); line-height: 1.6; margin-bottom: 14px; }

/* Estilos para los campos del CF7 */
.wz-form-container .wpcf7 p { margin: 0 0 20px; }
.wz-form-container .wpcf7 label {
  display: block; font-size: 12px;
  font-weight: 600; color: var(--azul-carbon);
  margin-bottom: 8px; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.wz-form-container .wpcf7 input[type=text],
.wz-form-container .wpcf7 input[type=email],
.wz-form-container .wpcf7 input[type=tel],
.wz-form-container .wpcf7 select,
.wz-form-container .wpcf7 textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--gris-300);
  border-radius: 12px;
  font-size: 14px; font-family: var(--body);
  color: var(--azul-carbon); background: white;
  transition: border 0.2s ease;
  line-height: 1.4;
  box-sizing: border-box;
}
.wz-form-container .wpcf7 select {
  min-height: 52px;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234D1D95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}
.wz-form-container .wpcf7 input:focus,
.wz-form-container .wpcf7 select:focus,
.wz-form-container .wpcf7 textarea:focus {
  outline: none; border-color: var(--morado);
  box-shadow: 0 0 0 3px rgba(77, 29, 149, 0.1);
}
.wz-form-container .wpcf7 textarea { resize: vertical; min-height: 130px; }
.wz-form-container .wpcf7 .wz-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.wz-form-container .wpcf7 input[type=submit] {
  background: var(--morado); color: white;
  padding: 16px 32px; border-radius: 100px;
  font-size: 15px; font-weight: 600; border: none;
  cursor: pointer; transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(77, 29, 149, 0.25);
  font-family: var(--body); width: auto;
}
.wz-form-container .wpcf7 input[type=submit]:hover {
  background: var(--azul-carbon);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(30, 41, 59, 0.3);
}
.wz-form-container .wpcf7-response-output {
  margin: 20px 0 0; padding: 14px 18px;
  border-radius: 12px; font-size: 14px;
}
.wz-form-container .wpcf7-not-valid-tip { font-size: 12px; color: #b91c1c; margin-top: 6px; }
.wz-form-container .wpcf7-spinner { margin-left: 12px; }

.wz-contact-info { padding: 24px 0; }
.wz-contact-info h2 {
  font-family: var(--display);
  font-size: 36px; font-weight: 400;
  letter-spacing: -0.02em; margin-bottom: 16px;
  line-height: 1.1; color: var(--azul-carbon);
}
.wz-contact-info h2 em { font-style: italic; color: var(--morado); }
.wz-contact-info > p {
  font-size: 16px; color: var(--gris-700);
  line-height: 1.7; margin-bottom: 40px;
}
.wz-contact-item {
  padding: 24px 0; border-top: 1px solid var(--gris-300);
}
.wz-contact-item:last-child { border-bottom: 1px solid var(--gris-300); }
.wz-contact-item-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan-text); margin-bottom: 6px;
}
.wz-contact-item-value {
  font-family: var(--display);
  font-size: 20px; font-weight: 500;
  color: var(--azul-carbon); letter-spacing: -0.01em;
  text-decoration: none; display: block;
}
a.wz-contact-item-value:hover { color: var(--morado); }
.wz-contact-item-detail {
  font-size: 14px; color: var(--gris-700); margin-top: 4px;
}

/* ============ WHATSAPP ============ */
.wz-whatsapp {
  position: fixed; bottom: 28px; right: 28px;
  display: inline-block;
  cursor: pointer; z-index: 9999;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 8px 18px rgba(37, 211, 102, 0.35));
  line-height: 0;
}
.wz-whatsapp:hover { transform: scale(1.08); }
.wz-whatsapp img {
  width: 64px; height: 64px; display: block;
  background: transparent;
}

/* Ocultar scroll-to-top de Astra y otros adornos que choquen con WhatsApp */
#ast-scroll-top,
.ast-scroll-to-top-icon,
.ast-back-to-top { display: none !important; }

/* ============ RESPONSIVE ============
 * Breakpoints (mobile-first conceptual):
 *   ≤ 480px   — mobile chico
 *   ≤ 768px   — mobile / tablet vertical
 *   ≤ 1024px  — tablet horizontal / notebook 13"
 *   ≥ 1280px  — desktop full
 * ============================================ */

/* Tablet horizontal / notebook 13" (1024px y abajo) */
@media (max-width: 1024px) {
  .wz-hero-grid { gap: 48px; }
  .wz-brands-grid { grid-template-columns: repeat(4, 1fr); gap: 32px 40px; }
  .wz-services-grid { grid-template-columns: repeat(2, 1fr); }
  .wz-services-grid .wz-service-card:last-child {
    grid-column: 1 / -1; max-width: 50%; margin: 0 auto;
  }
  .wz-products-grid { grid-template-columns: repeat(2, 1fr); }
  .wz-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  .wz-service-detail-grid,
  .wz-service-detail.reverse .wz-service-detail-grid {
    grid-template-columns: 1fr 1fr; gap: 50px;
  }
  .wz-brand-category { gap: 40px; }
  .wz-story-grid { gap: 50px; }
}

/* Tablet vertical y mobile (768px y abajo) */
@media (max-width: 768px) {
  .wz-nav { padding: 12px 20px; }
  .wz-nav-links { display: none; }
  .wz-container { padding: 0 20px; }
  .wz-logo img { height: 28px; }

  .wz-hero { padding: 60px 0 80px; }
  .wz-hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .wz-hero-visual { height: 400px; }

  .wz-section { padding: 80px 0; }
  .wz-services-grid { grid-template-columns: 1fr; }
  .wz-services-grid .wz-service-card:last-child { max-width: none; }
  .wz-why-grid { grid-template-columns: 1fr; gap: 60px; }
  .wz-footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .wz-brands-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .wz-contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 80px; }
  .wz-form-container { padding: 32px 24px; }
  .wz-form-container .wpcf7 .wz-form-row { grid-template-columns: 1fr; }

  .wz-story-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .wz-values-grid { grid-template-columns: 1fr; gap: 20px; }
  .wz-brand-category { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }

  .wz-service-detail-grid,
  .wz-service-detail.reverse .wz-service-detail-grid {
    grid-template-columns: 1fr; gap: 40px;
  }
  .wz-service-detail.reverse .wz-service-detail-content { order: 0; }
  .wz-service-detail { padding: 50px 0; }

  .wz-products-grid { grid-template-columns: 1fr; }
  .wz-cat-head { flex-direction: column; align-items: flex-start; }
  .wz-catalogo-nav { top: 60px; }
  .wz-extra-card { padding: 50px 30px; }
}

/* Mobile chico (480px y abajo) */
@media (max-width: 480px) {
  .wz-container { padding: 0 16px; }
  .wz-hero { padding: 40px 0 60px; }
  .wz-section { padding: 60px 0; }
  .wz-brands-grid { grid-template-columns: repeat(2, 1fr); }
  .wz-hero-visual { height: 340px; }
  .wz-form-container { padding: 28px 18px; }
  .wz-extra-card { padding: 40px 20px; border-radius: 20px; }
  .wz-whatsapp { bottom: 18px; right: 18px; }
  .wz-whatsapp img { width: 56px; height: 56px; }
}
