/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tipografía principal */
h1 {
  font-family: 'Chewy', cursive;
  font-size: 8rem;
  margin: 0.5em auto;
  margin-top:0em;
  text-align: center;
  color: white;
  font-weight: 400;
  text-shadow: 6px 6px black;
}

p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
}

/* General */
body {
  font-family: Arial, sans-serif;
  background-color: purple;
  background-image: url(img/background.png);
  background-attachment: fixed;
}

footer {
  background: linear-gradient(to left, rgba(255, 0, 255, 0.8), rgba(100, 0, 255, 0.9));
  position:sticky;
  color:white;
  bottom: 0;
  height: 54px;
  z-index: 10;
}

/* Header y navegación */
html {
  scroll-behavior: smooth;
}

header {
  background: linear-gradient(to left, rgba(255, 0, 255, 0.5), rgba(100, 0, 255, 0.6));
  padding: 30px;
  position: sticky;
  top: 0;
  height: 56px;
  z-index: 10;
  box-shadow:0px 2px 10px rgba(0,0,0,0.8);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav ul li {
    color:white;
    font-weight:600;
    margin: -12px 24px;
    padding:auto;
    height: 32px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #00d8ff;
}


/* Videos del principio*/

.video-container {
  height: 860px;
  min-height:720px;
  overflow: hidden;
  position: relative;
}

.video-container video {
  width: 100%;
  height: auto;
  position: relative;
}

.game-title {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 65%;
}

.texto {
      position: absolute;
      top: 55%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: white;
      font-size: 1.5em;
      text-align:center;
      text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
      z-index: 2;
}

/*Participaciones en eventos*/
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.past-event {
    background: linear-gradient(to left, rgba(255, 0, 255, 0.8), rgba(100, 0, 255, 0.9));
    border-radius:20px;
    min-width: 250px;
    width:25%;
    padding:auto;
    text-align:center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upcoming-event {
    background: linear-gradient(to left, rgba(255, 0, 255, 0.8), rgba(100, 0, 255, 0.9));
    border-radius:20px;
    min-width: 250px;
    width:25%;
    padding:auto;
    text-align:center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}




/*sssssssssssssssssssssssssssssssssssssssss*/

.video-hover-container {
    position: relative;
    width: 400px;
    height: 250px;
    background: linear-gradient(to left, rgba(255, 0, 255, 0.8), rgba(100, 0, 255, 0.9));
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.4s ease;
}

.video-hover-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.video-hover-container:hover video {
    opacity: 0.8;
}

 .video-hover-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 0 5px black;
    padding: 20px;
}

.content {
  position: fixed;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #f1f1f1;
  width: 100%;
  padding: 20px;
}

#about {
    padding: 50px 20px;
    background-color: rgba(255,0,255,0.1);
    color: white;
    text-align: center;
}

#servicios {
    padding: 50px 20px;
    color: white;
    text-align: center;
}

#servicios h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #00d8ff;
}

.cards-container {
  display: grid;
  padding:1em;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  position: relative;
  background: linear-gradient(to left, rgba(255, 0, 255, 0.4), rgba(100, 0, 255, 0.5));
  padding: 20px;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 0px rgba(0, 0, 0, 0.4);
}

/* Fondo de video al hacer hover */
.video-card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.video-card:hover video {
  opacity: 0.5;
}

/* Contenido encima del video */
.card-content {
  position: relative;
  z-index: 1;
}

.card img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card h3 {
  margin-bottom: 10px;
  color: white;
}

.card p {
  font-size: 0.95em;
  margin-bottom: 15px;
  color: white;
}

.card button {
  background-color: rgb(255,36,76);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
}

.card button:hover {
  background-color: rgb(255,60,150);
  transform: translateY(-5px);
  box-shadow: 0 10px 0px rgba(0, 0, 0, 0.4);
}
