/* =====================================================================
   ESTILOS — No hace falta tocar este archivo para cambiar textos,
   imagen o vídeo (eso está en contenido.js).
   ===================================================================== */

/* ---------- Tipografías ----------
   Copia tus archivos de fuente en la carpeta "fuentes" con estos nombres:
   NeueHaasGrotesk-75Bold.woff2   y   NeueHaasGrotesk-55Roman.woff2
   (también valen .woff o .otf con el mismo nombre).
   Mientras no estén, se usa Helvetica / Arial. */
@font-face {
  font-family: "NHG Bold";
  src: url("../fuentes/NeueHaasGrotesk-75Bold.woff2") format("woff2"),
       url("../fuentes/NeueHaasGrotesk-75Bold.woff") format("woff"),
       url("../fuentes/NeueHaasGrotesk-75Bold.otf") format("opentype");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "NHG Roman";
  src: url("../fuentes/NeueHaasGrotesk-55Roman.woff2") format("woff2"),
       url("../fuentes/NeueHaasGrotesk-55Roman.woff") format("woff"),
       url("../fuentes/NeueHaasGrotesk-55Roman.otf") format("opentype");
  font-weight: 400; font-display: swap;
}

:root {
  --rojo: #c52d20;
  --negro: #000;
  --bold: "NHG Bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --roman: "NHG Roman", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--rojo);
  color: var(--negro);
  font-family: var(--roman);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.grande {
  font-family: var(--bold);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.grande span { display: block; white-space: nowrap; }

/* =====================================================================
   PORTADA
   ===================================================================== */
.portada {
  height: 100vh;
  height: 100dvh;
  display: flex;
  overflow: hidden;
}

/* --- La foto (es un botón que abre el vídeo) --- */
.foto {
  position: relative;
  overflow: hidden;
  background: #0b1a20;
  display: block;
  text-align: left;
}
.foto img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.foto:hover img { transform: scale(1.025); }
.foto:focus-visible { outline: 3px solid var(--rojo); outline-offset: -3px; }

.nombre {
  position: absolute;
  color: var(--rojo);
  pointer-events: none;
  z-index: 2;
}

.play {
  position: absolute;
  z-index: 2;
  display: flex; align-items: center; gap: .55em;
  color: #fff;
  font-family: var(--roman);
  letter-spacing: .01em;
  opacity: .85;
  transition: opacity .3s;
}
.play::before {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: .45em 0 .45em .75em;
  border-color: transparent transparent transparent currentColor;
}
.foto:hover .play { opacity: 1; }

/* --- Bloque rojo --- */
.panel {
  min-width: 0;
  background: var(--rojo);
  display: flex;
  flex-direction: column;
}
.menu a {
  font-family: var(--roman);
  letter-spacing: -0.01em;
  transition: opacity .2s;
}
.menu a:hover { opacity: .55; }
.panel > div { min-width: 0; width: 100%; }
.profesion { text-align: right; overflow: hidden; }
.email {
  font-family: var(--roman);
  letter-spacing: -0.02em;
  text-align: right;
  display: block;
}
.email:hover { opacity: .6; }

/* ---------- Pantallas horizontales: ordenador y tablet apaisada ---------- */
@media (min-aspect-ratio: 1/1) {
  .foto  { flex: 0 0 67.3%; }
  .panel {
    flex: 1;
    padding: 21vh 2.9vw 6vh 2.9vw;
    justify-content: space-between;
  }
  .nombre {
    left: 8.6%;
    top: 12.5vh;
    font-size: min(7.6vw, 14vh);
  }
  .play { left: 8.6%; bottom: 6vh; font-size: max(13px, min(1.05vw, 2vh)); }
  .menu {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 6.2vh;
    font-size: max(14px, min(1.4vw, 2.6vh));
  }
  .profesion { --tope: 13vh; font-size: var(--tope); }
  .email { margin-top: 3.6vh; font-size: max(13px, min(1.3vw, 2.4vh)); }
}

/* ---------- Pantallas verticales: móvil y tablet vertical ---------- */
@media (max-aspect-ratio: 1/1) {
  .portada { flex-direction: column; }
  .foto  { flex: 1 1 auto; min-height: 45%; }
  .panel {
    flex: 0 0 auto;
    padding: 0.4vh 2.4vw 2.6vh 4vw;
  }
  .nombre {
    left: 3.4vw;
    top: 9.6%;
    font-size: min(15.5vw, 11vh);
  }
  .play { left: 4vw; bottom: 2.4vh; font-size: max(12px, min(3.4vw, 1.8vh)); }
  .profesion { --tope: 9.2vh; font-size: var(--tope); margin-top: 1.2vh; }
  .email { margin-top: 1.2vh; font-size: max(13px, min(4.4vw, 2.3vh)); }
  .menu {
    order: 3;
    display: flex; justify-content: flex-end; gap: 1.6em;
    margin-top: 3.4vh;
    font-size: max(14px, min(4.4vw, 2.3vh));
  }
}

/* =====================================================================
   REPRODUCTOR DE VÍDEO (pantalla completa)
   ===================================================================== */
.visor {
  position: fixed; inset: 0;
  z-index: 50;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.visor.abierto { opacity: 1; visibility: visible; }
.visor video, .visor iframe {
  width: 100%; height: 100%;
  max-width: 100vw; max-height: 100dvh;
  object-fit: contain;
  border: 0;
  background: #000;
}
.cerrar {
  position: absolute; top: 18px; right: 22px;
  z-index: 2;
  color: #fff;
  font-family: var(--roman);
  font-size: 16px;
  padding: 8px;
  opacity: .8;
}
.cerrar:hover { opacity: 1; }

/* =====================================================================
   PÁGINAS INTERIORES (work, about, clients)
   ===================================================================== */
.interior {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: clamp(20px, 4vw, 70px);
}
.interior header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px;
}
.interior .marca { font-size: clamp(34px, 6vw, 110px); }
.interior .marca:hover { opacity: .7; }
.interior .menu {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: .5em;
  font-size: clamp(15px, 1.4vw, 26px);
}
.interior .menu a.actual { text-decoration: underline; text-underline-offset: .2em; }
.interior main { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 8vh 0 4vh; }
.interior .titulo { font-size: clamp(64px, 17vw, 330px); }
.interior .texto {
  max-width: 34em;
  margin-top: 2em;
  font-size: clamp(16px, 1.4vw, 24px);
  line-height: 1.3;
}
.interior footer { display: flex; justify-content: flex-end; }
.interior footer .email { font-size: clamp(14px, 1.3vw, 24px); }
