@font-face {
  font-family: "Monograph";
  src: url("../fonts/monograph-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: rgb(245, 231, 209);
  color: #01200F;
  font-family: "Segoe UI", Tahoma, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-header {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 1.5rem auto;
  border: 2px solid #071a32;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
}

.home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-family: "Monograph", monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #01200F;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
}

.home-link:hover {
  background-color: #01200F;
  color: #fdf2cc;
  border-radius: 10px;
}

.main-content,
.contenedor {
  width: min(1150px, calc(100% - 2.5rem));
  margin-top: 1rem;
  margin-bottom: 4rem;
}

.main-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

h1 {
  font-family: "Monograph", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  color: #01200F;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.main-content h1 {
  grid-column: 1 / -1;
}

.subtitulo {
  margin: 0 0 0.5rem;
  max-width: 65ch;
  text-align: center;
  color: #01200F;
  line-height: 1.4;
}

.pc-visual-wrapper,
.ordenador-wrapper {
  position: relative;
  border: 3px solid #071a32;
  border-radius: 20px;
  overflow: visible;
  background: #fff;
  box-shadow: 10px 10px 0 rgba(7, 26, 50, 0.1);
  z-index: 2;
}

.ordenador-wrapper {
  width: min(980px, 100%);
}

.foto-pc {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 17px;
  clip-path: inset(0 round 17px);
  filter: contrast(1.05);
}

.punto-interactivo,
.punto {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 28px;
  height: 28px;
  border: 2px solid #fdf2cc;
  border-radius: 50%;
  background: linear-gradient(145deg, #025a48, #01200F);
  cursor: pointer;
  box-shadow:
    0 0 0 8px rgba(1, 32, 15, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 2;
}

.punto-interactivo::after,
.punto::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(1, 32, 15, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

.punto-interactivo:hover,
.punto:hover {
  transform: translate(-50%, -50%) scale(1.14);
  box-shadow:
    0 0 0 10px rgba(1, 32, 15, 0.26),
    0 10px 20px rgba(0, 0, 0, 0.45);
}

.etiqueta {
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #fdf2cc;
  background: rgba(1, 32, 15, 0.86);
  border: 1px solid rgba(1, 32, 15, 0.7);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.descripcion {
  opacity: 0;
  pointer-events: none;
  width: min(230px, 54vw);
  background: rgba(1, 32, 15, 0.95);
  color: #f8eded;
  text-align: left;
  padding: 0.72rem 0.8rem;
  border-radius: 8px;
  position: absolute;
  bottom: 140%;
  left: 14px;
  transform: translateX(-50%) translateY(8px);
  z-index: 30;
  font-size: 0.84rem;
  line-height: 1.4;
  border: 1px solid rgba(1, 32, 15, 0.75);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.38);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.punto-interactivo.is-open .descripcion,
.punto.is-open .descripcion {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.info-panel {
  background: white;
  border: 3px solid #071a32;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 10px 10px 0 rgba(7, 26, 50, 0.1);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-panel h2 {
  font-family: "Monograph", monospace;
  font-size: 1.4rem;
  border-bottom: 2px solid #01200F;
  padding-bottom: 0.5rem;
  color: #01200F;
}

.info-text {
  line-height: 1.6;
  font-size: 1.05rem;
  color: #333;
}

.highlight-box {
  background: #fdf2cc;
  padding: 1rem;
  border-radius: 10px;
  border-left: 5px solid #071a32;
  font-style: italic;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@media (max-width: 850px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .etiqueta {
    display: none;
  }

  .descripcion {
    width: 165px;
    font-size: 0.78rem;
  }
}

/* benchmark page overrides to restore previous #22333B palette */
body.benchmark {
  color: #22333B;
}
body.benchmark .home-link {
  color: #22333B;
}
body.benchmark .home-link:hover {
  background-color: #22333B;
  color: #fdf2cc;
}
body.benchmark h1 {
  color: #22333B;
}
body.benchmark .subtitulo {
  color: #22333B;
}
body.benchmark .punto-interactivo,
body.benchmark .punto {
  background: linear-gradient(145deg, #3D5A7C, #22333B);
  box-shadow: 0 0 0 8px rgba(34, 51, 59, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.35);
}
body.benchmark .punto-interactivo::after,
body.benchmark .punto::after {
  border-color: rgba(34, 51, 59, 0.55);
}
body.benchmark .punto-interactivo:hover,
body.benchmark .punto:hover {
  box-shadow: 0 0 0 10px rgba(34, 51, 59, 0.26),
    0 10px 20px rgba(0, 0, 0, 0.45);
}
body.benchmark .etiqueta {
  background: rgba(34, 51, 59, 0.86);
  border: 1px solid rgba(34, 51, 59, 0.7);
}
body.benchmark .descripcion {
  background: rgba(34, 51, 59, 0.95);
  border: 1px solid rgba(34, 51, 59, 0.75);
}
body.benchmark .info-panel h2 {
  border-bottom: 2px solid #22333B;
  color: #22333B;
}

/* integrated page uses the base style like the rest */
body.integrado {
  color: #A63D40;
}

body.integrado .home-link {
  color: #A63D40;
}

body.integrado .home-link:hover {
  background-color: #A63D40;
  color: #fdf2cc;
}

body.integrado h1 {
  color: #A63D40;
}

body.integrado .subtitulo {
  color: #A63D40;
}

body.integrado .info-panel h2 {
  border-bottom: 2px solid #A63D40;
  color: #A63D40;
}

body.integrado .main-content {
  flex: 1;
}

body.integrado footer {
  margin-top: auto;
}

/* mural page overrides with #482728 palette */
body.mural {
  color: #482728;
}
body.mural .home-link {
  color: #482728;
}
body.mural .home-link:hover {
  background-color: #482728;
  color: #fdf2cc;
}
body.mural h1 {
  color: #482728;
}
body.mural .subtitulo {
  color: #482728;
}
body.mural .punto-interactivo,
body.mural .punto {
  background: linear-gradient(145deg, #6B4445, #482728);
  box-shadow: 0 0 0 8px rgba(72, 39, 40, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.35);
}
body.mural .punto-interactivo::after,
body.mural .punto::after {
  border-color: rgba(72, 39, 40, 0.55);
}
body.mural .punto-interactivo:hover,
body.mural .punto:hover {
  box-shadow: 0 0 0 10px rgba(72, 39, 40, 0.26),
    0 10px 20px rgba(0, 0, 0, 0.45);
}
body.mural .etiqueta {
  background: rgba(72, 39, 40, 0.86);
  border: 1px solid rgba(72, 39, 40, 0.7);
  color: #fdf2cc;
}
body.mural .descripcion {
  background: rgba(72, 39, 40, 0.95);
  border: 1px solid rgba(72, 39, 40, 0.75);
  color: #f8eded;
}
body.mural .info-panel h2 {
  border-bottom: 2px solid #482728;
  color: #482728;
}

footer {
  width: 100%;
  background-color: #183642;
  color: #fdf2cc;
  padding: 10px 0;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  margin-top: 0.5rem;
}

.footer-content {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

footer a {
  color: #fdf2cc;
  text-decoration: underline;
  font-family: "Monograph", monospace;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 5px 10px;
}

footer a:hover {
  background-color: #710000;
  color: #fdf2cc;
  border-radius: 5px;
  text-decoration: none;
}

@media (max-width: 700px) {
  footer {
    width: 95%;
    margin: 10px auto;
    background-color: #183642;
    color: #fdf2cc;
    padding: 15px 0;
    text-align: center;
    flex-shrink: 0;
    border-radius: 50px;
  }
}
