@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Open+Sans&display=swap");

body {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  background-color: black;
}

.main-content {
  min-height: 100vh;
  position: relative;
}

.background-image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/campo.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.hero-title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 3.5rem;
  font-family: 'Bebas Neue', sans-serif;
  padding-top: 6rem;
  margin-bottom: 2rem;
  line-height: 1.1;
}
.hero-title .white {
  color: white;
}
.hero-title .red {
  color: #e91922;
}
.title-desktop {
  display: inline;
}
.title-mobile {
  display: none;
}

.card-grid-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2rem;
  max-width: 1320px;
  margin-bottom: 2rem;
  margin-right: 2rem;
	margin-left: 2rem;
}

.news-card {
  width:  300px;
  height: 450px;
  background-color: white;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  font-family: 'Open Sans', sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    border: 3px solid white;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-6px);
}

.image-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: white;
}
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: white;
}

.news-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #e91922;
  color: white;
  font-family: 'Bebas Neue', sans-serif;
  padding: 0.3rem 0.7rem;
  font-size: 1.1rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.news-content {
  background-color: #e91922;
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.news-title {
  font-size: 1.4rem;
  font-family: 'Bebas Neue', sans-serif;
  margin: 0 0 0.6rem;
  text-align: center;
}
.news-text {
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  color: white;
}

.news-link {
  margin-top: auto;        
  padding-top: 1rem;       
  text-align: center;
}
.news-link a {
  color: white;
  background-color: #b81414;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.news-link a:hover {
  background-color: #930f0f;
}

@media (max-width: 768px) {
  .card-grid {
    padding: 1rem;
  }
    
  .news-card-small:hover {
    transform: none;
  }

  .news-card {
    width: 100%;                 
    aspect-ratio: 2 / 3;        
    height: auto;                
    max-width: 320px;            
    margin: 0 auto;              
  }

  .news-title {
    font-size: 1.3rem;
  }

  .news-text {
    font-size: 0.9rem;
  }
}