
body {font-family: Arial; margin:0; background:#f4f4f4; color:#333;}
.hero {background-image:url("assets/img_1.jpg"); height:70vh; position:relative; display:flex; justify-content:center; align-items:center; color:white; }
.overlay {background:rgba(0,0,0,0.4); padding:40px; border-radius:10px; text-align:center;}
.navbar {position:sticky; top:0; background:white; padding:15px; display:flex; justify-content:center; gap:20px; border-bottom:1px solid #ccc;}
.navbar a {text-decoration:none; color:#008080; font-weight:bold;}
.btn {background:#00a0a0; color:white; padding:12px 25px; border-radius:6px; text-decoration:none;}
section {background:white; padding:40px; border-radius:8px; max-width:1100px; margin:30px auto;}
.timeline ul {list-style:none; padding:0;}
.gallery {display:flex; flex-wrap:wrap; gap:10px;}
.gallery img {width:200px; border-radius:6px;}
.grid {display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px;}
footer {background:#008080; color:white; text-align:center; padding:20px; margin-top:30px;}

/* --- CONTENEDOR GENERAL --- */
.timeline-container {
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  margin: 40px auto;
  max-width: 1200px;
}

.timeline-container h2 {
  font-size: 28px;
  margin-bottom: 40px;
  color: #0a2342;
  font-weight: 700;
}

/* --- TIMELINE HORIZONTAL DESKTOP --- */
.timeline-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 20px 0;
  gap: 20px;
}

.timeline-horizontal::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #2a74b9;
  opacity: 0.3;
}

/* --- ÍCONOS INSTITUCIONALES --- */
.tl-dot {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #0a2342;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  color: white;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  position: relative;
  z-index: 10;
}

.tl-item {
  position: relative;
  width: 20%;
  min-width: 120px;
}

.tl-year {
  margin-top: 15px;
  font-size: 20px;
  font-weight: 700;
  color: #0a2342;
}

.tl-text {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}

/* --- RESPONSIVE: MÓVIL / TABLET --- */
@media (max-width: 768px) {
  .timeline-horizontal {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
  }

  .timeline-horizontal::before {
    left: 22px;
    top: 0;
    width: 4px;
    height: 100%;
  }

  .tl-item {
    width: 100%;
    text-align: left;
    margin-bottom: 45px;
  }

  .tl-dot {
    position: absolute;
    left: -2px;
    top: 0;
    transform: translateX(-50%);
  }

  .tl-year {
    font-size: 18px;
  }
}

#ventajas {
  padding: 60px 20px;
  text-align: center;
}

#ventajas h2 {
  font-size: 2.4rem;
  margin-bottom: 40px;
}

/* GRID BASE */
.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

/* TARJETA CONTENEDOR */
.card {
  perspective: 1000px;
}

.card-inner {
  width: 100%;
  height: 230px;
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Volteo al hover */
.card:hover .card-inner {
  transform: rotateY(180deg);
}

/* BASE DE LA TARJETA */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);

  backface-visibility: hidden;
}

/* ICONO */
.icon {
  font-size: 45px;
  margin-bottom: 12px;
}

/* CARA TRASERA */
.card-back {
  transform: rotateY(180deg);
  color: #fff;
  background: rgba(30, 64, 175, 0.35); /* azul translúcido */
}
