/* ===== Malibu — reseñas con fotos ===== */

/* Fotos dentro de una reseña */
.mlb-rfotos { display: flex; flex-wrap: wrap; gap: .45rem; margin: .2rem 0 .1rem; }
.mlb-rfoto { display: block; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #fce7f0; cursor: zoom-in; }
.mlb-rfoto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.mlb-rfoto:hover img { transform: scale(1.06); }
.mlb-rfoto:focus-visible { outline: 2px solid #ec4899; outline-offset: 2px; }
.woocommerce-Reviews .mlb-rfotos { margin-top: .6rem; }

/* Foto ampliada */
.mlb-rlb { position: fixed; inset: 0; z-index: 100006; display: grid; place-items: center; background: rgba(10, 10, 10, .9); padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.mlb-rlb[hidden] { display: none; }
.mlb-rlb img { max-width: 100%; max-height: 86vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.mlb-rlb__x, .mlb-rlb__nav { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #141414; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mlb-rlb__x { top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }
.mlb-rlb__nav { top: 50%; transform: translateY(-50%); }
.mlb-rlb__nav.is-prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.mlb-rlb__nav.is-next { right: max(10px, env(safe-area-inset-right, 0px)); }
.mlb-rlb__nav[hidden] { display: none; }
html.mlb-rlb-open { overflow: hidden; }

/* Formulario */
.mlb-review-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .mlb-review-form__row { grid-template-columns: minmax(0, 1fr); } }
.mlb-review-form input[type="text"], .mlb-review-form input[type="email"] {
	width: 100%; box-sizing: border-box; min-height: 46px; padding: .7em .9em; border: 1px solid rgba(157, 23, 77, .3); border-radius: 10px;
	background: #fffafc; font: 400 1rem Poppins, system-ui, sans-serif; color: #141414; text-transform: none; letter-spacing: 0;
}
.mlb-review-form input[type="text"]:focus, .mlb-review-form input[type="email"]:focus { outline: none; border-color: #ec4899; box-shadow: 0 0 0 3px rgba(236, 72, 153, .25); }
.mlb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.mlb-review-form__fotos { display: grid; gap: .5rem; }
.mlb-review-form__label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9d174d; }
.mlb-review-form__label em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: #777; }
.mlb-review-form__fotos[data-note]:not([data-note=""])::after { content: attr(data-note); font-size: .8rem; color: #b0412e; }
.mlb-upload { position: relative; display: inline-flex !important; width: max-content; }
.mlb-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.mlb-upload__btn {
	display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .6em 1.2em; border: 1.5px dashed rgba(236, 72, 153, .6); border-radius: 12px;
	background: #fdf6f9; color: #141414; font: 500 .9rem Poppins, system-ui, sans-serif; text-transform: none; letter-spacing: 0;
}
.mlb-upload__btn svg { width: 20px; height: 20px; color: #ec4899; }
.mlb-upload:hover .mlb-upload__btn, .mlb-upload input:focus-visible + .mlb-upload__btn { border-color: #ec4899; background: #fce7f0; }
.mlb-review-form__fotos.is-full .mlb-upload { display: none !important; }
.mlb-upload__preview { display: flex; flex-wrap: wrap; gap: .5rem; }
.mlb-upload__preview:empty { display: none; }
.mlb-upload__thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #fce7f0; }
.mlb-upload__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mlb-upload__thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(20, 20, 20, .75); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.mlb-review-form button[type="submit"]:disabled { opacity: .7; cursor: wait; }

/* Estrellas debajo de su título */
.mlb-review-form .mlb-rate { display: grid; justify-content: start; gap: .35rem; }
.mlb-review-form .mlb-rate legend { float: none; width: auto; margin: 0 0 .35rem; padding: 0; }
.mlb-rate__stars { display: inline-flex; flex-direction: row-reverse; justify-self: start; gap: .2rem; }

/* ===== Tarjeta con foto de portada y el comentario encima (página de reseñas y tablero) ===== */
.mlb-cov { padding: 0 !important; gap: 0 !important; overflow: hidden; border: 0 !important; border-radius: 22px; background: #fff;
	box-shadow: 0 1px 0 rgba(20, 20, 20, .04), 0 24px 46px -30px rgba(157, 23, 77, .45); }
.mlb-cov::before { content: none !important; }
.mlb-cov__media { position: relative; overflow: hidden; background: #fce7f0; }
.mlb-cov__img { display: block; cursor: zoom-in; }
.mlb-cov__img img { display: block; width: 100%; height: auto; min-height: 340px; max-height: 560px; object-fit: cover; border-radius: 0 !important; transition: transform .6s ease; }
.mlb-cov:hover .mlb-cov__img img { transform: scale(1.03); }
.mlb-cov__count { position: absolute; top: 12px; right: 12px; z-index: 2; padding: .3em .8em; border-radius: 99px; background: rgba(20, 20, 20, .72); color: #fff; font: 600 .74rem Poppins, system-ui, sans-serif; pointer-events: none; }
.mlb-cov__over {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: .4rem; max-height: 100%; box-sizing: border-box;
	padding: 72px 18px 16px; color: #fff; pointer-events: none; /* tocar el texto también abre la foto */
	background: linear-gradient(to top, rgba(20, 10, 15, .85), rgba(20, 10, 15, .5) 55%, transparent);
}
.mlb-cov__over .mlb-stars { color: #f9a8d4; }
.mlb-cov__over .mlb-stars svg { color: rgba(255, 255, 255, .35); }
.mlb-cov__over .mlb-stars svg.is-on { color: #f9a8d4; }
.mlb-cov__text { font: 400 .95rem/1.55 Poppins, system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); max-height: calc(1.55em * 6); overflow: hidden; }
.mlb-cov__text p { margin: 0 0 .4em; color: inherit; }
.mlb-cov__text p:last-child { margin: 0; }
.mlb-cov .mlb-cov__more {
	justify-self: start; margin: 0; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none; pointer-events: auto;
	color: #f9a8d4 !important; font: 600 .8rem Poppins, system-ui, sans-serif !important; letter-spacing: 0; text-transform: none; text-decoration: underline; cursor: pointer;
}
.mlb-cov__more[hidden] { display: none; }
.mlb-cov.is-open .mlb-cov__over { top: 0; overflow: auto; pointer-events: auto; background: rgba(20, 10, 15, .82); padding-top: 18px; align-content: end; }
.mlb-cov.is-open .mlb-cov__text { max-height: none; }
/* Pie: nombre y producto */
.mlb-testi.mlb-cov footer { margin: 0; padding: 12px 16px 14px; border-top: 0; }
.mlb-pin.mlb-cov .mlb-pin__body { padding: 12px 16px 14px; }
.mlb-pin.mlb-cov .mlb-pin__foot { padding-top: 0; border-top: 0; }

/* Reseñas sin foto: tarjeta de cita */
.mlb-testi--txt { border: 0 !important; border-radius: 22px; background: linear-gradient(160deg, #fce7f0, #fff 75%);
	box-shadow: 0 1px 0 rgba(20, 20, 20, .04), 0 24px 46px -30px rgba(157, 23, 77, .45); }
.mlb-testi--txt blockquote { font: italic 500 1.08rem/1.5 "Playfair Display", Georgia, serif; }

@media (max-width: 619px) {
	.mlb-cov { border-radius: 16px; }
	.mlb-cov__img img { min-height: 240px; }
	.mlb-cov__over { padding: 54px 11px 11px; gap: .3rem; }
	.mlb-cov__text { font-size: .8rem; max-height: calc(1.55em * 5); }
	.mlb-cov__over .mlb-stars svg { width: 13px; height: 13px; }
	.mlb-testi.mlb-cov footer, .mlb-pin.mlb-cov .mlb-pin__body { padding: 9px 11px 11px; }
}
@media (prefers-reduced-motion: reduce) { .mlb-cov__img img { transition: none; } }

/* Reseña de otro producto de la misma categoría */
.mlb-rg-about { margin: .4rem 0 0; font-size: .78rem; color: #6b6b6b; }
.mlb-rg-about a { color: #9d174d; font-weight: 600; text-decoration: none; }
