/* ================================================= */
/* 1. CONFIGURACIÓN MAESTRA Y VARIABLES */
/* ================================================= */
:root {
    --color-primario: #0A2239;      /* Azul Marino Tech */
    --color-secundario: #050f19;    /* Negro Profundo */
    --color-acento: #37bc81;        /* Verde Digital DigitalNet */
    --color-blanco: #ffffff;
    --color-texto-gris: rgba(255, 255, 255, 0.7);
    --header-height: 85px;
    --transition-premium: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(10, 34, 57, 0.75);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-secundario);
    color: var(--color-blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ================================================= */
/* 2. SISTEMA DE REVELACIÓN (SCROLL ANIMATIONS) */
/* ================================================= */

/* Estado base: oculto y desenfocado */
.reveal-up, .reveal-left, .reveal-right, .feature-card, .portfolio-item, .service-item {
    opacity: 0;
    filter: blur(15px);
    transition: var(--transition-premium);
    will-change: transform, opacity, filter;
}

.reveal-up { transform: translateY(60px); }
.reveal-left { transform: translateX(-80px); }
.reveal-right { transform: translateX(80px); }

/* Clase 'active' activada por tu JS */
.reveal-up.active, 
.reveal-left.active, 
.reveal-right.active, 
.feature-card.active, 
.portfolio-item.active,
.service-item.active {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0);
}

/* ================================================= */
/* 3. HEADER (CON GLASSMORPHISM Y SCROLL EFFECT) */
/* ================================================= */
.main-header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    background: transparent;
    transition: var(--transition-premium);
}

/* Clase añadida por tu JS al hacer scroll */
.header-scrolled {
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 247, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 250px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0, 247, 0, 0.2));
    transition: 0.4s;
}

.logo img:hover {
    filter: drop-shadow(0 0 15px var(--color-acento));
    transform: scale(1.05);
}

/* Navegación */
.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--color-blanco);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s ease;
    position: relative;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--color-acento);
}

.btn-accent-nav {
    background: var(--color-acento) !important;
    color: var(--color-primario) !important;
    padding: 12px 24px !important;
    border-radius: 4px;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    box-shadow: 0 0 15px rgba(0, 247, 0, 0.3);
}

/* ================================================= */
/* 4. HERO SECTION (DINÁMICO) */
/* ================================================= */












.main-content-portafolio {
    background-color: var(--fondo-oscuro);
    color: white;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* --- HERO / PERFIL --- */
.portfolio-hero {
    position: relative;
    padding: 140px 0 60px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(55, 188, 129, 0.1) 0%, transparent 70%);
}

.profile-avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--acento);
    padding: 5px;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(55, 188, 129, 0.3);
}

.avatar-status {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: var(--acento);
    border: 4px solid var(--fondo-oscuro);
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(55, 188, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(55, 188, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(55, 188, 129, 0); }
}

.portfolio-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
    font-weight: 800;
}

.portfolio-hero h1 span { color: var(--acento); }

/* --- SISTEMA DE FILTROS --- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease; /* Suaviza el cambio de color */
}

/* CAMBIO SOLICITADO: Al pasar el mouse (Hover) */
.filter-btn:hover {
    background-color: #37bc81 !important; /* Verde DigitalNet */
    color: #ffffff !important;           /* Letras blancas */
    border-color: #37bc81;
    box-shadow: 0 0 20px rgba(55, 188, 129, 0.4); /* Brillo neón */
}

/* Estilo para cuando el botón está seleccionado (activo) */
.filter-btn.active {
    background-color: #37bc81;
    color: #ffffff;
    border-color: #37bc81;
}

/* --- GRID DE PROYECTOS 3D --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    perspective: 2000px; /* Vital para el efecto 3D */
}

.project-item {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card {
    position: relative;
    height: 450px;
    width: 100%;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estilo Frontal */
.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 12, 22, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.category-tag {
    background: var(--acento);
    color: var(--fondo-oscuro);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Estilo Trasero (Glassmorphism) */
.card-back {
    background: rgba(17, 34, 64, 0.7);
    backdrop-filter: blur(20px);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    text-align: center;
}

.card-back h3 {
    color: var(--acento);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.card-back p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.tech-stack {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.tech-stack i {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.tech-stack i:hover { color: var(--acento); }

/* --- ESTILO INICIAL DEL BOTÓN --- */
.btn-visit {
    display: inline-block;
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.1); /* Color inicial sutil (transparente) */
    color: #ffffff; /* Letras blancas desde el inicio */
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Transición suave */
}

/* --- ESTADO HOVER (Al pasar el mouse) --- */
.btn-visit:hover {
    background-color: #37bc81 !important; /* Verde DigitalNet */
    color: #ffffff !important;           /* Letras blancas */
    transform: translateY(-5px);         /* Pequeña elevación */
    
    /* SOMBRA AZUL NEÓN (Puedes cambiar el color al final) */
    box-shadow: 0 10px 20px rgba(0, 157, 255, 0.5); 
    
    /* Si prefieres SOMBRA BLANCA, usa esta línea en su lugar: */
    /* box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3); */
    
    border-color: #37bc81;
}

/* --- CLASES DE ANIMACIÓN JS --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.project-item.hide {
    display: none;
}








/* ================================================= */
/* 8. WHATSAPP Y FOOTER */
/* ================================================= */
.whatsapp-float-premium {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    z-index: 3000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.pulse-ring {
    position: absolute;
    width: 100%; height: 100%;
    background: #25d366;
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.2); opacity: 0; }
}

.minimal-footer {
    padding: 80px 0 30px;
    background: var(--color-primario);
    border-top: 1px solid rgba(0, 247, 0, 0.1);
}

/* ================================================= */
/* 9. RESPONSIVE (CRÍTICO) */
/* ================================================= */
.menu-toggle {
    display: none; /* Por defecto no existe en ordenador */
    background: none;
    border: none;
    color: var(--color-acento);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 3000;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}
@media (max-width: 992px) {
    /* APARECE EL BOTÓN */
    .menu-toggle {
        display: block;
    }

    /* EL MENÚ SE CONVIERTE EN PANEL LATERAL */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto fuera de la pantalla a la derecha */
        width: 80%; /* Ocupa casi toda la pantalla */
        height: 100vh;
        background: var(--color-primario);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-premium);
        z-index: 2500;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    /* CUANDO EL MENÚ TIENE LA CLASE .open (activada por JS) */
    .main-nav.open {
        right: 0; /* Entra a la pantalla */
    }

    /* LISTA EN VERTICAL */
    .nav-list {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .nav-list a {
        font-size: 1.5rem;
        font-weight: 700;
        display: block;
    }

    /* EL BOTÓN DE CONTACTO EN MÓVIL */
    .btn-accent-nav {
        padding: 15px 40px !important;
        font-size: 1.2rem !important;
    }
}

@media (max-width: 992px) {


    .hero-content { text-align: center; }
    .hero-btns { justify-content: center; flex-direction: column; }
}



/* ================================================= */
/* NUEVA SECCIÓN: CAREER HIGHLIGHT */
/* ================================================= */
.career-highlight {
    background: transparent;
    overflow: hidden;
}

.highlight-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* Contenedor de Imagen con estilo Video */
.highlight-visual {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.video-preview-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    aspect-ratio: 16 / 9;
}

.video-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.video-preview-box:hover img {
    transform: scale(1.05);
}

.play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.4s ease;
}

.video-preview-box:hover .play-indicator {
    background: var(--color-acento);
    border-color: var(--color-acento);
    color: var(--color-primario);
}

/* Contenido de Texto */
.highlight-text-content {
    flex: 1;
    min-width: 300px;
}

.highlight-text-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight-span {
    color: var(--color-acento);
}

.highlight-text-content p {
    color: var(--color-texto-gris);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Botón Blanco Estilo Ovalado (como en tu imagen) */
.btn-oval-white {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 35px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-oval-white:hover {
    background: var(--color-acento);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(55, 188, 129, 0.3);
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .highlight-flex {
        flex-direction: column;
        text-align: center;
    }
    .highlight-text-content p {
        margin: 0 auto 30px;
    }
}


/* ================================================= */
/* ESTILOS ESPECÍFICOS: MINIMAL FOOTER CON LOGO */
/* ================================================= */

.minimal-footer {
    background-color: #03080e; /* Un tono más oscuro que el fondo general */
    padding: 100px 0 40px;
    position: relative;
    border-top: 1px solid rgba(55, 188, 129, 0.1);
    color: var(--color-blanco);
    overflow: hidden;
}

/* Efecto de resplandor ambiental en el borde superior */
.minimal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-acento), transparent);
    box-shadow: 0 0 30px var(--color-acento);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

/* Branding y Logo */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 85px; /* Ajusta este valor según el tamaño de tu logo */
    width: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(55, 188, 129, 0.2));
    transition: var(--transition-premium);
}

.footer-logo:hover img {
    filter: drop-shadow(0 0 20px var(--color-acento));
    transform: scale(1.08) rotate(-2deg);
}

.footer-brand p {
    color: var(--color-texto-gris);
    font-size: 0.9rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Redes Sociales: Estilo Moderno y Elástico */
.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 50px;
    height: 50px;
    border-radius: 14px; /* Bordes suaves modernos */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-blanco);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Salto elástico */
    position: relative;
}

.footer-socials a:hover {
    background: var(--color-acento);
    color: var(--color-primario);
    transform: translateY(-12px);
    border-color: var(--color-acento);
    box-shadow: 0 15px 30px rgba(55, 188, 129, 0.4);
}

/* Línea Divisoria Cinematográfica */
.footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(55, 188, 129, 0.15) 50%, 
        rgba(255,255,255,0) 100%);
    margin-bottom: 45px;
}

/* Bottom: Legal y Navegación Secundaria */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-bottom p {
    color: var(--color-texto-gris);
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: var(--color-texto-gris);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.footer-nav a:hover {
    color: var(--color-acento);
    letter-spacing: 2px; /* Expansión suave */
    transform: translateX(5px);
}

/* ================================================= */
/* RESPONSIVE (OPTIMIZADO) */
/* ================================================= */

@media (max-width: 768px) {
    .minimal-footer {
        padding: 60px 0 30px;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 45px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
        gap: 35px;
    }

    .footer-nav {
        justify-content: center;
        gap: 20px;
    }
}