/* Estilos para estrellas valoración */
.valoraciones,
.valoraciones h3,
.valoraciones h4 {
    font-family: 'Verdana', Arial, sans-serif;
    letter-spacing: var(--sans-spacing);
    line-height: 1.5; 
}
.valoraciones {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 72dvh;
    gap: .1em;
    padding: 1.5%;
    border-radius: .5em;
    color: var(--primary-color);
    max-width: 50rem;
    max-height: 36rem;
    scroll-behavior: smooth; 
    scroll-snap-type: y proximity;
    scroll-margin-top: 10em;
}
#rating-stars {
    position: relative;
    display: flex;
    padding: .1em 0;
    width: 65%;
    border-radius: 1.85em;
    background: #faf5ed;
    box-shadow: var(--star-shadow);
    justify-content: space-around;
}
/* Estados normales */
#rating-stars .star {
    font-size: var(--ph2);
    cursor: pointer;
    -webkit-text-stroke: .02em var(--accent-color);
    font-weight: bold;
    filter: drop-shadow(-.06em -.06em .01em rgba(112, 128, 144, 0.4));
    color: rgba(253, 216, 3, 0.45);
    transition: color 0.2s;
    background: none;
}
/* Estrella seleccionada (actual y hover) */

#rating-stars .star .seleccionada,
#rating-stars .star:hover,
#rating-stars .star:focus {
    text-shadow: rgba(255, 217, 0, 0.95) -.02em -.02em .05em,
                 rgba(255, 217, 0, 0.95) -.015em -.015em .045em,
                 rgba(255, 217, 0, 0.95) .015em .015em .045em,
                 rgba(255, 217, 0, 0.95) .02em .02em .05em;
    -webkit-text-stroke: .02em white;
}
/* Estado para teclado (focus-visible) */
#rating-stars .star:focus-visible {
    transform: scale(1.2);
}
#rating-message {
    font-weight: 700;
    color: #28a745; 
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}  
.valoraciones p {
    hyphens: auto;
    text-wrap: pretty;
}
.valoraciones h3 {
    top: 0;
    position: relative;
    font-size: var(--p);
    hyphens: auto;
    text-wrap: stable;
    margin-bottom: .3em;
    width: 90%;
}
/* Estilos para el sistema de reseñas */
.container__autor,
.container__reseñas {
    display: flex;
    flex-direction: column;
    gap: .15em;
    margin: 0;
    width: 90%;
}
.container__autor input,
.container__reseñas textarea {
    hyphens: auto;
    text-wrap: stable;
    margin: .3em auto 0;
    width: 100%;
    max-width: 30rem;
    padding: .6em;
    border: .06em solid darkturquoise;
    border-radius: .5em;
    resize: vertical;
    font-family: inherit;
    font-weight: normal;
}
.container__autor input {
    padding: .3em .25em;
}
.nombre,
.opinion {
    text-align: start;
}
.contador__caracteres {
    margin-left: 4%;
}
.submit-rating-btn {
    margin: .3em auto 0;
    width: 60%;
    max-width: 12.5em;
}
/* Botón deshabilitado si no hay valoración */
.submit-rating-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
/* Estilos para las reseñas existentes */
.reseñas__existentes {
    margin: .15em auto;
    width: 90%;
    max-width: 30rem;
}
#reviews-container {
    border-bottom: .3em ridge var(--accent-color);
}
.review-item {
    border-bottom: .06em solid #eee;
    padding-bottom: .3em;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: .2em;
}
.review-rating {
    color: gold;
}

.review-content {
    line-height: 1.6;
}
.no-reviews,
.review-date {
    color: #666;
}
.promedio,
.total {
    position: relative;
    display: flex;
    align-self: start;
    margin-left: 5%;
}
/* Tamaños de fuente */
.no-reviews,
.review-date,
#rating-message,
.container__autor input,
.container__reseñas textarea {
    font-size: var(--fs);
}
.contador__caracteres, 
.valoracion__promedio,
.total__valoraciones,
.promedio,
.cinco,
.total {
    font-size: var(--fss);
    color: #666;
    font-weight: 600;
}
.cinco,
.total__valoraciones,
.valoracion__promedio {
    color: var(--accent-color);
}
.review-author {
    font-size: var(--fs);
    font-weight: 500;
    text-decoration: underline;
    color: var(--primary-color);
}
.nombre,
.opinion, 
.reseñas__existentes h4 {
    font-size: var(--vp);
    font-weight: 500;
}
.reseñas__existentes h4 {
    font-weight: bold;
    text-decoration: underline;
}
.overflow {
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.reseñas__existentes {
    position: relative;
    left: 0;
    width: 100%;
    text-align: start;
}
/* acceso-valoraciones */
.access__form {
    width: 100%;
    scroll-snap-type: y proximity;
    scroll-timeline-axis: y;
}
.access__stars {
    width: 60%;
    position: relative;
    margin: auto;
    display: flex;
    justify-content: space-around;
}
.estrella {
    width: 100%;
    font-size: var(--ph2);
    font-weight: bold;
    cursor: pointer;
    color: rgba(253, 216, 3, 0.45);
    -webkit-text-stroke: .02em var(--accent-color);
    filter: drop-shadow(-.06em -.06em .01em rgba(112, 128, 144, 0.4));
}
.access__text {
    margin: 0 auto;
    width: 80%;
    color: gold;
    -webkit-text-stroke: .01em var(--accent-color);
    filter: drop-shadow(.05em .05em .01em rgba(8, 8, 8, 0.8));
    font-size: var(--pabc);
}
/* Contenedor principal de los comentarios */
.comments {
    width: 100%;
    padding-top: 4%;
    border-radius: .5em;
    box-shadow: 0 .24em .36em rgba(0, 0, 0, 0.1);
}
.comments,
.comments-title {
    color: var(--primary-color);
    font-family: 'Verdana', Arial, sans-serif;
    letter-spacing: var(--sans-spacing);
    line-height: 1.5;
    font-size: var(--p);
}
/* Lista de comentarios */
.comment-list {
    position: relative;
    padding: 0;
    width: 80%;
    margin: auto;
}
.comment-list li {
    border-bottom: .3em ridge darkturquoise;
    padding: .6em 0 .3em 0;
    width: 100%;
    max-width: 35rem;
    margin: auto;
    
}
/* Contenedor del formulario */
.custom-comment-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1em;
    text-align: center;
    margin: auto;
}
/* Campos de entrada */
.custom-comment-form input,
.custom-comment-form textarea {
    width: 100%;
    padding: .6em 0;
    border: .06em solid darkturquoise;
    border-radius: .5em;
    transition: all 0.3s ease-in-out;
}
.custom-comment-form input:focus,
.custom-comment-form textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 .3rem rgba(0, 115, 170, 0.5);
}
/* Etiquetas de los campos */
.comment-form-author label,
.comment-form-email label,
.comment-form-author input,
.comment-form-email input,
.comment-form-comment label {
    font-size: var(--fs); 
    font-weight: 500;
    display: block;
    margin-bottom: .5em;
}
.comment-notes,
.comment-form-author label,
.comment-form-email label,
.comment-form-comment label {
    text-align: start;
}
/* Campo de comentario */
.comment-form-comment textarea {
    min-height: 7.5rem;
    resize: vertical;
}
.comment-form-cookies-consent {
    display: flex;
    flex-direction: column-reverse;
    position: relative;
    align-items: center;
    justify-content: space-around;
    gap: .6em;
}
.wp-comment-cookies-consent input {
    position: relative;
}    
.wp-comment-cookies-consent label {
    position: relative;
}
/* Notas antes del formulario */
.comment-notes {
    margin-bottom: .6em;
}
/* Estilos para respuestas */
.comment-respond {
    margin-top: 1.5em;
}
.comment-reply-title {
    font-size: var(--fs);
    margin-bottom: .6em;
}
/* Estilos para los comentarios publicados */
.comment-meta, .no-comments {
    font-size: var(--fs);
    margin-bottom: .3em;
}
.comment-form-comment label {
    font-weight: 600;
}
.comment-body {
    padding: .6em;
    border-radius: .36em;
    background-color: white;
    box-shadow: 0em .12em .24em rgba(0, 0, 0, 0.05);
}
.comment-author {
    font-size: var(--fp);
    font-weight: 600;
    text-decoration: underline;
}
/* Título de la sección de comentarios */
.comments-title {
    font-size: var(--plia);
    margin-top: 1em;
    text-align: center;
}
.access__text {
    font-family: 'Patrick Hand SC', Verdana, Arial, sans-serif;
    text-wrap: stable;
    hyphens: auto;    
}
@media (min-height: 420px) {
    .valoraciones {
        height: 80dvh;
    }
}
@media (min-width: 480px) and (orientation: portrait) {
    .no-reviews,
    .review-date,
    #rating-message,
    .container__autor input,
    .container__reseñas textarea {
        font-size: var(--fp);
    }
}
@media (orientation: landscape) {
    .access__text {
    font-size: var(--labc);
    }
    .estrella,
    #rating-stars .star {
        font-size: var(--lh2);
    }
    .no-reviews,
    .review-date,
    .review-author,
    #rating-message,
    .container__autor input,
    .container__reseñas textarea {
        font-size: var(--fp);
    }
    .valoraciones {
        height: 100dvh;
    }
}
@media (min-height: 768px) {
    .valoraciones {
        height: 60dvh;
    }
}
@media (min-width: 1024px)  {
    .reseñas__existentes {
        width: 100%;
    }
    .valoraciones {
        max-height: 40rem;
        max-width: 40rem;
    }
    #rating-stars {
        width: 70%;
    }
}