/* davidPlata | Fotografía. Video — sitio estático */

:root {
  --color-texto: #666666;
  --color-titulo: #333333;
  --color-enlace: #757575;
  --color-enlace-activo: #799e9c;
  --color-fondo: #ffffff;
  --color-borde: #eeeeee;
  --contenedor: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-enlace-activo);
  text-decoration: none;
}

img,
iframe {
  max-width: 100%;
}

.contenedor {
  width: 100%;
  max-width: var(--contenedor);
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------- Cabecera ------------------------------- */

.cabecera {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-borde);
}

.cabecera .contenedor {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--color-enlace);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 3px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--color-enlace-activo);
  background-color: rgba(121, 158, 156, 0.08);
}

.menu a[aria-current="page"] {
  color: var(--color-enlace-activo);
}

/* --------------------------------- Vídeo -------------------------------- */

.principal {
  padding: 48px 0 64px;
}

.video {
  position: relative;
  width: 100%;
  max-width: var(--contenedor);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background-color: #000000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video .play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 50px;
  margin: -25px 0 0 -36px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  transition: background-color 0.2s ease;
}

.video .play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -7px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

a.video:hover .play,
a.video:focus-visible .play {
  background: #ff0000;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ----------------------------------- 404 -------------------------------- */

.mensaje {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 0 96px;
  text-align: center;
}

.mensaje h1 {
  color: var(--color-titulo);
  font-family: inherit;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 12px;
}

.mensaje .boton {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 22px;
  border: 2px solid var(--color-enlace-activo);
  border-radius: 4px;
  color: var(--color-enlace-activo);
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mensaje .boton:hover,
.mensaje .boton:focus-visible {
  background-color: var(--color-enlace-activo);
  color: #ffffff;
}

/* ------------------------------- Responsive ----------------------------- */

@media (max-width: 767px) {
  .principal {
    padding: 24px 0 40px;
  }

  .video {
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
