.circle-container {
    margin-top: 20px;
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 100px;
}

.circle-container:hover {
    transform: scale(1.05);
}

.circle-container h2{
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5em;
    font-weight: bold;

    text-align: center;
    z-index: 200;
}



.main-circle {
    display: inline-block;
    position: relative;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: white;
    border: solid 15px #2c90d0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff7729;
    font-size: 2.3em;
    font-weight: bold;
    text-decoration: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.main-circle img {
    width: 170px; /* ajusta tamaño */
    height: auto;
    opacity: 0;
    margin: 0 auto;
    transform: scale(0.5); /* más pequeña al inicio */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Al pasar el mouse aparece y gira */
.main-circle:hover img {
    opacity: .15;
    transform: scale(1); /* vuelve a tamaño normal */
    animation: spin 2s linear infinite;
}

/* Animación de rotación */
@keyframes spin {
    from { transform: rotate(360deg) scale(1); }
    to   { transform: rotate(0deg) scale(1); }
}

.main-circle:hover {
    color: #175074;
    font-size: 3em;
    font-weight: 600;
}

.main-circle p{
    width: 100%;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
}

/* Elementos decorativos */
.decorative-element {
    position: absolute;
    border-radius: 50%;

    transform: scale(0) rotate(0deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.decorative-rect {
    position: absolute;
    border-radius: 25px;

    transform: scale(0) rotate(0deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Círculos pequeños */
.circle1 {
    width:90px;
    height: 90px;
    background: #f9ca24;
    top: -15px;
    left: 25px;
    transition-delay: 0.1s;
    z-index: 20;
    box-shadow: 8px 0 5px rgba(0, 0, 0, 0.274);
}

.circle2 {
    width: 100px;
    height: 100px;
    background: #ce57aa;
    bottom: 8px;
    right: -20px;
    transition-delay: 0.2s;
    box-shadow: 8px 0 5px rgba(0, 0, 0, 0.274);
}

.circle3 {
    width: 20px;
    height: 20px;
    background: #e34290;
    top: -40px;
    right: 20px;
    transition-delay: 0.3s;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.274)
}

.circle4 {
    width: 30px;
    height: 30px;
    background: #f9ca24;
    bottom: -70px;
    left: 0;
    transition-delay: 0.4s;
    z-index: 20;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.274)
}

.circle5 {
    width: 40px;
    height: 40px;
    background: #2c90d0;
    top: -10px;
    right: -20px;
    transition-delay: 0.15s;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.274)
}

.circle6 {
    width: 28px;
    height: 28px;
    background: linear-gradient(45deg, #fd79a8, #fdcb6e);
    bottom: 60px;
    left: 10px;
    transition-delay: 0.35s;
    box-shadow: 8px 0 5px rgba(0, 0, 0, 0.274);
}

/* Rectángulos inclinados */
.rect1 {
    width: 260px;
    height: 25px;
    background: #e84393;
    top: 60px;
    left: -30%;
    transform: rotate(-45deg) scale(0);
    transition-delay: 0.25s;
     box-shadow: 0 5px 5px rgba(0, 0, 0, 0.274);
}

.rect2 {
    width: 190px;
    height: 45px;
    background: #00cec9;
    top: 20px;
    left: -25%;
    transform: rotate(-45deg) scale(0);
    transition-delay: 0.45s;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.274)
}

.rect3 {
    width: 290px;
    height: 30px;
    background: #f9ca24;
    top: 120px;
    left: -10px;
    transform: rotate(-30deg) scale(0);
    transition-delay: 0.1s;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.274)
}

.rect4 {
    width: 100px;
    height: 30px;
    background: #00cec9;
    bottom: -10px;
    right: 25px;
    transform: rotate(-30deg) scale(0);
    transition-delay: 0.3s;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.274)
}

.rect5 {
    width: 75px;
    height: 5px;
    background: #e8e24a;
    bottom: 10px;
    right: -10px;
    transform: rotate(-30deg) scale(0);
    transition-delay: 0.2s;
}

.rect6 {
    width: 75px;
    height: 5px;
    background: #e8e24a;
    bottom: -20px;
    right: 8px;
    transform: rotate(-30deg) scale(0);
    transition-delay: 0.2s;
}

.rect7 {
    width: 75px;
    height: 5px;
    background: #e84393;
    top: 20px;
    left:  -20px;
    transform: rotate(-30deg) scale(0);
    transition-delay: 0.4s;
    
}

.rect8 {
    width: 75px;
    height: 5px;
    background: #e84393;
    top: -5px;
    left: -10px;
    transform: rotate(-30deg) scale(0);
    transition-delay: 0.4s;

}
/* Efectos de hover */
.circle-container:hover .decorative-element {
    transform: scale(1) rotate(360deg);
}


.circle-container:hover .rect1 {
    transform: rotate(-45deg) scale(1);
}

.circle-container:hover .rect2 {
    transform: rotate(-45deg) scale(1);
}

.circle-container:hover .rect3 {
    transform: rotate(-45deg) scale(1);
}

.circle-container:hover .rect4 {
    transform: rotate(-45deg) scale(1);
}

.circle-container:hover .rect5 {
    transform: rotate(-45deg) scale(1);
}
.circle-container:hover .rect6 {
    transform: rotate(-45deg) scale(1);
}

.circle-container:hover .rect7 {
    transform: rotate(-45deg) scale(1);
}

.circle-container:hover .rect8 {
    transform: rotate(-45deg) scale(1);
}

/* Efecto de pulsación */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.main-circle:active {
    animation: pulse 0.3s ease;
}

/* Efecto de brillo en hover */
.main-circle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;   
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.circle-container:hover .main-circle::before {
    opacity: 0.3;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Partículas flotantes */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: all 1s ease;
}

.particle1 {
    top: 30px;
    left: 60px;
}

.particle2 {
    top: 120px;
    right: 40px;
}

.particle3 {
    bottom: 40px;
    left: 70px;
}

.particle4 {
    top: 70px;
    right: 80px;
}

.circle-container:hover .particle {
    opacity: 1;
    transform: translateY(-20px);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(-20px);
    }

    50% {
        transform: translateY(-30px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .circle-container {
        width: 250px;
        height: 250px;
    }

    .main-circle {
        width: 100px;
        height: 100px;
        font-size: 16px;
    }

    .decorative-element {
        transform: scale(0.8);
    }

    .decorative-rect {
        transform: scale(0.8);
    }
}