/*
Theme Name: Hazlo al Revés
Theme URI: https://hazloalreves.com
Author: Hazlo al Revés
Description: Tema comercial para el analizador de webs Hazlo al Revés.
Version: 1.0.0
Text Domain: hazlo-al-reves
*/

:root {
  --ink: #151515;
  --paper: #f5f2ea;
  --cream: #fffdf7;
  --acid: #d9ff53;
  --coral: #ff6b4a;
  --purple: #6c59ff;
  --muted: #716e68;
  --line: rgba(21, 21, 21, .16);
  --shadow: 0 18px 60px rgba(21, 21, 21, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.har-lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.har-shell { min-height: 100vh; overflow: hidden; }
.har-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.har-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}
.har-brand { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.04em; }
.har-brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--acid); transform: rotate(-8deg);
}
.har-brand-mark::after { content: "↯"; font-size: 22px; }
.har-nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.har-nav-links a:not(.har-nav-cta):hover { opacity: .58; }
.har-nav-cta, .har-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: white; font-weight: 850;
  box-shadow: 4px 4px 0 var(--coral);
  transition: transform .18s ease, box-shadow .18s ease;
}
.har-nav-cta:hover, .har-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--coral); }
.har-btn-light { background: var(--acid); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.har-btn-light:hover { box-shadow: 7px 7px 0 var(--ink); }

.har-hero {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 74px;
  align-items: center; min-height: 690px; padding: 78px 0 90px;
}
.har-orbit {
  position: absolute; width: 520px; height: 520px; right: -260px; top: 35px;
  border: 1px solid var(--line); border-radius: 50%; pointer-events: none;
}
.har-orbit::before, .har-orbit::after {
  content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; inset: 64px;
}
.har-orbit::after { inset: 132px; background: var(--acid); opacity: .42; }
.har-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 26px; font-size: 13px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .12em;
}
.har-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(255,107,74,.16); }
.har-hero h1 {
  margin: 0; max-width: 720px;
  font-size: clamp(54px, 7.3vw, 104px); line-height: .89;
  letter-spacing: -.078em; font-weight: 950;
}
.har-hero h1 em {
  position: relative; display: inline-block; color: var(--purple); font-style: normal;
}
.har-hero h1 em::after {
  content: ""; position: absolute; left: 1%; right: -2%; bottom: -.06em; height: .11em;
  background: var(--coral); border-radius: 999px; transform: rotate(-1.5deg);
}
.har-lede { max-width: 590px; margin: 34px 0 0; font-size: 20px; line-height: 1.55; color: #4e4b46; }
.har-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; font-weight: 700; }
.har-proof span { display: flex; align-items: center; gap: 7px; }
.har-proof span::before { content: "✓"; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--acid); color: var(--ink); }

.har-analyzer {
  position: relative; z-index: 2; padding: 28px;
  border: 2px solid var(--ink); border-radius: 28px; background: var(--cream);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(1.2deg);
}
.har-analyzer::before {
  content: "SIN PIEDAD"; position: absolute; right: -22px; top: -22px;
  padding: 10px 14px; color: white; background: var(--coral);
  border: 2px solid var(--ink); border-radius: 10px; font-size: 12px; font-weight: 950;
  letter-spacing: .09em; transform: rotate(6deg);
}
.har-window-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.har-window-dots { display: flex; gap: 7px; }
.har-window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ddd8ce; }
.har-window-dots i:first-child { background: var(--coral); }
.har-window-dots i:nth-child(2) { background: #ffd15c; }
.har-window-dots i:nth-child(3) { background: #79db89; }
.har-window-label { font-size: 12px; color: var(--muted); font-weight: 800; }
.har-analyzer h2 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.04em; }
.har-analyzer > p { margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
.har-form { display: grid; gap: 12px; }
.har-urlbox {
  display: flex; align-items: center; gap: 10px;
  min-height: 62px; padding: 7px 7px 7px 18px;
  border: 2px solid var(--ink); border-radius: 16px; background: white;
}
.har-urlbox span { font-size: 20px; }
.har-urlbox input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.har-urlbox input::placeholder { color: #aaa59b; }
.har-submit { min-width: 142px; min-height: 46px; border: 0; border-radius: 11px; background: var(--ink); color: white; font-weight: 900; }
.har-submit[disabled] { cursor: wait; opacity: .72; }
.har-micro { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.har-demo-link { border: 0; padding: 0; background: transparent; color: var(--purple); font-weight: 850; }
.har-score-preview { display: grid; grid-template-columns: 106px 1fr; gap: 18px; align-items: center; margin-top: 27px; padding: 20px; border-radius: 18px; background: var(--ink); color: white; }
.har-score-ring {
  display: grid; place-items: center; width: 92px; height: 92px;
  border-radius: 50%; background: conic-gradient(var(--acid) 0 31%, rgba(255,255,255,.14) 31% 100%);
}
.har-score-ring > span { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--ink); font-size: 27px; font-weight: 950; }
.har-score-ring small { font-size: 11px; opacity: .7; }
.har-preview-copy small { color: var(--acid); font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.har-preview-copy strong { display: block; margin-top: 8px; font-size: 18px; line-height: 1.25; }

.har-marquee { overflow: hidden; border-block: 2px solid var(--ink); background: var(--acid); transform: rotate(-.3deg); }
.har-marquee-track { display: flex; width: max-content; animation: har-marquee 25s linear infinite; }
.har-marquee span { padding: 17px 26px; font-size: 13px; font-weight: 950; letter-spacing: .08em; white-space: nowrap; }
@keyframes har-marquee { to { transform: translateX(-50%); } }

.har-section { padding: 112px 0; }
.har-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 52px; }
.har-kicker { margin: 0 0 13px; color: var(--purple); font-size: 13px; font-weight: 950; text-transform: uppercase; letter-spacing: .13em; }
.har-section h2 { margin: 0; max-width: 790px; font-size: clamp(40px, 5vw, 68px); line-height: .98; letter-spacing: -.065em; }
.har-section-head > p { max-width: 350px; color: var(--muted); line-height: 1.6; }
.har-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.har-card { position: relative; min-height: 300px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); transition: transform .22s ease, box-shadow .22s ease; }
.har-card:hover { transform: translateY(-7px) rotate(-.4deg); box-shadow: var(--shadow); }
.har-card-no { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 50%; background: var(--acid); font-size: 13px; font-weight: 950; }
.har-card h3 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -.04em; }
.har-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.har-card-tag { display: inline-flex; margin-top: 28px; padding: 8px 11px; border-radius: 8px; background: #ece8df; font-size: 11px; font-weight: 850; }

.har-dark { color: white; background: var(--ink); }
.har-dark .har-kicker { color: var(--acid); }
.har-dark .har-section-head > p { color: rgba(255,255,255,.6); }
.har-personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.har-persona { min-height: 245px; padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(255,255,255,.055); }
.har-persona:nth-child(2) { transform: translateY(18px); }
.har-persona:nth-child(3) { transform: translateY(-10px); }
.har-persona-emoji { font-size: 39px; }
.har-persona h3 { margin: 34px 0 8px; font-size: 21px; letter-spacing: -.03em; }
.har-persona p { margin: 0; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.55; }

.har-pricing { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.har-price-card { padding: 36px; border: 2px solid var(--ink); border-radius: 28px; background: var(--cream); box-shadow: 11px 11px 0 var(--purple); }
.har-price-top { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.har-price-top span { padding: 7px 10px; border-radius: 999px; background: var(--acid); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.har-price { margin: 24px 0; font-size: 70px; font-weight: 950; letter-spacing: -.08em; }
.har-price sup { font-size: 25px; vertical-align: top; }
.har-price-card ul { display: grid; gap: 13px; margin: 28px 0 32px; padding: 0; list-style: none; }
.har-price-card li { display: flex; gap: 10px; line-height: 1.45; }
.har-price-card li::before { content: "✓"; flex: 0 0 23px; display: grid; place-items: center; height: 23px; border-radius: 50%; background: var(--acid); font-weight: 900; }
.har-price-card .har-btn { width: 100%; }
.har-price-note { margin-top: 13px; text-align: center; color: var(--muted); font-size: 11px; }
.har-pricing-copy blockquote { margin: 38px 0 0; padding-left: 22px; border-left: 4px solid var(--coral); font-size: 22px; line-height: 1.45; letter-spacing: -.02em; }
.har-pricing-copy cite { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; font-style: normal; }

.har-faq { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.har-faq details { padding: 24px 26px; background: var(--cream); }
.har-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 18px; font-weight: 850; list-style: none; }
.har-faq summary::after { content: "+"; font-size: 26px; font-weight: 400; }
.har-faq details[open] summary::after { content: "−"; }
.har-faq p { max-width: 780px; margin: 18px 0 0; color: var(--muted); line-height: 1.65; }

.har-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.har-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.har-footer p { margin: 0; color: var(--muted); font-size: 13px; }

.har-modal {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(21,21,21,.78); backdrop-filter: blur(12px);
}
.har-modal.is-open { display: flex; }
.har-modal-panel { width: min(860px, 100%); max-height: min(840px, calc(100vh - 40px)); overflow: auto; border-radius: 28px; background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.34); }
.har-modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); background: rgba(245,242,234,.94); backdrop-filter: blur(12px); }
.har-modal-head strong { font-size: 18px; }
.har-modal-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; }
.har-result { padding: 30px; }
.har-result-hero { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; padding: 28px; border-radius: 24px; background: var(--ink); color: white; }
.har-result-score { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--acid) var(--score), rgba(255,255,255,.14) 0); }
.har-result-score span { display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; background: var(--ink); font-size: 42px; font-weight: 950; }
.har-result-verdict small { color: var(--acid); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.har-result-verdict h3 { margin: 12px 0 0; font-size: 30px; line-height: 1.08; letter-spacing: -.045em; }
.har-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.har-metric { padding: 18px; border-radius: 16px; background: white; }
.har-metric span { display: block; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.har-metric strong { display: block; margin-top: 8px; font-size: 26px; }
.har-findings { display: grid; gap: 10px; }
.har-finding { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.har-finding i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ffe4dd; color: #b72f12; font-style: normal; font-weight: 900; }
.har-finding.good i { background: #e5f8d0; color: #42771a; }
.har-finding strong { display: block; margin: 2px 0 5px; }
.har-finding p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.har-result-cta { margin-top: 20px; padding: 24px; border: 2px solid var(--ink); border-radius: 20px; background: var(--acid); text-align: center; }
.har-result-cta h4 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.04em; }
.har-result-cta p { margin: 0 0 18px; color: #4e4b46; }
.har-error { padding: 26px; border-radius: 18px; background: #fff0ec; color: #8d2b16; line-height: 1.55; }
.har-loading { padding: 55px 20px; text-align: center; }
.har-spinner { width: 45px; height: 45px; margin: 0 auto 18px; border: 4px solid #ded8cd; border-top-color: var(--purple); border-radius: 50%; animation: har-spin .75s linear infinite; }
@keyframes har-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .har-nav-links a:not(.har-nav-cta) { display: none; }
  .har-hero { grid-template-columns: 1fr; min-height: auto; gap: 58px; padding-top: 58px; }
  .har-analyzer { transform: none; }
  .har-cards { grid-template-columns: 1fr; }
  .har-personas { grid-template-columns: 1fr 1fr; }
  .har-persona:nth-child(2), .har-persona:nth-child(3) { transform: none; }
  .har-pricing { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 620px) {
  .har-wrap { width: min(100% - 24px, 1180px); }
  .har-nav { min-height: 72px; }
  .har-brand span:last-child { font-size: 14px; }
  .har-nav-cta { min-height: 42px; padding: 0 15px; font-size: 12px; }
  .har-hero { padding: 45px 0 70px; }
  .har-hero h1 { font-size: 56px; }
  .har-lede { font-size: 17px; }
  .har-analyzer { padding: 20px; border-radius: 22px; box-shadow: 7px 7px 0 var(--ink); }
  .har-urlbox { display: grid; grid-template-columns: 28px 1fr; padding: 12px; }
  .har-submit { grid-column: 1 / -1; width: 100%; }
  .har-score-preview { grid-template-columns: 82px 1fr; padding: 14px; }
  .har-score-ring { width: 76px; height: 76px; }
  .har-score-ring > span { width: 57px; height: 57px; font-size: 22px; }
  .har-section { padding: 82px 0; }
  .har-section-head { display: block; }
  .har-section-head > p { margin-top: 20px; }
  .har-personas { grid-template-columns: 1fr; }
  .har-price { font-size: 58px; }
  .har-footer-inner { display: grid; }
  .har-result { padding: 16px; }
  .har-result-hero { grid-template-columns: 1fr; }
  .har-result-score { width: 110px; height: 110px; }
  .har-result-score span { width: 82px; height: 82px; }
  .har-metrics { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
