/* GR Reseñas Google — mobile first. Clases con prefijo gr-res-.
   Colores: solo la paleta de marca (ver paleta-marca.md) como variables --gr-*. */

.gr-res {
	/* Paleta oficial */
	--gr-morado: #4c2d7b;
	--gr-morado-intenso: #66068c;
	--gr-magenta: #a00e88;
	--gr-texto: #222222;
	--gr-texto-2: #484848;
	--gr-blanco: #ffffff;
	/* Variaciones derivadas de la paleta */
	--gr-morado-osc: #3a225d;
	--gr-morado-04: #f8f7fa;
	--gr-morado-10: #edeaf2;
	--gr-morado-18: #dfd9e7;
	--gr-morado-35: #c0b6d1;
	--gr-magenta-06: #f9f1f8;
	--gr-sombra: 0 1px 2px rgba(76, 45, 123, .05), 0 12px 32px -14px rgba(76, 45, 123, .18);
	--gr-sombra-hover: 0 2px 4px rgba(76, 45, 123, .06), 0 18px 40px -16px rgba(76, 45, 123, .24);
	/* Excepciones permitidas */
	--gr-estrella: #fbbc04;
	--gr-google-texto: #5e5e5e;
	--gr-whatsapp: #25d366;

	--gr-radio: 16px;
	box-sizing: border-box;
	font-family: inherit;
	color: var(--gr-texto);
	-webkit-font-smoothing: antialiased;
}
.gr-res *, .gr-res *::before, .gr-res *::after { box-sizing: inherit; }
/* El tema estiliza ".the-content ul li"; estas reglas pesan más. */
body .gr-res ul { list-style: none; margin: 0; padding: 0; font-size: inherit; }
body .gr-res ul li { list-style: none; margin: 0; padding: 0; font-size: inherit; line-height: inherit; color: inherit; }
body .gr-res ul li::before, body .gr-res ul li::marker { content: none; }
.gr-res p { margin: 0; }
.gr-res a { text-decoration: none; box-shadow: none; }
.gr-res svg { display: block; }

.gr-res-sr {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Titulares ---------- */
.gr-res .gr-res-antetitulo {
	margin: 0 0 10px;
	font-size: 12px; font-weight: 500; line-height: 1.4;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--gr-morado-intenso);
}
.gr-res .gr-res-titulo {
	margin: 0 0 18px; padding: 0;
	font-family: inherit; font-size: 26px; font-weight: 400; line-height: 1.25;
	letter-spacing: -.01em; text-transform: none;
	color: var(--gr-morado);
	border: 0; background: none;
}
.gr-res .gr-res-titulo::before, .gr-res .gr-res-titulo::after { content: none; }
.gr-res .gr-res-nota {
	margin: -8px 0 18px;
	font-size: 13px; font-weight: 300; line-height: 1.5;
	color: var(--gr-texto-2);
}

/* ---------- Estrellas ---------- */
.gr-res-stars { --gr-star: 16px; position: relative; display: inline-block; flex: none; line-height: 0; vertical-align: middle; }
.gr-res-stars-sm { --gr-star: 14px; }
.gr-res-stars-base, .gr-res-stars-fill { display: flex; gap: 2px; }
.gr-res-stars-base { color: var(--gr-morado-18); }
.gr-res-stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--gr-estrella); }
.gr-res-stars svg { width: var(--gr-star); height: var(--gr-star); flex: none; fill: currentColor; }

/* ---------- Franja resumen ---------- */
.gr-res-resumen-wrap { display: flex; justify-content: center; margin: 20px 0; padding: 0 16px; }
.gr-res-bloque .gr-res-resumen-wrap, .gr-res-resumen-demo .gr-res-resumen-wrap { margin: 0; padding: 0; }
.gr-res-resumen-demo { margin: 20px 16px; }
.gr-res a.gr-res-resumen {
	display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
	max-width: 100%;
	padding: 10px 16px 10px 18px;
	border: 1px solid var(--gr-morado-10);
	border-radius: 999px;
	background: var(--gr-blanco);
	box-shadow: 0 1px 2px rgba(76, 45, 123, .05);
	color: var(--gr-texto);
	font-size: 14px; line-height: 1.3;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.gr-res a.gr-res-resumen:hover, .gr-res a.gr-res-resumen:focus-visible { border-color: var(--gr-morado-35); box-shadow: var(--gr-sombra); color: var(--gr-texto); }
.gr-res-resumen-fila { display: inline-flex; align-items: center; gap: 10px; }
.gr-res-resumen-nota { font-size: 16px; font-weight: 600; color: var(--gr-texto); }
.gr-res-resumen-sep { width: 1px; height: 16px; background: var(--gr-morado-10); }
.gr-res-resumen-total { color: var(--gr-texto-2); }
.gr-res-chevron { width: 14px; height: 14px; color: var(--gr-morado); }

/* Atribución de texto según las normas de Google Maps Platform */
.gr-res .gr-res-gmaps { font-family: Roboto, Arial, sans-serif; font-weight: 400; letter-spacing: normal; color: var(--gr-google-texto); white-space: nowrap; }

/* Aviso de modo de prueba (solo administradores) */
.gr-res .gr-res-prueba {
	max-width: 520px;
	margin: 14px auto 0;
	padding: 10px 14px;
	border: 1px dashed var(--gr-magenta);
	border-radius: 10px;
	background: var(--gr-magenta-06);
	font-size: 12.5px; font-weight: 400; line-height: 1.5; text-align: center;
	color: var(--gr-magenta);
}
.gr-res .gr-res-prueba strong { font-weight: 600; letter-spacing: .06em; }

/* ---------- Bloque de reseñas ---------- */
.gr-res-bloque { margin: 40px 0; padding: 36px 0 28px; border-radius: 24px; background: var(--gr-morado-04); overflow: hidden; }
.gr-res-cabecera { padding: 0 20px 6px; text-align: center; }

.gr-res-carrusel {
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-padding: 0 20px;
	-webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gr-res-carrusel::-webkit-scrollbar { display: none; }
.gr-res-carrusel:focus-visible { outline: 2px solid var(--gr-morado); outline-offset: -2px; }

.gr-res ul.gr-res-lista { display: flex; gap: 14px; padding: 22px 20px 18px; }
.gr-res-tarjeta { display: flex; flex: 0 0 84%; max-width: 340px; scroll-snap-align: start; }
.gr-res-resena {
	display: flex; flex-direction: column; width: 100%;
	padding: 22px 22px 20px;
	border: 1px solid var(--gr-morado-10);
	border-radius: var(--gr-radio);
	background: var(--gr-blanco);
	box-shadow: var(--gr-sombra);
}

.gr-res-autor { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gr-res-avatar-link { flex: none; line-height: 0; }
.gr-res .gr-res-avatar {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 40px; height: 40px; margin: 0;
	border-radius: 50%; object-fit: cover;
	background: var(--gr-morado-10);
	color: var(--gr-morado);
	font-size: 16px; font-weight: 500;
}
.gr-res-autor-datos { display: flex; flex-direction: column; min-width: 0; }
.gr-res .gr-res-nombre {
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-size: 15px; font-weight: 500; line-height: 1.35;
	color: var(--gr-texto);
}
.gr-res a.gr-res-nombre:hover { color: var(--gr-morado); text-decoration: underline; text-underline-offset: 3px; }
.gr-res-tiempo { font-size: 13px; line-height: 1.4; color: var(--gr-texto-2); }

.gr-res-texto {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4;
	overflow: hidden; margin-top: 12px;
}
.gr-res .gr-res-texto p { font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--gr-texto); }
.gr-res-tarjeta.gr-res-abierta .gr-res-texto { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }

.gr-res button.gr-res-leer {
	align-self: flex-start;
	width: auto; min-height: 0;
	margin: 10px 0 0; padding: 6px 0;
	border: 0; border-radius: 0;
	background: none; box-shadow: none;
	font: inherit; font-size: 14px; font-weight: 500; line-height: 1.4;
	letter-spacing: normal; text-transform: none;
	color: var(--gr-morado);
	cursor: pointer;
}
.gr-res button.gr-res-leer:hover { text-decoration: underline; text-underline-offset: 3px; background: none; color: var(--gr-morado-osc); }
.gr-res button.gr-res-leer[hidden] { display: none !important; }

.gr-res-puntos { display: flex; justify-content: center; gap: 6px; height: 6px; margin: 2px 0 6px; }
.gr-res-punto { width: 6px; height: 6px; border-radius: 3px; background: var(--gr-morado-18); transition: width .25s ease, background-color .25s ease; }
.gr-res-punto-activo { width: 18px; background: var(--gr-morado); }

/* ---------- Botones ---------- */
.gr-res-acciones { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding: 0 20px; }
.gr-res-acciones-izq { padding: 0; margin-top: 24px; }
.gr-res a.gr-res-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 26px;
	border: 1px solid transparent; border-radius: 999px;
	font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center; letter-spacing: .01em;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.gr-res a.gr-res-btn-pri, .gr-res a.gr-res-btn-wa { background: var(--gr-morado); color: var(--gr-blanco); }
.gr-res a.gr-res-btn-pri:hover, .gr-res a.gr-res-btn-pri:focus-visible,
.gr-res a.gr-res-btn-wa:hover, .gr-res a.gr-res-btn-wa:focus-visible { background: var(--gr-morado-osc); color: var(--gr-blanco); }
.gr-res a.gr-res-btn-sec { border-color: var(--gr-morado-35); background: transparent; color: var(--gr-morado); }
.gr-res a.gr-res-btn-sec:hover, .gr-res a.gr-res-btn-sec:focus-visible { border-color: var(--gr-morado); background: var(--gr-blanco); color: var(--gr-morado); }
/* El verde de WhatsApp solo en el ícono */
.gr-res-icono { width: 20px; height: 20px; flex: none; color: var(--gr-whatsapp); }
.gr-res a.gr-res-btn:focus-visible, .gr-res a.gr-res-resumen:focus-visible, .gr-res a.gr-res-proc:focus-visible { outline: 2px solid var(--gr-morado); outline-offset: 3px; }

.gr-res .gr-res-atribucion { margin-top: 20px; padding: 0 20px; font-size: 12px; line-height: 1.4; text-align: center; color: var(--gr-texto-2); }

/* ---------- Páginas de sede: datos y mapa ---------- */
.gr-res-sede { margin: 36px 0; }
.gr-res-sede-grid { display: grid; gap: 16px; }
.gr-res-panel { padding: 28px 22px; border: 1px solid var(--gr-morado-10); border-radius: 20px; background: var(--gr-blanco); box-shadow: var(--gr-sombra); }
.gr-res .gr-res-titulo-izq { text-align: left; }
.gr-res .gr-res-aviso {
	margin: 0 0 22px; padding: 12px 16px;
	border-left: 3px solid var(--gr-morado);
	border-radius: 4px 12px 12px 4px;
	background: var(--gr-morado-04);
	font-size: 15px; font-weight: 500; line-height: 1.55;
	color: var(--gr-morado);
}
.gr-res .gr-res-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin: 0; }
.gr-res-dato { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--gr-morado-10); }
.gr-res-dato-mitad { grid-column: auto; }
.gr-res .gr-res-datos dt { margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gr-texto-2); }
.gr-res .gr-res-datos dd { margin: 0; font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--gr-texto); }
.gr-res .gr-res-datos dd strong { font-weight: 500; color: var(--gr-texto); }
.gr-res .gr-res-datos dd a { color: var(--gr-morado); font-weight: 400; }
.gr-res .gr-res-datos dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gr-res .gr-res-horario li { display: flex; justify-content: space-between; gap: 12px; }
.gr-res .gr-res-horario li span:last-child { color: var(--gr-texto); font-weight: 400; text-align: right; white-space: nowrap; }
.gr-res-precio { font-size: 22px; font-weight: 500; color: var(--gr-texto); }

.gr-res-mapa { min-height: 280px; overflow: hidden; border: 1px solid var(--gr-morado-10); border-radius: 20px; background: var(--gr-morado-04); box-shadow: var(--gr-sombra); }
.gr-res-mapa iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; }

/* ---------- Procedimientos ---------- */
.gr-res-procs { margin: 44px 0; text-align: center; }
.gr-res ul.gr-res-procs-lista { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; text-align: left; }
.gr-res-procs-lista > li { flex: 1 1 100%; }
.gr-res a.gr-res-proc {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	height: 100%; padding: 18px 20px;
	border: 1px solid var(--gr-morado-10); border-radius: 14px;
	background: var(--gr-blanco);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.gr-res a.gr-res-proc:hover { border-color: var(--gr-morado-35); box-shadow: var(--gr-sombra-hover); transform: translateY(-1px); }
.gr-res-proc-txt { display: flex; flex-direction: column; gap: 2px; }
.gr-res-proc-nombre { font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--gr-texto); }
.gr-res-proc-desc { font-size: 13.5px; font-weight: 300; line-height: 1.4; color: var(--gr-texto-2); }
.gr-res-flecha { width: 16px; height: 16px; flex: none; color: var(--gr-morado); transition: transform .2s ease; }
.gr-res a.gr-res-proc:hover .gr-res-flecha { transform: translateX(3px); }

/* ---------- Llamada a la acción ---------- */
.gr-res-cta { margin: 44px 0; padding: 40px 22px; border-radius: 24px; background: var(--gr-morado-04); text-align: center; }
.gr-res .gr-res-cta-texto { max-width: 460px; margin: -4px auto 24px; font-size: 16px; font-weight: 300; line-height: 1.65; color: var(--gr-texto); }

/* Franja en pantallas angostas: estrellas y nota arriba, total abajo */
@media (max-width: 479px) {
	.gr-res a.gr-res-resumen { flex-direction: column; gap: 4px; padding: 12px 22px; border-radius: 20px; }
	.gr-res .gr-res-resumen-sep, .gr-res .gr-res-chevron { display: none; }
}

/* ---------- Tablet / escritorio ---------- */
@media (min-width: 560px) {
	.gr-res-acciones { flex-direction: row; justify-content: center; }
	.gr-res-acciones-izq { justify-content: flex-start; flex-wrap: wrap; }
	.gr-res-procs-lista > li { flex: 0 1 calc((100% - 10px) / 2); }
}

@media (min-width: 900px) {
	.gr-res .gr-res-titulo { font-size: 32px; }
	.gr-res-bloque { padding: 52px 0 36px; }
	.gr-res-carrusel { overflow: visible; scroll-snap-type: none; }
	.gr-res ul.gr-res-lista { flex-wrap: wrap; justify-content: center; gap: 20px; padding: 28px 32px 8px; }
	.gr-res-tarjeta { flex: 0 1 calc((100% - 40px) / 3); max-width: none; }
	.gr-res-puntos { display: none; }
	.gr-res-sede-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; }
	.gr-res-panel { padding: 36px 34px; }
	.gr-res-mapa, .gr-res-mapa iframe { min-height: 100%; }
	.gr-res ul.gr-res-procs-lista { gap: 12px; }
	.gr-res-procs-lista > li { flex: 0 1 calc((100% - 36px) / 4); }
	.gr-res-cta { padding: 52px 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.gr-res *, .gr-res *::before, .gr-res *::after { transition: none !important; }
}
