/* --- VARIABLES Y ESTILOS BASE --- */
:root {
    --primary-color: #ff5e00; 
    --secondary-color: #ffffff;
    --background-color: #0a0a0a;
    --text-color: #e0e0e0;
    --font-family: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* --- NAVEGACIÓN --- */
#main-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 5%;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-logo-img {
    height: 2.2rem; /* Ajusta este valor para que el logo tenga tamaño similar al texto */
    width: auto;
    display: block;
    max-width: 140px; /* Evita que crezca demasiado en pantallas grandes */
    margin: 0 auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 5px;
    transition: all 0.3s ease;
}


/* --- CONTENIDO PRINCIPAL --- */
#main-content {
    position: relative;
    z-index: 10;
    background-color: var(--background-color);
}

.content-section {
    padding: 6rem 5%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.text-block.large-text p {
    font-size: 1.3rem;
    line-height: 1.8;
}

blockquote {
    font-size: 1.3rem;
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--secondary-color);
}

.logos {
    filter: grayscale(1) brightness(1.5);
    opacity: 0.7;
    font-weight: 700;
}

.client-logos {
    margin-top: 3rem;
    border-top: 1px solid #2a2a2a;
    padding-top: 2rem;
}
.client-logos h4 {
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.client-logos p {
    font-weight: 700;
    color: #888;
    filter: brightness(1.2);
}

#final-cta {
    background: #050505;
    text-align: center;
}
.btn-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin-top: 2rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.3);
}

/* --- EFECTO PARALLAX --- */
.parallax {
    height: 50vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* La magia del parallax */
}

/* --- GRIDS Y TARJETAS --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.experience-grid, .services-grid, .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; /* Aumentado para más espacio */
    margin-top: 2rem;
}

.experience-card, .service-item, .game-card {
    background-color: #222; /* Ligeramente más oscuro */
    padding: 1.5rem;
    border-radius: 8px; /* Bordes más redondeados */
    border: 1px solid #333; /* Borde sutil */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* Transición más suave */
    display: flex; /* Para alinear contenido si es necesario */
    flex-direction: column; /* Apilar contenido verticalmente */
}

.experience-card:hover, .service-item:hover, .game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3); /* Sombra más pronunciada y color cian */
    border-color: var(--primary-color); /* Color del borde al pasar el ratón */
}

.experience-card h3, .service-item h3, .game-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.experience-card p, .service-item p, .game-card p {
    color: #ccc;
    line-height: 1.6;
}

.experience-card-content, .service-item-content, .game-card-content {
    flex-grow: 1; /* Asegura que el contenido llene la tarjeta */
}

/* Ajustes específicos para la nueva sección de servicios destacados */
#servicios-destacados .section-header h2 {
    font-size: 2.8rem; /* Un poco más grande para destacar */
}

#servicios-destacados .section-header .subtitle {
    font-size: 1.3rem; /* Subtítulo un poco más grande */
    color: #bbb; /* Color ligeramente más claro para el subtítulo */
    max-width: 700px; /* Limitar ancho para mejor legibilidad */
    margin: 0.5rem auto 2rem auto; /* Centrar y espaciar */
}

.services-grid .service-item.large-text {
    grid-column: span 2; /* Hacer que este item ocupe dos columnas si es posible */
}

@media (max-width: 768px) {
    .services-grid .service-item.large-text {
        grid-column: span 1; /* En pantallas pequeñas, vuelve a una columna */
    }
}

/* Estilos para la sección de videojuegos */
#videojuegos .section-header h2 {
    font-size: 2.8rem;
}

#videojuegos .section-header .subtitle {
    font-size: 1.2rem;
    color: #bbb;
    max-width: 800px;
    margin: 0.5rem auto 2rem auto;
}

.game-card {
    text-align: center; /* Centrar contenido de las tarjetas de juego */
}

.game-card h3 {
    font-size: 1.8rem; /* Títulos de juegos un poco más grandes */
}

/* Estilos para los encabezados de sección reutilizables */
.section-header {
    margin-bottom: 3rem; /* Más espacio después del encabezado */
    text-align: center; /* Centrar el contenido del encabezado por defecto */
}

.section-header h2 {
    font-size: 3rem; /* Título más grande */
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header .subtitle {
    font-size: 1.2rem; /* Subtítulo ligeramente más grande */
    color: #bbb; /* Color más claro para el subtítulo */
    max-width: 600px; /* Limitar el ancho para mejor legibilidad */
    margin: 0 auto; /* Centrar el subtítulo */
}

/* --- EFECTO TYPEWRITER --- */
.typewriter {
    display: inline-block;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(30, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color); }
}

/* ESTILOS PÁGINA DE CONTACTO */
.contact-page main {
    padding-top: 80px;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(34, 34, 34, 0.5);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group, .radio-group {
    display: grid;
    gap: 1rem;
}

.checkbox-group label, .radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input, .radio-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.3);
}

/* Media Queries para el formulario de contacto */
@media (max-width: 768px) {
    .contact-page main {
        padding-top: 60px;
    }

    .contact-header h2 {
        font-size: 2.5rem;
    }

    .contact-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .checkbox-group, .radio-group {
        grid-template-columns: 1fr;
    }

    .checkbox-group label, .radio-group label {
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-header h2 {
        font-size: 2rem;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .checkbox-group label, .radio-group label {
        font-size: 0.9rem;
    }
}

/* Ajustes para tablets en modo landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .contact-form {
        max-width: 90%;
    }

    .checkbox-group, .radio-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustes para dispositivos con pantalla táctil */
@media (hover: none) {
    .btn-submit:hover {
        transform: none;
        box-shadow: none;
    }
}

/* --- ANIMACIONES DE SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- LOGOS DE CLIENTES --- */
.client-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.client-logos-grid img {
    max-width: 100px; /* <-- Puedes ajustar este valor para cambiar el tamaño */
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logos-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem 5%;
    background-color: #050505;
    color: #888;
}
.attribution {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
}
.attribution a {
    color: #888;
    text-decoration: none;
}
.attribution a:hover {
    color: var(--primary-color);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0; /* Desde el tope de la pantalla */
        height: 100vh; /* Altura completa */
        background-color: rgba(10, 10, 10, 0.95); /* Color sólido oscuro con transparencia */
        border-left: 2px solid var(--primary-color); /* Borde para mejor definición */
        flex-direction: column;
        width: 80%; /* Reducido para mejor experiencia */
        text-align: center;
        transition: right 0.5s ease-in-out;
        padding: 5rem 0 2rem 0; /* Espacio superior para el logo */
        z-index: 9999; /* Z-index muy alto para estar sobre todo */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5); /* Sombra para destacar */
    }
    
    .nav-links.active,
    .nav-links.nav-active {
        right: 0 !important;
        display: flex !important;
    }
    
    /* Asegurar que el menú esté por encima de todo */
    #main-header {
        z-index: 10000; /* Mayor que el z-index del menú */
    }
    
    /* Estilos para el botón hamburguesa */
    .burger {
        z-index: 10001; /* Mayor que el header */
    }
    
    /* Animación del botón hamburguesa cuando está activo */
    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--primary-color);
    }
    
    .burger.toggle .line2 {
        opacity: 0;
    }
    
    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: var(--primary-color);
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--text-color) !important; /* Asegurar color visible */
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #333; /* Separador visual */
    }
    
    .nav-links a:hover {
        background-color: #1a1a1a;
        color: var(--primary-color) !important;
    }

    .burger {
        display: block;
        z-index: 1003; /* Aumentado para estar sobre el hero */
    }

    .section-header h2 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .section-header .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    #final-cta {
        padding: 3rem 1rem;
        text-align: center;
    }

    #final-cta h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    #final-cta p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-cta {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    footer {
        padding: 2rem 1rem;
        text-align: center;
        background: rgba(10, 10, 10, 0.95);
    }

    footer p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .attribution {
        font-size: 0.8rem;
        margin-top: 1rem;
    }
}

/* MODIFICADO: ESTILOS PARA LA NUEVA SECCIÓN HERO (TIPO GTA VI) */
/* Asegúrate que el body permita overflow si la animación lo requiere luego */
/* body {
  overflow: hidden; /* Esto puede ser manejado por JS, como en el script de GTA 
} */

.gta-hero-container { /* Renombrado de .container para evitar colisiones */
  min-height: 100svh;
  position: relative;
  background: linear-gradient(
    223.17deg,
    rgb(28, 24, 41) 0%,
    rgb(27, 24, 40) 8.61%,
    rgb(25, 23, 36) 17.21%,
    rgb(22, 21, 32) 25.82%,
    rgb(20, 19, 28) 34.42%,
    rgb(18, 18, 24) 43.03%,
    rgb(17, 17, 23) 51.63%
  );
  /* font-family: Arial, Helvetica, sans-serif; /* Puedes comentar esto si quieres que use Montserrat */
}

.gta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: black;
  z-index: 1; /* Solo cubre la sección hero */
  pointer-events: none;
}

.gta-hero-main-container {
  width: 100%;
  height: 100vh;
  position: relative;
  transform: scale(1.25);
  /* MODIFICADO: Ajusta la ruta a tu logo o elimina si no tienes un logo de fondo similar */
  background-image: url('../assets/images/gta-hero/logo_white.svg'); 
  background-size: 300vh;
  background-position: 50% 37.70%;
  background-repeat: no-repeat;
  background-origin: content-box;
  padding-bottom: 200px;
}

.gta-hero-main-image {
  width: 100%;
  height: 100vh;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.gta-hero-main-logo {
  width: 100%;
  height: 100vh;
  position: absolute;
  inset: 0;
  z-index: 1; /* Encima de la imagen principal, debajo del overlay inicial */
  object-fit: cover;
}

.gta-hero-text-logo-container {
  width: 100%;
  height: 100vh;
  position: absolute;
  inset: 0;
  z-index: -1; /* Detrás del .gta-hero-main-container inicialmente */
  object-fit: cover;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  justify-content: center;
  align-items: center;
}

.gta-hero-text-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* MODIFICADO: Ajusta la ruta a tu logo morado o equivalente */
  background-image: url('../assets/images/gta-hero/gta_logo_purple.webp');
  background-repeat: no-repeat;
  background-position: 50% 41.7%;
  background-size: 28vh;
  background-origin: content-box;
  padding-bottom: 200px;
  height: 100vh;
  position: absolute;
  inset: 0;
}

.gta-scroll-indicator {
  position: absolute;
  bottom: 30px; /* Positioned at bottom of hero container */
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 14px;
  z-index: 10;
}

.gta-scroll-indicator svg {
  color: #ffb0c4;
  width: 100%;
  height: 100%;
}

.gta-hero-text { /* Estilo para el h1 "VOSON" */
  color: #ffb0c4;
  text-align: center;
  text-transform: uppercase;
  background-image: radial-gradient(
    circle at 50% 200vh,
    rgba(255, 214, 135, 0) 0,
    rgba(157, 47, 106, 0.5) 90vh,
    rgba(157, 47, 106, 0.8) 120vh,
    rgba(32, 31, 66, 0) 150vh
  );
  -webkit-text-fill-color: transparent;
  font-size: 4.5rem; /* Ajusta según necesidad para "VOSON" */
  font-weight: 900; /* Heredado de tu #hero-text, o ajústalo */
  background-clip: text;
  -webkit-background-clip: text; /* Para compatibilidad */
  width: 100%;
  line-height: 0.9;
  margin-top: 55%; /* Ajustar si el logo morado tiene otra disposición */
}

.gta-hero-2-container {
  width: 100%;
  height: 100vh;
  position: absolute;
  inset: 0;
  opacity: 0;
  object-fit: cover;
  background-image: radial-gradient(
    circle at 50% 200vh,
    rgba(255, 214, 135, 0) 0,
    rgba(157, 47, 106, 0.5) 90vh,
    rgba(157, 47, 106, 0.8) 120vh,
    rgba(32, 31, 66, 0) 150vh
  );
  -webkit-text-fill-color: transparent;
  /* font-size: 6rem; /* Esto era para el texto original, ajusta para tu h3 y p */
  background-clip: text;
  -webkit-background-clip: text;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 0 2rem; /* mobile */
  visibility: hidden;
  color: #ffb0c4; /* Color base para el texto si el gradiente no se aplica directamente */
}

.gta-hero-2-container p {
  max-width: 90%;
  font-size: 1rem;
  -webkit-text-fill-color: currentColor; /* Para que el texto sea visible */
  color: #f0f0f0; /* Un color legible si el gradiente no funciona como esperado */
  margin-bottom: 0; /* Anula el margin-bottom de tu p general si es necesario */
}

.gta-hero-2-container h3 {
  font-size: 2.5rem;
  -webkit-text-fill-color: currentColor; /* Para que el texto sea visible */
  color: #ffb0c4; /* Un color legible */
  margin-bottom: 0; /* Anula el margin-bottom de tu h3 general si es necesario */
}

@media (min-width: 1024px) {
  .gta-hero-text {
    font-size: 6rem; /* Ajusta según necesidad para "VOSON" en desktop */
  }

  .gta-scroll-indicator {
    bottom: 30px;
  }

  .gta-hero-2-container {
    margin: 0 auto;
    max-width: 60%;
    padding: 0;
  }

  .gta-hero-2-container p {
    max-width: 90%;
    font-size: 1.5rem; /* Ajustado para mejor lectura del párrafo */
  }

  .gta-hero-2-container h3 {
    font-size: 3rem; /* Ajustado */
  }
}

/* Media Queries para Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 90%;
    }
    
    .grid-2, .experience-grid, .services-grid, .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    h2 {
        font-size: 2.5rem;
    }
    
    .content-section {
        padding: 4rem 5%;
    }
    
    .parallax {
        height: 40vh;
    }
    
    .gta-hero-text {
        font-size: 3rem;
    }
    
    .gta-hero-2-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .gta-hero-main-logo,
    .gta-hero-text-logo {
        background-size: 15vh; /* Reducir aún más el tamaño de logos en hero */
    }

    /* Ajustes para títulos y textos */
    .section-header h2 {
        font-size: 1.8rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .section-header .subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    /* Ajustes para el hero */
    .gta-hero-container {
        height: 100vh;
        overflow: visible; /* Cambiado a visible para que se pueda ver el contenido */
    }

    .gta-hero-main-container {
        height: 40vh; /* Reducido aún más para móviles */
        display: flex;
        align-items: center;
        justify-content: center;
        transform: scale(1.1) !important; /* Ajuste de escala para móvil */
    }

    .gta-hero-main-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(0.9); /* Reducir tamaño de la imagen */
    }

    .gta-hero-text {
        font-size: 1.8rem !important; /* Reducido aún más para móviles */
        text-align: center;
        width: 90%; 
        margin: 0 auto; 
        padding: 0 0.5rem; 
        word-wrap: break-word; 
        overflow-wrap: break-word; 
    }

    .gta-hero-2-container {
        padding: 1rem; 
        height: auto; 
        min-height: 30vh; 
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        opacity: 1 !important; 
        visibility: visible !important; 
        position: relative !important; 
        top: 40vh; /* Posicionarlo debajo de la animación principal */
        z-index: 10 !important; /* Z-index más alto */
        background-color: rgba(0, 0, 0, 0.7) !important; /* Fondo semi-transparente para contraste */
        margin: 1rem auto; /* Centrado horizontal */
        border-radius: 8px; /* Bordes redondeados */
        width: 90%; /* Ancho controlado */
        max-width: 500px; /* Ancho máximo */
    }

    .gta-hero-2-container h3 {
        font-size: 1.1rem; /* Reducido para móviles */
        margin-bottom: 0.5rem; /* Reducido margen */
        color: var(--primary-color) !important; /* Asegurar color visible */
        -webkit-text-fill-color: var(--primary-color) !important; /* Asegurar color visible */
    }

    .gta-hero-2-container p {
        font-size: 0.85rem; /* Reducido para móviles */
        line-height: 1.4;
        color: var(--text-color) !important; /* Asegurar color visible */
        -webkit-text-fill-color: var(--text-color) !important; /* Asegurar color visible */
    }

    /* Ajustes para el footer */
    footer {
        padding: 2rem 1rem;
        text-align: center;
    }

    footer p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .attribution {
        font-size: 0.8rem;
    }

    /* Ajustes para el CTA final */
    #final-cta {
        padding: 3rem 1rem;
    }

    #final-cta h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    #final-cta p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-cta {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Navegación */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px; /* Altura del header */
        height: calc(100vh - 70px);
        background-color: var(--background-color); /* Color de fondo para visibilidad */
        /* background: rgba(10, 10, 10, 0.95); */ /* Comentado para usar color sólido */
        /* backdrop-filter: blur(10px); */
        /* -webkit-backdrop-filter: blur(10px); */
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: right 0.5s ease-in-out;
        padding: 2rem 0;
        z-index: 1002; 
    }

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

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .gta-hero-container {
        height: 100vh;
    }

    .gta-hero-main-container {
        height: 60vh;
    }

    .gta-hero-text {
        font-size: 2.5rem;
    }

    .gta-hero-2-container {
        padding: 1.5rem;
    }

    .gta-hero-2-container h3 {
        font-size: 1.5rem;
    }

    .gta-hero-2-container p {
        font-size: 1rem;
    }

    /* Contenido */
    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .text-block.large-text p {
        font-size: 1.1rem;
    }

    .experience-card, .service-item, .game-card {
        padding: 1.2rem;
    }

    /* Grids */
    .grid-2, .experience-grid, .services-grid, .game-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Logos */
    .client-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .client-logos-grid img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    #main-header {
        padding: 1rem 3%;
    }

    .content-section {
        padding: 3rem 3%;
    }

    h2 {
        font-size: 1.8rem;
    }

    .gta-hero-text {
        font-size: 2rem;
    }

    .gta-hero-2-container {
        padding: 1rem;
    }

    .btn-cta {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .client-logos-grid {
        grid-template-columns: 1fr;
    }

    .client-logos-grid img {
        max-width: 150px;
    }
}

/* Ajustes específicos para tablets en modo landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .gta-hero-container {
        height: 100vh;
    }

    .gta-hero-main-container {
        height: 70vh;
    }

    .gta-hero-2-container {
        padding: 2rem;
    }

    .grid-2, .experience-grid, .services-grid, .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustes para dispositivos con pantalla táctil */
@media (hover: none) {
    .experience-card:hover, .service-item:hover, .game-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #333;
    }

    .nav-links a:hover::after {
        width: 0;
    }
}

/* Animaciones del menú hamburguesa */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Animación de secciones tipo scroll reveal --- */
.animated-section {
    height: 325vh;
    position: relative;
}
.sticky-container {
    height: 100vh;
    width: 100%;
    position: sticky;
    top: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: var(--image-opacity, 0);
    transform: scale(var(--image-scale, 0.9)) translateY(var(--image-y, 10vh));
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text-content-index {
    position: absolute;
    top: 56vh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 2rem;
}
.text-content {
    position: absolute;
    top: 66vh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 2rem;
}
h1.reveal-text {
    font-size: 2.8rem;
    margin: 0 0 1rem 0;
}
p.reveal-text {
    font-size: 1.25rem;
    line-height: 1.6;
}
.reveal-text span {
    opacity: 0.2;
}
.final-content {
    height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
}

/* Intro experiencias estilo igual que index.html */
.intro-experiencias {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    margin-bottom: 0;
    position: relative;
}
.intro-experiencias .container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem 1.5rem 1rem;
}
.intro-experiencias h2.typewriter {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.1rem;
    letter-spacing: -1px;
    color: #fff;
    text-align: left;
}
.intro-experiencias .subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    color: #ff5e00;
    opacity: 0.95;
    text-align: left;
}
.intro-experiencias p {
    font-size: 1.13rem;
    color: #eaeaea;
    margin-bottom: 0.7rem;
    line-height: 1.7;
    text-align: left;
    max-width: 100%;
}
.intro-experiencias p.truco {
    color: #ff5e00;
    font-weight: 700;
    margin-top: 1.2rem;
    margin-bottom: 0;
    text-align: left;
}
.scroll-indicator {
    text-align: center;
    margin: 0 auto 40px auto;
    z-index: 10;
    animation: bounce 2s infinite;
}
.scroll-indicator svg {
    color: #ff5e00;
    width: 34px;
    height: 14px;
}
@media (max-width: 700px) {
    .intro-experiencias h2.typewriter, .intro-experiencias .subtitle, .intro-experiencias p, .intro-experiencias p.truco {
        text-align: center;
    }
    .intro-experiencias .container {
        padding: 1.5rem 0.5rem 1rem 0.5rem;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.overlay-bg {
    background: rgba(0, 0, 0, 0.45);
    padding: 24px;
    border-radius: 16px;
    color: #fff;
}

.text-content h1,
.text-content p {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
    .text-content {
        top: 60vh;
        padding: 1rem;
        max-width: 95vw;
    }
}

/* INTRO VIDEOJUEGOS REDISEÑADO */
.intro-vj.full-viewport {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  padding: 0 2vw;
}
.intro-vj .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.main-title {
  font-size: 4vw;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: -2px;
}
.highlight {
  background: linear-gradient(90deg, #D1743E, #ff5e00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.text-block h3 {
  font-size: 2vw;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
}
.text-block p {
  font-size: 1.3vw;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .main-title { font-size: 7vw; }
  .text-block h3 { font-size: 4vw; }
  .text-block p { font-size: 2.5vw; }
}
@media (max-width: 600px) {
  .main-title { font-size: 9vw; }
  .text-block h3 { font-size: 6vw; }
  .text-block p { font-size: 4vw; }
}

@media (max-width: 600px) {
  .animated-section {
    height: 180vh; /* Más alto para animación más lenta */
  }
  .sticky-container {
    height: 100vh;
  }
  .image-wrapper img {
    min-height: 300px;
    max-height: 120vh;
    object-fit: cover;
    object-position: center 60%; /* Centrar y bajar la imagen */
    width: 110vw; /* Ampliar un poco la imagen */
    left: 50%;
    transform: translateX(-50%);
    position: relative;
  }
  .text-content {
    top: 45vh; /* Bajar el bloque de texto al tercio inferior */
    padding: 1rem 0.5rem;
    transform: translate(-50%, -10%);
  }
  .overlay-bg {
    padding: 12px 8px;
    border-radius: 20px;
    background: rgba(0,0,0,0.65);
    max-width: 95vw;
    margin: 0 auto;
  }
  .text-content h1.reveal-text {
    font-size: 1.5rem;
  }
  .text-content p.reveal-text {
    font-size: 0.9rem;
  }
  .image-wrapper img.mobile-top {
    object-position: top center;
  }
  .image-wrapper img.mobile-bottom {
    object-position: bottom center;
  }
  .image-wrapper img.mobile-left {
    object-position: center left;
  }
  .image-wrapper img.mobile-right {
    object-position: center right;
  }
}

.team-experience-section {
  background: #111;
  color: #fff;
  padding: 100px 0 80px 0;
  text-align: center;
  position: relative;
}
.team-experience-section .main-title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
.team-experience-section .subtitle {
  font-size: 1.3rem;
  color: #ccc;
  margin-bottom: 40px;
}
.client-logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  margin-bottom: 32px;
}
.client-logos-row img {
  height: 48px;
  filter: brightness(0) invert(1) grayscale(1);
  opacity: 0.8;
  transition: transform 0.2s, opacity 0.2s;
}
.client-logos-row img:hover {
  transform: scale(1.12);
  opacity: 1;
}
.team-experience-section .claim {
  font-size: 1.1rem;
  color: #aaa;
  margin-top: 18px;
  font-style: italic;
}

.lang-switcher a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.lang-switcher a:hover {
    color: var(--primary-color);
}

.lang-switcher a.active {
    color: var(--primary-color);
}