* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
  scroll-behavior: smooth;
}

header video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

header h1 {
  color: #fff;
  position: relative;
  z-index: 1;
  margin-bottom: 0.6rem;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 300;
}

header p.integrantes {
  color: rgba(255,255,255,0.95);
  position: relative;
  z-index: 1;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  max-width: 900px;
}


header {
  position: relative;
  background-image: url("img/Carsten-Nicolai-unicolor.jpg");
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  padding: 1em 0;
  z-index: 10;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2em;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #4EFC0F;
}

/* Imagen autor */
.autor-foto {
  text-align: center;
  margin-top: 2em;
}

.autor-foto img {
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Imagen obra */
.imagen-obra {
  text-align: center;
  margin-top: 2em;
}

.imagen-obra img {
  width: 80%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/*Tablas*/
section {
  max-width: 900px;
  margin: 3em auto;
  padding: 2em;
}

h2 {
  font-size: 1.8em;
  font-weight: 300;
  margin-bottom: 1em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
}

th, td {
  text-align: left;
  padding: 1em;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #fafafa;
}

/*mapa conceptual*/
.mapa-section {
  max-width: 100%;
  margin: 4em auto;
  text-align: center;
  padding: 0 20px;
}

.mapa-horizontal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #fff;
  border: 2px dashed #ccc;
  border-radius: 12px;
  overflow-x: auto;
}

.mapa-horizontal .linea {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background-color: #777;
  z-index: 0;
  border-radius: 3px;
}


.nodo {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #111;
  color: #fff;
  text-align: center;
  font-weight: 300;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  padding: 10px;
  word-break: break-word;
  line-height: 1.2;
  overflow-wrap: break-word;
}


.nodo:nth-child(1) { min-width: 100px; min-height: 100px; }
.nodo:nth-child(2) { min-width: 120px; min-height: 120px; }
.nodo:nth-child(3) { min-width: 140px; min-height: 140px; }
.nodo:nth-child(4) { min-width: 160px; min-height: 160px; }
.nodo:nth-child(5) { min-width: 180px; min-height: 180px; }
.nodo:nth-child(6) { min-width: 200px; min-height: 200px; }

.nodo:hover {
  background-color: #4EFC0F;
  transform: scale(1.1);
}


.nodos-vertical {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  position: relative;
}

.nodos-vertical::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%; 
  width: 4px;
  height: 180px;
  background-color: #777;
  transform: translateX(-50%);
  z-index: 0;
}


.mapa-descripcion {
  max-width: 900px;
  margin: 2em auto 0 auto;
  background: #f9f9f9;
  border-left: none;
  padding: 1.5em 2em;
  border-radius: 8px;
  line-height: 1.7;
  color: #222;
}

.mapa-descripcion h3 {
  margin-bottom: 1em;
  font-weight: 400;
  color: #111;
}

.mapa-descripcion p {
  margin-bottom: 0.8em;
  text-align: left;
}

.mapa-descripcion strong { color: #000; }
.mapa-descripcion em { color: #555; font-style: italic; }


footer {
  background-color: #fff;
  color: #4EFC0F;
  margin-top: 3em;
  text-align: center;
  padding: 2em 1em;
}

footer ul {
  list-style: none;
  margin-top: 1em;
  display: flex;
  justify-content: center;
  gap: 2em;
}

footer a {
  color: #111;
  text-decoration: none;
  font-weight: 300;
}

footer a:hover {
  text-decoration: underline;
}


.container.gallery-container { 
  max-width: 900px;        
  margin: 1em auto 0 auto;
  padding: 0;
  text-align: left;        
}

.tz-gallery .row {
  display: flex;
  flex-wrap: wrap;         
  gap: 10px;
  justify-content: flex-start;
}

.tz-gallery .col-sm-6, 
.tz-gallery .col-md-4 {
  padding: 0;
  margin: 0;
  flex: 0 0 calc(20% - 10px); 
  display: flex;
  justify-content: center;
}

.tz-gallery img {
  width: 100%;            
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.tz-gallery img:hover {
  transform: scale(1.05);
}


@media (max-width: 800px) {
  .tz-gallery .col-sm-6, .tz-gallery .col-md-4 {
    flex: 0 0 calc(33% - 10px); 
  }
}

