/* Capa del clon: lo que en hiibrid.mx ponían angular-material, los atributos style="" del cascarón y
   SweetAlert2. Va DESPUÉS de las hojas del original para ganar en cascada. Sin estilos en línea. */

/* ── Página ───────────────────────────────────────────────────────────────────────────────────── */
html, body { background: #F4F4F4; }
body { font-family: "RMNeue", sans-serif; }
/* Angular Material en el original: controles en Roboto/Helvetica Neue, texto del contenido en rgba(0,0,0,.87)
   (md-content), toolbar con letter-spacing .005em. El encabezado de escritorio queda fuera, como allá. */
button, input, select, textarea { font-family: Roboto, "Helvetica Neue", sans-serif; }
#hb-contenido, .hb-navbar, .hiiver-site-footer { color: rgba(0, 0, 0, 0.87); }
.app-header .md-toolbar-tools { letter-spacing: 0.005em; }
/* style="" del original que el tema pinta con clases */
.paquetes-directive .container-pq { margin-top: 1rem; }
.hb-pagina { background-color: #F4F4F4; min-height: 100vh; }

/* ── Encabezado de escritorio (md-toolbar) ────────────────────────────────────────────────────── */
.app-theme1 .app-header { background-color: #000; position: relative; z-index: 20; }
.app-header .md-toolbar-tools { display: flex; align-items: center; height: 64px; max-height: 64px; padding: 0 16px; font-size: 20px; color: #fff; }
.app-header a { color: inherit; text-decoration: none; }
.app-header .header-logo { width: 8rem; margin-right: 16px; }
.app-header .desktop-menu-element { color: #fff; text-decoration: none; }
.app-header .desktop-submenu-item { display: block; padding: 12px 20px; color: #fff; text-decoration: none; white-space: nowrap; }
.app-header .desktop-submenu-item:hover { background-color: #E73B2B; }
.app-header .desktop-menu-element.menu-selected { background-color: #E73B2B; }

/* Pantalla de pago: el separador del original se oculta con visibility, que SIGUE ocupando su sitio
   (16 px de margen + 1 de linea + 16), y bajaba 33 px el titulo de la columna izquierda respecto al
   de la derecha. En escritorio no ocupa; en telefono vuelve, que ahi si separa (18-oct-2026). */
/* Aviso de "sin créditos" al pulsar BOOK: el texto con el color de cuerpo del original (#212529), no el
   negro translúcido que heredaba del modal (19-oct-2026). */
#creditsModal .no-credits { color: #212529; }
.hb-compra .x-hide { display: none; }
@media only screen and (max-width: 600px) {
  .hb-compra .x-hide { display: block; }
}
.app-header .flex-grow { flex-grow: 1; }
.hb-acceso-disparo { display: flex; align-items: center; cursor: pointer; }
.hb-acceso-disparo .hb-acceso-login { font-family: "RMNeueBlack"; text-align: right; margin: auto 10px auto 0; width: 5rem; }
.hb-acceso-disparo .hb-acceso-signin { width: 100px; height: 60px; border: 1px solid #E73B2B; font-family: "RMNeueBlack"; color: #fff; padding-top: 15px; text-align: center; margin-right: 5rem; }
.hb-socio { text-align: right; }
.hb-socio .hb-socio-nombre { font-family: "RMNeueBlack"; color: #E73B2B; text-align: right; max-width: 10rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-socio .hb-socio-creditos { font-family: "RMNeueBlack"; font-size: 12px; text-align: right; white-space: nowrap; margin: 0; }
.hb-avatar { position: relative; width: 5rem; height: 4rem; display: flex; align-items: center; justify-content: center; }
.hb-avatar-boton { background: transparent; border: 0; padding: 0; cursor: pointer; }
.menuProfile { object-fit: cover; width: 3rem; height: 3rem; border-radius: 1.5rem; }
.hb-avatar-menu { position: absolute; right: 0; top: 100%; min-width: 11rem; background: #fff; color: #000; box-shadow: 0 2px 8px rgba(0,0,0,.35); padding: .5rem 0; display: none; z-index: 60; }
.hb-avatar[data-abierto="1"] .hb-avatar-menu { display: block; }
.hb-avatar-menu button { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: .7rem 1.2rem; font-family: "RMNeueBlack"; font-size: 14px; color: #000; cursor: pointer; }
.hb-avatar-menu button:hover { background: #f0f0f0; }
.hb-avatar-menu a { display: block; padding: .7rem 1.2rem; font-family: "RMNeueBlack"; font-size: 14px; color: #000; text-decoration: none; }
.hb-avatar-menu a:hover { background: #f0f0f0; }

/* Sobre la portada con video (el original pone la barra absoluta y transparente) */
.hb-cascaron.hb-header-flotante .app-header { position: absolute; left: 0; right: 0; top: 0; background-color: transparent !important; }

/* ── Barra de teléfono (navbar de Bootstrap del original) ─────────────────────────────────────── */
.hb-navbar { z-index: 9; position: relative; }
.hb-navbar > a { display: inline; }
.hb-navbar .hb-navbar-logo { width: 30%; height: 5rem; object-fit: contain; padding-top: 10px; vertical-align: top; }
.hb-navbar .hb-navbar-cuenta { display: inline-block; width: 45%; vertical-align: top; padding-top: 1.6rem; }
.hb-navbar .hb-navbar-acceso { display: flex; justify-content: flex-end; column-gap: 1rem; cursor: pointer; }
.hb-navbar .hb-navbar-acceso p { font-family: "RMNeueBlack"; text-align: right; color: #fff; margin: 0; }
.hb-navbar .hb-navbar-socio { display: flex; justify-content: flex-end; column-gap: 1rem; align-items: center; }
.hb-navbar .hb-navbar-socio .hb-socio-nombre { color: #E73B2B; }
.hb-navbar .hb-navbar-socio .hb-socio-creditos { color: #fff; }
.hb-navbar .navbar-toggler { float: right; margin: 1.8rem 16px 0 0; width: 15%; }
.hb-navbar .navbar-collapse { width: 100%; }
.hb-navbar .navbar-nav .nav-link { color: #fff; }
.hb-navbar .navbar-nav .nav-link.menu-selected { background-color: #E73B2B; }
/* "Cerrar sesión" del menú de teléfono es un botón: sin el fondo gris ni el borde que el navegador le pone (18-oct-2026). */
.hb-navbar .navbar-nav .hb-nav-boton { background: transparent; border: 0; width: 100%; color: inherit; padding-top: 0; padding-bottom: 0; }
/* El texto del botón mide lo mismo que el de los enlaces del menú (50 px de renglón, como el original). */
.hb-navbar .navbar-nav .hb-nav-boton > span { display: inline-block; line-height: 50px; }
.hb-navbar .flex-grow { height: 0; }

/* ── Modales del original (dialogo de 680 px, cierre, utilidades) ─────────────────────────────── */
.hb-modal-680 { max-width: 680px !important; }
.hb-modal-480 { max-width: 480px !important; }
.modal-backdrop.hb-backdrop { backdrop-filter: blur(2px); }
.hb-modal-error { font-family: "RMNeue"; font-size: 14px; color: #E73B2B; margin: 0 40px 1rem; min-height: 1.2em; }
.hb-modal-pie { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.hb-modal-pie .btn-login-active { background-color: #000 !important; }
.hb-modal-pie .hb-enlace-chico { font-family: "RMNeueBlackItalic"; font-size: 14px; color: #E73B2B; background: transparent; border: 0; cursor: pointer; padding: 0; }
.login-form .hb-campo { margin-bottom: 1rem; }
.login-form .hb-campo-fecha label { font-family: "RMNeue"; font-size: 13px; color: #6d6d6d; margin-bottom: .25rem; }
.hb-codigo-input { letter-spacing: .5em; text-align: center; font-size: 1.5rem; font-family: "RMNeueBlack"; }
[data-paso] .hb-paso { display: none; }
[data-paso="correo"] .hb-paso-correo, [data-paso="codigo"] .hb-paso-codigo, [data-paso="registro"] .hb-paso-registro { display: block; }

/* ── Diálogo (lo que en el original hacía SweetAlert2 y el confirm de angular-material) ──────── */
.hb-dialogo { position: fixed; inset: 0; z-index: 1070; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); padding: 1rem; }
.hb-dialogo__caja { background: #fff; border-radius: 5px; width: 32em; max-width: 100%; padding: 1.25em 2em 1.6em; text-align: center; font-family: "GalanoGrotesque", "RMNeue", sans-serif; color: #545454; box-shadow: 0 0 1.5em rgba(0,0,0,.3); }
.hb-dialogo__logo { width: 120px; margin: 0 auto 1rem; display: block; }
.hb-dialogo__logo--chico { height: 60px; width: auto; }
.hb-dialogo__caja h1 { font-family: "RMNeueBlackItalic", sans-serif; font-size: 1.875em; color: #595959; margin: 0 0 .5em; }
.hb-dialogo__caja h2 { font-size: 1.5em; color: #595959; margin: 0 0 .5em; font-weight: 600; }
.hb-dialogo__caja p { font-size: 1.125em; line-height: 1.5; margin: 0 0 .5em; }
.hb-dialogo__botones { display: flex; flex-wrap: wrap; justify-content: center; gap: .6em; margin-top: 1.25em; }
.hb-dialogo__boton { border: 0; border-radius: .25em; padding: .625em 1.1em; font-size: 1em; font-weight: 500; color: #fff; cursor: pointer; font-family: inherit; }
.hb-dialogo__boton--confirmar { background: #E73B2B; }
.hb-dialogo__boton--cancelar { background: #808080; }
.hb-dialogo__boton:focus { outline: 2px solid rgba(231,59,43,.4); outline-offset: 2px; }
.hb-dialogo__texto { font-family: "GalanoGrotesque", sans-serif; }

/* ── Iconos en línea (sustituyen a Font Awesome) ──────────────────────────────────────────────── */
.hb-ico { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; }

/* ── Flotante de WhatsApp (del original, sin <style> en la plantilla) ─────────────────────────── */
.btn-fl-book { background-color: #25D366; color: #fff; border: none; border-radius: 50% !important; height: 70px; width: 70px; padding: 0; display: inline-flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; text-decoration: none; }
.btn-fl-book .fa-whatsapp { font-size: 2rem; line-height: 1; }
.btn-fl-book:hover { background-color: #20BD5A; color: #fff; }
.btn-fl-book:focus { box-shadow: 0 0 0 .2rem rgba(37, 211, 102, .45); }
.hb-flotante { z-index: 30; }
@media only screen and (max-width: 600px) { .mb-m-1 { margin: 1rem !important; } }

/* ── Pie (los iconos de marca del original eran de Font Awesome) ──────────────────────────────── */
.hiiver-site-footer p { font-family: "RMNeue"; }
.hiiver-site-footer b { font-family: "RMNeueBlack"; }

/* ── Portada y bloques portados ───────────────────────────────────────────────────────────────── */
.home-hero .content .hb-home-titulo { white-space: pre-line; }
.home-hero .content a { text-decoration: none; }
.home-hero .hb-home-imagen { object-fit: cover; position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
.coach-card { outline: none; }
.coach-card:focus-visible .coach-hover { opacity: 1; visibility: visible; }

/* ── Accesibilidad: el enlace "Saltar al contenido" (hb-saltar en layouts/base.html, sr-only en el runtime)
   vive oculto hasta recibir foco con el teclado ──── */
.hb-saltar, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hb-saltar:focus, .sr-only:focus, .focus\:not-sr-only:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; padding: .5rem 1rem; margin: 0; overflow: visible; clip: auto; white-space: normal; background: #E73B2B; color: #fff; z-index: 2000; font-family: "RMNeueBlack"; text-decoration: none; }


/* Los avisos del diálogo pueden traer varias líneas (errores del formulario de contacto, como el original). */
.hb-dialogo__texto { white-space: pre-line; }

/* [hidden] siempre oculta, como en el reboot de Bootstrap 5 (bootstrap-mini no lo trae): sin esto, una etiqueta vacía
   del modal de reserva con display de su clase se pintaba como un chip redondo junto a la etiqueta (19-oct-2026). */
[hidden] { display: none !important; }

/* Campos de fecha a la altura de los demás, como en el Bootstrap 5.2 que carga el original (bootstrap-mini no lo trae). */
.form-control::-webkit-date-and-time-value { height: 1.5em; }
/* Y sin el relleno que Chrome pone en los subcampos de la fecha (reboot de Bootstrap 5.2): sin esto mide 2 px más. */
::-webkit-datetime-edit-fields-wrapper, ::-webkit-datetime-edit-text, ::-webkit-datetime-edit-minute, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-year-field { padding: 0; }
::-webkit-inner-spin-button { height: auto; }
