/* Reset básico */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'gliker', sans-serif; color: #111; background: #ffffff; position: relative; overflow-x: hidden; transition: background 1s; }

/* --- Degradado animado desde abajo --- */
body::before {
  content: "";
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 30%, #000000 100%);
  z-index: -1;
  transition: height 1.8s ease;
}


/* Hero */
.hero { min-height: 100vh; display: flex; justify-content: center; padding: 2rem; width: 100%; }

/* Stack */
.stack { display: flex; flex-direction: column; align-items: center; gap: 2rem; width: 100%; z-index: 1000; }

/* Logo animado */
@keyframes floatY { 0%{transform:translateY(-14px);} 50%{transform:translateY(14px);} 100%{transform:translateY(-14px);} }
.logo { width: 17em; height: auto; display: block; animation: floatY 4s ease-in-out infinite; transition: opacity 0.8s; }
.logo:hover { transform: scale(1.1); transition: transform 0.5s ease; }

/* Grid de tarjetas */
.webs{
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5em;
  align-items: start;
  justify-items: center;
}

/* Tarjeta */
.card, #wproduct{
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #000000;
  border-radius: 5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.2em 1em 1.5em;
  color: #ffffff;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 1;
}

/* Hover tarjetas */
.card:hover, #wproduct:hover { transform: scale(1.1); }

/* Marco de vídeo */
.vid{ width: 90%; height: 60%; background-color: #ffffff; border-radius: 1em; padding: 1em; display:flex; align-items:center; justify-content:center; margin-top:1em; }
.vid > video, .vid > img, .vid > iframe{ width:100%; height:100%; object-fit:cover; border-radius:0.4em; }

/* Hover marco */
#light:hover{ box-shadow: 1px 1px 20px #ffffff; transition: box-shadow 0.5s ease; }

/* Título tarjeta */
.ti{ width:100%; min-height:2.6em; display:grid; place-items:end center; text-align:center; font-weight:bolder; }
.ti h1{ margin:0.2em 0 0; font-size:1.1em; }

/* Responsive */
@media (max-width: 70em){ .webs{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:2em; } }
@media (max-width: 50em){ .webs{ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:1.5em; } }
@media (max-width: 40em){ .webs{ grid-template-columns: 1fr; gap:1.5em; } }

/* Responsive tipografía */
@media (min-width: 110em){ .ti h1{ font-size:2vh; margin-bottom:10%; } .vid{ margin-top:5%; } }
