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);
}

/* Card integrantes */
#integrantes{
  padding:40px 20px;
}

.integrantes-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap:20px;
}

.integrante-card{
  display:flex;
  align-items:center;
  gap:20px;
  background:white;
  padding:20px;
  border-radius:10px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.integrante-card img{
  width:100px;
  height:100px;
  object-fit:contain;
  border-radius:50%;
  background:#eee;
}

.integrante-info h3{
  margin:0 0 5px 0;
}

.links a{
  margin-right:10px;
  text-decoration:none;
  color:#0066cc;
  font-weight:500;
}

.links a:hover{
  text-decoration:underline;
}

/* Mapa */

.mapa{
  margin-top:15px;
}

.mapa iframe{
  border-radius:10px;
}

/* Equipamiento */

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

.card{
display:block;
background:white;
border-radius:10px;
overflow:hidden;
text-decoration:none;
color:#333;
box-shadow:0 6px 15px rgba(0,0,0,0.08);
transition:transform .2s ease, box-shadow .2s ease;
}

.card img{
width:100%;
height:180px;
object-fit:contain;
display:block;
padding:10px;
background:#f8fafc;
}

.card h3{
font-size:18px;
margin:15px 20px 5px 20px;
}

.card p{
font-size:14px;
margin:0 20px 20px 20px;
color:#555;
line-height:1.5;
}

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

.card-subtitle{
font-size:14px;
color:#2c6fa3;
margin:0 20px 10px 20px;
font-weight:600;
}
