﻿:root {
    /* --- PALETA DE COLORES --- */
    --color-brown: #4e3d42;
    --color-cream: #ffe5c0;
    --color-yellow: #ffc857;
    --color-pink: #dc758f;

    /* --- ASIGNACIÓN DE ROLES --- */
    --bg-color: #4e3d42;
    --text-color: #ffe5c0;
    --accent: #dc758f;

    --font-main: 'Inter', sans-serif;
    --font-display: 'Kanit', sans-serif;
}

/* Scroll suave para toda la página */
html {
    scroll-behavior: smooth;
    /* Esto asegura que el navbar fijo no tape los títulos al hacer clic en el menú */
    scroll-padding-top: 100px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- NAVBAR --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 50px;
    background: var(--color-cream);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border-bottom: 2px solid var(--color-brown);
}

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

.nav-logo-img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.menu { display: flex; gap: 40px; }

.menu a {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-brown);
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.menu a:hover::after { width: 100%; }
.menu a:hover { color: var(--accent); }

.contact-link {
    border: 2px solid var(--color-brown);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--color-brown) !important;
    background: transparent;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--color-brown);
    color: var(--color-cream) !important;
    box-shadow: none;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.6;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(78, 61, 66, 0.4), var(--color-brown));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-logo {
    max-width: 600px;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-right: 0; /* Ajuste para centrar mejor */
    margin-bottom: 20px;
}

.steam-btn {
    background: rgba(78, 61, 66, 0.8);
    backdrop-filter: blur(5px);
    padding: 12px 25px;
    border: 1px solid var(--color-cream);
    border-radius: 30px;
    color: var(--color-cream);
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-link:hover .steam-btn {
    background: var(--color-cream);
    color: var(--color-brown);
    transform: scale(1.05);
}

.logo-link:hover .hero-logo { transform: scale(1.02); }

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    color: var(--color-yellow);
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    z-index: 2;
}

/* --- COMMON SECTIONS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255, 229, 192, 0.1);
}

.section-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-yellow);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: var(--font-display);
}

/* --- ABOUT --- */
.about-section h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 50px;
    color: var(--color-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-grid p {
    color: rgba(255, 229, 192, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

.stats { display: flex; gap: 50px; margin-top: 20px; }
.stat-item { display: flex; flex-direction: column; }
.stat-item .number { font-size: 3rem; font-family: var(--font-display); font-weight: 800; color: var(--accent); }
.stat-item .label { font-size: 0.8rem; opacity: 0.6; letter-spacing: 1px; color: var(--color-cream); }

/* --- GAMES --- */
.game-card {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 229, 192, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.game-card:hover {
    transform: scale(1.01);
    border-color: var(--accent);
}

.game-card.large { height: 500px; display: flex; align-items: flex-end; }
.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.4s;
}

.card-content {
    position: relative;
    padding: 40px;
    z-index: 2;
    width: 100%;
    background: linear-gradient(to top, var(--color-brown), transparent);
}

.card-content h3 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 10px; color: var(--color-cream); }
.card-content p { color: rgba(255, 229, 192, 0.8); max-width: 600px; }

.btn-white {
    display: inline-block;
    background: var(--color-cream);
    color: var(--color-brown);
    padding: 10px 25px;
    font-weight: 800;
    margin-top: 20px;
    border-radius: 4px;
    font-family: var(--font-display);
}

.btn-white:hover {
    background: var(--accent);
    color: white;
}

/* --- SERVICES (NEW) --- */
.services-section {
    /* Patrón sutil de fondo */
    background-image: radial-gradient(var(--color-pink) 1px, transparent 1px);
    background-size: 40px 40px;
}

.services-section h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-cream);
    margin-bottom: 60px;
    line-height: 1.1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(78, 61, 66, 0.95); /* Casi opaco para legibilidad */
    border: 1px solid rgba(255, 229, 192, 0.1);
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Highlight Card Style */
.service-card.highlight {
    border-color: var(--accent);
    background: linear-gradient(145deg, rgba(78, 61, 66, 1), rgba(220, 117, 143, 0.08));
}

.icon-box {
    margin-bottom: 25px;
    color: var(--color-yellow);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-cream);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 229, 192, 0.7);
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-list {
    border-top: 1px solid rgba(255, 229, 192, 0.1);
    padding-top: 20px;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--color-cream);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-weight: 600;
}

.service-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- FOOTER --- */
footer { text-align: center; padding: 100px 20px; border-top: 1px solid rgba(255, 229, 192, 0.1); }

footer h2 {
    font-family: var(--font-display);
    color: var(--color-yellow);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.email-link {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin: 30px 0;
    color: var(--color-cream);
    transition: color 0.3s;
}

.email-link:hover { color: var(--accent); }

.footer-bottom {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.5;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-cream);
}

.game-card.small.itch-card:hover {
    border-color: #fa5c5c;
}

.game-card.small.itch-card .btn-white:hover {
    background-color: #fa5c5c; 
    color: white;
}

.team-section {
    background-color: var(--color-brown); 
    text-align: center;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
}

.member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #333;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--accent); 
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); 
}


.member-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.member-link:hover h3 {
    color: var(--accent);
    transition: color 0.3s ease;
}

.member-link:hover .member-img {
    transform: scale(1.1) rotate(3deg);
    border-color: var(--color-yellow);
}

.team-member h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-cream);
    margin-bottom: 5px;
}

.team-member .role {
    font-size: 0.9rem;
    color: var(--color-yellow);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- REDES SOCIALES (FOOTER) --- */
.socials {
    display: flex;
    align-items: center;
    gap: 25px; /* Espacio entre iconos */
}

.socials a {
    color: var(--color-cream); /* Color base del icono */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 0; /* Quitamos el margen antiguo porque usamos gap en el padre */
}

/* Tamaño y comportamiento del SVG */
.socials a svg {
    fill: currentColor; /* El SVG toma el color del texto (crema) */
    width: 24px;        /* Tamaño del icono */
    height: 24px;
    transition: transform 0.3s ease;
}

/* Efecto Hover: Cambia a rosa y sube un poquito */
.socials a:hover {
    color: var(--accent); /* Cambia a rosa */
}

.socials a:hover svg {
    transform: translateY(-5px) scale(1.1); /* Sube y se agranda ligeramente */
    filter: drop-shadow(0 0 8px var(--accent)); /* Un pequeño brillo neon */
}

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

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-logo { max-width: 300px; }
    .about-grid { grid-template-columns: 1fr; }

    .nav-container { flex-direction: column; gap: 15px; }
    .menu { gap: 20px; flex-wrap: wrap; justify-content: center; }

    .services-grid { grid-template-columns: 1fr; }

    nav { padding: 15px 20px; }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}