.sliding-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.sliding-content {
    display: inline-flex; /* Cambiado a inline-flex */
    align-items: center; /* Añadido para alineación vertical */
    animation: slide 20s linear infinite;
    position: relative;
    white-space: nowrap;
}

.sliding-word {
    display: inline-flex; /* Cambiado a inline-flex */
    align-items: center; /* Añadido para alineación vertical */
    padding: 0 0.4em;
}

.sliding-icon {
    display: inline-flex; /* Cambiado a inline-flex */
    align-items: center; /* Añadido para alineación vertical */
    padding: 0 0.2em;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.sliding-container:hover .sliding-content{
    animation-play-state: paused;
}

.circle-cycle-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin: 2em auto;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-cycle-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-cycle-container:hover .circle-cycle-wrapper {
    animation-play-state: paused;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.circle-item {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(255,255,255,0.9);
}

.circle-text {
    text-align: center;
    padding: 0.3em;
    z-index: 1;
    width: 100%;
    font-size: clamp(10px, 2.5vw, 14px);
    word-break: break-word;
    white-space: normal;
    line-height: 1.1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0,0,0,0.8);
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
}

/* Contenedor del popup de logos */
.logos-popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.logos-popup-container.active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* Botón de cierre para el popup */
.close-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: background 0.3s ease;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.3);
}

.close-popup::before,
.close-popup::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transform-origin: center;
}

.close-popup::before {
    transform: rotate(45deg);
}

.close-popup::after {
    transform: rotate(-45deg);
}

/* Estilos para PC */
@media (min-width: 769px) {
    .circle-item:hover .circle-logos {
        opacity: 1;
        z-index: 20;
        overflow: visible;
        border-radius: 0;
        background: #fff;
        max-width: none;
        width: auto;
        left: 50%;
        transform: translateX(-50%);
        gap: 2rem;
        padding: 0 2rem;
        min-width: 100%;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        pointer-events: auto;
    }

    .logos-popup-container {
        display: none !important;
    }
}

/* Estilos para móvil */
@media (max-width: 768px) {
    .circle-item {
        width: 80px;
        height: 80px;
    }

    .circle-text {
        font-size: clamp(8px, 2vw, 11px);
        padding: 0.2em;
    }

    .circle-logos {
        display: none;
    }

    .logo-wrapper {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        transition: transform 0.3s ease;
    }

    .logo-wrapper a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    body img.circle-logo {
        max-width: 120px;
        max-height: 120px;
        width: auto;
        height: auto;
        display: block;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .circle-item {
        width: 60px;
        height: 60px;
    }

    .circle-text {
        font-size: clamp(7px, 1.8vw, 9px);
        padding: 0.15em;
    }

    .logos-popup-container {
        padding: 1rem;
        gap: 1rem;
    }

    body img.circle-logo {
        max-width: 80px;
        max-height: 80px;
    }

    .logo-wrapper {
        padding: 0.5rem;
    }
}

/* Overlay para móvil cuando se muestra el popup */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* Estilos para el modal de imagen individual */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

body .circle-logos{
    gap: 1em;
}
body img.circle-logo {
    max-width: 200px;
    height: auto;
    max-height: 200px;
}

.circle-cycle-container .image-modal img{
    max-height: 50%;
    max-width: 50%; 
}

.arrow {
    position: absolute;
    height: 2px;
    background-color: currentColor;
    transform-origin: left center;
    transition: transform 0s linear, width 0.1s linear;
}

.arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.project-grid {
    display: grid;
    width: 100%;
}

.project-item {
    overflow: hidden;
}

.project-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.project-title {
    margin: 1em 0 0.5em;
}

.project-excerpt {
    margin-bottom: 1em;
}

.sliding-icon img {
    display: inline-block;
    vertical-align: middle;
    height: auto;
    object-fit: contain;
    max-width: none;
}

/* Estilos para Personas Vitamina */

.persona-item {
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.persona-item:hover .persona-name {
    opacity: 0.7;
}

.persona-name {
    transition: opacity 0.3s ease;
}

.persona-hover-image {
    display: none;
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    max-width: 300px;
}

.persona-hover-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
}

.persona-item:hover .persona-hover-image {
    display: block;
}

/* Fin del archivo */