 /* Estilos globales */
 body {
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
    color: #333;
    
}

.container-valoration {
    font-family: 'Roboto', sans-serif;
    max-width: 600px;
    width: 100%;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.container-valoration h1 {
    font-size: 1.8rem;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Visualización de estrellas */
.container-valoration .stars-display {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 10px;
}

.container-valoration .stars-background {
    color: #ddd;
}

.container-valoration .stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #ffd700;
}

.container-valoration .average-text {
    font-size: 0.8rem;
    margin-left: 10px;
    color: #555;
}

.container-valoration .average-text-date { 
    font-size: 0.8rem;
    color: #797777;
}

.container-valoration .box-voted .average-text {
    margin-left: 0px;
}

/* Detalles de la valoración */
.container-valoration .ratings-breakdown {
    margin-top: 20px;
    padding: 0;
    list-style-type: none;
}

.container-valoration .rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.container-valoration .rating-item:hover {
    background-color: #e7e7e7;
}

.container-valoration .rating-item span {
    font-size: 1rem;
    color: #666;
}

.container-valoration .rating-item .count {
    font-weight: bold;
    color: #333;
}

/* Estilos de las estrellas de votación */
.container-valoration .content-form .vote-stars {
    display: flex;
    justify-content: flex-start;
    margin: 7px 0;
}

.container-valoration .star {
    font-size: 3.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
    margin: 0 5px;
}

.container-valoration .vote-stars-voted .star {
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
    margin: 0 5px;
}

.container-valoration .star:hover {
    color: #ffd700;
}

.container-valoration .star.active {
    color: #ffd700;
}

/* Estilo de los botones de acción */
.container-valoration .add-opinion {
    display: inline-block;
    text-align: center;
    color: #007bff;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
    padding: 12px 25px;
    border: 2px solid #007bff;
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container-valoration .add-opinion:hover {
    background-color: #007bff;
    color: #fff;
}

.container-valoration .vote-stars textArea {
    resize: vertical;
    min-height: 36px;
    width: 59%;
    form-sizing: content;
    max-height: 100px;
}
.container-valoration .box-voted {
    border-top: 1px solid #ddd;
    margin-top: 10px;
}

.container-valoration .error-comment {
    border: 2px solid #d7563a;
}

.container-valoration .mensaje-error {
    font-size: 13px;
    color: #d7563a;
    margin-bottom: 20px;
}
.container-valoration div.copy-right {
    float: right;
}
.container-valoration div.copy-right span {
    font-size: 14px;
    color: #4ab4d5;
}

.container-valoration .content-chart {
    margin-bottom: 10px;
}
.container-valoration .content-logo .logo {
    text-align: center;
}
.container-valoration .content-logo .logo img {
    max-width: 200px;
    width: 100%;
}

 .text-transform-uppercase {
     text-transform: uppercase;
 }

/* Media Queries para hacer el diseño responsivo */
@media (max-width: 768px) {
    .container-valoration {
        max-width: 90%;
        width: 100%;
    }
    .container-valoration h1 {
        font-size: 1.6rem;
    }

    .container-valoration .stars-display {
        font-size: 1.8rem;
    }

    .container-valoration .average-text {
        font-size: 0.9rem;
    }
    .container-valoration .average-text-date {
        font-size: 0.7rem;
    }

    .container-valoration .rating-item {
        padding: 5px 9px;
    }

    .container-valoration .star {
        font-size: 2.5rem;
    }

    .container-valoration .add-opinion {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    .container-valoration .vote-stars textArea {
        width: 79%;
    }
}

@media (max-width: 480px) {
    .container-valoration {
        max-width: 98%;
        width: 100%;
    }
    .container-valoration h1 {
        font-size: 1.4rem;
    }

    .container-valoration .stars-display {
        font-size: 1.6rem;
    }

    .container-valoration .average-text {
        font-size: 0.9rem;
    }

    .container-valoration .average-text-date {
        font-size: 0.8rem;
    }

    .container-valoration .rating-item {
        padding: 5px 10px;
    }

    .container-valoration .star {
        font-size: 2.9rem;
    }
    
    .container-valoration .list-voted .star {
        font-size: 1.5rem;
    }

    .container-valoration .add-opinion {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    .container-valoration .vote-stars textArea {
        width: 100%;
    }
}

 /*btn & logo*/
 .btn-success-custom {
     background-color: #28a745;
     color: white;
     padding: 10px 18px;
     border: none;
     border-radius: 6px;
     font-size: 16px;
     cursor: pointer;
     font-weight: 600;
     transition: background-color 0.2s ease, transform 0.1s ease;
 }

 .btn-success-custom:hover {
     background-color: #218838;
 }

 .btn-success-custom:active {
     background-color: #1e7e34;
     transform: scale(0.97);
 }

 .btn-success-custom i {
     margin-right: 6px; /* espacio para el icono */
 }
 .content-logo {
     display: flex;
     justify-content: space-between;
     align-items: center;   /* centra verticalmente */
     padding: 10px 0;
 }

 .content-logo .logo img {
     height: 60px;  /* ajusta si lo deseas */
 }

 span.name {
     font-weight: bold;
 }