/*
 * ============================================================
 * ARCHIVO:  wp-content/plugins/fr2-estrenos/assets/fr2es.css
 * ============================================================
 *
 * QUÉ HACE
 *   Diseño del pop-up de estrenos (fondo oscuro, tarjeta con la imagen,
 *   etiqueta "ESTRENO", X para cerrar, título y botón).
 *
 * LÓGICA
 *   Responsive: en el celular ocupa casi todo el ancho; en el PC tiene
 *   un máximo de 400 px. La imagen nunca pasa del 68% del alto de la
 *   pantalla, así el botón siempre se ve sin hacer scroll.
 *   Todo usa el prefijo fr2es- para no afectar nada más de la tienda.
 *
 * ARCHIVOS RELACIONADOS
 *   assets/fr2es.js, includes/class-fr2es-frontend.php
 *
 * DATOS QUE USA
 *   Ninguno.
 *
 * TEXTOS EDITABLES
 *   Colores: rosado #e5179a (botón y etiqueta).
 *
 * HISTORIAL
 *   1.0.0 (2026-10-23) Primera versión.
 * ============================================================
 */

html.fr2es-abierto,
html.fr2es-abierto body { overflow: hidden; }

.fr2es-fondo {
	position: fixed; inset: 0; z-index: 2147483000;
	display: flex; align-items: center; justify-content: center; padding: 16px;
	background: rgba(12, 10, 20, .72);
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	opacity: 0; transition: opacity .22s ease;
	font-family: Roboto, Arial, sans-serif;
}
.fr2es-fondo.es-visible { opacity: 1; }
.fr2es-fondo * { box-sizing: border-box; }

.fr2es-caja {
	position: relative; width: min(400px, 92vw);
	background: #141018; border-radius: 18px; overflow: hidden;
	box-shadow: 0 24px 60px rgba(0,0,0,.55);
	transform: translateY(14px) scale(.96); transition: transform .26s cubic-bezier(.2,.9,.3,1.2);
}
.fr2es-fondo.es-visible .fr2es-caja { transform: none; }

.fr2es-marco { position: relative; display: block; line-height: 0; text-decoration: none !important; }
.fr2es-img {
	display: block; width: 100%; height: auto; max-height: 68vh; max-height: 68dvh;
	object-fit: cover; background: #222;
}
.fr2es-etiqueta {
	position: absolute; left: 12px; top: 12px; line-height: 1;
	background: #e5179a; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px;
	padding: 6px 10px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.fr2es-cerrar {
	position: absolute; right: 10px; top: 10px; z-index: 2;
	width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	background: rgba(0,0,0,.6); color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.fr2es-cerrar:hover, .fr2es-cerrar:focus-visible { background: rgba(0,0,0,.85); outline: 2px solid #fff; outline-offset: 1px; }

.fr2es-pie { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.fr2es-titulo { color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center; }
.fr2es-boton {
	display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px;
	background: #e5179a; color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(229,23,154,.35);
}
.fr2es-boton:hover { background: #c8107f; }

@media (prefers-reduced-motion: reduce) {
	.fr2es-fondo, .fr2es-caja { transition: none; }
}
