/* BHIOR — bhior.net
   Hoja de estilos única. Sin frameworks ni dependencias externas. */

:root {
  --brand: #32aab4;
  --brand-dark: #2a8893;
  --brand-soft: #e8f5f7;
  --ink: #1f2a30;
  --ink-soft: #3c4a52;
  --muted: #5f7078;
  --line: #e2e9eb;
  --bg: #ffffff;
  --bg-soft: #f7f9fa;
  --wa: #25d366;
  --radius: 10px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(31, 42, 48, .06), 0 8px 24px rgba(31, 42, 48, .06);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 118px; }
.brand span { position: absolute; left: -9999px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: .95rem; letter-spacing: .01em;
}
.nav a:hover { color: var(--brand); }
.nav .btn { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .97rem; border: 2px solid var(--brand);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--brand); }

/* ---------- Secciones ---------- */
section { padding: 74px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-dark);
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 78px; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); }
.hero p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 640px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .meta { margin-top: 30px; font-size: .92rem; color: var(--muted); }

/* ---------- Rejillas ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 1em; }
.card .models { font-size: .84rem; color: var(--muted); margin-bottom: 0; }

.feature { padding: 0; border: 0; box-shadow: none; background: transparent; }
.feature .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 700; font-size: .95rem; margin-bottom: 14px;
}

/* ---------- Sobre el dominio ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: start; }
.panel {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
}
.panel h3 { font-size: 1rem; }
.dl { margin: 0; font-size: .95rem; }
.dl div { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dl div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); min-width: 116px; margin: 0; }
.dl dd { margin: 0; color: var(--ink); font-weight: 700; }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label {
  display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.contact-list a,
.contact-list .val { font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.contact-list .val { color: var(--ink); }
.contact-list a:hover { text-decoration: underline; }
.wa { color: #128c4a; }

/* ---------- Pie ---------- */
.site-footer {
  background: var(--ink); color: #b9c6cc; padding: 56px 0 28px;
  font-size: .93rem;
}
.site-footer h4 {
  color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer a { color: #dbe5e9; text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer .logo-foot { width: 128px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-company .entity { color: #fff; font-weight: 700; margin-bottom: .25em; }
.footer-company address { font-style: normal; line-height: 1.8; margin: 0; }
.legal {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  font-size: .86rem; color: #8fa2aa;
}

/* ---------- Páginas de texto legal ---------- */
.doc { padding: 62px 0 74px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 1.3rem; margin-top: 2em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc .updated { color: var(--muted); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 54px 0; }
  .hero { padding: 60px 0 54px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
  .site-header .wrap { min-height: 64px; }
  .brand img { width: 100px; }
}

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