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

/* NAVBAR */
.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 40px;
  background:#020617;
  border-bottom:1px solid rgba(255,255,255,0.05);
}

.navbar nav{
  display:flex;
  gap:25px;
}

.navbar a{
  color:#94a3b8;
  text-decoration:none;
  font-size:14px;
}

.navbar a:hover{
  color:white;
}

.left{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:bold;
}

.logo{
  height:100px;
}

.btn{
  background:#2563eb;
  border:none;
  color:white;
  padding:8px 15px;
  border-radius:6px;
  cursor:pointer;
  transition:0.2s;
}

.btn:hover{
  background:#1d4ed8;
}

/* CONTENIDO */
.container{
  padding:40px;
  max-width:1200px;
  margin:auto;
}

/* KPI (CORREGIDO: usar grid, no flex + grid mezclado) */
.kpi-container{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:20px;
  margin:25px 0;
}

.kpi{
  background:#111827;
  padding:20px;
  border-radius:12px;
  box-shadow:0 4px 15px rgba(0,0,0,0.3);
}

.kpi h3{
  margin:0;
  font-size:22px;
}

.kpi p{
  margin:5px 0 0;
  color:#9ca3af;
  font-size:13px;
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
}

/* CARD */
.card{
  position:relative; /* NECESARIO para overlay */
  border-radius:16px;
  overflow:hidden;
  background:#020617;
  border:1px solid rgba(255,255,255,0.05);

  display:flex;
  justify-content:center;
  align-items:center;
  padding:0px;
}

/* IMAGEN (CORREGIDO: no deformar y mostrar completa) */
.card img{
  max-width:100%;
  max-height:80vh; /* evita que sea gigante */
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
  transition: transform 0.4s ease;
}

/* OVERLAY */
.overlay{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  padding:20px;
  background:linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.overlay h3{
  margin:0;
  font-size:16px;
}

.overlay p{
  margin:5px 0 0;
  font-size:12px;
  color:#cbd5f5;
}

/* HOVER */
.card:hover img{
  transform:scale(1.05);
}

/*
.card video{
  max-width:100%;
  max-height:70vh;
  width:auto;
  height:auto;
  display:block;
  object-fit:contain; 
}
*/
.card video{
  width:100%;
  height:100%;
  object-fit:cover;
}


/* RESPONSIVE */
@media (max-width: 900px){

  .navbar{
    flex-direction:column;
    gap:10px;
    align-items:flex-start;
  }

  .navbar nav{
    flex-wrap:wrap;
    gap:15px;
  }

}
