/* ------------------------------------------------
 * billydonald.com — capa de identidad sobre Azurio
 * Se carga después de main.css. Todo lo propio de Billy vive aquí,
 * así la plantilla original se puede actualizar sin perder cambios.
 * ------------------------------------------------ */

/* ---------- Fuentes (self-hosted, licencia OFL) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/bd/manrope-var.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/bd/jetbrains-mono-var.woff") format("woff");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Tipografías y colores originales de Azurio (Manrope + JetBrains Mono, azul #002bba).
     Solo se cargan las fuentes desde el propio sitio en vez de Google Fonts. */
  --_font-default: "Manrope", sans-serif;
  --_font-accent: "JetBrains Mono", sans-serif;
  --bd-accent: var(--accent);
}


.bd-hero.mxd-hero-09 { background-image: none; background-color: #0f0f0f; }
.bd-hero__bar {
  display: block;
  height: clamp(0.8rem, 1.6cqw, 3.2rem);
  width: 38%;
  margin: clamp(1.6rem, 2cqw, 4rem) 0 0 auto;
  background: var(--bd-accent);
}
.bd-hero .mxd-hero-09__descr p { font-size: 2rem; line-height: 1.3; }
.bd-hero .mxd-hero-09__descr p span { opacity: 0.72; font-weight: 500; }
.bd-hero .mxd-hero__mark .mark-icon { background-color: var(--bd-accent); }

.bd-hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}
.bd-hero-disciplines {
  font-family: var(--_font-accent);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nl-white);
}
.bd-hero-disciplines i { font-style: normal; color: var(--bd-accent); padding: 0 0.4em; }

/* ---------- Marca: BD + barra ---------- */
.bd-logo__mark {
  display: inline-block;
  width: auto;
  height: 3.6rem;
  margin-right: 1.2rem;
  color: currentColor;
  flex: 0 0 auto;
}
.mxd-logo, .menu-logo { display: inline-flex; align-items: center; }

.bd-bar {
  display: inline-block;
  height: 0.62em;
  width: 2.4em;
  margin-left: 0.12em;
  background-color: var(--bd-accent);
  vertical-align: baseline;
}
.bd-fw-mark { display: flex; align-items: baseline; }
.bd-fw-mark .bd-bar { flex: 1 1 auto; height: 0.5em; width: auto; min-width: 0.6em; }

/* ---------- Etiquetas de sección ---------- */
.bd-eyebrow {
  font-family: var(--_font-accent);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-medium);
  margin-bottom: 2.4rem;
}
.bd-eyebrow.opposite { color: var(--t-opp-medium); }
.bd-h2 { font-size: clamp(3.6rem, 6vw, 9rem); line-height: 0.95; }
.bd-h2 span { color: var(--t-medium); }
.bd-section-title__btn { display: flex; align-items: flex-end; justify-content: flex-start; padding-top: 2.4rem; }
@media only screen and (min-width: 1200px) { .bd-section-title__btn { justify-content: flex-end; padding-top: 0; } }

/* ---------- Lista de proyectos ---------- */
/* En desktop la imagen sigue al cursor; en tablet/mobile se muestra dentro de la fila */
.bd-list-thumb { display: block; margin: 1.6rem 0 0.8rem; border-radius: 1rem; overflow: hidden; aspect-ratio: 16 / 10; background: var(--base-tint); }
.bd-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media only screen and (min-width: 1200px) { .bd-list-thumb { display: none; } }
.mxd-projects-list__item:hover .mxd-projects-list__title p,
.mxd-projects-list__item:focus-visible .mxd-projects-list__title p { color: var(--accent); }

/* ---------- Case studies ---------- */
.mxd-images-grid__inner.bd-contain { background: var(--base-tint); display: flex; align-items: center; justify-content: center; padding: 4%; }
.mxd-images-grid__inner.bd-contain img { width: 100%; height: auto; max-height: 90vh; object-fit: contain; }
.mxd-images-grid__inner img { display: block; width: 100%; height: auto; }

.bd-video { margin: 0; }
.bd-video video { display: block; width: 100%; height: auto; border-radius: 1rem; background: #0e0e0e; }
.bd-video--vertical video { aspect-ratio: 9 / 16; object-fit: cover; }
.bd-video--tall video { aspect-ratio: 9 / 16; object-fit: contain; }
.bd-video--square video { aspect-ratio: 1 / 1; object-fit: cover; background: #000; }
.bd-videos .mxd-grid-item { margin-bottom: 2.4rem; }
.bd-caption {
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
  margin-top: 1.2rem;
  font-family: var(--_font-accent);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--t-medium);
}

/* ---------- Work: galería ---------- */
.bd-gallery__item { margin: 0 0 3.2rem; }
.bd-gallery__media { border-radius: 1rem; overflow: hidden; background: var(--base-tint); }
.bd-gallery__media img { display: block; width: 100%; height: auto; }
.bd-work-caption { padding-top: 2rem; }
@media only screen and (min-width: 1200px) { .bd-work-caption { padding-top: 0; display: flex; align-items: flex-end; height: 100%; } }

/* ---------- About ---------- */
.bd-about__photo { border-radius: 1.2rem; overflow: hidden; margin-bottom: 3.2rem; background: var(--bd-accent); }
.bd-about__photo img { display: block; width: 100%; height: auto; }
.bd-about__text > * + * { margin-top: 2.4rem; }
@media only screen and (min-width: 1200px) { .bd-about__text { padding-left: 4rem; } }
.bd-quote {
  margin: 4rem 0 0;
  padding-left: 2rem;
  border-left: 0.5rem solid var(--bd-accent);
  font-size: clamp(2rem, 2.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--t-bright);
}
.bd-clients { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0; }
.bd-clients li {
  font-size: clamp(2.4rem, 4vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--t-bright);
}
.bd-clients li:not(:last-child)::after { content: "/"; color: var(--bd-accent); padding: 0 0.35em; }

/* ---------- CTA ---------- */
.bd-cta .mxd-promo__caption h2 { max-width: 14ch; }
.bd-cta-simple { padding: 10rem 0; }
.bd-cta-simple h2 { font-size: clamp(3.6rem, 6.4vw, 10rem); line-height: 0.95; color: var(--t-opp-bright); }
.bd-cta-simple h2 span { color: var(--accent); }
.bd-cta-simple__side { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2rem; padding-top: 3.2rem; }
@media only screen and (min-width: 1200px) { .bd-cta-simple__side { align-items: flex-end; padding-top: 0; } }
.bd-cta-simple__mail { color: var(--t-opp-medium); font-family: var(--_font-accent); font-size: 1.4rem; }
.bd-cta-simple__mail:hover { color: var(--accent); }

/* ---------- Contacto ---------- */
.bd-contact-data .mxd-grid-item { margin-bottom: 3.2rem; }
.bd-contact-data__value { font-size: clamp(2rem, 2vw, 2.6rem); font-weight: 700; color: var(--t-bright); }
a.bd-contact-data__value:hover { color: var(--accent); }
.bd-form-error { margin-bottom: 2rem; color: var(--accent); font-weight: 600; }
.bd-footer-place { color: var(--t-medium); }

/* ---------- 404 ---------- */
.bd-404 { padding: 24rem 0 14rem; }
.bd-404 h1 { font-size: clamp(10rem, 30vw, 36rem); line-height: 0.8; font-family: var(--_font-accent); font-weight: 500; }
.bd-404 p { margin: 3rem 0; }

/* ---------- Accesibilidad ---------- */
.bd-sr, .bd-hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bd-skip {
  position: fixed; top: 1rem; left: 1rem; z-index: 99999; padding: 1rem 1.6rem;
  background: var(--bd-accent); color: #fff; font-weight: 700; border-radius: 0.6rem;
  transform: translateY(-200%);
}
.bd-skip:focus { transform: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--bd-accent); outline-offset: 3px;
}

/* Movimiento reducido: sin loader, sin parallax, sin autoplay visible */
@media (prefers-reduced-motion: reduce) {
  .mxd-loader { display: none !important; }
  *, *::before, *::after { scroll-behavior: auto !important; }
  .marquee__toleft, .marquee__toright { animation: none !important; }
}

@media only screen and (max-width: 767px) {
  .bd-hero-disciplines { display: none; }
}

/* Breadcrumbs debajo del header fijo (el logo BD es más ancho que el original) */
.inner-headline { padding-top: 9.6rem; }
@media only screen and (min-width: 1200px) { .inner-headline { padding-top: 11rem; } }

/* Email a todo el ancho en minúsculas */
.fullwidth-text__content.small span { text-transform: none; }

/* Títulos largos de case study: que bajen de línea en vez de cortarse */
.inner-headline__title h1.bd-case-title { white-space: normal; font-size: clamp(5.6rem, 9vw, 16rem); line-height: 0.9; }

/* "BILLY DONALD" tiene 12 caracteres (el demo tenía 11): un poco más pequeño para que quepa entero */
.bd-hero .mxd-hero-09__headline h1 { font-size: clamp(1.6rem, 12.2cqw, 27rem); }

/* ---------- Botón de idioma ES / EN ---------- */
.bd-lang { display: inline-flex; align-items: center; gap: 0.3em; font-family: var(--_font-accent); font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; }
.bd-lang span { opacity: 0.45; transition: opacity 0.2s; }
.bd-lang span.is-active { opacity: 1; }
.bd-lang i { font-style: normal; opacity: 0.45; }
.bd-lang:hover span { opacity: 1; }
.bd-lang--header { margin-right: 0.4rem; }
.bd-lang--header.permanent { color: var(--nl-white); }
@media only screen and (max-width: 767px) { .bd-hide-mobile { display: none !important; } }

/* ---------- Blog ---------- */
.bd-post-grid { row-gap: 4rem; }
.bd-post-card { display: block; color: inherit; text-decoration: none; }
.bd-post-card__media { border-radius: 1rem; overflow: hidden; aspect-ratio: 16 / 10; background: var(--base-tint); margin-bottom: 1.6rem; }
.bd-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.bd-post-card:hover .bd-post-card__media img { transform: scale(1.03); }
.bd-post-card__meta, .bd-post__meta { font-family: var(--_font-accent); font-size: 1.2rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--t-medium); margin-bottom: 0.8rem; }
.bd-post-card__title { font-size: clamp(2.2rem, 2.2vw, 3rem); line-height: 1.1; margin-bottom: 0.8rem; }
.bd-post-card:hover .bd-post-card__title { color: var(--accent); }
.bd-post-card__descr { font-size: 1.6rem; line-height: 1.5; }
.bd-blog-empty { padding: 4rem 0 8rem; }
.bd-post__cover { margin: 2.4rem 0 4rem; border-radius: 1.2rem; overflow: hidden; }
.bd-post__cover img { width: 100%; height: auto; display: block; }
.bd-post__lead { font-size: clamp(2rem, 2vw, 2.6rem); line-height: 1.4; font-weight: 600; color: var(--t-bright); margin-bottom: 3.2rem; }
.bd-post__body { font-size: 1.8rem; line-height: 1.7; color: var(--t-bright); }
.bd-post__body > * + * { margin-top: 1.6em; }
.bd-post__body h2, .bd-post__body h3, .bd-post__body h4, .bd-post__body h5 { line-height: 1.15; margin-top: 2em; }
.bd-post__body h2 { font-size: clamp(3rem, 3vw, 4.2rem); }
.bd-post__body h3 { font-size: clamp(2.4rem, 2.4vw, 3.2rem); }
.bd-post__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
.bd-post__body ul, .bd-post__body ol { padding-left: 1.4em; }
.bd-post__body li + li { margin-top: 0.4em; }
.bd-post__body ul li { list-style: square; }
.bd-post__body ol li { list-style: decimal; }
.bd-post__body blockquote { border-left: 0.5rem solid var(--bd-accent); padding-left: 2rem; font-weight: 700; font-size: 1.15em; }
.bd-post__body figure, .bd-post__body img, .bd-post__body video { display: block; width: 100%; height: auto; border-radius: 1rem; }
.bd-post__body code { font-family: var(--_font-accent); font-size: 0.9em; background: var(--base-tint); padding: 0.1em 0.35em; border-radius: 0.3em; }
.bd-post__body pre { background: var(--base-tint); padding: 2rem; border-radius: 1rem; overflow-x: auto; }
.bd-post__body pre code { background: none; padding: 0; }
.bd-post__body hr { border: 0; height: 0.5rem; width: 6rem; background: var(--bd-accent); }
.bd-post__embed { position: relative; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; }
.bd-post__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bd-post__back { margin-top: 6rem; }
