/* La marca de Bosaki para toda la web: negro, carbón, rojo Bosaki y blanco.
   CSS a mano, sin CDN y sin compilación (unidad 011). El bias fija Tailwind, pero compilarlo
   exige Node y esta máquina no lo tiene (docs/conocimiento/entorno-de-esta-maquina.md);
   montarlo queda como trabajo descubierto para la unidad que prepare el despliegue.
   Las fuentes se sirven desde static/fonts/ (licencia OFL en fonts/OFL.txt): nada de
   Google Fonts, para no mandar a terceros la IP de quien visita. */

@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/teko-500.9c8df45c0143.woff2") format("woff2");
}
@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/teko-600.a7c5a5b6b298.woff2") format("woff2");
}
@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/teko-700.323a2e5bec46.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.da03732a27e1.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.2ede57db1a3a.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.8ca0a5155296.woff2") format("woff2");
}

:root {
  --negro: #0b0b0c;
  --carbon: #151518;
  --carbon-2: #1f2025;
  --borde: #33343b;
  --rojo: #cf202f;          /* rojo Bosaki: con texto blanco da 5,3:1 */
  --rojo-claro: #ff5c68;    /* para enlaces y detalles sobre fondo oscuro */
  --blanco: #f5f5f5;
  --gris: #b4b4bc;          /* texto secundario: 9:1 sobre el negro */
  --exito: #3fbf6f;
  --aviso: #e8a93a;
  --titulos: "Teko", "Arial Narrow", Impact, sans-serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radio: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16px/1.6 var(--texto);
  color: var(--blanco);
  background: var(--negro);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }

a { color: var(--rojo-claro); }
a:hover { color: #fff; }

h1, h2, h3, .titulo-seccion {
  font-family: var(--titulos);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin: 0 0 10px; }
h2 { font-size: 2rem; margin: 28px 0 12px; }
h3 { font-size: 1.6rem; margin: 0 0 6px; }

/* --- La barra ------------------------------------------------------------------------ */

.barra {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 20px;
  background: rgba(11, 11, 12, 0.96);
  border-bottom: 3px solid var(--rojo);
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.marca img { width: 40px; height: 40px; }
.marca-texto, .pie-marca span, .hero-marca span {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0.04em;
}
.marca-texto small, .pie-marca small, .hero-marca small {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--rojo-claro);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}
.menu a, .menu .enlace {
  color: var(--blanco);
  text-decoration: none;
  font-family: var(--titulos);
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.menu a:hover, .menu .enlace:hover { color: var(--rojo-claro); }
.menu .boton-menu { color: #fff; padding: 6px 14px 4px; }
.menu .boton-menu:hover { color: #fff; }
.en-linea { display: inline; margin: 0; }
.enlace { background: none; border: 0; cursor: pointer; padding: 0; }

.menu-boton {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  color: #fff;
  border: 1px solid var(--borde);
  border-radius: 6px;
  padding: 6px 12px;
  font: 600 0.95rem var(--texto);
  cursor: pointer;
}
.menu-icono, .menu-icono::before, .menu-icono::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
}
.menu-icono::before, .menu-icono::after { content: ""; position: absolute; left: 0; }
.menu-icono::before { top: -6px; }
.menu-icono::after { top: 6px; }

/* --- Contenido de las pantallas ------------------------------------------------------ */

main { flex: 1 0 auto; width: 100%; max-width: 1000px; margin: 0 auto; padding: 32px 16px 56px; }
.portada main { max-width: none; padding: 0; }
.entradilla { color: var(--gris); margin-top: 0; }

.planes {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--carbon-2);
  border: 1px solid var(--borde);
  border-top: 4px solid var(--rojo);
  border-radius: var(--radio);
  padding: 20px;
}
.plan h2, .plan h3 { font-size: 1.7rem; margin: 0 0 6px; }
.plan .boton { align-self: flex-start; margin-top: auto; }
.plan img { border-radius: 6px; object-fit: cover; width: 100%; }
.precio {
  font-family: var(--titulos);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  margin: 6px 0 10px;
  color: #fff;
}
.descripcion { color: var(--gris); min-height: 2.5em; }

/* Las masterclass (043): la tarjeta con los cupos, y liberar con su motivo en la tabla. */
.masterclass p { margin: 0 0 10px; }
.masterclass .descripcion { min-height: 0; overflow-wrap: anywhere; }
.masterclass h2 a { color: inherit; text-decoration: none; }
.masterclass-cuando, .masterclass-estado { font-weight: 600; color: #fff; }
.masterclass-tuya { color: var(--exito); }
.liberar-cupo { display: flex; gap: 8px; align-items: center; }
.liberar-cupo input[type="text"] {
  min-width: 130px;
  padding: 8px 10px;
  background: var(--negro);
  color: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 6px;
}

.boton {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  border: 2px solid var(--rojo);
  border-radius: 6px;
  padding: 9px 18px 7px;
  font-family: var(--titulos);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.boton:hover { background: #e32636; border-color: #e32636; color: #fff; }
.boton:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--rojo-claro);
  outline-offset: 2px;
}
.boton-borde { background: transparent; border-color: #fff; }
.boton-borde:hover { background: #fff; border-color: #fff; color: var(--negro); }
.boton-grande { font-size: 1.6rem; padding: 12px 28px 9px; }

.formulario, .cupon {
  background: var(--carbon);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 20px;
  max-width: 540px;
  margin-bottom: 18px;
}
.campo { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; }
.campo label { font-weight: 600; }
.campo input, .campo select, .campo textarea {
  padding: 10px 12px;
  background: var(--negro);
  color: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 6px;
  font: inherit;
  max-width: 100%;
}
.campo input[type="checkbox"], .campo input[type="radio"] { width: auto; accent-color: var(--rojo); }
.campo input[type="date"], .campo input[type="month"], .campo input[type="time"] { color-scheme: dark; }
.campo ul { list-style: none; padding: 0; margin: 0; }
.ayuda, .letra-pequena { font-size: 0.85rem; color: var(--gris); }
ul.errorlist { color: var(--rojo-claro); padding-left: 18px; margin: 4px 0 0; }

.resumen, .estado {
  background: var(--carbon);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 16px 18px;
  margin: 0 0 18px;
}
.estado { margin: 18px 0; }
.estado h2 { margin-top: 0; }
.estado-aprobado { border-left: 6px solid var(--exito); }
.estado-rechazado { border-left: 6px solid var(--rojo); }
.estado-pendiente { border-left: 6px solid var(--aviso); }

/* El cuadre de la caja (041): una cuenta por bloques, con las cifras alineadas a la derecha. */
.cuadre { display: grid; gap: 14px; margin: 0 0 18px; align-items: start; }
.cuadre .resumen { margin: 0; }
.cuadre h3 { margin: 0 0 4px; }
.cuadre h3 + p { margin: 0 0 8px; }
.cuenta { margin: 0; }
.cuenta-fila {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--borde);
}
.cuenta-fila:first-child { border-top: 0; }
.cuenta dt { min-width: 0; }
.cuenta dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.cuenta .signo { display: inline-block; width: 1.4em; color: var(--gris); font-weight: 600; }
.cuenta .ayuda { display: block; font-weight: 400; }
.cuenta-detalle { padding: 2px 0 6px 1.4em; border-top: 0; font-size: 0.85rem; color: var(--gris); }
.cuenta-detalle dd { font-weight: 400; }
.cuenta-total { margin-top: 4px; padding-top: 12px; border-top: 2px solid var(--gris); }
.cuenta-total dt, .cuenta-total dd { font-weight: 700; }
.cuadre-efectivo { border-left: 6px solid var(--exito); }
.cuadre-efectivo .cuenta-total dt, .cuadre-efectivo .cuenta-total dd { font-size: 1.25rem; }
.cuadre-efectivo .cuenta-total dd { color: var(--exito); }
@media (min-width: 900px) {
  .cuadre { grid-template-columns: 1fr 1fr; }
  .cuadre-efectivo { grid-row: span 2; }
}

.desplazable { overflow-x: auto; margin-bottom: 18px; -webkit-overflow-scrolling: touch; }
.tabla { width: 100%; border-collapse: collapse; background: var(--carbon); }
.tabla th, .tabla td {
  border: 1px solid var(--borde);
  padding: 9px 10px;
  text-align: left;
  font-size: 0.95rem;
  vertical-align: top;
}
.tabla th {
  background: var(--carbon-2);
  font-family: var(--titulos);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tabla tr.escalado { background: #3a2a0d; }
.tabla tr.vencido { color: var(--gris); }
.tabla .boton { font-size: 1.05rem; padding: 6px 12px 4px; margin: 2px 0; }

.avisos { list-style: none; padding: 0; }
.avisos li {
  background: var(--carbon);
  border-left: 6px solid var(--aviso);
  padding: 10px 14px;
  margin-bottom: 10px;
}

/* --- El pie -------------------------------------------------------------------------- */

.pie {
  background: var(--carbon);
  border-top: 3px solid var(--rojo);
  padding: 40px 20px 20px;
  color: var(--gris);
  font-size: 0.95rem;
}
.pie-rejilla {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.pie p { margin: 0 0 8px; }
.pie a { color: var(--blanco); }
.pie a:hover { color: var(--rojo-claro); }
.pie-marca { display: flex; align-items: center; gap: 12px; color: #fff; }
.pie-titulo { font-size: 1.5rem; margin: 0 0 10px; color: #fff; }
.pie-legal {
  max-width: 1100px;
  margin: 28px auto 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--borde);
  font-size: 0.85rem;
  text-align: center;
}
.redes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.redes a {
  display: inline-block;
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 4px 12px;
  text-decoration: none;
}
.redes a:hover { border-color: var(--rojo); }

/* --- La portada ---------------------------------------------------------------------- */

.envoltura { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.seccion { padding: 72px 0; }
.seccion-carbon { background: var(--carbon); }
.antetitulo {
  margin: 0 0 4px;
  color: var(--rojo-claro);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.titulo-seccion { font-size: clamp(2.6rem, 6vw, 3.8rem); margin: 0 0 28px; }
.centrado { text-align: center; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  min-height: calc(100svh - 66px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--negro);
}
.hero-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.15) 0%, rgba(11, 11, 12, 0.55) 45%, rgba(11, 11, 12, 0.96) 100%);
}
.hero-texto { position: relative; z-index: 1; padding: 40px 20px 56px; max-width: 680px; }
.hero-marca { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.hero-marca img { width: 72px; height: 72px; }
.hero-marca span { font-size: 3rem; }
.hero h1 { font-size: clamp(3.2rem, 11vw, 6.2rem); font-weight: 700; line-height: 0.9; margin: 0 0 14px; }
.hero-sublema { font-size: 1.1rem; margin: 0; color: #e6e6ea; max-width: 34em; }

.tarjetas {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.tarjeta-foto {
  position: relative;
  overflow: hidden;
  border-radius: var(--radio);
  aspect-ratio: 3 / 4;
  background: var(--carbon);
}
.tarjeta-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tarjeta-foto:hover img { transform: scale(1.05); }
.tarjeta-foto-texto {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(11, 11, 12, 0.94) 55%);
}
.tarjeta-foto-texto h3 { font-size: 2rem; border-left: 4px solid var(--rojo); padding-left: 10px; }
.tarjeta-foto-texto p { margin: 6px 0 0; font-size: 0.92rem; color: #e6e6ea; }

.dos-columnas { display: grid; gap: 40px; grid-template-columns: 1.3fr 1fr; align-items: center; }
.foto-lateral { margin: 0; }
.foto-lateral img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radio);
  border-bottom: 4px solid var(--rojo);
}
.foto-lateral figcaption { color: var(--gris); font-size: 0.9rem; margin-top: 8px; }

.motivos { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.motivos li { display: flex; gap: 14px; align-items: flex-start; }
.motivos h3 { font-size: 1.5rem; }
.motivos p { margin: 0; color: var(--gris); font-size: 0.95rem; }
.motivo-icono {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rojo);
  font-family: var(--titulos);
  font-size: 1.5rem;
  font-weight: 700;
  padding-top: 3px;
}

.horarios { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.horario {
  background: var(--carbon-2);
  border: 1px solid var(--borde);
  border-top: 4px solid var(--rojo);
  border-radius: var(--radio);
  padding: 20px;
}
.horario h3 { font-size: 1.9rem; }
.horario ul { list-style: none; padding: 0; margin: 10px 0; }
.horario ul li { padding: 6px 0; border-bottom: 1px dashed var(--borde); }
.horario ul li:last-child { border-bottom: 0; }

.seccion-tienda { border-top: 4px solid var(--rojo); }
.tienda-cabecera { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 24px; }
.tienda-cabecera img { width: 112px; height: 112px; flex: 0 0 auto; }
.tienda-cabecera div { flex: 1 1 260px; }
.tienda-cabecera .titulo-seccion { margin-bottom: 6px; }
.tienda-cabecera .entradilla { margin: 0; }
.productos-portada .plan img { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.productos-portada .precio { font-size: 2rem; }
.seccion-tienda .acciones { margin-top: 24px; justify-content: center; }

.coach { grid-template-columns: 1fr 1.3fr; }
.coach-foto {
  margin: 0;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radio);
  border-bottom: 4px solid var(--rojo);
  background: radial-gradient(circle at 50% 40%, #2a2b31, var(--carbon) 70%);
}
.coach-foto img { width: 100%; height: 100%; object-fit: cover; }
.coach-foto .coach-respaldo { width: 55%; height: auto; object-fit: contain; }
.coach-nombre { font-size: 2.4rem; color: var(--rojo-claro); }

.direccion { font-size: 1.25rem; color: #fff; }

.llamada {
  position: relative;
  overflow: hidden;
  padding: 110px 20px;
  text-align: center;
}
.llamada-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.llamada::after { content: ""; position: absolute; inset: 0; background: rgba(120, 10, 20, 0.78); }
.llamada-texto { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.llamada h2 { font-size: clamp(3.2rem, 10vw, 5.5rem); font-weight: 700; margin: 0 0 10px; }
.llamada p { font-size: 1.15rem; margin: 0 0 24px; }
.llamada .boton { background: #fff; border-color: #fff; color: var(--rojo); }
.llamada .boton:hover { background: var(--negro); border-color: var(--negro); color: #fff; }

.redes-grandes { justify-content: center; gap: 12px; }
.redes-grandes a { padding: 12px 22px; font-size: 1rem; color: var(--blanco); }
.redes-grandes span { color: var(--gris); margin-left: 6px; }

.texto-legal { max-width: 760px; }
.texto-legal h2 { font-size: 1.9rem; margin-top: 34px; }
.texto-legal li { margin-bottom: 6px; }

/* --- Escritorio: la foto de la portada a la derecha ----------------------------------- */

@media (min-width: 900px) {
  .hero { align-items: center; }
  .hero-foto { left: 38%; width: 62%; object-position: 50% 30%; }
  .hero::after {
    background: linear-gradient(90deg, var(--negro) 36%, rgba(11, 11, 12, 0.6) 55%, rgba(11, 11, 12, 0.05) 80%);
  }
  /* El tope de ancho mide solo el texto: con el relleno dentro, en pantallas muy anchas el
     relleno izquierdo se comía los 680 px y el texto salía a una palabra por línea. */
  .hero-texto {
    box-sizing: content-box;
    max-width: 600px;
    padding: 60px 20px 60px max(20px, calc((100vw - 1140px) / 2 + 20px));
  }
}

/* --- Móvil (hasta 760 px): menú plegable y una columna -------------------------------- */

@media (max-width: 760px) {
  .barra { padding: 8px 16px; }
  .js .menu-boton { display: inline-flex; }
  .js .menu { display: none; }
  .menu {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
  }
  .js .menu.abierto { display: flex; }
  .menu a, .menu .enlace, .menu form {
    padding: 10px 0;
    border-bottom: 1px solid var(--borde);
    text-align: left;
  }
  .menu .boton-menu { margin-top: 10px; text-align: center; border-bottom: 0; }
  .marca-texto { font-size: 1.5rem; }
  .dos-columnas, .coach { grid-template-columns: 1fr; gap: 28px; }
  .seccion { padding: 52px 0; }
  .envoltura { padding: 0 16px; }
  .hero-texto { padding: 32px 16px 44px; }
  .hero-marca span { font-size: 2.4rem; }
  .hero-marca img { width: 56px; height: 56px; }
  .boton-grande { font-size: 1.4rem; padding: 11px 22px 8px; }
  main { padding: 24px 16px 48px; }
  .formulario, .cupon { padding: 16px; }
}

@media (max-width: 520px) {
  .tarjetas { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tarjeta-foto-texto { padding: 40px 10px 10px; }
  .tarjeta-foto-texto h3 { font-size: 1.5rem; padding-left: 8px; }
  .tarjeta-foto-texto p { font-size: 0.78rem; line-height: 1.35; }
  .tarjeta-foto:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}
