/* =========================================== */
/* HERO DE PORTAFOLIO - ESTRUCTURA IDÉNTICA A SERVICIOS */
/* =========================================== */

.seccion-hero-portafolio {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #0a0e17 0%, #0f1525 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.seccion-hero-portafolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(30, 144, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 191, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.contenido-hero-portafolio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 150px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contenido-textual-hero-portafolio {
    max-width: 600px;
}

/* Badge del hero de portafolio */
.badge-hero-portafolio {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(30, 144, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(30, 144, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.texto-badge-portafolio {
    color: #1e90ff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
}

.animacion-badge-portafolio {
    width: 8px;
    height: 8px;
    background-color: #1e90ff;
    border-radius: 50%;
    animation: latido 1.5s infinite;
}

/* Título del hero de portafolio */
.titulo-hero-portafolio {
    margin-bottom: 25px;
}

.linea-titulo-portafolio {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 10px;
    position: relative;
}

.linea-destacada-portafolio {
    color: #1e90ff;
}

.texto-resaltado-portafolio {
    color: #1e90ff;
    position: relative;
    display: inline-block;
}

.texto-resaltado-portafolio::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(30, 144, 255, 0.2);
    z-index: -1;
    border-radius: 4px;
}

/* Descripción del hero de portafolio */
.descripcion-hero-portafolio {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 40px;
    line-height: 1.7;
}

.descripcion-hero-portafolio strong {
    color: #1e90ff;
    font-weight: 600;
}

/* Contenedor de botones del hero de portafolio */
.contenedor-botones-hero-portafolio {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* Contenido visual del hero de portafolio */
.contenido-visual-hero-portafolio {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedor-ilustracion-hero-portafolio {
    width: 500px;
    height: 500px;
    position: relative;
}

/* =========================================== */
/* CUADRO CENTRAL PARA PORTAFOLIO */
/* =========================================== */

.cuadro-central-portafolio {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: linear-gradient(145deg, rgba(20, 25, 40, 0.95), rgba(15, 20, 35, 0.95));
    border-radius: 30px;
    border: 2px solid rgba(30, 144, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 50px rgba(30, 144, 255, 0.1);
    overflow: hidden;
    z-index: 10;
    animation: flotar-suave 6s ease-in-out infinite;
}

.contenido-cuadro-central-portafolio {
    text-align: center;
    padding: 30px;
    z-index: 11;
}

.icono-cuadro-central-portafolio {
    width: 100px;
    height: 100px;
    background: rgba(30, 144, 255, 0.1);
    border: 2px solid rgba(30, 144, 255, 0.3);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 42px;
    color: #1e90ff;
    animation: latido-icono 3s ease-in-out infinite;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        0 5px 15px rgba(30, 144, 255, 0.2);
}

.cuadro-central-portafolio h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cuadro-central-portafolio p {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
}

/* =========================================== */
/* 4 CUADROS FLOTANTES CON COLORES ORIGINALES */
/* =========================================== */

.elemento-flotante-portafolio {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.texto-elemento-flotante-portafolio {
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 1px;
}

/* Efecto hover */
.elemento-flotante-portafolio:hover {
    transform: scale(1.15) rotate(5deg);
    animation-play-state: paused;
    z-index: 8 !important;
    opacity: 1 !important;
    filter: none !important;
}

/* COLORES ESPECÍFICOS ORIGINALES */

/* DISEÑO - Rojo */
.elemento-diseno {
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.05));
    border: 2px solid rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
    animation: orbita-diseno 25s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.elemento-diseno .texto-elemento-flotante-portafolio {
    color: #ff6b6b;
}

.elemento-diseno:hover {
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.3), rgba(255, 107, 107, 0.15));
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
}

/* DESARROLLO - Azul */
.elemento-desarrollo {
    background: linear-gradient(145deg, rgba(30, 144, 255, 0.2), rgba(30, 144, 255, 0.05));
    border: 2px solid rgba(30, 144, 255, 0.4);
    color: #1e90ff;
    animation: orbita-desarrollo 28s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.elemento-desarrollo .texto-elemento-flotante-portafolio {
    color: #1e90ff;
}

.elemento-desarrollo:hover {
    background: linear-gradient(145deg, rgba(30, 144, 255, 0.3), rgba(30, 144, 255, 0.15));
    box-shadow: 0 15px 30px rgba(30, 144, 255, 0.3);
}

/* SEO - Verde */
.elemento-seo {
    background: linear-gradient(145deg, rgba(0, 184, 148, 0.2), rgba(0, 184, 148, 0.05));
    border: 2px solid rgba(0, 184, 148, 0.4);
    color: #00b894;
    animation: orbita-seo-portafolio 31s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.elemento-seo .texto-elemento-flotante-portafolio {
    color: #00b894;
}

.elemento-seo:hover {
    background: linear-gradient(145deg, rgba(0, 184, 148, 0.3), rgba(0, 184, 148, 0.15));
    box-shadow: 0 15px 30px rgba(0, 184, 148, 0.3);
}

/* MÓVIL - Morado */
.elemento-movil {
    background: linear-gradient(145deg, rgba(108, 92, 231, 0.2), rgba(108, 92, 231, 0.05));
    border: 2px solid rgba(108, 92, 231, 0.4);
    color: #6c5ce7;
    animation: orbita-movil 34s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.elemento-movil .texto-elemento-flotante-portafolio {
    color: #6c5ce7;
}

.elemento-movil:hover {
    background: linear-gradient(145deg, rgba(108, 92, 231, 0.3), rgba(108, 92, 231, 0.15));
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.3);
}

/* =========================================== */
/* ANIMACIONES DE ÓRBITA */
/* =========================================== */

@keyframes orbita-diseno {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(180px) rotate(0deg);
        z-index: 2;
        opacity: 1;
        filter: none;
    }
    40% {
        transform: translate(-50%, -50%) rotate(144deg) translateX(180px) rotate(-144deg);
        z-index: 2;
        opacity: 1;
        filter: none;
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) translateX(180px) rotate(-180deg);
        z-index: 1;
        opacity: 0.6;
        filter: blur(0.8px);
    }
    90% {
        transform: translate(-50%, -50%) rotate(324deg) translateX(180px) rotate(-324deg);
        z-index: 1;
        opacity: 0.6;
        filter: blur(0.8px);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(180px) rotate(-360deg);
        z-index: 2;
        opacity: 1;
        filter: none;
    }
}

@keyframes orbita-desarrollo {
    0% {
        transform: translate(-50%, -50%) rotate(90deg) translateX(160px) rotate(-90deg);
        z-index: 2;
        opacity: 1;
        filter: none;
    }
    40% {
        transform: translate(-50%, -50%) rotate(234deg) translateX(160px) rotate(-234deg);
        z-index: 2;
        opacity: 1;
        filter: none;
    }
    50% {
        transform: translate(-50%, -50%) rotate(270deg) translateX(160px) rotate(-270deg);
        z-index: 1;
        opacity: 0.6;
        filter: blur(0.8px);
    }
    90% {
        transform: translate(-50%, -50%) rotate(414deg) translateX(160px) rotate(-414deg);
        z-index: 1;
        opacity: 0.6;
        filter: blur(0.8px);
    }
    100% {
        transform: translate(-50%, -50%) rotate(450deg) translateX(160px) rotate(-450deg);
        z-index: 2;
        opacity: 1;
        filter: none;
    }
}

@keyframes orbita-seo-portafolio {
    0% {
        transform: translate(-50%, -50%) rotate(180deg) translateX(170px) rotate(-180deg);
        z-index: 2;
        opacity: 1;
        filter: none;
    }
    40% {
        transform: translate(-50%, -50%) rotate(324deg) translateX(170px) rotate(-324deg);
        z-index: 2;
        opacity: 1;
        filter: none;
    }
    50% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(170px) rotate(0deg);
        z-index: 1;
        opacity: 0.6;
        filter: blur(0.8px);
    }
    90% {
        transform: translate(-50%, -50%) rotate(144deg) translateX(170px) rotate(-144deg);
        z-index: 1;
        opacity: 0.6;
        filter: blur(0.8px);
    }
    100% {
        transform: translate(-50%, -50%) rotate(180deg) translateX(170px) rotate(-180deg);
        z-index: 2;
        opacity: 1;
        filter: none;
    }
}

@keyframes orbita-movil {
    0% {
        transform: translate(-50%, -50%) rotate(270deg) translateX(150px) rotate(-270deg);
        z-index: 2;
        opacity: 1;
        filter: none;
    }
    40% {
        transform: translate(-50%, -50%) rotate(54deg) translateX(150px) rotate(-54deg);
        z-index: 2;
        opacity: 1;
        filter: none;
    }
    50% {
        transform: translate(-50%, -50%) rotate(90deg) translateX(150px) rotate(-90deg);
        z-index: 1;
        opacity: 0.6;
        filter: blur(0.8px);
    }
    90% {
        transform: translate(-50%, -50%) rotate(234deg) translateX(150px) rotate(-234deg);
        z-index: 1;
        opacity: 0.6;
        filter: blur(0.8px);
    }
    100% {
        transform: translate(-50%, -50%) rotate(270deg) translateX(150px) rotate(-270deg);
        z-index: 2;
        opacity: 1;
        filter: none;
    }
}

/* =========================================== */
/* SECCIÓN: PROYECTOS DESTACADOS */
/* =========================================== */

.seccion-proyectos-destacados {
    padding: 120px 0;
    background-color: #0a0e17;
    position: relative;
}

/* Filtros de proyectos */
.filtros-proyectos {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.filtro-proyecto {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(20, 25, 40, 0.5);
    border: 1px solid rgba(30, 144, 255, 0.1);
    border-radius: 12px;
    color: #b0b0b0;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.filtro-proyecto:hover {
    background: rgba(30, 144, 255, 0.1);
    color: #1e90ff;
    transform: translateY(-3px);
}

.filtro-proyecto.activo {
    background: rgba(30, 144, 255, 0.15);
    border-color: #1e90ff;
    color: #1e90ff;
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.2);
}

.filtro-proyecto i {
    font-size: 18px;
    color: #1e90ff;
}

/* Grid de proyectos completo */
.grid-proyectos-completo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.tarjeta-proyecto-completa {
    background: rgba(20, 25, 40, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(30, 144, 255, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
}

.tarjeta-proyecto-completa.animado {
    opacity: 1;
    transform: translateY(0);
}

.tarjeta-proyecto-completa:hover {
    border-color: rgba(30, 144, 255, 0.3);
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.contenedor-imagen-proyecto {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.imagen-proyecto {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 25px;
}

.badge-proyecto {
    background: rgba(10, 14, 23, 0.9);
    color: #1e90ff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(30, 144, 255, 0.3);
    z-index: 2;
}

.overlay-proyecto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.tarjeta-proyecto-completa:hover .overlay-proyecto {
    opacity: 1;
}

.contenido-overlay {
    text-align: center;
    padding: 30px;
}

.contenido-overlay h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.contenido-overlay p {
    color: #b0b0b0;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.boton-overlay {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1e90ff;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boton-overlay:hover {
    background: #0066cc;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 144, 255, 0.3);
}

.indicadores-proyecto {
    position: absolute;
    bottom: 20px;
    left: 25px;
    display: flex;
    gap: 15px;
    z-index: 2;
}

.indicador-proyecto {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.85rem;
    background: rgba(10, 14, 23, 0.7);
    padding: 5px 12px;
    border-radius: 15px;
}

.indicador-proyecto i {
    color: #1e90ff;
    font-size: 14px;
}

.contenido-tarjeta-proyecto {
    padding: 30px;
}

.cabecera-proyecto {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.titulo-proyecto {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.badge-cliente {
    background: rgba(30, 144, 255, 0.1);
    color: #1e90ff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(30, 144, 255, 0.2);
}

.descripcion-proyecto {
    color: #b0b0b0;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tecnologias-proyecto {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tecnologia {
    background: rgba(30, 144, 255, 0.1);
    color: #1e90ff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(30, 144, 255, 0.2);
    transition: all 0.3s ease;
    user-select: none;
}

.tecnologia:hover {
    background: rgba(30, 144, 255, 0.2);
    transform: translateY(-2px);
}

.resultados-proyecto {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.resultado-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e90ff;
    font-size: 0.9rem;
    font-weight: 500;
}

.resultado-item i {
    font-size: 16px;
    color: #1e90ff;
}

.contenedor-boton-cargar {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* =========================================== */
/* SECCIÓN: PROCESO DE TRABAJO EN PROYECTOS */
/* =========================================== */

.seccion-proceso-proyectos {
    padding: 120px 0;
    background-color: #0f1525;
    position: relative;
}

.timeline-proceso-proyectos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.timeline-proceso-proyectos::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #1e90ff 25%, 
        #1e90ff 75%, 
        transparent 100%);
    z-index: 0;
}

.paso-proceso-proyecto {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.paso-proceso-proyecto.animado {
    opacity: 1;
    transform: translateY(0);
}

.numero-paso {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(30, 144, 255, 0.3);
    z-index: 2;
    position: relative;
}

.contenido-paso {
    background: rgba(20, 25, 40, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(30, 144, 255, 0.1);
    transition: all 0.3s ease;
}

.paso-proceso-proyecto:hover .contenido-paso {
    border-color: rgba(30, 144, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.icono-paso {
    width: 60px;
    height: 60px;
    background: rgba(30, 144, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #1e90ff;
    margin-bottom: 20px;
}

.titulo-paso {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.descripcion-paso {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.lista-paso {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.lista-paso li {
    color: #b0b0b0;
    margin-bottom: 8px;
    font-size: 0.9rem;
    padding-left: 25px;
    position: relative;
}

.lista-paso li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1e90ff;
    font-weight: bold;
}

/* =========================================== */
/* SECCIÓN: CTA FINAL DE PORTAFOLIO */
/* =========================================== */

.seccion-cta-final-portafolio {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0e17 0%, #0f1525 100%);
    position: relative;
    overflow: hidden;
}

.seccion-cta-final-portafolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(30, 144, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(30, 144, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.contenido-cta-final-portafolio {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.titulo-cta-final-portafolio {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.descripcion-cta-final-portafolio {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.botones-cta-final-portafolio {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.botones-cta-final-portafolio .boton {
    min-width: 250px;
}

/* =========================================== */
/* ANIMACIONES GENERALES */
/* =========================================== */

@keyframes flotar-suave {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-15px);
    }
}

@keyframes latido-icono {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.03) rotate(5deg);
    }
    50% {
        transform: scale(1.05) rotate(0deg);
    }
    75% {
        transform: scale(1.03) rotate(-5deg);
    }
}

@keyframes latido {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* =========================================== */
/* RESPONSIVE COMPLETO */
/* =========================================== */

@media (max-width: 1200px) {
    .contenido-hero-portafolio {
        gap: 60px;
    }
    
    .linea-titulo-portafolio {
        font-size: 3rem;
    }
    
    .contenedor-ilustracion-hero-portafolio {
        width: 450px;
        height: 450px;
    }
    
    .timeline-proceso-proyectos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    @keyframes orbita-diseno {
        0% { transform: translate(-50%, -50%) rotate(0deg) translateX(150px) rotate(0deg); }
        50% { transform: translate(-50%, -50%) rotate(180deg) translateX(150px) rotate(-180deg); }
        100% { transform: translate(-50%, -50%) rotate(360deg) translateX(150px) rotate(-360deg); }
    }
}

@media (max-width: 992px) {
    .contenido-hero-portafolio {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .contenido-textual-hero-portafolio {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .contenedor-botones-hero-portafolio {
        justify-content: center;
    }
    
    .contenedor-ilustracion-hero-portafolio {
        width: 400px;
        height: 400px;
        margin: 0 auto;
    }
    
    .grid-proyectos-completo {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .timeline-proceso-proyectos::before {
        display: none;
    }
    
    .seccion-hero-portafolio {
        padding: 150px 0 80px;
    }
}

@media (max-width: 768px) {
    .seccion-hero-portafolio {
        padding: 150px 0 80px;
        min-height: auto;
    }
    
    .linea-titulo-portafolio {
        font-size: 2.5rem;
    }
    
    .contenedor-ilustracion-hero-portafolio {
        width: 350px;
        height: 350px;
    }
    
    .cuadro-central-portafolio {
        width: 240px;
        height: 240px;
    }
    
    .icono-cuadro-central-portafolio {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .elemento-flotante-portafolio {
        width: 75px;
        height: 75px;
        font-size: 28px;
    }
    
    .grid-proyectos-completo,
    .timeline-proceso-proyectos {
        grid-template-columns: 1fr;
    }
    
    .filtros-proyectos {
        flex-direction: column;
        align-items: center;
    }
    
    .filtro-proyecto {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .botones-cta-final-portafolio {
        flex-direction: column;
        align-items: center;
    }
    
    .botones-cta-final-portafolio .boton {
        width: 100%;
        max-width: 300px;
    }
    
    .titulo-cta-final-portafolio {
        font-size: 2rem;
    }
    
    @keyframes orbita-diseno {
        0% { transform: translate(-50%, -50%) rotate(0deg) translateX(120px) rotate(0deg); }
        50% { transform: translate(-50%, -50%) rotate(180deg) translateX(120px) rotate(-180deg); }
        100% { transform: translate(-50%, -50%) rotate(360deg) translateX(120px) rotate(-360deg); }
    }
    
    .seccion-hero-portafolio,
    .seccion-proyectos-destacados,
    .seccion-proceso-proyectos,
    .seccion-cta-final-portafolio {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .contenedor-ilustracion-hero-portafolio {
        width: 300px;
        height: 300px;
    }
    
    .elemento-flotante-portafolio {
        width: 65px;
        height: 65px;
        font-size: 24px;
    }
    
    .texto-elemento-flotante-portafolio {
        font-size: 10px;
    }
    
    .titulo-cta-final-portafolio {
        font-size: 1.6rem;
    }
    
    .indicadores-proyecto {
        flex-direction: column;
        gap: 10px;
    }
    
    .resultados-proyecto {
        flex-direction: column;
        gap: 10px;
    }
    
    @keyframes orbita-diseno {
        0% { transform: translate(-50%, -50%) rotate(0deg) translateX(100px) rotate(0deg); }
        50% { transform: translate(-50%, -50%) rotate(180deg) translateX(100px) rotate(-180deg); }
        100% { transform: translate(-50%, -50%) rotate(360deg) translateX(100px) rotate(-360deg); }
    }
}
