/* ==========================================================================
   ROMERO FOTOS - Estilos personalizados (layout minimalista: sidebar + visor)
   ========================================================================== */

:root {
	--rf-dark: #0e0e0e;
	--rf-light: #fafafa;
	--rf-line: #2a2a2a;
	--rf-text-muted: #888;
	--rf-sidebar-w: 10vw;
	--rf-sidebar-min: 200px;
	--rf-font-display: 'Cormorant Garamond', Georgia, serif;
	--rf-font-body: 'Inter', Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@300;400;500&display=swap');

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
	font-family: var(--rf-font-body);
	font-weight: 300;
	font-size: 0.9rem;
	background: var(--rf-dark);
	color: #eee;
	overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- LAYOUT GENERAL ---------- */
.rf-layout {
	display: flex;
	min-height: 100vh;
}

/* ---------- SIDEBAR (10% fijo) ---------- */
.rf-sidebar {
	width: var(--rf-sidebar-w);
	min-width: var(--rf-sidebar-min);
	flex: 0 0 auto;
	background: var(--rf-dark);
	border-right: 1px solid var(--rf-line);
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}
.rf-sidebar-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 2rem 1.25rem;
}

.rf-sidebar-logo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
	margin-bottom: 2.5rem;
}
.rf-sidebar-logo img { max-width: 33%; height: auto; }
.rf-sidebar-name {
	font-family: var(--rf-font-display);
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	color: #fff;
	line-height: 1.2;
}

.rf-sidebar-nav { flex: 1 1 auto; overflow-y: auto; }
.rf-sidebar-list li { margin-bottom: 0.85rem; }
.rf-sidebar-list a {
	display: block;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	color: #aaa;
	transition: color 0.2s ease, padding-left 0.2s ease;
	padding-left: 0;
	border-left: 2px solid transparent;
	padding-left: 0.6rem;
}
.rf-sidebar-list a:hover,
.rf-sidebar-list a.is-active {
	color: #fff;
	border-left-color: #fff;
}

.rf-sidebar-legal {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rf-line);
}
.rf-legal-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.85rem; }
.rf-legal-list a {
	font-size: 0.72rem;
	color: var(--rf-text-muted);
	letter-spacing: 0.03em;
}
.rf-legal-list a:hover { color: #ccc; }
.rf-copyright { font-size: 0.68rem; color: #555; margin: 0; }

/* Botón hamburguesa (solo móvil/tablet) */
.rf-sidebar-toggle {
	position: fixed;
	top: 1rem; left: 1rem;
	z-index: 1050;
	width: 42px; height: 42px;
	background: rgba(14,14,14,0.85);
	border: 1px solid var(--rf-line);
	border-radius: 50%;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	backdrop-filter: blur(4px);
}
.rf-sidebar-toggle span {
	width: 18px; height: 1px; background: #fff; display: block;
}

/* ---------- MAIN ---------- */
.rf-main {
	flex: 1 1 auto;
	min-width: 0;
	background: var(--rf-light);
	color: var(--rf-dark);
}

/* ---------- VISOR DE PORTADA (90%) ---------- */
.rf-viewer {
	position: relative;
	width: 100%;
	height: 100vh;
	background: var(--rf-dark);
	overflow: hidden;
}
.rf-viewer-slide {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.rf-viewer-slide.is-active { opacity: 1; }

.rf-viewer-caption {
	position: absolute;
	bottom: 2.5rem; left: 2.5rem;
	color: #fff;
	font-family: var(--rf-font-display);
	font-size: 1.4rem;
	letter-spacing: 0.03em;
	border-bottom: 1px solid rgba(255,255,255,0.4);
	padding-bottom: 0.25rem;
	z-index: 2;
}
.rf-viewer-caption:hover { border-color: #fff; }

.rf-viewer-dots {
	position: absolute;
	bottom: 2.5rem; right: 2.5rem;
	display: flex; gap: 0.5rem;
	z-index: 2;
}
.rf-viewer-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.6);
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease;
}
.rf-viewer-dot.is-active { background: #fff; }

.rf-viewer-empty {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rf-text-muted);
	font-size: 0.9rem;
	text-align: center;
	padding: 2rem;
}

/* ---------- PAGE HEADER (galerías individuales / archivo / páginas legales) ---------- */
.rf-page-header {
	min-height: 40vh;
	background-color: var(--rf-dark);
	background-size: cover;
	background-position: center;
	display: flex; align-items: center; justify-content: center;
	position: relative;
}
.rf-page-header-simple { min-height: 26vh; background: var(--rf-dark); }
.rf-page-header-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.rf-page-title { font-family: var(--rf-font-display); font-size: clamp(1.8rem, 3.2vw, 2.8rem); color: #fff; margin: 0; }
.rf-eyebrow {
	display: inline-block;
	color: #ccc;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 0.7rem;
	margin-bottom: 0.5rem;
}

/* ---------- SECTIONS GENÉRICAS (galerías, blog, páginas) ---------- */
.rf-section { padding: 4rem 2.5rem; }
.rf-section-title { font-family: var(--rf-font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

/* ---------- GALLERY CARDS (archivo de galerías) ---------- */
.rf-gallery-card {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	position: relative;
	display: block;
}
.rf-gallery-card img { width: 100%; height: 100%; transition: transform 0.6s ease; }
.rf-gallery-card:hover img { transform: scale(1.06); }
.rf-gallery-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #2b2b2b, #111); }
.rf-gallery-overlay {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 1.25rem;
	background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.75) 100%);
	color: #fff;
}
.rf-gallery-cat { text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.1em; color: #ccc; }
.rf-gallery-name { font-family: var(--rf-font-display); color: #fff; margin: 0; font-size: 1.15rem; }

/* ---------- FILTROS / PAGINACIÓN ---------- */
.rf-filters a { font-size: 0.78rem; }
.rf-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.2rem; height: 2.2rem; margin: 0 0.2rem;
	border-radius: 50%; color: var(--rf-dark); text-decoration: none;
	border: 1px solid #ddd; font-size: 0.85rem;
}
.rf-pagination .page-numbers.current { background: var(--rf-dark); color: #fff; border-color: var(--rf-dark); }

/* ---------- LIGHTBOX (galería individual) ---------- */
.rf-lightbox-item img { aspect-ratio: 1 / 1; width: 100%; transition: transform 0.4s ease, opacity 0.4s ease; }
.rf-lightbox-item:hover img { transform: scale(1.04); opacity: 0.9; }
.rf-lightbox-modal .modal-content { background: transparent; }
.rf-lightbox-close { position: absolute; top: -3rem; right: 0; z-index: 5; }
.rf-gallery-desc p { color: #555; line-height: 1.8; }

/* ---------- BLOG (index/single genérico, por si se usa) ---------- */
.rf-blog-card { background: #fff; border: 1px solid #eee; }
.rf-blog-thumb img { width: 100%; aspect-ratio: 4/3; }
.rf-page-content { line-height: 1.8; }
.rf-page-content h2, .rf-page-content h3 { font-family: var(--rf-font-display); }

/* ---------- RESPONSIVE: sidebar se convierte en panel deslizante ---------- */
@media (max-width: 991.98px) {
	.rf-sidebar-toggle { display: flex; }

	.rf-layout { display: block; }

	.rf-sidebar {
		position: fixed;
		top: 0; left: 0;
		width: 80vw;
		max-width: 300px;
		min-width: 0;
		height: 100vh;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		z-index: 1040;
		box-shadow: 2px 0 12px rgba(0,0,0,0.4);
	}
	.rf-sidebar.is-open { transform: translateX(0); }

	.rf-main { width: 100%; }

	.rf-section { padding: 3rem 1.25rem; }
	.rf-viewer-caption,
	.rf-viewer-dots { left: 1.25rem; right: 1.25rem; bottom: 1.5rem; }
}
