html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  background-color: black;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  display: flex;
  align-items: center;
  padding: 40px 25px 20px;
  background-color: black;
  position: relative;
  z-index: 1100;
  flex-wrap: wrap;
}

.header-content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.logo {
  flex: 0.8;
  display: flex;
  justify-content: flex-start;
}

.logo img {
  height: 50px;
  margin-left: 50px;
}

/* 🔹 Menú de escritorio */
.navbar {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-right: 60px;
}

.nav-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center
}

.nav-row li a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  padding: 5px 8px;
  white-space: nowrap;
}

.nav-row li a:hover {
  color: #f2fc6e;
}

.main-menu {
  border-bottom: 2px solid  #f2fc6e;
  padding-bottom: 3px;
}

/* 🔽 Menú hamburguesa (oculto en escritorio) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.menu-toggle .bar {
  width: 30px;
  height: 4px;
  background-color: white;
  border-radius: 5px;
  transition: 0.3s;
}

/* 🔹 Contenedor del menú móvil */
.mobile-menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: none;  /* 🔹 Oculto por defecto */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
}

/* 🔹 Cuando el menú está activo */
.mobile-menu-container.active {
  display: flex;
}

.body-no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* 🔹 Botón de cerrar (X) */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  display: none;
}

.mobile-menu-container.active .close-menu {
  display: block;
}

/* 🔹 Estilos de los enlaces en el menú móvil */
.mobile-nav-links {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-nav-links li {
  margin: 20px 0;
}

.mobile-nav-links a {
  text-decoration: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.mobile-nav-links a:hover {
  color: #f2fc6e;
}

.social-icon {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.8em;
  color: #ffffff;
  transition: color 0.3s ease;
  margin-right: 20px;
}

.social-icon:hover {
  color: #000000;
}

.social-icon.facebook:hover {
  color: #3b5998;
}

.social-icon.instagram:hover {
  color: #E4405F;
}

.hiperrealismo-section {
  position: relative;
  z-index: 10; 
  background-color: black;
  color: white;
  padding: 100px 40px; 
}

.hiperrealismo-contenido {
  display: flex;
  justify-content: flex-start;
  text-align: left;
}

.hiperrealismo-item {
  margin-left: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hiperrealismo-imagen {
  margin-top: 20px;
  margin-left: -40px;
}

.hiperrealismo-imagen a {
  all: unset;              /* 🔥 Elimina cualquier estilo heredado */
  display: inline-block;   /* ✅ Solo ocupa el espacio de la imagen */
  cursor: pointer;
}

.hiperrealismo-imagen img {
  display: block;
  width: 300px;           
  height: auto;
  border-radius: 12px;
}

.hiperrealismo-item h3 {
  font-size: 17px;
  margin-top: 15px;
  margin-bottom: 10px;
  margin-left: -50px;
}

.hiperrealismo-link {
  text-decoration: none;
  color: inherit;
}

.hiperrealismo-link:hover {
  text-decoration: underline; /* Opcional: quitar esta línea si no quieres hover */
}

.hiperrealismo-fecha {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  margin-top: 5px;
  margin-left: -50px;
}

.footer {
  background-color: #000;
  color: white;
  padding: 30px 20px;
  text-align: center;
  font-size: 18px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin-right: 20px;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-social a {
  color: white;
  margin: 0 10px;
  font-size: 25px;
  transition: color 0.3s ease;
}

.fa-x-twitter:hover {
  color: #000000;
}

.fa-facebook-f:hover {
  color: #3b5998;
}

.fa-instagram:hover {
  color: #E4405F;
}

.footer-copy {
  margin-top: 20px;
  font-size: 18px;
  opacity: 0.8;
}

@media (max-width: 1186px) {
  .logo img {
    height: 40px;
    margin-left: 10px;
  }

  .nav-row li a {
    font-size: 12px;
    padding: 4px 6px;
  }

  .social-icon {
    font-size: 1.2em;
    margin: 5px;
  }

  .hiperrealismo-section {
    padding: 180px 30px;
  }

  .hiperrealismo-item {
    margin-left: 40px;
  }

  .hiperrealismo-imagen img {
    width: 250px;
  }

  .hiperrealismo-item h3,
  .hiperrealismo-fecha {
    margin-left: -30px;
    font-size: 16px;
  }

  .footer {
    font-size: 14px;
    padding: 25px 20px;
  }

  .footer-social a {
    font-size: 18px;
    margin: 0 8px;
  }

  .footer-link {
    font-size: 14px;
    margin-right: 10px;
  }
}

@media (max-width: 767px) {
  header {
    background-color: white;
  }
  /* 🔹 Ocultamos el menú de escritorio */
  .navbar {
    display: none;
  }

  /* 🔹 Ocultamos íconos sociales */
  .social-icons {
    display: none;
  }

  /* 🔹 MOSTRAMOS EL BOTÓN DE HAMBURGUESA */
  .menu-toggle {
    display: flex;
    margin-right: 15px;
  }

  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: black;
    border-radius: 5px;
    transition: 0.3s;
  }

  .logo {
    flex: 1;
    justify-content: flex-start;
  }

  .logo img {
    height: 40px;
    margin-left: 20px;
  }

  .header-content {
    justify-content: space-between;
  }

  .hiperrealismo-section {
    padding: 200px 30px;
  }

  .hiperrealismo-contenido {
    flex-direction: column;
    align-items: center;
  }

  .hiperrealismo-item {
    margin-left: 0;
    align-items: center;
  }

  .hiperrealismo-imagen {
    margin-left: 0;
  }

  .hiperrealismo-imagen img {
    width: 220px;
  }

  .hiperrealismo-item h3,
  .hiperrealismo-fecha {
    margin-left: 0;
    text-align: center;
    font-size: 15px;
  }

  .footer {
    padding: 20px 15px;
    font-size: 13px;
  }

  .footer-links,
  .footer-social,
  .footer-copy {
    margin-bottom: 10px;
    display: block;
  }

  .footer-link {
    display: block;
    margin: 5px 0;
    font-size: 13px;
  }

  .footer-social a {
    font-size: 18px;
    margin: 0 6px;
  }

  .footer-copy {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 30px;
    margin-left: 10px;
  }

  .hiperrealismo-section {
    padding: 190px 20px;
  }

  .hiperrealismo-imagen img {
    width: 250px;
  }

  .hiperrealismo-item h3,
  .hiperrealismo-fecha {
    font-size: 15px;
  }

  .footer {
    font-size: 12px;
  }

  .footer-link {
    font-size: 12px;
  }

  .footer-social a {
    font-size: 16px;
  }

  .footer-copy {
    font-size: 11px;
  }
}
