/* ESTILOS BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent !important;
    padding: 10px 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* ESTILOS CORREGIDOS PARA LOS ENLACES DEL NAV-MENU */
.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 5px;
    position: relative;
    /* ELIMINAR FONDO COMPLETAMENTE */
    background: none !important;
    background-color: transparent !important;
}

.nav-menu a:hover {
    color: white !important;
    /* SIN FONDO AL HOVER */
    background: none !important;
    background-color: transparent !important;
}

/* LÍNEA INFERIOR AL HOVER */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #ff6600, #ffcc99, #ff6600);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ESTILO PARA ENLACE ACTIVO */
.nav-menu a.active {
    color: white !important;
    /* SIN FONDO ACTIVO */
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    position: relative;
}

/* LÍNEA PERMANENTE PARA ENLACE ACTIVO */
.nav-menu a.active::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #ff6600, #ffcc99, #ff6600);
}

/* OPCIONAL: Añadir un efecto sutil de brillo al texto en hover */
.nav-menu a:hover {
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

/* OPCIONAL: Para el enlace activo también */
.nav-menu a.active {
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

/* HERO SECTION */
.hero {
    width: 100%;
    height: 100vh;
    background: url('Images/Banner FHD.png') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-content {
    position: absolute;
    right: 80px;
    bottom: 125px;
    text-align: right;
    max-width: 600px;
}

.hero h1 {
    color: #ffcc99;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff3300, #ff6600);
    color: white !important;
    text-decoration: none;
    padding: 18px 45px;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 51, 0, 0.4);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
    z-index: 10;
}

.hero-button:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 51, 0, 0.6);
}

.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: black;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto !important; /* CENTRADO Y SIN MÁRGENES EXTRA */
    padding: 20px;
    text-align: center;
    width: 100%;
}

/* TÍTULOS DE SECCIÓN - ESTILOS UNIFICADOS */
.section-title {
    font-size: 2rem; /* TAMAÑO FIJO PARA TODOS */
    background: linear-gradient(45deg, #ff6600, #ffcc99);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 20px 0 20px 0 !important; /* MARGENES UNIFORMES: arriba, derecha, abajo, izquierda */
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.6);
    position: relative;
    display: block; /* CAMBIADO DE inline-block A block */
    padding-bottom: 20px;
    width: 100%;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6600, transparent);
}

/* Contenedor para tarjetas en todas las secciones */
.cards-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    padding: 10px 10px;
    perspective: 1000px;
    flex-wrap: wrap;
}

/* Tarjetas mejoradas para todas las secciones */
.enhanced-card {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #222222);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.2);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    height: 350px;
}

.enhanced-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(255, 102, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: #ff6600;
    z-index: 10;
}

/* Efecto de hover grupal */
.cards-container:hover .enhanced-card:not(:hover) {
    transform: scale(0.95);
    opacity: 0.7;
    filter: blur(1px);
}

/* Imágenes para tarjetas */
.enhanced-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.enhanced-card:hover .enhanced-card-image {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.2);
}

/* Contenido de tarjetas */
.enhanced-card-content {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(26, 26, 26, 0.9) 30%);
}

.enhanced-card h3 {
    color: #ffcc99;
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
}

.enhanced-card:hover h3 {
    color: #ff6600;
    transform: translateX(5px);
}

.enhanced-card p {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.enhanced-card small {
    color: #888;
    font-size: 0.9rem;
    display: block;
    margin-top: 10px;
}

/* Badges para categorías */
.card-badge {
    display: inline-block;
    background: linear-gradient(45deg, rgba(255, 102, 0, 0.2), rgba(255, 153, 0, 0.1));
    color: #ffcc99;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 10px;
    border: 1px solid rgba(255, 102, 0, 0.3);
    align-self: flex-start;
}

/* Indicador de plataforma/disponibilidad */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #4CAF50;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 10px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.platform-badge.in-dev {
    color: #FF9800;
    border-color: rgba(255, 152, 0, 0.3);
}

/* Efecto de brillo en hover */
.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        #ff6600, 
        #ffcc99, 
        #ff6600, 
        transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 2;
}

.enhanced-card:hover::before {
    transform: translateX(100%);
}

/* Indicador de interacción */
.card-action {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 102, 0, 0.9);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

.enhanced-card:hover .card-action {
    opacity: 1;
    transform: translateY(0);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 15px rgba(255, 102, 0, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 102, 0, 0.8); }
    100% { box-shadow: 0 0 15px rgba(255, 102, 0, 0.5); }
}

/* ESTILOS ESPECÍFICOS PARA CADA SECCIÓN */

/* PORTFOLIO */
#portfolio {
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* SERVICIOS */
#servicios {
    background: #000000;
    position: relative;
}

/* NUESTROS JUEGOS */
#juegos {
    background: #000000;
    position: relative;
}

/* SECCIÓN EL EQUIPO - TOTALMENTE VACÍA */
#equipo {
    min-height: 100vh;
    width: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* CONTACTO */
#contacto {
    background: #000000;
}

.unity-badge {
    background: linear-gradient(145deg, #222, #2a2a2a);
    padding: 25px 35px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 20px;
    border-left: 5px solid #ff6600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.unity-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 102, 0, 0.2);
}

/* FOOTER */
footer {
    padding: 30px 20px;
    color: #666;
    font-size: 0.9rem;
    background-color: #0a0a0a;
    border-top: 1px solid #333;
    text-align: center;
}

/* RESPONSIVE DESIGN - CORREGIDO */
@media (max-width: 1024px) {
    .cards-container {
        gap: 30px;
    }
    
    .enhanced-card {
        width: 45%;
        min-width: 280px;
    }
    
    .section-title {
        font-size: 2.5rem !important; /* REDUCIDO DE 3rem */
        margin: 50px 0 30px 0 !important;
    }
}

@media (max-width: 768px) {
    .hero-content {
        right: 20px;
        bottom: 120px;
        max-width: 90%;
    }
    
    .hero-button {
        padding: 15px 30px;
        font-size: 1.2rem;
        bottom: 30px;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-menu a {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .enhanced-card {
        width: 90%;
        max-width: 400px;
        margin: 20px auto;
    }
    
    .cards-container:hover .enhanced-card:not(:hover) {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
    
    .section-title {
        font-size: 2.2rem !important; /* REDUCIDO DE 2.5rem */
        margin: 40px 0 25px 0 !important;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .section-title {
        font-size: 1.8rem !important; /* REDUCIDO DE 2.2rem */
        margin: 30px 0 20px 0 !important;
    }
}
