* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    --background-color: #F4F7F6;
    --color-textos-grandes: #1ab359;
    --color-textos-pequeños: #2C3E50;
    --fuente-grande: 'Montserrat';
    --fuente-pequeña: 'Open Sans', sans-serif;
    background-color: var(--background-color);
}


/* --- CONTENEDOR PRINCIPAL --- */
.container-resenas {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.header-trust {
    text-align: center;
    margin-bottom: 40px;
}

.header-trust h2 {
    margin-top: 50px;
    font-size: 2rem;
    color: #1c1c1c;
    margin-bottom: 10px;
}

/* --- TARJETAS DE RESEÑA --- */
.resena-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    transition: transform 0.2s ease;
}

.resena-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.resena-top {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.user-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.user-info-resena h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.fecha-resena {
    font-size: 0.8rem;
    color: #777;
}

.estrellas-card {
    color: #00b67a; /* Verde Trustpilot */
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.comentario-texto {
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.6;
}

/* --- SISTEMA DE CALIFICACIÓN (ESTRELLAS INTERACTIVAS) --- */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.rating-input input { display: none; }

.rating-input label {
    font-size: 3rem; /* Tamaño grande para que sea fácil tocar en móvil */
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.2s;
}

/* El truco de la iluminación */
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #FFD700; /* Dorado al seleccionar/pasar ratón */
}

/* --- BOTONES Y FORMULARIO --- */
.btn-resena-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #00b67a;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-resena-toggle:hover {
    background-color: #009665;
    transform: translateY(-2px);
}

/* Clase para cuando el botón está en modo "Cancelar" */
.btn-abierto {
    background-color: #f44336 !important;
}

.textarea-resena {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    min-height: 100px;
    font-family: inherit;
    box-sizing: border-box;
}

.btn-publicar-resena {
    width: 100%;
    background: #1c1c1c;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.btn-volver {
    font-family: var(--fuente-pequeña);
    display: inline-block;
    margin-bottom: 50px;
    color: #F33;
    text-decoration: none;
    font-weight: 700;
}

.shadow-trust {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}