/* ================================================= */
/* 🌌 SETUP & VARIABLES                              */
/* ================================================= */
:root {
    --bg-dark: #0a0a12;
    --bg-panel: rgba(20, 20, 35, 0.6);
    --primary-neon: #14CCFF; /* Azul Cyan */
    --secondary-neon: #B300FF; /* Violeta */
    --text-main: #e0e0ff;
    --text-muted: #8888aa;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif; /* Más legible y moderna */
    
    --glow-blue: 0 0 10px rgba(20, 204, 255, 0.7);
    --glow-purple: 0 0 15px rgba(179, 0, 255, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ================================================= */
/* ✨ FONDO ANIMADO (Estrellas)                      */
/* ================================================= */

/* Patrón de grilla sutil de fondo */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        linear-gradient(rgba(20, 204, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 204, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

/* Capa de estrellas */
.stars-bg {
    position: fixed;
    top: 0; left: 0; width: 1px; height: 1px;
    background: transparent;
    z-index: -1;
    box-shadow: 
        10vw 20vh 2px #fff, 30vw 80vh 1px #fff, 80vw 10vh 2px var(--primary-neon),
        50vw 50vh 1px #fff, 90vw 90vh 2px var(--secondary-neon), 20vw 60vh 1px #fff,
        70vw 20vh 2px #fff, 40vw 40vh 1px var(--primary-neon);
    animation: stars-move 100s linear infinite;
}

@keyframes stars-move {
    from { transform: translateY(0); }
    to { transform: translateY(-100vh); }
}

/* ================================================= */
/* 🚀 HEADER (Sticky & Glass)                        */
/* ================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(20, 204, 255, 0.2);
    transition: all 0.3s ease;
}

#logo-futurista {
    width: 140px;
    filter: drop-shadow(0 0 5px var(--primary-neon));
}

#botonera1 ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

#botonera1 ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.9em;
    letter-spacing: 1px;
    transition: 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

#botonera1 ul li a:hover {
    color: var(--bg-dark);
    background: var(--primary-neon);
    box-shadow: var(--glow-blue);
}

#sociales ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

#sociales img {
    width: 24px;
    transition: transform 0.3s;
    filter: drop-shadow(0 0 2px var(--primary-neon));
}

#sociales img:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 8px var(--secondary-neon));
}

/* ================================================= */
/* 👤 SECCIÓN 1: SOBRE MÍ (Hero)                     */
/* ================================================= */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.glass-container {
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: center;
    gap: 50px;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    margin-bottom: 80px;
}

/* Tabs */
.data-tabs {
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.tab-button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-button.active {
    color: var(--primary-neon);
    border-bottom: 2px solid var(--primary-neon);
    text-shadow: 0 0 8px var(--primary-neon);
}

.tab-content {
    display: none;
    animation: fadeUp 0.5s ease;
}
.tab-content.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.titulo-neon {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 2rem;
    margin-bottom: 15px;
}

.skill-list {
    margin: 15px 0 15px 20px;
}

.portfolio-button {
    background: linear-gradient(90deg, var(--secondary-neon), var(--primary-neon));
    border: none;
    padding: 12px 25px;
    color: white;
    font-weight: bold;
    font-family: var(--font-heading);
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.portfolio-button:hover {
    box-shadow: 0 0 20px var(--secondary-neon);
    transform: translateY(-3px);
}

/* Avatar con anillo rotatorio */
.avatar-container {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.Form_img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 3px solid rgba(255,255,255,0.1);
}

.ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--primary-neon);
    border-top-color: transparent;
    animation: spin 10s linear infinite;
    z-index: 1;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.role-text {
    text-align: center;
    margin-top: 15px;
    font-family: var(--font-heading);
    color: var(--secondary-neon);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* ================================================= */
/* 🛠️ SECCIÓN 2: SERVICIOS (Cards)                   */
/* ================================================= */
.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 50px;
    text-shadow: var(--glow-purple);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.card-servicio {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.card-servicio:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-neon);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-servicio::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary-neon);
    opacity: 0;
    transition: 0.3s;
}

.card-servicio:hover::before { opacity: 1; }

.card-servicio h3 {
    font-family: var(--font-heading);
    color: var(--primary-neon);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* ================================================= */
/* 🤝 SECCIÓN 3: CLIENTES                            */
/* ================================================= */
.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.cliente-item {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.cliente-item img {
    width: 100%;
    max-width: 100px;
    filter: grayscale(100%) brightness(0.8);
    transition: 0.4s;
}

.cliente-item:hover {
    border-color: var(--secondary-neon);
    box-shadow: var(--glow-purple);
}

.cliente-item:hover img {
    filter: grayscale(0%) brightness(1.2);
    transform: scale(1.1);
}

/* ================================================= */
/* 🔘 BOTONES TRAYECTORIA (Behance + GitHub)         */
/* ================================================= */

/* Contenedor para poner los botones en fila */
.botones-wrapper {
    display: flex;
    gap: 15px; /* Espacio entre los botones */
    margin-top: 25px;
    flex-wrap: wrap; /* Si es celular, baja uno debajo del otro */
}

/* Ajuste base para ambos botones */
.portfolio-button {
    min-width: 140px; /* Para que tengan el mismo ancho visual */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilo específico para el botón de GitHub (Outline) */
.btn-github {
    background: transparent; /* Fondo transparente */
    border: 2px solid var(--primary-neon); /* Borde Azul Neón */
    color: var(--primary-neon);
    box-shadow: 0 0 5px var(--primary-neon); /* Brillo suave */
}

.btn-github:hover {
    background: var(--primary-neon); /* Al pasar el mouse se rellena */
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-neon);
    transform: translateY(-3px);
}

/* ================================================= */
/* 🦶 FOOTER                                         */
/* ================================================= */
footer {
    background: #050508;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-social {
    list-style: none;
    display: flex;
    gap: 20px;
}
/* Corrección para los íconos del Footer */
.footer-social img {
    width: 24px; /* Mismo tamaño que en el encabezado */
    height: auto;
    filter: drop-shadow(0 0 2px var(--primary-neon)); /* Agregamos el brillo neón */
    transition: transform 0.3s ease;
}

.footer-social img:hover {
    transform: scale(1.2); /* Efecto zoom al pasar el mouse */
    filter: drop-shadow(0 0 5px var(--secondary-neon));
}
/* ================================================= */
/* 📱 RESPONSIVE                                     */
/* ================================================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .glass-container {
        flex-direction: column-reverse; /* Foto arriba, texto abajo */
        padding: 30px;
        text-align: center;
    }
    
    #botonera1 ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .titulo-neon { font-size: 1.5rem; }
    
    .section-title { font-size: 2rem; }
}