/* HotVal — base: reset, tokens y tipografía. Sin CSS incrustado en plantillas. */

@font-face {
  font-family: "DejaVu Sans";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/DejaVuSans.ttf") format("truetype");
}
@font-face {
  font-family: "DejaVu Sans";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/DejaVuSans-Bold.ttf") format("truetype");
}

:root {
  /* Superficies (sitio oscuro) */
  --hv-bg:        #000000;
  --hv-surface:   #0e0e0e;
  --hv-bar:       #000000;
  --hv-hairline:  rgba(255,255,255,.08);

  /* Texto */
  --hv-text:      #c9c9c9;
  --hv-heading:   #ffffff;
  --hv-muted:     #888888;
  --hv-nav:       #999999;
  --hv-nav-hover: #ffffff;
  --hv-strong:    #ffffff;

  /* Logo */
  --hv-logo:      #c9c9c9;
  --hv-logo-dim:  #4a4a4a;

  /* CTA / acento */
  --hv-cta-bg:    #ffffff;
  --hv-cta-text:  #000000;
  --hv-accent:    #e10032;

  /* Layout */
  --hv-container-max: 1440px;
  --hv-gutter:    44px;

  --hv-font: "DejaVu Sans", "Bitstream Vera Sans", Verdana, Geneva, Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--hv-bg);
  color: var(--hv-text);
  font-family: var(--hv-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--hv-heading); font-weight: 700; line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
/* Tope de tamaño para los H1: 32px en escritorio, 24px en móvil. */
h1 { font-size: 32px; }
@media (max-width: 640px) { h1 { font-size: 24px; } }
p { margin: 0 0 1em; }

/* Contenedor centrado reutilizable */
.hv-container {
  max-width: var(--hv-container-max);
  margin: 0 auto;
  padding-left: var(--hv-gutter);
  padding-right: var(--hv-gutter);
}

@media (max-width: 980px) {
  :root { --hv-gutter: 22px; }
}

:focus-visible { outline: 2px solid #6aa9ff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Badge de score IA sobre las fotos (ficha, panel, etc.) ===== */
.ficha-galeria__foto { position: relative; }
.hv-ai-badge {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  display: inline-flex; align-items: baseline; gap: 1px;
  font: 700 12px/1 var(--hv-font, sans-serif); color: #fff;
  background: rgba(0,0,0,.55); border: 2px solid #888; border-radius: 999px;
  padding: 5px 9px; pointer-events: none; letter-spacing: -.3px;
}
.hv-ai-badge small { font-size: 8px; font-weight: 700; opacity: .9; margin-left: 1px; }
.hv-ai-badge--ia { border-color: #e10032; color: #ff8a8a; }
.hv-ai-badge--dudoso { border-color: #e6b800; color: #ffd97a; }
.hv-ai-badge--real { border-color: #00cc00; color: #9cf29c; }
/* En el panel las miniaturas ya tienen botones arriba: el badge va abajo-izq. */
.hv-thumb .hv-ai-badge { top: auto; bottom: 6px; left: 6px; right: auto; padding: 4px 7px; }

/* ---- Age gate +18 (bloquea todo hasta aceptar) ---- */
html.hv-age-lock, html.hv-age-lock body { overflow: hidden !important; }
.hv-age {
    position: fixed; inset: 0; z-index: 2147483000; background: #000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.hv-age__box {
    max-width: 340px; width: 100%; border: 2px solid #e10032; border-radius: 6px;
    padding: 28px 24px; text-align: center; color: #ddd; background: #000;
}
.hv-age__logo svg { width: 160px; max-width: 72%; height: auto; fill: #c9c9c9; color: #c9c9c9; }
.hv-age__title { font-size: 16px; line-height: 1.4; margin: 14px 0 18px; color: #eee; }
.hv-age__text { font-size: 14px; line-height: 1.55; color: #b9b9b9; margin: 0 0 12px; }
.hv-age__link { margin: 0 0 6px; }
.hv-age__link a { color: #ddd; text-decoration: underline; }
.hv-age__btn {
    margin-top: 18px; background: #16a300; color: #fff; border: 0; border-radius: 4px;
    padding: 12px 36px; font-size: 18px; font-weight: 700; cursor: pointer; min-height: 48px;
}
.hv-age__btn:hover { background: #13c000; }

/* ---- Páginas genéricas (nosotros, privacidad, cookies, términos…) ---- */
.hv-page { padding: 24px 0 48px; }
.hv-page__title { font-size: 28px; line-height: 1.2; margin: 10px 0 20px; }
@media (max-width: 640px) { .hv-page__title { font-size: 24px; } }
.hv-prose { max-width: 820px; color: #ddd; font-size: 16px; line-height: 1.7; }
.hv-prose h2 { font-size: 22px; margin: 28px 0 10px; color: #fff; }
.hv-prose h3 { font-size: 18px; margin: 22px 0 8px; color: #fff; }
.hv-prose p { margin: 0 0 14px; }
.hv-prose ul, .hv-prose ol { margin: 0 0 14px; padding-left: 22px; }
.hv-prose li { margin: 4px 0; }
.hv-prose a { color: #e10032; }
.hv-prose a:hover { text-decoration: underline; }
.hv-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.hv-prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.hv-prose th, .hv-prose td { border: 1px solid #444; padding: 8px 10px; text-align: left; }
