/*
Theme Name: WH Chat Support
Theme URI: https://aitecnologia.tech/
Author: AI Tecnologia
Author URI: https://aitecnologia.tech/
Description: Centro de ayuda para WH Chat inspirado en la identidad visual de AI Tecnologia.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: wh-chat-support
*/

:root {
  --wh-ink: #1d1d1f;
  --wh-soft-ink: #424245;
  --wh-muted: #6e6e73;
  --wh-line: #d2d2d7;
  --wh-canvas: #f5f5f7;
  --wh-surface: #ffffff;
  --wh-surface-soft: #fbfbfd;
  --wh-green: #25b96f;
  --wh-green-deep: #167a3f;
  --wh-mint: #d8f7e5;
  --wh-blue: #0071e3;
  --wh-radius-xl: 36px;
  --wh-radius-lg: 28px;
  --wh-radius-md: 18px;
  --wh-shadow: 0 22px 70px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wh-ink);
  background: var(--wh-canvas);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.wh-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.wh-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(0, 0, 0, .06); background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); }
.wh-nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wh-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; text-decoration: none; }
.wh-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--wh-green); border: 4px solid #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); font-size: 14px; }
.wh-menu { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.wh-menu a { color: var(--wh-soft-ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.wh-menu a:hover { color: var(--wh-green-deep); }
.wh-menu-toggle { display: none; border: 0; background: transparent; font: inherit; font-weight: 700; }
.wh-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; color: #fff; background: var(--wh-green-deep); font-weight: 750; text-decoration: none; cursor: pointer; }
.wh-button:hover { background: #105f31; }
.wh-button--light { color: var(--wh-green-deep); background: var(--wh-mint); }
.wh-hero { padding: 92px 0 72px; background: radial-gradient(circle at 82% 18%, var(--wh-mint), transparent 30%), var(--wh-surface); }
.wh-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
.wh-eyebrow { margin: 0 0 14px; color: var(--wh-green-deep); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.wh-hero h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 7vw, 78px); line-height: 1.02; letter-spacing: -.055em; }
.wh-lead { max-width: 700px; margin: 24px 0 0; color: var(--wh-soft-ink); font-size: clamp(18px, 2vw, 22px); }
.wh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.wh-phone { max-width: 380px; margin-left: auto; padding: 16px; border: 1px solid rgba(0,0,0,.08); border-radius: 42px; background: #111; box-shadow: var(--wh-shadow); }
.wh-phone-screen { min-height: 510px; overflow: hidden; border-radius: 30px; background: #eef4f1; }
.wh-phone-top { padding: 24px 20px 16px; color: #fff; background: var(--wh-green-deep); }
.wh-phone-top strong { display: block; font-size: 22px; }
.wh-chat-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; margin: 12px; padding: 14px; border-radius: 18px; background: #fff; }
.wh-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--wh-green-deep); background: var(--wh-mint); font-weight: 800; }
.wh-chat-row p, .wh-chat-row small { margin: 0; }
.wh-chat-row p { color: var(--wh-muted); font-size: 13px; }
.wh-chat-row small { color: var(--wh-green-deep); font-weight: 750; }
.wh-section { padding: 84px 0; }
.wh-section--white { background: var(--wh-surface); }
.wh-section-heading { max-width: 760px; margin-bottom: 38px; }
.wh-section-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.04em; }
.wh-section-heading p { color: var(--wh-muted); font-size: 18px; }
.wh-search { display: flex; gap: 12px; padding: 12px; border: 1px solid rgba(0,0,0,.07); border-radius: 999px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.wh-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px; background: transparent; font: inherit; }
.wh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wh-card { padding: 28px; border: 1px solid rgba(0,0,0,.06); border-radius: var(--wh-radius-lg); background: var(--wh-surface); box-shadow: 0 0 0 1px rgba(0,0,0,.015); }
.wh-card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; border-radius: 16px; color: var(--wh-green-deep); background: var(--wh-mint); font-size: 22px; }
.wh-card h3 { margin: 0 0 9px; font-size: 21px; line-height: 1.25; }
.wh-card p { margin: 0; color: var(--wh-muted); }
.wh-card a { display: inline-block; margin-top: 18px; color: var(--wh-green-deep); font-weight: 750; text-decoration: none; }
.wh-faq { display: grid; gap: 12px; margin-top: 24px; }
.wh-faq details { border: 1px solid rgba(0,0,0,.07); border-radius: var(--wh-radius-md); background: #fff; }
.wh-faq summary { padding: 20px 22px; font-weight: 750; cursor: pointer; }
.wh-faq-answer { padding: 0 22px 22px; color: var(--wh-soft-ink); }
.wh-faq-item[hidden] { display: none; }
.wh-callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 42px; border-radius: var(--wh-radius-xl); color: #fff; background: var(--wh-green-deep); }
.wh-callout h2 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 48px); line-height: 1.05; letter-spacing: -.04em; }
.wh-callout p { margin: 0; color: rgba(255,255,255,.82); }
.wh-callout .wh-button { color: var(--wh-green-deep); background: #fff; }
.wh-content { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 92px; }
.wh-content h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -.045em; }
.wh-content h2 { margin-top: 42px; font-size: 28px; line-height: 1.2; }
.wh-content p, .wh-content li { color: var(--wh-soft-ink); }
.wh-content a { color: var(--wh-blue); }
.wh-footer { padding: 38px 0; border-top: 1px solid rgba(0,0,0,.07); background: var(--wh-surface); }
.wh-footer-grid { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.wh-footer p { margin: 0; color: var(--wh-muted); font-size: 14px; }
.wh-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.wh-footer-links a { color: var(--wh-soft-ink); font-size: 14px; text-decoration: none; }

@media (max-width: 860px) {
  .wh-hero-grid, .wh-callout { grid-template-columns: 1fr; }
  .wh-phone { margin: 24px auto 0; }
  .wh-grid { grid-template-columns: 1fr 1fr; }
  .wh-menu-toggle { display: block; }
  .wh-menu { display: none; position: absolute; inset: 74px 20px auto; flex-direction: column; align-items: stretch; padding: 20px; border-radius: 20px; background: #fff; box-shadow: var(--wh-shadow); }
  .wh-menu.is-open { display: flex; }
}
@media (max-width: 600px) {
  .wh-shell { width: min(100% - 28px, 1180px); }
  .wh-hero { padding: 64px 0 52px; }
  .wh-grid { grid-template-columns: 1fr; }
  .wh-search { border-radius: 22px; }
  .wh-search .wh-button { padding: 0 16px; }
  .wh-callout { padding: 30px; }
  .wh-footer-grid { align-items: flex-start; flex-direction: column; }
}
