/* =========================
   HOT MAX - UI PRO (vanilla)
========================= */

:root {
  --bg: #0B0B0F;
  --surface: #14141A;
  --line: rgba(255,255,255,0.1);
  --brand: #E30E13;
  --brand-text: #FF5A5F;
  --brand-soft: rgba(227,14,19,0.16);
  --text: #F5F3EE;
  --muted: rgba(245,243,238,0.68);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.1; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* NAV */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(11,11,15,0.88);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}

.logo img { display: block; height: 34px; width: auto; }

.links a {
  color: var(--muted);
  margin-left: 24px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color .2s;
}
.links a:hover { color: var(--text); }

/* HERO */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 96px 20px 64px;
  background: radial-gradient(ellipse 60% 45% at 50% 30%, var(--brand-soft), transparent 70%);
}

.hero h1 { font-size: 0; line-height: 0; }
.hero h1 img { width: min(440px, 80vw); height: auto; }

.hero p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* SEARCH BOX */
.search-box {
  position: relative;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 540px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}
.search-box input::placeholder { color: rgba(245,243,238,0.45); }

/* SUGERENCIAS */
.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  list-style: none;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
  z-index: 50;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.suggest[hidden] { display: none; }

.suggest li { padding: 10px 14px; border-radius: 12px; cursor: pointer; color: var(--muted); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--brand-soft); color: var(--text); }
.suggest mark { background: none; color: var(--brand-text); font-weight: 700; }

/* POPULARES */
.popular { margin-top: 24px; }
.popular span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 0.9rem; }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.tags button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.tags button:hover { border-color: var(--brand); background: var(--brand-soft); }

.hero-cta { margin-top: 32px; }

/* SECTIONS */
.section { padding: 96px 20px; text-align: center; }
.section h2, .cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.section-sub { margin-top: 10px; color: var(--muted); }

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 40px auto 0;
}

/* CARDS */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card[hidden] { display: none; }

.card-icon { font-size: 1.8rem; line-height: 1; }
.card h3 { font-size: 1.1rem; margin-top: 6px; }
.card p { color: var(--muted); font-size: 0.92rem; flex: 1; }

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 0.75rem;
  font-weight: 600;
}

.card-link { margin-top: 8px; color: var(--brand-text); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.empty { margin-top: 40px; color: var(--muted); }
.empty[hidden] { display: none; }

/* CONFIANZA */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 40px auto 0;
}
.trust-item { padding: 28px; border-top: 2px solid var(--brand); text-align: left; background: var(--surface); border-radius: 0 0 16px 16px; }
.trust-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.trust-item p { color: var(--muted); font-size: 0.95rem; }
.trust-item p + p { margin-top: 12px; }
.trust-item a { color: var(--brand-text); font-weight: 600; text-decoration: none; }
.trust-item a:hover { text-decoration: underline; }

/* CTA */
.cta-section { padding: 96px 20px; text-align: center; }
.cta-section h2 { margin-bottom: 24px; }

.btn {
  display: inline-block;
  margin: 8px;
  padding: 14px 28px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--brand);
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn.outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--text); }
.btn.outline:hover { border-color: var(--text); }

/* WHATSAPP FLOTANTE */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #25D366;
  color: #062b12;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 900;
}

/* FOOTER */
footer { text-align: center; padding: 40px 20px 100px; color: rgba(245,243,238,0.5); border-top: 1px solid var(--line); }

/* MOBILE */
@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  .links a:nth-child(2), .links a:nth-child(4) { display: none; }
  .section, .cta-section { padding: 72px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.credit { margin-top: 10px; font-size: 0.85rem; }
.credit a { color: var(--brand-text); font-weight: 600; text-decoration: none; }
.credit a:hover { text-decoration: underline; }
