.rating-type {
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid grey !important;
}

.rating-type:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.rating-type.selected {
    background: #007bff;
    color: white;
}

.rating-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(-5px); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(-5px); }
}

.rating-stats {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px 0;
}

.progress {
    height: 25px;
    margin: 10px 0;
}

.rating-section {
    /*min-height: 60vh;*/
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Formas decorativas */
.rating-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -100px;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.05;
    z-index: 0;
    animation: morphShape 15s ease-in-out infinite;
}

.rating-section::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: -80px;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #065F46, #10B981);
    border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
    opacity: 0.05;
    z-index: 0;
    animation: morphShape 20s ease-in-out infinite reverse;
}

/* Formas decorativas adicionales */
.rating-decoration-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.05;
}

.rating-shape-1 {
    top: 60%;
    right: 5%;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 18s ease-in-out infinite;
}

.rating-shape-2 {
    top: 20%;
    left: 5%;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #B45309, #FBBF24);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphShape 12s ease-in-out infinite reverse;
}

.rating-shape-3 {
    bottom: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #BE185D, #EC4899);
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    animation: morphShape 25s ease-in-out infinite;
}

@keyframes morphShape {
    0% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    25% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
    }
    75% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    100% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
}

/* Asegurar que el contenido esté por encima de las formas */
.rating-flex-container,
.rating-header,
.rating-options,
.rating-display {
    position: relative;
    z-index: 1;
}

.rating-flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 30vh;
}
.rating-options, .rating-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.rating-types {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.rating-type {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    font-size: 1.2rem;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s, transform 0.2s;
    border: 2px solid transparent;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}
.rating-type:hover, .rating-type.selected {
    background: #e3f0ff;
    box-shadow: 0 4px 16px rgba(0,123,255,0.10);
    border-color: #007bff;
    transform: scale(1.03);
}
.rating-type.selected {
    background: #1565c0 !important;
    color: #fff;
    border-color: #1565c0 !important;
}
.rating-type.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.rating-type img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.rating-display {
    min-width: 350px;
}
#ratingResults {
    margin-top: 0;
}
.rating-stats {
    background: #fff;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 1.2rem;
}
.progress {
    background: #e9ecef;
    border-radius: 8px;
    height: 18px;
    overflow: hidden;
}
.progress-bar {
    background: #1565c0;
    height: 100%;
    border-radius: 8px;
    transition: width 0.7s cubic-bezier(.4,2.2,.2,1);
}
@media (max-width: 900px) {
    .rating-section .container, .rating-flex-container {
        flex-direction: column;
        align-items: stretch;
    }
    .rating-options, .rating-display {
        min-width: unset;
        margin-bottom: 2rem;
    }
}
