/*
 * style-videos.css — Page Template: Videos
 * Dalia Monroy theme — paleta heredada del theme principal
 */

/* ============================================================
   HERO
   ============================================================ */
.videos-hero {
	background: var(--negro);
	padding: 70px 0 44px;
	border-bottom: 1px solid rgba(254,154,46,0.12);
}

.videos-hero .titulo {
	padding: 0 30px;
}

.videos-subtitulo {
	display: block;
	font-size: 10px;
	letter-spacing: 5px;
	text-transform: uppercase;
	color: var(--color2);
	margin-bottom: 12px;
	font-weight: 300;
}

.videos-hero h1 {
	font-size: clamp(28px, 5vw, 50px);
	line-height: 1.1;
	color: var(--color1);
	margin-bottom: 0;
}

/* ============================================================
   FILTROS
   ============================================================ */
.videos-filtros-wrap {
	background: var(--negro);
	position: sticky;
	top: 0;
	z-index: 90;
	border-bottom: 1px solid rgba(255,255,255,0.05);
}

.videos-filtros {
	padding: 16px 30px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.filtro-btn {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.15);
	color: rgba(255,255,255,0.5);
	font-family: "Lato", Arial, sans-serif;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 7px 16px;
	cursor: pointer;
	border-radius: 2px;
	transition: all 0.2s ease;
}
.filtro-btn:hover  { border-color: var(--color2); color: var(--color2); }
.filtro-btn.activo { background: var(--color1); border-color: var(--color1); color: #000; font-weight: 700; }

/* ============================================================
   GRID
   ============================================================ */
.videos-main {
	background: var(--negro);
	padding: 48px 0 80px;
	min-height: 50vh;
}

.videos-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding: 0 30px;
}

@media (max-width: 860px)  { .videos-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px)  { .videos-grid { grid-template-columns: 1fr; padding: 0 16px; } }

.video-card {
	transition: opacity 0.3s ease;
}
.video-card.oculto { display: none; }

/* ============================================================
   MINIATURA — el video en sí, pausado
   ============================================================ */
.video-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #080808;
	overflow: hidden;
	cursor: pointer;
	border-radius: 3px;
}

/* El <video> llena el contenedor, sin controles */
.video-preview {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none; /* el clic lo maneja el wrap */
}

/* Capa oscura + play siempre visible */
.video-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.38);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease;
}

.video-thumb-wrap:hover .video-overlay {
	background: rgba(0,0,0,0.18);
}

/* Botón play */
.play-circle {
	width: 58px;
	height: 58px;
	color: #fff;
	filter: drop-shadow(0 2px 16px rgba(0,0,0,0.7));
	transition: transform 0.25s ease, color 0.25s ease;
}

.video-thumb-wrap:hover .play-circle {
	transform: scale(1.1);
	color: var(--color1);
}

.play-circle svg {
	width: 100%;
	height: 100%;
}

/* Año */
.video-year {
	position: absolute;
	bottom: 9px;
	right: 11px;
	font-size: 10px;
	letter-spacing: 2px;
	color: rgba(255,255,255,0.45);
	font-family: "Lato", Arial, sans-serif;
	z-index: 2;
}

/* ============================================================
   INFO CARD
   ============================================================ */
.video-info {
	padding: 14px 4px 4px;
}

.video-cat-tag {
	display: inline-block;
	font-size: 9px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--color2);
	margin-bottom: 6px;
}

.video-titulo {
	font-family: "Playfair Display", serif;
	font-size: 17px;
	line-height: 24px;
	font-weight: normal;
	color: var(--blanco);
	margin-bottom: 5px;
	display: block;
}

.video-desc {
	font-size: 13px;
	line-height: 20px;
	color: rgba(255,255,255,0.4);
	font-weight: 200;
}

/* ============================================================
   MODAL
   ============================================================ */
.video-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0,0,0,0.92);
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(8px);
}

.video-modal-overlay.abierto {
	display: flex;
	animation: vm-fade 0.28s ease;
}

@keyframes vm-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.video-modal-box {
	width: 100%;
	max-width: 980px;
	position: relative;
	animation: vm-slide 0.3s ease;
}

@keyframes vm-slide {
	from { transform: translateY(20px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

/* Botón cerrar */
.video-modal-close {
	position: absolute;
	top: -46px;
	right: 0;
	width: 34px;
	height: 34px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 50%;
	cursor: pointer;
	color: rgba(255,255,255,0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.video-modal-close:hover {
	border-color: var(--color1);
	color: var(--color1);
	background: rgba(254,154,46,0.08);
}
.video-modal-close svg { width: 100%; height: 100%; }

/* Player 16:9 */
.video-modal-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 3px;
	overflow: hidden;
}

.video-modal-player video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

/* Meta info */
.video-modal-meta {
	padding: 16px 2px 0;
	border-top: 1px solid rgba(254,154,46,0.15);
	margin-top: 14px;
}
.video-modal-meta h4 {
	font-family: "Playfair Display", serif;
	font-size: 19px;
	color: var(--blanco);
	font-weight: normal;
	margin-bottom: 4px;
}
.video-modal-meta p {
	font-size: 13px;
	color: rgba(255,255,255,0.4);
	line-height: 20px;
}

/* ============================================================
   ESTADO VACÍO
   ============================================================ */
.videos-empty {
	padding: 60px 30px;
	color: rgba(255,255,255,0.45);
	font-size: 15px;
	line-height: 28px;
	max-width: 600px;
}
.videos-empty strong { color: var(--color1); }
.videos-empty ul { margin: 14px 0 18px; list-style: none; }
.videos-empty ul li { padding: 3px 0; }
.videos-empty ul li::before { content: '→ '; color: var(--color2); }
.videos-empty code {
	background: rgba(254,154,46,0.1);
	color: var(--color1);
	padding: 1px 7px;
	border-radius: 3px;
	font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
	.videos-hero { padding: 50px 0 32px; }
	.videos-hero .titulo { padding: 0 16px; }
	.videos-filtros { padding: 12px 16px; }
	.videos-main { padding: 32px 0 56px; }
	.video-modal-close { top: -50px; }
	.play-circle { width: 44px; height: 44px; }
}
