/* Estilo general */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  color: #333;
}

header.hero {
  background: url('img/header.png') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.intro h1 {
  margin: 0;
  font-size: 2.5em;
}

.subtitle {
  font-size: 1.1em;
}

nav.nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

/* Grid de resumen - timeline - logos */
.grid-container {
  display: grid;
  grid-template-columns: 1.5fr 60px 1fr;
  gap: 20px;
  padding: 40px;
  align-items: start;
}

/* Burbuja resumen */
.bubble {
  background: #bbdefb;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin-bottom:10px;
}

.bubble.compressed {
  background: #bbdefb;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Timeline */
.timeline {
  position: relative;
  width: 100%;
  height: 100%;
}

.timeline .line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #1976d2;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* Punto individual */
.timeline-point {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #0d47a1;
  border-radius: 50%;
  z-index: 2;
}

.timeline-point span {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #0d47a1;
  white-space: nowrap;
}

/* Logos */
.logos {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Burbuja de cada logo */
.logo-bubble {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  padding: 12px;
  transition: all 0.5s ease;
  max-width: 40%;
  cursor: pointer;
}

.logo-container {
  display: flex;
  justify-content: center;
  transition: all 0.7s ease;
}

.logo-bubble img {
  max-width: 60px;
  transition: all 0.7s ease;
}

.logo-bubble .info {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: opacity 0.7s ease, transform 0.7s ease, max-height 0.7s ease;
  text-align: center;
}

/* Al expandir la burbuja */
.logo-bubble.expanded {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px;
  text-align: left;
  max-width: 90%;
}

.logo-bubble.expanded .logo-container {
  justify-content: flex-start;
}

.logo-bubble.expanded .info {
  opacity: 1;
  max-height: 500px;
  transform: translateY(0);
}
