@font-face {
  font-family: '24hrsRegular';
  src: url('../fonts/24hrsRegular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

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

:root {
  --font-base: '24hrsRegular', monospace;
  --color-text: #ffffff;
  --color-bg: #000000;
}

/* Estilos default */
body {
  margin: 20px;
  background: #242424;
  font-family: var(--font-base);
  display: flex;
  justify-content: center;
  padding: 40px 0;
}


/* Títulos responsive */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1em;
}

h4 {
  font-size: 1.25rem;
}

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

/* layout */

footer#main-footer {
  border-top: 1px solid var(--color-text);
  margin-top: 2em;
  text-align: center;
  padding: 2em 0 1em 0;
}

/* Components */

body {
  margin: 20;
  padding: 20;
  font-family: var(--font-base);
  background-image: url('../img/logo nuevo-02.png');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgb(0, 0, 0);
}

/* Barra superior */
nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* 3 equal columns */
  width: 100%;
  background: #000000;
  position: relative;
  z-index: 9;
  /* Scanline effect */
  background-image: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
}

nav a {
  padding: 20px;
  background: #000000;
  color: #cccccc;
  /* Off-white text */
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "ocr-a-std", monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

nav a:hover {
  background: #ffffff;
  color: #000000;
  text-shadow: none;
}

nav img {
  max-width: 200px;
  transition: filter 0.2s ease;
}

nav a:hover img {
  filter: invert(1);
  /* Invert to black on white background */
}

/* Barra superior igual a la imagen */
.top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: #2f2f2f;
  color: white;
  border-bottom: 2px solid white;
  padding: 18px 20px;
}

/* ====== Fotografía ====== */
.hrsejecentral-page {
  font-family: "ocr-a-std", monospace;
  background: #f5f3eb;
  /* fondo neutro similar al ejemplo */
  color: black;
  margin: 0;
  padding: 0;
}

.foto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columnas */
  gap: 60px;
  padding: 80px;
  justify-items: center;
}

.foto {
  width: 400px;
  height: 220px;
  background: black;
  overflow: hidden;
  box-sizing: border-box;
  border: 3px solid white;
  /* grosor del borde */
  margin: 0;
  /* opcional */

  /* fallback por si no carga la foto */
  display: flex;
  align-items: center;
  justify-content: center;
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Título */
.titulo {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
  font-weight: bold;
}

/* GRID */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

/* Cada rectángulo */
.foto {
  width: 400px;
  /* tamaño fijo del marco */
  height: 220px;
  border: 2px solid white;
  background: black;
  overflow: hidden;
  /* evita que la imagen se salga */
  box-sizing: border-box;
  /* el borde NO aumenta el tamaño global */
}

/* Título */
.titulo {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
  font-weight: bold;
}

/* Imagen */
.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fotografia-page {
  display: flex;
  justify-content: center;
  /* centra horizontal */
  align-items: center;
  /* centra vertical */
  min-height: 0vh;
  padding-top: 0px;
  /* deja espacio para el header */

}

body {
  margin: 0;
  padding: 0;
  background: rgb(0, 0, 0);
  background-size: cover;
  font-family: "ocr-a-std", monospace;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: fix;
  justify-content: space-evenly;
  padding: 0 0px;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
}

/* Links */
nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a:hover {
  color: #000000;
}

/* Logo */
.logo {
  height: 300px;
  cursor: pointer;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  transform: translate(100%, 0);
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  /* Dark semi-transparent background */
  backdrop-filter: blur(15px);
  /* Glassmorphism blur */
  -webkit-backdrop-filter: blur(15px);
  /* Safari support */
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  /* Subtle border */
  color: #ffffff;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  padding: 40px;
  /* Increased padding */
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease;
  justify-content: center;
  /* Center content vertically */
  max-width: 600px;
  min-width: 320px;
  z-index: 9;
}

.sidebar.active {
  transform: translate(0, 0);
}

.sidebar.active #info-btn,
#info-btn:hover {
  background-color: #ff0000;
  color: #ffffff;
  box-shadow: none;
  text-shadow: none;
}

/* ===== PESTAÑA VISIBLE ===== */
.pestana {
  position: absolute;
  left: -50px;
  /* Adjusted position */
  top: 40%;
  background: rgba(0, 0, 0, 0.75);
  /* Match sidebar background */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #ffffff;
  writing-mode: vertical-rl;
  /* texto vertical */
  text-orientation: mixed;
  padding: 15px 10px;
  border-radius: 10px 0 0 10px;
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  font-weight: bold;
  cursor: pointer;
  font-family: var(--font-base);
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.pestana:hover {
  background: rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* ===== ZONA SENSIBLE EN BORDES ===== */
body::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 25px;
  /* área donde se activa el hover */
  height: 100%;
}

/* Estilos para el contenido del sidebar */
.contenido h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.contenido p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

/* Video Wrapper Styles */
.video-wrapper {
  width: 100%;
  height: 90vh;
  /* ← Ocupa 90% del alto de pantalla */
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ← Hace que el video llene todo sin deformarse */
}

/* ===== FOOTER GLOBAL ===== */
footer.site-footer {
  position: relative;
  background: #000000;
  color: #cccccc;
  padding: 40px 20px 20px 20px;
  margin-top: 80px;
  border-top: 2px solid #ffffff;
  font-family: "ocr-a-std", monospace;

  /* Scanline effect similar to nav */
  background-image:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 30px;
}

.footer-section h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: #cccccc;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.footer-section a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  transform: translateX(5px);
}

/* Social media links */
.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-links a {
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Footer bottom */
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #999999;
  letter-spacing: 1px;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer.site-footer {
    margin-top: 40px;
    padding: 30px 15px 15px 15px;
  }
}