body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f0f2f5;
}

nav {
  background-color: #003366;
  padding: 15px;
  text-align: center;
}

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

section {
  padding: 50px 40px;
}

h2 {
  text-align: center;
}

/* HERO */

.hero {
  background-color: #0055a5;
  color: white;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  text-align: center;
  flex: 1;
}

.logo-left,
.logo-right {
  height: 80px;
}

.logo-left {
  margin-right: 20px;
}

.logo-right {
  margin-left: 20px;
}

/* GRID DE TARJETAS */

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

/* TARJETAS */

.card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 6px;
  border-top: 4px solid #0055a5;
  box-shadow: 0px 3px 8px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card h3 {
  margin-top: 0;
}

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

/* TARJETA GRANDE */

.card.large {
  max-width: 900px;
  margin: 20px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 6px;
  border-top: 4px solid #0055a5;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.08);
}

/* SECCION INICIO */

#inicio {
  background-color: #e9eef5;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .logo-left,
  .logo-right {
    margin: 10px 0;
  }
}

/* Que no se vea el link azul */

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


/* historia PRELINE */

.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 40px;
  border-left: 3px solid #0077b6; /* Línea de tiempo */
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-date {
  position: absolute;
  left: -80px;
  top: 0;
  font-weight: bold;
  color: #023e8a;
}

.timeline-content {
  background: #f0f4f8;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Contenedor de pestañas */
.tabs {
  position: relative;
  display: flex;
  border-bottom: 3px solid #ccc;
  margin-bottom: 1rem;
}

/* Botones de pestañas */
.tab-button {
  padding: 12px 25px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  color: #555;
  position: relative;
  transition: color 0.3s;
}

.tab-button:hover {
  color: #0077b6;
}

.tab-button.active {
  color: #0077b6;
}

/* Indicador animado */
.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: #0077b6;
  width: 0;
  transition: left 0.3s, width 0.3s;
}

/* Contenido de pestañas */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Card general */
.card.large {
  background: #f0f4f8;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
