/**
 * Estilos del slider de reseñas
 * Diseño estilo Google Reviews
 * Sin dependencias externas
 */

/* Wrapper principal — panel izquierdo + slider */
.gwv-resenas-wrapper {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

/* ================================
   PANEL IZQUIERDO
   ================================ */

.gwv-resenas-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 250px;
    max-width: 270px;
    padding: 24px 16px;
    /*border: 1px solid #e0e0e0;*/
    border-radius: 12px;
    background: #ffffff;
    flex-shrink: 0;
    text-align: center;
    /*box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);*/
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Texto EXCELENTE */
.gwv-resenas-panel__cabecera {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-transform: uppercase;
}

/* Logo Google */
.gwv-resenas-panel__logo {
    width: 80px;
    height: auto;
}

/* Estrellas globales */
.gwv-resenas-panel__estrellas {
    display: flex;
    gap: 2px;
}

.gwv-resenas-panel__estrella {
    font-size: 30px;
    color: #FBBC05;
    line-height: 1;
}

/* Puntuación numérica */
.gwv-resenas-panel__puntuacion {
    font-size: 13px;
    color: #444444;
    font-weight: 600;
}

/* Enlace evaluaciones */
.gwv-resenas-panel__link {
    font-size: 15px;
    color: #444444;
    text-decoration: none;
    line-height: 1.4;
    text-align: center;
	margin-bottom: 7px;
}

.gwv-resenas-panel__link:hover {
    text-decoration: underline;
}

.gwv-resenas-panel__link strong {
    display: block;
    color: #1a1a1a;
}

/* Enlace ver reseñas */
.gwv-resenas-panel__ver {
    font-size: 15px;
    color: #da1c76;
    text-decoration: none;
    font-weight: 600;
}

.gwv-resenas-panel__ver:hover {
    text-decoration: underline;
}

/* ================================
   SLIDER
   ================================ */

.gwv-resenas__track {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.gwv-resenas {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
	min-width: 0;
    flex: 1;
}

/* Contenedor deslizante */
.gwv-resenas__slider {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* Cada tarjeta */
.gwv-resenas__item {
    flex: 0 0 calc(33.333% - 12px);
    background: #f9f9f9;
    /*border: 1px solid #e0e0e0;*/
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

/* Wrapper foto con badge */
.gwv-resenas__foto-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

/* Foto del cliente */
.gwv-resenas__foto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Avatar por defecto */
.gwv-resenas__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4285F4;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Badge de Google sobre la foto */
.gwv-resenas__badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Nombre del cliente */
.gwv-resenas__nombre {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Empresa o cargo */
.gwv-resenas__empresa {
    font-size: 12px;
    color: #888888;
    line-height: 1.3;
}

/* Estrellas individuales */
.gwv-resenas__estrellas {
    display: flex;
    gap: 2px;
}

.gwv-resenas__estrella {
    font-size: 20px;
    color: #dddddd; /* Inactiva — gris */
    line-height: 1;
}

.gwv-resenas__estrella--activa {
    color: #FBBC05; /* Activa — amarillo */
}

/* Texto truncado */
.gwv-resenas__texto {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Máximo 4 líneas visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================
   BOTONES DE NAVEGACIÓN
   ================================ */

.gwv-resenas__btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #dddddd;
    background: #ffffff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #444444;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

.gwv-resenas__btn:hover {
    border-color: #4285F4;
    color: #4285F4;
    box-shadow: 0 2px 8px rgba(66,133,244,0.2);
}

.gwv-resenas__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gwv-resenas-panel__estrella--activa {
    color: #FBBC05;
}

.gwv-resenas-panel__estrella--inactiva {
    color: #dddddd;
}

.gwv-resenas-panel__estrella--media {
    position: relative;
    color: #dddddd;
}

.gwv-resenas-panel__estrella--media::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #FBBC05;
}

/* ================================
   RESPONSIVE
   ================================ */

/* Tablet — 2 tarjetas */
@media ( max-width: 1024px ) {
    .gwv-resenas__item {
        flex: 0 0 calc(50% - 8px);
    }
}

@media ( max-height: 600px ) {
    .gwv-modal__contenido {
        overflow-y: auto;
        max-height: 80vh;
    }
}

/* Móvil — oculta panel izquierdo y muestra 1 tarjeta */
@media ( max-width: 640px ) {

    .gwv-resenas-wrapper {
        flex-direction: column;
        overflow: hidden;
    }

    /* Panel en columna centrada en móvil */
    .gwv-resenas-panel {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        padding: 16px;
        gap: 6px;
        box-sizing: border-box;
    }

    .gwv-resenas-panel__logo {
        width: 80px;
    }

    .gwv-resenas-panel__cabecera {
        width: 100%;
        text-align: center;
    }

    .gwv-resenas-panel__estrellas {
        justify-content: center;
    }

    /* Slider ocupa todo el ancho */
    .gwv-resenas {
        width: 100%;
        overflow: hidden;
        max-width: 100%;
    }

    .gwv-resenas__slider {
        width: 100%;
    }

    /* Una tarjeta visible en móvil */
    .gwv-resenas__item {
        flex: 0 0 calc(100vw - 80px);
        min-width: 0;
        max-width: calc(100vw - 80px);
        box-sizing: border-box;
    }
	
	/* Flechas visibles en móvil */
	.gwv-resenas__btn {
		position: absolute;
		top: 50%;
		transform: translateY( -50% );
		z-index: 2;
	}

	.gwv-resenas__btn--prev {
		left: 0;
	}

	.gwv-resenas__btn--next {
		right: 0;
	}

	.gwv-resenas {
		padding: 0 40px;
		box-sizing: border-box;
		overflow: visible;
	}

	.gwv-resenas__item {
		flex: 0 0 calc(100vw - 160px);
		min-width: 0;
		max-width: calc(100vw - 160px);
		box-sizing: border-box;
	}
	
}


/* ================================
   BOTÓN VER MÁS
   ================================ */

.gwv-resenas__ver-mas {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    color: #da1c76;
    font-weight: 600;
    text-align: left;
    margin-top: 4px;
}

.gwv-resenas__ver-mas:hover {
    text-decoration: underline;
}

/* ================================
   MODAL
   ================================ */

.gwv-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999;
    align-items: center;
    justify-content: center;
}

.gwv-modal--activo {
    display: flex;
}

/* Overlay oscuro */
.gwv-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Contenido del modal */
.gwv-modal__contenido {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 24px 24px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    z-index: 1;
    animation: gwvModalEntrada 0.2s ease;
}

/* Animación de entrada */
@keyframes gwvModalEntrada {
    from {
        opacity: 0;
        transform: translateY( -16px );
    }
    to {
        opacity: 1;
        transform: translateY( 0 );
    }
}

/* Botón cerrar */
.gwv-modal__cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888888;
    line-height: 1;
    padding: 4px;
}

.gwv-modal__cerrar:hover {
    color: #1a1a1a;
}

/* Foto en el modal */
.gwv-modal__foto-wrapper {
	position: relative;
    width: 64px;
    height: 64px;
}

.gwv-modal__foto-wrapper img,
.gwv-modal__foto-wrapper .gwv-resenas__avatar {
    width: 64px;
    height: 64px;
}

/* Nombre en el modal */
.gwv-modal__nombre {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}

/* Empresa en el modal */
.gwv-modal__empresa {
    font-size: 12px;
    color: #888888;
}

/* Estrellas en el modal */
.gwv-modal__estrellas {
    display: flex;
    gap: 2px;
    justify-content: center;
}

/* Texto completo en el modal */
.gwv-modal__texto {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #444444;
    text-align: left;
}

/* Responsive */
@media ( max-width: 640px ) {
    .gwv-modal__contenido {
        padding: 28px 16px 20px;
    }
}