:root {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --background: #0f172a;
  --surface: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --neon: #00f7ff;
  --gradient-1: #4338ca;
  --gradient-2: #6366f1;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url(./img/488598f9-6aca-4f29-8d85-1c6a3281a47c.jpg);
  background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.modern-header {
  background: var(--surface);
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.menus {
  --primary: #7c3aed;

  display: flex;
  justify-content: center;
}

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

nav ul li {
  margin: 0 1.5em;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em 1em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.sostenibilidad {
  text-align: center;
  padding: 10%;
}

.formulario {
  text-align: center;
}


.enlaceSOS {
  color: #C8F456;
}

nav ul li a:hover {
  background-color: #555;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logotipo {
  width: 50%;
  height: auto;
  color: var(--neon);
  filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.3));
  animation: animationLogo 3s;
}

.text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.titulo {
  font-weight: 700;
  font-size: 2.2rem;
  margin: 0;
  background: linear-gradient(45deg, var(--neon), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animationtext 3s;
}

.subTitulo {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  animation: animationtext 7s;
}

#search-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.search-section {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.search-section h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary);
}

.filter-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

option {
  color: var(--neon);
  background-color: var(--surface);
}

.filter-row input,
.filter-row select {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.sort-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

input,
select,
button {
  border-radius: 12px !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s ease !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
}

button {
  background: var(--primary) !important;
  text-transform: uppercase;
  font-weight: 500 !important;
  letter-spacing: 0.5px;
  border: none !important;
}

button:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-2px);
}

.modern-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.game-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ccc;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--surface);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card .game-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card .game-info div {
  margin-bottom: 10px;
}

.game-card .game-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 20px;
}

.game-card .game-image img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
}

.game-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(124, 58, 237, 0.1), transparent);
  transform: rotate(45deg);
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 247, 255, 0.1);
}


.game-card h3 {
  color: #ADD8E6; 
}

.game-card p {
  color: #f5f5f5; 
}

.game-header {
  text-align: center;
}

.global-sort {
  margin: auto;
}



.modern-main{
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  margin-left: 10%;

}
.section {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.TextoDivcard {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  max-width: 800px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.TextoDivcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 247, 255, 0.1);
}

.TextoDivcard h2, .TextoDivcard h3 {
  color: #ADD8E6; 
}

.TextoDivcard p {
  color: #f5f5f5; 
}

.enlaceSOS {
  color: #C8F456;
  text-decoration: none;
}

.enlaceSOS:hover {
  text-decoration: underline;
}



.formulario-section {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.formulario-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formulario-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 247, 255, 0.1);
}

.formulario-card h2, .formulario-card h4 {
  color: var(--text-primary);
}

.formulario-card label {
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.formulario-card input, .formulario-card select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.formulario-card input[type="submit"] {
  background: var(--primary);
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.formulario-card input[type="submit"]:hover {
  background: var(--primary-hover);
}

@keyframes animationLogo {
  0% {
    width: 30%;
    opacity: 0;
  }

  100% {
    width: 50%;
  }
}

@keyframes animationtext {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .search-section {
    padding: 1.5rem;
  }

  .modern-results {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .logo-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .game-card .game-image {
    margin-left: 0;
    margin-top: 10px;
    max-width: 100%; 
  }

  .modern-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
  }

  .TextoDivcard, .formulario-card {
    max-width: 100%; 
    padding: 1rem;
  }

  iframe {
    width: 100%;
    height: auto; 
  }
}

@media (max-width: 1200px) {
  .search-section {
    padding: 1rem;
  }

  .modern-results {
    grid-template-columns: 1fr;
  }

  .game-card .game-image {
    margin-left: 0 auto;
    margin-top: 10px;
    max-width: 100%;
  }

  .modern-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
  }

  .TextoDivcard, .formulario-card {
    max-width: 100%; 
    padding: 1rem; 
  }

  iframe {
    width: 100%; 
    height: auto; 
  }
}