/* ===== ESTILOS GENERALES ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background: #fdfdfd;
  color: #222;
  line-height: 1.6;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
header {
  text-align: center;
  padding: 10px;
  background: #ffffff;
}

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

nav {
  background: #005bbb;
  display: flex;
  justify-content: center;
  padding: 10px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #0077cc;
  text-decoration: none;
}

/* ===== CONTENEDORES Y LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== TIPOGRAFÍA ===== */
h1 {
  color: #005bbb;
  text-align: center;
  margin-bottom: 20px;
}

h2 {
  color: #0077cc;
  margin-top: 0;
}

/* ===== TARJETAS (CARDS) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: white;
  border: 2px solid #005bbb;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card.full-width {
  grid-column: 1 / -1;
}

.card-netbook {
  background: #0099ff;
  border: 2px solid red;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-netbook a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.1em;
}

.card-netbook:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ===== GRID PARA INDEX ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.grid .card {
  text-align: center;
}

.grid .card a {
  text-decoration: none;
  color: #000099;
  font-weight: bold;
  font-size: 1.1em;
}

/* ===== GALERÍA Y LIGHTBOX ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 15px;
  margin: 40px 0;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.lightbox:target {
  display: flex;
}

.close, .prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
}

.close {
  top: 20px;
  right: 30px;
  transform: none;
  font-size: 2rem;
}

.prev { left: 30px; }
.next { right: 30px; }

/* ===== ELEMENTOS DE FORMULARIO Y ENLACES ===== */
.manual-link {
  display: block;
  margin-top: 15px;
  padding: 10px;
  background-color: #005bbb;
  color: white;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.manual-link:hover {
  background-color: #0077cc;
}

/* ===== LISTAS ===== */
ol {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  padding: 20px;
}

ol li {
  margin-bottom: 10px;
}

ul {
  padding-left: 20px;
}

/* ===== FOOTER ===== */
footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  margin-top: 30px;
}

footer a {
  color: white;
  text-decoration: underline;
}

/* ===== ESTILOS ESPECÍFICOS POR PÁGINA ===== */

/* Para index.html */
.page-index h1:first-of-type {
  color: #000099;
}

.page-index h1:nth-of-type(2) {
  color: red;
}

.page-index h2 {
  text-align: center;
  color: red;
  margin-top: 40px;
}

/* Para funcionamiento.html */
.page-funcionamiento {
  background: #f4f9ff;
}

.page-funcionamiento h1 {
  color: #0077c8;
}

.page-funcionamiento .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.page-funcionamiento .card h2 {
  color: #0077c8;
}

.page-funcionamiento .card h2 a {
  color: #0077c8;
  text-decoration: none;
}

.page-funcionamiento .card h2 a:hover {
  text-decoration: underline;
}

.page-funcionamiento .card p {
  font-size: 15px;
  color: #444;
}

/* Para fundamentos.html */
.page-fundamentos {
  background: #f4f9ff;
}

.page-fundamentos h1 {
  color: #0077c8;
}

.page-fundamentos .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  overflow: hidden;
}

.page-fundamentos .card h2 {
  color: #0077c8;
  margin-bottom: 10px;
}

.page-fundamentos .card p {
  color: #444;
  font-size: 15px;
  line-height: 1.6;
}

.page-fundamentos .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
}

/* Para distro.html */
.page-distro .card h2 {
  color: #0077cc;
}
