/* Fuente base */
html{
  overflow-x: hidden;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: rgb(29, 30, 32);
    overflow: hidden;
  }
  .navbar.about-content{
    padding: 12px;
  }
  .center{
    text-align: center !important;
  }
  /* Navegación */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: transparent;
  }
  
  .logo {
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  
  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
  }
  

  
  /* Hero Section */
  .hero {
    background-color: rgb(29, 30, 32);
    padding: 3rem 0;
    overflow: hidden;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  .hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }
  
  .hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }
  
  .hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .btn {
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  /* Multi-line store buttons for ES home */
  .store-btn {
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    display: inline-block;
  }
  @media (max-width: 575.98px) {
    .store-btn {
      padding: 0.7rem 1.2rem;
    }
  }
  
  .btn-descargar {
    background-color: #fff;
    color: #000;
    border: 1px solid #fff;
  }
  
  .btn-jugar {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  /* Imagen del hero */
  .hero-image {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
  }
  
  .hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
  }
  
  .hero-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    transform-origin: left;
    transform: scale(1.8);
  }
  .hero-section h1{
    padding: 4px;
  }
  /* Sección About */
  .about {
    background-color: #1F2833;
    padding: 3rem 2rem;
  }
  
  .about h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
  }
  
  .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-y: hidden;
  }
  
  .about-text {
    flex: 1 1 300px;
  }
  
  .about-text p {
    line-height: 1.6;
  }
  
  .about-video {
    flex: 1 1 300px;
    text-align: center;
  }
  
  .game-screenshots {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
  }
  
  .screenshot {
    width: 240px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  
  .screenshot:hover {
    transform: scale(1.05);
  }
  
  .title-contact{
    margin-top: 12px;
  }
  /* Footer */
  .footer {
    text-align: center;
    background-color: #1F2833;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .game-image {
    padding: 0px !important;
  }
.contact-section .contact-card h2{
  text-align: center;
}

  /* Responsivo (Breakpoint ejemplo) */
  @media (max-width: 991.98px) {
    .hero {
      padding: 2rem 0;
    }
  
    .hero-content {
      text-align: left;
      margin-bottom: 2rem;
    }
  
    .hero .btn-group {
      justify-content: center;
    }
  
    .image-container {
      width: min(500px, 90%);
    }
  }
  
  @media (max-width: 575.98px) {
    .image-container {
      width: 90%;
    }
  
    .hero-content h1 {
      font-size: 2.5rem;
    }
  }
  
  .image-container {
    height:290px;
    position: relative;
    width: min(700px, 100%);
    aspect-ratio: 1/1;
    margin: 0 auto auto100px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" preserveAspectRatio="none" viewBox="0 0 200 200" fill="none"><path d="M100 0L120.706 22.7259L150 13.3975L156.569 43.4315L186.603 50L177.274 79.2945L200 100L177.274 120.706L186.603 150L156.569 156.569L150 186.603L120.706 177.274L100 200L79.2945 177.274L50 186.603L43.4315 156.569L13.3975 150L22.7259 120.706L0 100L22.7259 79.2945L13.3975 50L43.4315 43.4315L50 13.3975L79.2945 22.7259L100 0Z" fill="%23727586"/></svg>');
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" preserveAspectRatio="none" viewBox="0 0 200 200" fill="none"><path d="M100 0L120.706 22.7259L150 13.3975L156.569 43.4315L186.603 50L177.274 79.2945L200 100L177.274 120.706L186.603 150L156.569 156.569L150 186.603L120.706 177.274L100 200L79.2945 177.274L50 186.603L43.4315 156.569L13.3975 150L22.7259 120.706L0 100L22.7259 79.2945L13.3975 50L43.4315 43.4315L50 13.3975L79.2945 22.7259L100 0Z" fill="%23727586"/></svg>');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
  }
  
  .effect-image {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    transform: scale(1);
  }
  
  .image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.41);
    pointer-events: none;
  }
  
  /* Estilos específicos solo para la sección de galería */
  .galery .game-screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .galery .screenshot {
    width: 240px;
    height: auto; /* Esto permite que la altura se ajuste manteniendo la proporción */
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  
  .galery .screenshot:hover {
    transform: scale(1.05);
  }

      /* Estilos para el banner de cookies */
      #cookie-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #f5f5f5;
        color: #000;
        padding: 20px 20px 20px 20px;
        text-align: center;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
        z-index: 9999;
      }
      #cookie-banner button {
        padding: 10px 20px;
        background-color: #4CAF50;
        color: #fff;
        border: none;
        cursor: pointer;
      }
      /* Estilos para el contenedor de YouTube */
      #youtube-container {
        position: relative;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        overflow: hidden;
      }
      .youtube-placeholder {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* Ratio 16:9 */
        cursor: pointer;
      }
      .youtube-placeholder img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 25px;
      }
  
  /* Ajustes para móvil */
  @media (max-width: 768px) {

    #home{
      margin-top: 18px;
    }
    .galery .game-screenshots {
        gap: 15px;
        padding: 15px;
    }
  
    .galery .screenshot {
        width: calc(50% - 15px); /* Dos imágenes por fila */
        max-width: 240px; /* Mantiene el tamaño máximo */
    }

    /* Centrado de imágenes en about section */
    .about .game-screenshots {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 0 auto;
        padding: 0;
        width: 100%;
    }

    .about .screenshot {
        width: 90%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
    }

    /* Centrado de imágenes en galería */
    .galery .game-screenshots {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 0 auto;
        padding: 0;
        width: 100%;
    }

    .galery .screenshot {
        width: 90%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
    }

    /* Asegura que el contenedor de video también esté centrado */
    .about-video {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        padding: 0 15px;
    }

    /* Asegura que el contenedor padre también esté centrado */
    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    /* Ocultar imágenes cover en móvil */
    .services-image {
        display: none;
    }

    /* Ocultar el contenedor about-video en las secciones específicas */
    .features .about-video,
    .how-to-play .about-video {
        display: none;
    }

    /* Ajustar el texto para ocupar todo el ancho cuando la imagen está oculta */
    .about-text {
        width: 100%;
        padding: 0 20px;
    }

    /* Eliminar espacio extra cuando el contenedor está oculto */
    .about-video.aos-init.aos-animate:has(.services-image) {
        display: none;
        margin: 0;
        padding: 0;
    }

    /* Ajustar espaciado entre secciones específicas */
    .features + .how-to-play {
        margin-top: -2rem;
    }

    /* Reducir el padding general de las secciones */
    .about {
        padding: 1.5rem 1rem;
    }

    /* Ajustar el contenido cuando no hay imagen */
    .about-content {
        gap: 1rem;
    }

    .about-text {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 0;
    }

    /* Ajustar espaciado de la lista de servicios */
    .services-list {
        margin-top: 1rem;
        margin-bottom: 0;
    }

    /* Estilos para el contenedor de YouTube */
    #youtube-container {
        width: 100%;
        margin: 0 auto;
    }

    .youtube-placeholder {
        width: 100%;
        border-radius: 25px;
        overflow: hidden;
    }

    .youtube-placeholder img {
        width: 100%;
        height: 100%;
    }

    .revoke-cookies-btn {
        width: 80%;
        max-width: 300px;
    }

    .game-image {
        height: 160px;
    }

    .game-container {
        padding: 1rem 0; /* Eliminamos padding horizontal */
        width: 100%;
        overflow-x: hidden; /* Prevenir scroll horizontal */
        overflow-y: hidden;
    }

    .game-section {
        padding: 2rem 0;
        width: 100%;
    }

    .game-grid, .modes-grid {
        display: flex; /* Cambiamos a flexbox */
        flex-direction: column; /* Apilamos las tarjetas */
        gap: 1.5rem;
        width: 90%; /* Dejamos un pequeño margen a los lados */
        margin: 0 auto;
    }

    .game-card {
        width: 100%;
        margin: 0;
        padding: 1rem;
    }

    .game-image {
        width: 100%;
        height: auto;
        min-height: 160px;
        object-fit: contain;
    }

    .dark-section {
        padding: 2rem 1rem;
        border-radius: 0; /* Eliminamos el border-radius en móvil */
    }

    /* Ajustes para el título en game.html */
    .game-section h2 {
        font-size: 1.5rem;
        padding: 0 1.5rem;
        margin-bottom: 1.5rem;
        text-align: left;
        word-wrap: break-word;
        line-height: 1.3;
        width: 100%;
        box-sizing: border-box;
    }

    /* Contenedor principal */
    .game-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        overflow-x: hidden;
        overflow-y: hidden;
        box-sizing: border-box;
    }

    /* Sección hero */
    .hero-section {
        padding: 2rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-description {
        padding: 0 1.5rem;
        margin-bottom: 1rem;
        font-size: 1rem;
        line-height: 1.4;
        text-align: left;
    }

    /* Ajuste para prevenir desbordamiento */
    body {
        overflow-x: hidden;
        width: 100%;
    }
  }
  
  /* Ajustes responsivos generales */
  @media (max-width: 768px) {
    /* Navegación */
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    /* Hero section */
    .hero-content {
        padding: 0 1rem;
        text-align: left;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 80%;
        text-align: center;
    }

    /* About section */
    .about {
        padding: 2rem 1rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about h2 {
        text-align: center;
        font-size: 1.8rem;
    }

    .about-video iframe {
        width: 100%;
        height: 200px;
    }

    /* Image container */
    .image-container {
        width: 90%;
        height: auto;
        margin: 2rem auto;
    }

    .effect-image {
        width: 100%;
        height: 100%;
    }

    /* Game screenshots en about */
    .about .game-screenshots {
        flex-direction: column;
        align-items: center;
    }

    .about .screenshot {
        width: 100%;
        max-width: 300px;
    }

    /* Footer */
    .footer {
        padding: 1rem;
        font-size: 0.8rem;
    }
  }
  
  /* Ajustes específicos para pantallas muy pequeñas */
  @media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        width: 90%;
        padding: 0.7rem 1.5rem;
    }
  }
  
  /* Ajustes para tablets */
  @media (min-width: 769px) and (max-width: 1024px) {
    .about-content {
        padding: 0 2rem;
    }

    .about-video iframe {
        width: 100%;
    }

    .hero-content {
        padding: 0 2rem;
    }
  }
  
  /* Estilos para el botón hamburguesa */
  .navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 100;
  }
  
  .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease-in-out;
  }
  
  /* Estilos para móvil */
  @media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgb(29, 30, 32);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease-in-out;
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    /* Animación del botón hamburguesa cuando está activo */
    .navbar-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -6px);
    }
  }
  
  /* Estilos para la sección de servicios */
  .services-list {
    margin-top: 2rem;
  }
  
  .service-item {
    margin-bottom: 1.5rem;
  }
  
  .service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #fff;
  }
  
  .service-item p {
    color: #ccc;
    line-height: 1.5;
  }
  
  .services-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  /* Ajustes responsivos para la sección de servicios */
  @media (max-width: 768px) {
    .services-list {
        margin-top: 1.5rem;
    }
    
    .service-item {
        margin-bottom: 1.2rem;
    }
    
    .service-item h3 {
        font-size: 1.2rem;
    }
    
    .services-image {
        margin-top: 1.5rem;
    }
  }
  
  .nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
  
  /* Para mantener el subrayado en móvil */
  @media (max-width: 768px) {
    .nav-link.active::after {
        width: 100%;
    }
  }
  
  /* Estilos para el banner de cookies */
  .cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
  }
  
  .cookies-button-info {
    color: #198754;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .cookies-button-info:hover {
    color: #5e5252;
  }
  
  /* Ajustes para móvil */
  @media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }

    #cookies-button-accept,
    .cookies-button-info {
        width: 100%;
        text-align: center;
    }
  }
  
  /* Estilos para el botón de revocar cookies */
  .revoke-cookies-btn {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: none;
  }
  
  .revoke-cookies-btn:hover {
    background-color: #fff;
    color: #1F2833;
  }
  
  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: rgba(0,0,0,0.7);
    border-radius: 14px;
  }
  
  .play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent white;
  }
  
  .youtube-placeholder:hover .play-button {
    background-color: red;
  }
  
  /* Estilos para el formulario de contacto */
  .contact-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
  }
  
  .contact-cards {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    box-sizing: border-box;
  }
  
  .contact-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .show{
    display: block;
  }
  
  /* Desktop (≥1024px) */
  @media (min-width: 1024px) {
    .contact-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .contact-card {
        max-width: none;
    }
  }
  
  /* Tablet (≥768px y <1024px) */
  @media (min-width: 768px) and (max-width: 1023px) {
    .contact-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .contact-card {
        max-width: none;
    }
  }
  
  /* Móvil (<768px) */
  @media (max-width: 767px) {
    .about-content {
        padding: 0 15px;
    }

    .contact-cards {
        padding: 1rem 0;
    }

    .contact-card {
        padding: 1.5rem;
        max-width: 100%;
    }
  }
  
  /* Estilos para los enlaces de las tarjetas de contacto */
  .contact-card .contact-link {
    color: #66FCF1; /* Color cyan brillante */
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid #66FCF1;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
  }

  .contact-card .contact-link:hover {
    background: #66FCF1;
    color: #0B0C10; /* Color oscuro para mejor contraste */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 252, 241, 0.3); /* Brillo suave */
  }

  .contact-card .contact-link:active {
    transform: translateY(-1px);
  }
  /* Store buttons inline container */
  .store-buttons {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
  }
  /* Ensure links shrink instead of wrapping to next line */
  .store-buttons .contact-link {
    white-space: nowrap;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
  @media (max-width: 480px) {
    .store-buttons {
      gap: 10px;
    }
    .store-buttons .contact-link {
      padding: 0.55rem 0.9rem;
      font-size: 0.9rem;
    }
  }
  
  /* Story Page Styles */
  .story-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }

  .hero-section {
    text-align: center;
    padding: 4rem 0;
  }

  .hero-section h1 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
  }

  .story-timeline {
    position: relative;
    padding: 2rem 0;
  }

  .story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.3;
  }

  .story-section {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .story-section h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
  }

  .story-section p {
    line-height: 1.6;
    color: var(--text-color);
  }

.story-container{
overflow-x: hidden;
}

  /* Responsive Design */
  @media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .story-section {
        padding: 1.5rem;
        margin: 0 auto 2rem;
    }

    .story-section h2 {
        font-size: 1.5rem;
    }

    .story-timeline::before {
        left: 2rem;
    }
  }

  @media (max-width: 480px) {
    .story-container {
        padding: 1rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .story-section {
        padding: 1rem;
    }
  }
  
  /* Game Page Styles */
  .game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }

  .game-section {
    padding: 4rem 0;
    margin: 2rem 0;
  }

  .dark-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 4rem 2rem;
  }

  .game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
  }

  .game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
  }

  .game-card:hover {
    transform: translateY(-10px);
  }

  .game-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
  }

  .game-card h3 {
    color: var(--accent-color);
    margin: 1rem 0;
  }

  .feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
  }

  .feature-list li {
    padding: 0.5rem 0;
    color: #ccc;
  }

  .feature-list li::before {
    content: '→';
    margin-right: 0.5rem;
    color: var(--accent-color);
  }

  .modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
  }

  .mode-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
  }

  .mode-card:hover {
    transform: scale(1.05);
  }

  /* Responsive Design for Game Page */
  @media (max-width: 1024px) {
    .game-grid, .modes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 768px) {


    .game-container {
        width: 100%;
        padding: 0;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .game-section {
        width: 100%;
        padding: 2rem 0;
    }

    .game-grid, .modes-grid {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .game-card {
        width: 100%;
        box-sizing: border-box;
        padding: 1rem;
        margin: 0;
    }

    .game-card h3 {
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }

    .game-card p {
        font-size: 0.9rem;
        margin: 0.5rem 0;
        word-wrap: break-word;
    }

    .game-image {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }

    .feature-list {
        padding-left: 0;
        margin: 0.5rem 0;
    }

    .feature-list li {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }

    .dark-section {
        padding: 2rem 0rem;
        border-radius: 0; /* Eliminamos el border-radius en móvil */
    }
  }

  @media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .game-section {
        padding: 1.5rem 0;
    }

    .dark-section {
        padding: 2rem 0rem;
    }
  }
  
.youtube-placeholder {
    position: relative;
}

.cookie-message {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-align: center;
    z-index: 2;
    font-size: 0.9rem;
}

.cookie-message.show {
    display: block;
}

.cookie-message {  
    width: 100%;
    bottom: 0;
    position: absolute;
    text-align: center;
    left: 0;
    transform: none;
    top: auto;
    left: none;
}

.cookie-policy-link {
    display: block;
    margin-top: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
}

.cookie-policy-link:hover {
    color: #fff;
    text-decoration: underline;
    opacity: 1;
}