/* 
    Created on : 5/12/2025
    Author     : WikyLix
*/

/* ============================
   AJUSTES GENERALES
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: transparent;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 16px;
    color: #0a1628;
    margin: 0;
    text-align: center;
    padding-top: 76px;
    overflow-x: hidden;
}

/* Fondo estático */
#img-fondo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1628 0%, #1a2842 50%, #0f1f3a 100%);
    z-index: -1;
}

#img-fondo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(77, 119, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(95, 140, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
}

/* ============================
   NAVBAR
============================ */
.navbar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(10,22,40,0.92);
    color: #fff;
    height: 76px;
    padding: 0 80px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(77, 119, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.grupo-logo-nombre {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 40px;
}

.logo img {
    height: 75px;
    filter: drop-shadow(0 2px 8px rgba(77, 119, 255, 0.3));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.brand-name {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 700;
    margin-right: 24px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(77, 119, 255, 0.4);
}

.nav-link {
    color: rgba(255,255,255,0.85);
    margin: 0 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.02rem;
    position: relative;
    padding: 8px 4px;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #5F8CFF, #76B4FF);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #76B4FF;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.btn-inicio {
    margin-left: auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, #5F8CFF 0%, #76B4FF 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(77, 119, 255, 0.3);
}

.btn-inicio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 119, 255, 0.4);
}

/* ============================
   HERO SECTION
============================ */
.hero {
    padding: 100px 0 80px;
    min-height: 500px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(77, 119, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B9D 50%, #C770F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 15px rgba(255, 107, 157, 0.6));
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(245, 247, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* ============================
   EQUIPO DESARROLLADORES - HORIZONTAL
============================ */
.equipo-dev {
    background: rgba(10, 22, 40, 0.7);
    color: #fff;
    padding: 80px 40px;
    position: relative;
    backdrop-filter: blur(10px);
}

.equipo-dev h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B9D 50%, #C770F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.1rem;
    margin-bottom: 60px;
    color: rgba(255,255,255,0.9);
}

.dev-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.dev-card {
    display: flex;
    flex-direction: row;
    background: linear-gradient(135deg, rgba(95, 140, 255, 0.1) 0%, rgba(77, 119, 255, 0.05) 100%);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(77, 119, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 280px;
}

.dev-card:hover {
    transform: translateX(10px);
    box-shadow: 0 20px 60px rgba(77, 119, 255, 0.3);
    border-color: rgba(77, 119, 255, 0.4);
}

.dev-image-container {
    position: relative;
    width: 320px;
    min-width: 320px;
    height: 100%;
    overflow: hidden;
}

.dev-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dev-card:hover .dev-image {
    transform: scale(1.1);
}

.dev-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B9D 100%);
    color: #0a1628;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.dev-info {
    padding: 32px 28px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dev-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 700;
}

.dev-role {
    color: #76B4FF;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.dev-bio {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.dev-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(77, 119, 255, 0.2);
    color: #76B4FF;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(77, 119, 255, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(77, 119, 255, 0.3);
    transform: translateY(-2px);
}

/* ============================
   TECH STACK SECTION
============================ */
.tech-stack {
    background: linear-gradient(135deg, rgba(77, 119, 255, 0.15) 0%, rgba(95, 140, 255, 0.1) 100%);
    color: #fff;
    padding: 80px 40px;
    position: relative;
}

.tech-stack h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #76B4FF;
    text-shadow: 0 2px 20px rgba(77, 119, 255, 0.4);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.tech-category {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 32px 24px;
    border: 1px solid rgba(77, 119, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tech-category:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(77, 119, 255, 0.2);
}

.tech-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
}

.tech-list {
    list-style: none;
    text-align: left;
}

.tech-list li {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.tech-list li::before {
    content: '';
    position: absolute;
    left: 0;
    color: #76B4FF;
    font-weight: bold;
}

/* ============================
   FUN FACTS SECTION
============================ */
.fun-facts {
    background: rgba(10, 22, 40, 0.9);
    color: #fff;
    padding: 80px 40px;
    position: relative;
}

.fun-facts h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B9D 50%, #C770F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.facts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fact-card {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(199, 112, 240, 0.05) 100%);
    border-radius: 20px;
    padding: 40px 20px;
    border: 1px solid rgba(255, 107, 157, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.fact-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.3);
}

.fact-icon {
    width: 64px;         /* tamaño controlado */
    height: 64px;        /* cuadrado */
    object-fit: contain; /* evita deformaciones */
    margin-bottom: 12px; /* menos invasivo */
    border-radius: 12px; /* look más moderno */
}


.fact-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF6B9D;
    margin-bottom: 12px;
}

.fact-card p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 968px) {
    .dev-card {
        flex-direction: column;
    }

    .dev-image-container {
        width: 100%;
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .navbar {
        padding: 0 20px;
        flex-wrap: wrap;
    }

    .grupo-logo-nombre {
        margin-right: 20px;
    }

    .brand-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .equipo-dev h2,
    .tech-stack h2,
    .fun-facts h2 {
        font-size: 2rem;
    }

    .section-desc {
        font-size: 1rem;
    }
}