/* docs/css/estilos.css */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
}

header {
  position: relative;
  height: 300px;
  background-image: url('../images/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

header h1,
header p {
  z-index: 1;
  margin: 5px 0;
}

header h1 {
  font-size: 48px;
  font-weight: bold;
}

header p {
  font-size: 20px;
}

nav {
  background-color: #1f1f1f;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 15px 20px;
  transition: background 0.3s;
}

nav a:hover {
  background-color: #333333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.cover {
  flex: 3;
  min-width: 300px;
  background-color: #1e1e1e;
  padding: 20px;
  margin-right: 20px;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.cover img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.articles {
  margin-top: 20px;
}

.article {
  background-color: #2a2a2a;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.article img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #0073e6;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #005bb5;
}

.sidebar {
  flex: 1;
  min-width: 250px;
  background-color: #1e1e1e;
  padding: 20px;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.sidebar h3 {
  margin-top: 0;
  color: #80bfff;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 10px 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: #66aaff;
}

.sidebar ul li a:hover {
  text-decoration: underline;
}

.director-img {
  margin-top: 20px;
  text-align: center;
}

.director-img img {
  width: 100px;
  border-radius: 50%;
}

.ficha-tecnica {
  background-color: #1a1a1a;
  padding: 15px;
  border-left: 4px solid #0073e6;
  margin-top: 10px;
  margin-bottom: 10px;
}

footer {
  background-color: #1f1f1f;
  color: #cccccc;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  .cover {
    margin-right: 0;
  }

  .sidebar {
    margin-top: 20px;
  }
}



.catalogo {
  flex: 1;
  padding: 20px 0;
}

.catalogo h2 {
  color: #80bfff;
  margin-bottom: 20px;
  font-size: 28px;
  border-bottom: 2px solid #0073e6;
  padding-bottom: 10px;
}

.productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.producto {
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.producto img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.producto h3 {
  color: #ffffff;
  margin: 10px 0;
  font-size: 20px;
}

.producto p {
  font-size: 14px;
  color: #cccccc;
  margin-bottom: 10px;
}

.precio {
  font-size: 18px;
  color: #00e676;
  font-weight: bold;
  margin-bottom: 5px;
}

.disponible {
  font-size: 14px;
  color: #66aaff;
  margin-bottom: 10px;
}


.menu-categorias {
  flex: 0 0 200px; /* ancho fijo más compacto */
  max-width: 200px;
  background-color: #1e1e1e;
  padding: 20px;
  margin-right: 20px;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
  border-right: 2px solid #0073e6;
}


.menu-categorias h3 {
  margin-top: 0;
  font-size: 20px;
  color: #80bfff;
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}

.menu-categorias ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-categorias ul li {
  margin: 8px 0;
}

.menu-categorias ul li a {
  text-decoration: none;
  color: #cccccc;
  font-size: 14px;
  transition: color 0.3s;
}

.menu-categorias ul li a:hover {
  color: #66aaff;
}


.lista-proyectos {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.lista-proyectos li {
  margin: 10px 0;
}

.lista-proyectos a {
  text-decoration: none;
  color: white; /* no visitado */
  font-size: 16px;
  display: block;
  transition: color 0.3s;
}

.lista-proyectos a:visited {
  color: #999999; /* visitado */
}

.lista-proyectos a:hover {
  color: #66aaff; /* al pasar el mouse */
}
