:root {
    --color-principal: #cd15ff;
    --color-fondo: #121212;
    --color-texto: white;
    --color-hover: #e04aff;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    /* Oculta la barra de scroll vertical y horizontal */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

/* General white text styling */
body, p, h3, h2, a, label, input, textarea, button {
    color: var(--color-texto); /* Apply white text color */
}

/* Ensure text in specific sections retains the same style */
#services p, 
#about-us p, 
#community-content p, 
#games .game-description p, 
#contact p {
    color: var(--color-texto); /* Ensure consistent white text */
}

/* Navigation */
nav {
    width: 100%;
    background-color: black;
    padding: 15px 0;
    position: relative;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.nav-container {
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.company-logo {
    max-height: 140px;
    height: auto;
    width: auto;
    display: block;
}

.nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
}

.nav-links ul li a {
    font-size: 16px;
    text-decoration: none;
    color: var(--color-texto);
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links ul li a:hover {
    background-color: var(--color-hover);
}

.contact-btn {
    background-color: var(--color-principal);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
}

.contact-btn:active {
    background-color: var(--color-hover);
}

/* Header */
header {
    text-align: center;
    padding: 0 20px;
    background-color: #4a004e;
    color: white;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('assets/images/backgrounds/header-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: scrollBackground 20s linear infinite;
    position: relative; /* Ensure proper stacking for the overlay */
    z-index: 1;
    overflow: hidden; /* Prevent content overflow */
    border-top: 1px solid var(--color-hover); /* Add a top border to separate from navigation */
    border-bottom: 1px solid var(--color-hover); /* Add a bottom border to separate from the next section */
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
    z-index: -1; /* Place behind the text */
}

.header-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--color-hover); /* Match the divider text color */
}

.header-content p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 49%;
    transform: translateX(-50%);
    width: 40px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section */
section {
    padding: 10px 20px;
    margin-bottom: 40px;
    text-align: center;
}

/* Divider */
.divider {
    background-color: var(--color-fondo);
    color: var(--color-principal);
    text-align: center;
    padding: 10px 10px;
    margin: 30px 0;
    margin-top: 0; /* Remove top margin to eliminate extra space */
    border-top: 1px solid var(--color-hover);
    border-bottom: 1px solid var(--color-hover);
    background-image: url('assets/images/backgrounds/divider-background.jpg'); /* Add a background image */
    background-size: cover; /* Ensure the background covers the entire section */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent the background from repeating */
    background-attachment: fixed; /* Enable the scroll effect */
    animation: scrollBackground 20s linear infinite; /* Add the scrolling animation */
    position: relative; /* Ensure proper stacking for the overlay */
    z-index: 1;
    overflow: hidden; /* Prevent content overflow */
}

.divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
    z-index: -1; /* Place behind the text */
}

.divider-content h2 {
    font-size: 22px;
    margin: 5px 0;
    color: var(--color-hover);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Decorative Transition Section */
.decorative-transition {
    background-color: var(--color-principal); /* Use the primary color for emphasis */
    color: var(--color-texto); /* Ensure text is readable */
    text-align: center;
    padding: 20px 10px; /* Add padding for spacing */
    font-size: 18px; /* Adjust font size */
    font-weight: bold; /* Make the text stand out */
    border-bottom: 1px solid var(--color-hover); /* Add a bottom border for separation */
}

.decorative-content p {
    margin: 0; /* Remove default margin */
}

/* Services Section */
#services {
    padding: 10px 20px;
    margin-bottom: 40px;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.service {
    flex: 1;
    max-width: 30%;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

.service:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.service img {
    max-width: 100%;
    border-radius: 10px;
}

.service h3 {
    font-size: 20px;
    color: var(--color-hover);
    margin-top: 10px;
}

.service p {
    font-size: 18px;
    color: var(--color-texto); /* Apply the same white text color as the Team section */
    line-height: 1.6; /* Ensure consistent line height */
    margin-top: 5px;
}

.service .price {
    font-size: 18px;
    color: var(--color-principal);
    margin: 10px 0;
}

.service-btn {
    margin-top: auto;
    align-self: stretch;
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--color-principal);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.service-btn:hover {
    background-color: var(--color-hover);
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .services-container {
        flex-wrap: wrap;
    }
    .service {
        transition: none !important;
    }
    .service:hover {
        transform: none !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    }
}

/* About Us Section */
#about-us {
    padding: 4rem 1rem;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Nuevo contenedor animado para About Us */
.aboutus-animated-container {
    background: #222; /* Igual que el contenedor de team */
    color: white;     /* Igual que el contenedor de team */
    color: var(--color-texto);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    will-change: transform;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.aboutus-animated-container:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Responsive: igual que about-container */
@media (max-width: 900px) {
    .aboutus-animated-container {
        flex-direction: column;
        gap: 20px;
        padding-left: 0;
        padding-right: 0;
        max-width: 98vw;
        background: #222; /* Fondo oscuro solo en resoluciones pequeñas */
        padding-bottom: 20px; /* Espacio inferior para que la imagen no toque el borde */
        transition: none !important;
        will-change: auto !important;
    }
    .aboutus-animated-container:hover {
        transform: none !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    }
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
        padding-bottom: 0;
    }
    .about-text {
        max-width: 100%;
        width: 100%;
        text-align: center;
        font-size: 17px;
        padding: 0 24px;
        box-sizing: border-box;
    }
    .about-image {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 24px 20px 24px;
        box-sizing: border-box;
    }
    .about-image img {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        border-radius: 10px;
        box-sizing: border-box;
        display: block;
    }
}

@media (max-width: 600px) {
    .aboutus-animated-container {
        gap: 12px;
        padding-left: 0;
        padding-right: 0;
        max-width: 99vw;
        background: #222; /* Fondo oscuro solo en resoluciones pequeñas */
        padding-bottom: 14px; /* Espacio inferior extra en móviles */
    }
    .about-container {
        gap: 12px;
        padding-left: 3vw;
        padding-right: 3vw;
        padding-bottom: 0;
    }
    .about-text {
        font-size: 16px;
        padding: 0 3vw;
    }
    .about-image img {
        border-radius: 8px;
        margin-bottom: 0;
    }
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    padding: 2rem;
}

.about-text {
    flex: 1;
    max-width: 50%;
    text-align: left;
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    max-width: 50%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Responsive About Us Section */
@media (max-width: 900px) {
    #about-us {
        padding: 3rem 1rem;
    }

    .about-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .about-text,
    .about-image {
        max-width: 100%;
        width: 100%;
    }

    .about-text {
        text-align: center;
        font-size: 1rem;
        order: 2;
        padding: 0 1rem;
    }

    .about-image {
        order: 1;
        padding: 0 1rem;
    }
}

@media (max-width: 600px) {
    #about-us {
        padding: 2rem 0.5rem;
    }

    .about-container {
        gap: 1.5rem;
        padding: 1rem;
    }

    .about-text {
        font-size: 0.9375rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }

    .about-image {
        padding: 0 0.5rem;
    }

    .about-image img {
        border-radius: 8px;
    }
}

/* Inspiration Section */
#inspiration {
    background-image: url('assets/images/backgrounds/inspiracion.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background-attachment: fixed;
    animation: scrollBackground 20s linear infinite;
}

#inspiration h2 {
    font-size: 32px;
    margin: 0;
}

#inspiration p {
    font-size: 18px;
    margin: 10px 0 0;
}

/* Community Section */
#community {
    padding: 20px;
    text-align: center;
}

.community-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Fuerza el mismo tamaño para todos los contenedores de comunidad */
.community-item.small,
.community-item.compact {
    flex: 0 0 250px;
    width: 250px;
    max-width: 250px;
    min-width: 250px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    margin: 0 10px 20px 10px;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    padding: 24px 18px 18px 18px; /* Espaciado interno mejorado */
    gap: 12px; /* Espacio entre elementos internos */
}

.community-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.community-item.small:hover,
.community-item.compact:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.community-image {
    width: 100%;
    height: 150px; /* Adjust height for smaller containers */
    object-fit: cover;
    border-bottom: 2px solid var(--color-hover); /* Add a bottom border for separation */
}

.community-icon img {
    width: 80px; /* Increase icon size */
    height: 80px;
    margin-bottom: 2px; /* Reduce spacing below the icon */
}

.community-content h3 {
    font-size: 16px; /* Adjusted font size */
    color: var(--color-hover);
    margin-bottom: 2px; /* Reduce spacing below the heading */
}

.community-content p {
    font-size: 14px;
    color: var(--color-texto);
    margin-bottom: 5px; /* Reduce spacing below the paragraph */
}

.community-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    background-color: var(--color-principal);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.community-btn:hover {
    background-color: var(--color-hover);
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .community-container {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        align-items: stretch;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
    .community-item.small,
    .community-item.compact {
        flex: 0 0 250px;
        width: 250px;
        max-width: 250px;
        min-width: 250px;
        height: 100%;
        margin: 0 10px 20px 10px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: none !important;
    }
    .community-item.small:hover,
    .community-item.compact:hover {
        transform: none !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    }
}

@media (max-width: 600px) {
    #community {
        padding: 10px 2vw;
    }
    .community-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        padding-left: 0;
        padding-right: 0;
    }
    .community-item.small,
    .community-item.compact {
        flex: 0 0 250px;
        width: 250px;
        max-width: 250px;
        min-width: 250px;
        height: 100%;
        margin: 0 5px 15px 5px;
        border-radius: 8px;
        padding: 18px 18px 14px 18px; /* Más espacio interno en los bordes */
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .community-content {
        padding-left: 8px;
        padding-right: 8px;
        width: 100%;
        box-sizing: border-box;
        gap: 8px;
    }
    .community-content h3,
    .community-content p {
        padding-left: 4px;
        padding-right: 4px;
        box-sizing: border-box;
    }
}

/* Team Section */
#team {
    padding: 10px 20px;
    margin-bottom: 40px;
    background-color: var(--color-secundario);
    text-align: center;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.member {
    flex: 1;
    max-width: 30%;
    min-width: 260px;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Prevent content from overflowing */
}

.member:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.member-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
}

.member h3 {
    font-size: 22px;
    color: var(--color-hover);
    margin-top: 15px;
    margin-bottom: 10px;
}

.member p {
    font-size: 18px;
    color: white;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: left;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    word-break: break-word; /* Prevent long words from overflowing */
    overflow-wrap: break-word;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 900px) {
    .team-container {
        gap: 15px;
    }
    .member {
        max-width: 48%;
        min-width: 220px;
        transition: none !important;
    }
    .member:hover {
        transform: none !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    }
}

@media (max-width: 700px) {
    .team-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        padding: 0;
    }
    .member {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        padding: 20px 0;
        border-radius: 10px;
        background-color: #222;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden; /* Prevent content from overflowing */
    }
    .member-image {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }
    .member h3 {
        font-size: 20px;
        margin-top: 10px;
        margin-bottom: 8px;
    }
    .member p {
        font-size: 16px;
        max-width: 95vw;
        padding-left: 10px;
        padding-right: 10px;
        text-align: left;
        box-sizing: border-box;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    #team {
        padding-left: 5vw;
        padding-right: 5vw;
    }
}

/* Games Section */
#games {
    padding: 20px 20px; /* Increased padding for better spacing */
    margin-bottom: 40px;
    text-align: center;
}

#games .game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    max-width: 1200px;
    transition: box-shadow 0.3s ease;
}

#games .game-container:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
    #games .game-container {
        transition: none !important;
        will-change: auto !important;
    }
    #games .game-container:hover {
        transform: none !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    }
}

#games .game {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

#games .game-image-container {
    flex: 1;
    max-width: 40%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #222;
    box-sizing: border-box;
    padding: 0;
    position: relative;
}

#games .game-logo {
    display: block !important; /* Force visibility in all cases */
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 30px auto 20px auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    z-index: 2;
    position: relative;
}

/* Large screens: logo in .game-description, hidden in .game-image-container */
@media (min-width: 901px) {
    #games .game-description {
        align-items: flex-start;
        text-align: left;
    }
    #games .game-description .game-logo {
        order: 0;
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 30px 0 20px 0;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
        text-align: left;
    }
    #games .game-description p {
        order: 1;
        text-align: left;
    }
    #games .game-description .platform-btn.playstore {
        order: 2;
        align-self: flex-start;
        margin-left: 0;
        margin-right: 0;
    }
}

#games .game-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 0 0 10px 10px;
    margin: 0;
    z-index: 1;
    position: relative;
}

#games .game-description {
    flex: 1;
    max-width: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: flex-start;
}

#games .platform-btn.playstore {
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #34a853; /* Green */
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

#games .platform-btn.playstore:hover {
    background-color: #2c8c47;
    transform: scale(1.05);
}

/* Contact Section */
#contact {
    padding: 10px 20px;
    margin-bottom: 40px;
    background-color: var(--color-secundario);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

#contact > p {
    max-width: 600px;
    margin: 0 auto 20px auto;
    font-size: 18px;
    line-height: 1.5;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

form {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    background-color: #222;
    padding: 32px 24px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    align-items: stretch;
    box-sizing: border-box;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-hover);
    border-radius: 6px;
    background-color: #333;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

button {
    width: 100%;
    padding: 12px;
    font-size: 17px;
    background-color: var(--color-principal);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: var(--color-hover);
    transform: scale(1.02);
}

/* Footer */
footer {
    background-color: black;
    color: var(--color-texto);
    padding: 60px;
    text-align: center;
    border-top: 1px solid var(--color-hover); /* Add a top border to separate from the previous section */
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left p {
    margin: 0;
    font-size: 14px;
    color: var(--color-principal);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: var(--color-texto);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-hover);
}

.social-media img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-media img:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 700px) {
    .nav-container {
        justify-content: center;
    }
    .nav-links {
        display: none;
    }
    .company-name {
        flex: 1 1 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .services-container,
    .community-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .service,
    .community-item.compact,
    .community-item.small {
        max-width: 95vw;
        min-width: 0;
    }
    section {
        padding-left: 5vw;
        padding-right: 5vw;
    }
        #contact {
        padding: 10px 5vw;
    }
    #contact > p {
        font-size: 16px;
        max-width: 98vw;
        padding-left: 0;
        padding-right: 0;
    }
    form {
        max-width: 100%;
        padding: 16px 16px; /* Espaciado lateral consistente en móvil/tablet */
        border-radius: 8px;
        gap: 14px;
    }
    .input-group {
        padding-left: 10px;
        padding-right: 10px;
    }
    input, textarea {
        font-size: 15px;
        padding: 10px;
    }
    button {
        font-size: 16px;
        padding: 10px;
        width: calc(100% - 20px); /* Respeta los márgenes laterales del form */
        margin-left: 10px;
        margin-right: 10px;
        box-sizing: border-box;
    }
     .footer-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 15px;
    }
    .footer-left,
    .footer-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .services-container,
    .community-container {
        flex-wrap: wrap;
    }
    .service,
    .community-item.compact,
    .community-item.small {
        max-width: 100%;
        min-width: 220px;
    }
    #contact {
        padding: 10px 20px;
    }
    #contact > p {
        font-size: 17px;
        max-width: 90vw;
        padding-left: 0;
        padding-right: 0;
    }
    form {
        max-width: 100%;
        padding: 24px 24px; /* Mantiene el mismo padding lateral que en desktop */
    }
    .input-group {
        padding-left: 0;
        padding-right: 0;
    }
        #games .game {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #games .game-image-container {
        order: 1;
        max-width: 100%;
        width: 100%;
        margin: 0 auto 15px auto;
        border-radius: 10px;
        padding: 0;
        flex-direction: column;
        align-items: center;
    }
    #games .game-logo {
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 30px auto 20px auto;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    #games .game-image {
        order: 2;
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 0 0 10px 10px;
        margin: 0;
    }
    #games .game-description .game-logo {
        display: none;
    }
    #games .game-description {
        order: 2;
        max-width: 100%;
        width: 100%;
        padding: 10px 0 0 0;
        align-items: center;
    }
    #games .game-description p {
        text-align: center;
    }
        #games .game {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0; /* Elimina espacio extra entre columnas */
    }
    #games .game-image-container {
        order: 1;
        max-width: 100%;
        width: 100%;
        margin: 0 auto 0 auto; /* Elimina margen inferior extra */
        border-radius: 10px;
        padding: 0;
        flex-direction: column;
        align-items: center;
    }
    #games .game-description {
        order: 2;
        max-width: 100%;
        width: 100%;
        padding: 0 0 0 0; /* Elimina padding superior extra */
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 10px; /* Espacio compacto entre logo, texto y botón */
    }
    #games .game-description .game-logo {
        order: 1;
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 20px auto 10px auto; /* Menos espacio arriba y abajo */
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    #games .game-description p {
        order: 2;
        text-align: center;
        margin: 0 0 10px 0; /* Espacio compacto debajo del logo */
    }
    #games .game-description .platform-btn.playstore {
        order: 3;
        align-self: center;
        font-size: 16px;
        margin: 0 0 20px 0; /* Espacio debajo del botón */
    }
}
