@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.warez-app {
  --wz-bg: #0a0a0f;
  --wz-text: #e4e4e7;
  --wz-card: rgba(24, 24, 32, 0.75);
  --wz-card-border: rgba(255, 255, 255, 0.08);
  --wz-card-inset: rgba(255, 255, 255, 0.04);
  --wz-card-shadow: rgba(0, 0, 0, 0.6);
  --wz-divider: rgba(255, 255, 255, 0.06);
  --wz-heading: #fafafa;
  --wz-sub: #a1a1aa;
  --wz-muted: #71717a;
  --wz-footer: #52525b;
  --wz-lang-bg: rgba(0, 0, 0, 0.3);
  --wz-lang-border: rgba(255, 255, 255, 0.06);
  --wz-lang-text: #71717a;
  --wz-lang-active-bg: rgba(37, 99, 235, 0.25);
  --wz-lang-active-text: #93c5fd;
  --wz-step-inactive: rgba(255, 255, 255, 0.08);
  --wz-hero-bg: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.2));
  --wz-hero-border: rgba(37, 99, 235, 0.3);
  --wz-hint-bg: rgba(37, 99, 235, 0.15);
  --wz-hint-border: rgba(37, 99, 235, 0.35);
  --wz-hint-text: #bfdbfe;
  --wz-badge-bg: rgba(37, 99, 235, 0.15);
  --wz-badge-text: #93c5fd;
  --wz-badge-border: rgba(37, 99, 235, 0.25);
  --wz-badge-warn-bg: rgba(239, 68, 68, 0.15);
  --wz-badge-warn-text: #fca5a5;
  --wz-badge-warn-border: rgba(239, 68, 68, 0.3);
  --wz-badge-ok-bg: rgba(34, 197, 94, 0.15);
  --wz-badge-ok-text: #86efac;
  --wz-badge-ok-border: rgba(34, 197, 94, 0.3);
  --wz-checklist-bg: rgba(0, 0, 0, 0.25);
  --wz-checklist-border: rgba(255, 255, 255, 0.06);
  --wz-checklist-text: #d4d4d8;
  --wz-checklist-divider: rgba(255, 255, 255, 0.04);
  --wz-chip-bg: rgba(0, 0, 0, 0.35);
  --wz-chip-border: rgba(255, 255, 255, 0.06);
  --wz-chip-text: #71717a;
  --wz-ring-track: rgba(255, 255, 255, 0.08);
  --wz-ring-num: #fafafa;
  --wz-orb-opacity: 0.45;
  --wz-serp-border: rgba(255, 255, 255, 0.1);
  --wz-serp-shadow: rgba(0, 0, 0, 0.4);

  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--wz-bg);
  color: var(--wz-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
}

.warez-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.warez-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--wz-orb-opacity);

  animation: orbFloat 12s ease-in-out infinite;
}

.warez-bg__orb--1 {
  width: 420px; height: 420px;
  background: #2563eb;
  top: -120px; left: -80px;
}

.warez-bg__orb--2 {
  width: 360px; height: 360px;
  background: #38bdf8;
  bottom: -100px; right: -60px;
  animation-delay: -4s;
}

.warez-bg__orb--3 {
  width: 280px; height: 280px;
  background: #06b6d4;
  top: 40%; left: 50%;
  transform: translateX(-50%);
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.warez-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.warez-card {
  background: var(--wz-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--wz-card-border);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px var(--wz-card-inset) inset,
    0 24px 48px -12px var(--wz-card-shadow);
  overflow: hidden;
}

.warez-card__header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--wz-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.warez-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.warez-brand__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.warez-brand__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--wz-heading);
  line-height: 1.2;
}

.warez-brand__sub {
  font-size: 11px;
  color: var(--wz-muted);
  font-weight: 500;
  margin-top: 2px;
}

.warez-lang {
  display: flex;
  gap: 4px;
  background: var(--wz-lang-bg);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--wz-lang-border);
}

.warez-lang button {
  background: transparent;
  border: none;
  color: var(--wz-lang-text);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.warez-lang button.active,
.warez-lang button:hover {
  background: var(--wz-lang-active-bg);
  color: var(--wz-lang-active-text);
}

.warez-steps {
  display: flex;
  padding: 16px 24px;
  gap: 6px;
}

.warez-step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--wz-step-inactive);
  transition: background 0.4s, box-shadow 0.4s;
}

.warez-step-dot.active {
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

.warez-step-dot.done {
  background: #22c55e;
}

.warez-card__body {
  padding: 8px 24px 24px;
  text-align: center;
}

.warez-hero-icon {
  width: 88px;
  height: 88px;
  margin: 8px auto 20px;
  border-radius: 50%;
  background: var(--wz-hero-bg);
  border: 1px solid var(--wz-hero-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}

.warez-hero-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #2563eb;
  animation: spin 2s linear infinite;
}

.warez-hero-icon.no-spin::after { display: none; }

/* —— Paso Google: icono búsqueda premium —— */
.warez-google-hero {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 4px auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warez-google-hero__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.02) 70%);
  animation: wzGooglePulse 2.8s ease-out infinite;
}

.warez-google-hero__pulse--delay {
  animation-delay: 1.4s;
  border-color: rgba(14, 165, 233, 0.28);
}

@keyframes wzGooglePulse {
  0% {
    transform: scale(0.82);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.08);
    opacity: 0;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.warez-google-hero__core {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.28) 0%, rgba(14, 165, 233, 0.12) 55%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 12px 32px rgba(37, 99, 235, 0.28),
    0 0 40px rgba(14, 165, 233, 0.15);
  animation: wzGoogleFloat 4s ease-in-out infinite;
}

@keyframes wzGoogleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.warez-google-hero__svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.35));
}

@keyframes spin { to { transform: rotate(360deg); } }

.warez-headline {
  font-size: 18px;
  font-weight: 600;
  color: var(--wz-heading);
  line-height: 1.4;
  margin-bottom: 8px;
}

.warez-headline--alert { color: #f87171; }

.warez-subline {
  font-size: 13px;
  color: var(--wz-sub);
  line-height: 1.5;
  margin-bottom: 16px;
}

.warez-flow-hint {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--wz-hint-bg);
  border: 1px solid var(--wz-hint-border);
  color: var(--wz-hint-text);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.warez-flow-hint[hidden] {
  display: none !important;
}

.warez-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.warez-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--wz-badge-bg);
  color: var(--wz-badge-text);
  border: 1px solid var(--wz-badge-border);
}

.warez-badge--warn {
  background: var(--wz-badge-warn-bg);
  color: var(--wz-badge-warn-text);
  border-color: var(--wz-badge-warn-border);
}

.warez-badge--ok {
  background: var(--wz-badge-ok-bg);
  color: var(--wz-badge-ok-text);
  border-color: var(--wz-badge-ok-border);
}

.warez-checklist {
  text-align: left;
  margin: 16px 0 20px;
  padding: 16px;
  background: var(--wz-checklist-bg);
  border-radius: 12px;
  border: 1px solid var(--wz-checklist-border);
}

.warez-checklist li {
  list-style: none;
  font-size: 13px;
  color: var(--wz-checklist-text);
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--wz-checklist-divider);
}

.warez-checklist li:last-child { border-bottom: none; }

.warez-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 700;
}

.warez-serp--mock {
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--wz-serp-border);
  box-shadow: 0 8px 32px var(--wz-serp-shadow);
  background: #fff;
  text-align: left;
  padding: 14px 16px 12px;
}

.warez-serp__bar {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.warez-serp__search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1);
}

.warez-serp__g {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.warez-serp__query {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.2;
  color: #202124;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.warez-serp__result {
  padding: 10px 8px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.warez-serp__result--first {
  position: relative;
  border: 2px solid #ef4444;
  background: rgba(239, 68, 68, 0.06);
  animation: highlightPulse 1.5s ease-in-out infinite;
}

.warez-serp__result--dim { opacity: 0.45; }

.warez-serp__result-title {
  font-size: 15px;
  color: #1a0dab;
  font-weight: 500;
  margin-bottom: 2px;
  word-break: break-all;
}

.warez-serp__result-url {
  font-size: 11px;
  color: #006621;
  margin-bottom: 4px;
  word-break: break-all;
}

.warez-serp__result-desc {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.4;
}

.warez-serp__arrow {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
}

@keyframes highlightPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.35); }
  50% { box-shadow: 0 0 0 5px rgba(239,68,68,0.15); }
}

.warez-url-chip {
  display: block;
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: var(--wz-chip-text);
  background: var(--wz-chip-bg);
  padding: 10px 14px;
  border-radius: 8px;
  word-break: break-all;
  margin-top: 12px;
  text-align: left;
  border: 1px solid var(--wz-chip-border);
}

.warez-countdown-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 16px auto;
}

.warez-countdown-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.warez-countdown-ring__bg {
  fill: none;
  stroke: var(--wz-ring-track);
  stroke-width: 6;
}

.warez-countdown-ring__fg {
  fill: none;
  stroke: url(#warezGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.5s ease;
}

.warez-countdown-ring__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--wz-ring-num);
}

.warez-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.warez-btn--primary {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.warez-btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.5);
}

.warez-btn--success {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.warez-btn--success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.5);
}

.warez-action--hidden {
  display: none !important;
}

.warez-btn--hidden,
.warez-btn[hidden] {
  display: none !important;
}

.warez-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.warez-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  top: 50%; left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.warez-card__footer {
  padding: 14px 24px;
  border-top: 1px solid var(--wz-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--wz-footer);
}

.warez-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.warez-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.warez-panel { display: none; animation: fadePanel 0.35s ease; }
.warez-panel.active { display: block; }

@keyframes fadePanel {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .warez-card__header { padding: 16px 18px; }
  .warez-card__body { padding: 8px 18px 20px; }
  .warez-headline { font-size: 16px; }
}
