/*
Theme Name:   Half Blood
Theme URI:    https://halfblood.cl/
Description:  Tema hijo de Hello Elementor para Half Blood. Header, footer y estilos de marca.
Author:       Half Blood
Template:     hello-elementor
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain:  half-blood
*/

/* Todo el estilo del sitio vive aquí. Los widgets HTML no llevan <style>. */

/* ---------- 1. Tokens del manual de marca ---------- */
:root {
  --hb-carbon: #0F0E0D;
  --hb-superficie: #1A1817;
  --hb-grafito: #2B2927;
  --hb-piedra: #5E5A55;
  --hb-cemento: #A39E97;
  --hb-cal: #ECE8E1;
  --hb-linea-clara: #C9C4BB;

  --hb-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --hb-texto: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --hb-mono: 'Space Mono', 'Courier New', monospace;

  --hb-ancho: 1280px;
  --hb-gutter: 64px;
  --hb-sec: 120px;
}
@media (max-width: 1024px) { :root { --hb-gutter: 40px; --hb-sec: 96px; } }
@media (max-width: 767px)  { :root { --hb-gutter: 20px; --hb-sec: 72px; } }

/* ---------- 2. Base ---------- */
body {
  background: var(--hb-carbon);
  color: var(--hb-cal);
  font-family: var(--hb-texto);
  -webkit-font-smoothing: antialiased;
}
.hb, .hb * { box-sizing: border-box; }
.hb img { display: block; max-width: 100%; height: auto; }
.hb a { color: inherit; }
.hb :focus-visible { outline: 2px solid var(--hb-cal); outline-offset: 3px; }
.hb-oculto {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Contenedores de Elementor que llevan una sección: agregarles la clase hb-full */
.e-con.hb-full {
  --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
}
.hb-full .elementor-widget-html,
.hb-full .elementor-widget-shortcode { width: 100%; }

/* ---------- 3. Estructura ---------- */
.hb-wrap { max-width: var(--hb-ancho); margin: 0 auto; padding: 0 var(--hb-gutter); }
.hb-sec { padding: var(--hb-sec) 0; background: var(--hb-carbon); color: var(--hb-cal); }
.hb-sec--sup { background: var(--hb-superficie); }
.hb-sec--claro { background: var(--hb-cal); color: var(--hb-carbon); }
.hb-sec--borde { border-top: 1px solid var(--hb-grafito); }
.hb-cabecera {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 767px) { .hb-cabecera { margin-bottom: 28px; } }

/* ---------- 4. Tipografía ---------- */
.hb-etiqueta {
  font-family: var(--hb-mono); font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--hb-cemento); margin: 0;
}
.hb-sec--claro .hb-etiqueta { color: var(--hb-piedra); }
.hb-h2 {
  font-family: var(--hb-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, 6.2vw, 88px); line-height: .92; margin: 0; color: inherit;
}
.hb-h3 {
  font-family: var(--hb-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 3.2vw, 44px); line-height: 1; margin: 0;
}
.hb-p { font-size: 18px; line-height: 1.6; color: var(--hb-cemento); margin: 0; max-width: 62ch; }
.hb-sec--claro .hb-p { color: var(--hb-piedra); }
@media (max-width: 767px) { .hb-p { font-size: 16px; } }
.hb-link {
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.hb-link:hover { opacity: .7; }

/* ---------- 5. Botones ---------- */
.hb-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.hb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 1.5px solid var(--hb-cal);
  background: var(--hb-cal); color: var(--hb-carbon) !important;
  font-family: var(--hb-texto); font-weight: 600; font-size: 15px;
  text-decoration: none; border-radius: 0; cursor: pointer;
  transition: background .2s, color .2s;
}
.hb-btn:hover { background: transparent; color: var(--hb-cal) !important; }
.hb-btn--linea { background: transparent; color: var(--hb-cal) !important; }
.hb-btn--linea:hover { background: var(--hb-cal); color: var(--hb-carbon) !important; }
.hb-sec--claro .hb-btn { border-color: var(--hb-carbon); background: var(--hb-carbon); color: var(--hb-cal) !important; }

/* ---------- 6. Header ---------- */
.hb-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
}
.hb-header__in {
  max-width: var(--hb-ancho); margin: 0 auto; padding: 28px var(--hb-gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.hb-header__logo img { width: 220px; }
.hb-header__hb { display: none; }
.hb-header__hb img { width: 64px; }
body.home .hb-header__logo { display: none; }
body.home .hb-header__hb { display: block; }
body:not(.home) .hb-header { position: relative; background: var(--hb-carbon); border-bottom: 1px solid var(--hb-grafito); }
.hb-nav { display: flex; align-items: center; gap: 36px; }
.hb-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--hb-cal); }
.hb-nav a:not(.hb-btn):hover { color: var(--hb-cemento); }
.hb-menu-btn {
  display: none; width: 48px; height: 48px; padding: 0;
  background: transparent; border: 1.5px solid var(--hb-cal); color: var(--hb-cal);
  align-items: center; justify-content: center; cursor: pointer;
}
.hb-menu-btn svg { width: 24px; height: 24px; }
.hb-ico-cerrar, .hb-header.is-abierto .hb-ico-abrir { display: none; }
.hb-header.is-abierto .hb-ico-cerrar { display: block; }
@media (max-width: 900px) {
  .hb-menu-btn { display: inline-flex; }
  .hb-header__logo img { width: 150px; }
  .hb-header__hb img { width: 52px; }
  .hb-nav {
    display: none; position: fixed; inset: 0; z-index: 60; background: var(--hb-carbon);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 28px; padding: 96px var(--hb-gutter) 48px;
  }
  .hb-nav a:not(.hb-btn) { font-family: var(--hb-display); font-weight: 800; text-transform: uppercase; font-size: 44px; line-height: 1; }
  .hb-header.is-abierto .hb-nav { display: flex; }
  .hb-header.is-abierto .hb-menu-btn { position: fixed; top: 20px; right: var(--hb-gutter); z-index: 70; }
}

/* ---------- 7. Hero ---------- */
.hb-hero {
  position: relative; min-height: 860px; height: 100vh; max-height: 1000px;
  overflow: hidden; background: var(--hb-carbon); display: flex; align-items: flex-end;
}
.hb-hero__foto { position: absolute; inset: 0; }
.hb-hero__foto img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 30%; }
.hb-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,14,13,.7) 0%, rgba(15,14,13,.05) 30%, rgba(15,14,13,.15) 55%, rgba(15,14,13,.92) 100%);
}
.hb-hero__contenido { position: relative; z-index: 1; width: 100%; padding-bottom: 72px; }
.hb-hero__bloque { display: flex; flex-direction: column; gap: 24px; max-width: 860px; }
.hb-hero h1 { margin: 0; }
.hb-hero__logo { width: 860px; }
.hb-hero__firma {
  font-family: var(--hb-display); font-weight: 800; text-transform: uppercase;
  font-size: 44px; line-height: 1; margin: 0;
}
@media (max-width: 767px) {
  .hb-hero { min-height: 640px; height: 92vh; }
  .hb-hero__foto img { object-position: 58% center; }
  .hb-hero__contenido { padding-bottom: 40px; }
  .hb-hero__bloque { gap: 18px; }
  .hb-hero__firma { font-size: 28px; }
}

/* ---------- 8. Disco ---------- */
.hb-disco { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hb-disco__portada img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hb-disco__texto { display: flex; flex-direction: column; gap: 22px; }
.hb-spotify iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
@media (max-width: 900px) { .hb-disco { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 9. Videos ---------- */
.hb-videos { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.hb-videos__lado { display: flex; flex-direction: column; gap: 32px; }
.hb-video { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.hb-video__marco { position: relative; aspect-ratio: 16 / 9; background: var(--hb-superficie); }
.hb-video__marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hb-video figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hb-video__titulo { font-family: var(--hb-display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; }
.hb-video--grande .hb-video__titulo { font-size: 44px; }
.hb-video__tipo { font-family: var(--hb-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--hb-cemento); }
@media (max-width: 900px) { .hb-videos { grid-template-columns: 1fr; } .hb-video--grande .hb-video__titulo { font-size: 30px; } }

/* ---------- 10. Banda ---------- */
.hb-banda { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.hb-banda__texto { display: flex; flex-direction: column; gap: 24px; }
.hb-banda__texto .hb-h2 { font-size: clamp(44px, 5.6vw, 80px); }
.hb-integrantes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.hb-integrante { display: flex; flex-direction: column; gap: 6px; }
.hb-integrante img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 4px; }
.hb-integrante__nombre { font-weight: 600; font-size: 16px; }
.hb-integrante__rol { font-family: var(--hb-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--hb-piedra); }
@media (max-width: 900px) { .hb-banda { grid-template-columns: 1fr; gap: 36px; } .hb-integrantes { gap: 14px; } }

/* ---------- 11. Datos ---------- */
.hb-datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.hb-dato { border-top: 1px solid var(--hb-cemento); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.hb-dato__cifra { font-family: var(--hb-display); font-weight: 800; text-transform: uppercase; font-size: 48px; line-height: 1; }
.hb-dato__texto { font-size: 15px; line-height: 1.45; color: var(--hb-cemento); }
.hb-sec--datos { padding: 88px 0; }
@media (max-width: 900px) { .hb-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .hb-dato__cifra { font-size: 36px; } .hb-sec--datos { padding: 56px 0; } }

/* ---------- 12. Fechas ---------- */
.hb-sec--fechas { padding: 56px 0; }
.hb-fechas__vacio {
  margin-top: 40px; border: 1px solid var(--hb-grafito); padding: 56px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.hb-fechas__vacio > div { display: flex; flex-direction: column; gap: 10px; }
.hb-fechas__titulo { font-family: var(--hb-display); font-weight: 800; text-transform: uppercase; font-size: 48px; line-height: 1; margin: 0; }
@media (max-width: 767px) {
  .hb-fechas__vacio { flex-direction: column; align-items: flex-start; padding: 32px 24px; margin-top: 28px; }
  .hb-fechas__titulo { font-size: 36px; }
}

/* ---------- 13. Galería (adelanto) ---------- */
.hb-galeria {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 280px 280px; gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.hb-galeria li { margin: 0; }
.hb-galeria img { width: 100%; height: 100%; object-fit: cover; }
.hb-galeria li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.hb-galeria li:nth-child(2) { grid-column: span 2; }
@media (max-width: 767px) {
  .hb-galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 10px; }
  .hb-galeria li:nth-child(1) { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
  .hb-galeria li:nth-child(2) { display: none; }
  .hb-galeria li:nth-child(n+3) { aspect-ratio: 1 / 1; }
}

/* ---------- 14. Contacto + Fluent Forms ---------- */
.hb-contacto__texto { display: flex; flex-direction: column; gap: 24px; }
.hb-contacto__correo { font-size: 24px; font-weight: 600; text-decoration: none; word-break: break-all; }
@media (max-width: 767px) { .hb-contacto__correo { font-size: 19px; } }
.hb-form { background: var(--hb-superficie); padding: 40px; }
@media (max-width: 767px) { .hb-form { padding: 24px; } }
.hb-form .ff-el-input--label label { color: var(--hb-cal); font-family: var(--hb-texto); font-weight: 600; font-size: 14px; }
.hb-form .ff-el-form-control {
  background: var(--hb-carbon) !important; color: var(--hb-cal) !important;
  border: 1px solid var(--hb-grafito) !important; border-radius: 0 !important;
  min-height: 48px; font-family: var(--hb-texto); font-size: 16px;
}
.hb-form .ff-el-form-control::placeholder { color: var(--hb-cemento); }
.hb-form .ff-el-form-control:focus { border-color: var(--hb-cal) !important; box-shadow: none !important; }
.hb-form .ff-btn-submit {
  background: var(--hb-cal) !important; color: var(--hb-carbon) !important; border: 1.5px solid var(--hb-cal) !important;
  border-radius: 0 !important; min-height: 48px; padding: 0 28px !important;
  font-family: var(--hb-texto); font-weight: 600; font-size: 15px;
}
.hb-form .ff-btn-submit:hover { background: transparent !important; color: var(--hb-cal) !important; }
.hb-form .ff-message-success { background: var(--hb-carbon); color: var(--hb-cal); border: 1px solid var(--hb-grafito); }

/* ---------- 14b. Sección de contacto armada con contenedores de Elementor ----------
   Contenedor exterior (ancho completo): clases  hb-full hb-contacto
   Contenedor interior (ancho completo): clase   hb-contacto__grid
   Dentro: widget HTML (17-home-contacto.html) + widget Fluent Forms con clase hb-form */
.e-con.hb-contacto {
  background: var(--hb-carbon); border-top: 1px solid var(--hb-grafito);
  --padding-top: var(--hb-sec); --padding-bottom: var(--hb-sec);
}
.e-con.hb-contacto__grid {
  display: grid !important; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start;
  max-width: var(--hb-ancho); margin: 0 auto; width: 100%;
  --padding-top: 0px; --padding-bottom: 0px; --padding-left: var(--hb-gutter); --padding-right: var(--hb-gutter);
}
@media (max-width: 900px) { .e-con.hb-contacto__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- 15. Footer ---------- */
.hb-footer { background: var(--hb-carbon); border-top: 1px solid var(--hb-grafito); padding: 64px 0 40px; }
.hb-footer__arriba { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.hb-footer__marca { display: flex; align-items: center; gap: 24px; }
.hb-footer__marca img { width: 120px; height: 120px; }
.hb-footer__firma { font-family: var(--hb-display); font-weight: 800; text-transform: uppercase; font-size: 40px; line-height: .95; }
.hb-footer__nav { display: flex; gap: 64px; }
.hb-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hb-footer__nav a { text-decoration: none; font-size: 15px; color: var(--hb-cemento); }
.hb-footer__nav a:hover { color: var(--hb-cal); }
.hb-footer__nav .hb-footer__redes a { color: var(--hb-cal); }
.hb-footer__abajo {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hb-grafito);
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--hb-mono); font-size: 12px; color: var(--hb-cemento); text-transform: uppercase;
}
@media (max-width: 767px) {
  .hb-footer { padding-top: 48px; }
  .hb-footer__arriba, .hb-footer__abajo { flex-direction: column; }
  .hb-footer__marca img { width: 96px; height: 96px; }
  .hb-footer__firma { font-size: 32px; }
  .hb-footer__nav { gap: 48px; }
}

/* ---------- 16. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) { .hb * { transition: none !important; } }

/* ---------- 17. Ajustes sobre el reset de Hello ---------- */
.hb figcaption { color: inherit; font-style: normal; font-size: inherit; margin: 0; text-align: left; }
.hb-video figcaption { color: var(--hb-cal); }

.e-con.hb-contacto { padding-top: var(--hb-sec) !important; padding-bottom: var(--hb-sec) !important; }
.e-con.hb-contacto__grid { padding-left: var(--hb-gutter) !important; padding-right: var(--hb-gutter) !important; }
