/*
Theme Name: Artede Theme
Theme URI: http://artede.local
Description: Tema clásico a medida, minimalista y ultra-rápido, diseñado para el portfolio de Rafaela Grande.
Author: Antigravity
Author URI: https://google.com
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artede-theme
Tags: portfolio, custom-menu, featured-images, one-column, translation-ready
*/

/* Variables Globales */
:root {
	--font-serif: "Libre Baskerville", serif;
	--font-sans: "Source Sans 3", sans-serif;
	
	--color-bg-base: #fcfcfc;
	--color-text-base: #1c1917;
	--color-primary-base: #44403c; /* Stone gris oscuro para mejor contraste */
	--color-secondary: #c2410c; /* Terracota */
	--color-white: #ffffff;
	--color-gray-light: #f5f5f4;
	
	/* Variables que cambian de forma dinámica */
	--color-bg: var(--color-bg-base);
	--color-contrast: var(--color-text-base);
	--color-primary: var(--color-primary-base);
	
	--width-content: 800px;
	--width-wide: 1200px;
	
	--transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
	--transition-theme: background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1), color 0.8s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
	--transition-fast: all 0.3s ease;
}

/* Reset Básico */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	overflow-x: hidden;
	width: 100%;
}

body {
	background-color: var(--color-bg);
	color: var(--color-contrast);
	font-family: var(--font-sans);
	font-size: 1.1rem;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: var(--transition-theme);
}

/* Transiciones globales para un cambio de tema suave y elegante */
h1, h2, h3, h4, h5, h6, p, a, span, li, button, .site-header, .site-footer, .gallery-page-header, .gallery-page-intro {
	transition: var(--transition-theme);
}

/* Tema Oscuro (Activado dinámicamente en scroll por JS) */
body.theme-dark {
	--color-bg: #121212; /* Negro carbón de museo */
	--color-contrast: #fafaf9; /* Blanco crema */
	--color-primary: #d6d3d1; /* Stone gris claro para lectura nítida */
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition-fast);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Estilos de Contenedor */
.container {
	width: 100%;
	max-width: var(--width-wide);
	margin: 0 auto;
	padding: 0 2rem;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	font-weight: 300;
	line-height: 1.25;
	color: var(--color-contrast);
	letter-spacing: 0.03em;
}

.text-spaced {
	font-size: 0.75rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-family: var(--font-sans);
	color: var(--color-primary);
	font-weight: 600;
}

/* Cabecera / Navegación */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: rgba(252, 252, 252, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: 1000;
	border-bottom: 1px solid rgba(0, 0, 0, 0.03);
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.8s ease, border-color 0.8s ease;
}

/* Cuando el fondo de la web se vuelve oscuro, la cabecera se adapta de forma fluida */
body.theme-dark .site-header {
	background-color: rgba(18, 18, 18, 0.95);
	border-color: rgba(255, 255, 255, 0.03);
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 90px;
}

.site-logo-link {
	display: flex;
	align-items: center;
}

.site-logo {
	height: 60px;
	width: auto;
	display: block;
	transition: var(--transition-fast);
	object-fit: contain;
}

body.theme-dark .site-logo {
	content: url("/wp-content/uploads/2024/07/Arte-D-logo-blanco.png");
}

.site-logo:hover {
	transform: scale(1.05);
}

.main-navigation ul {
	display: flex;
	list-style: none;
	gap: 2.5rem;
}

.main-navigation a {
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--color-contrast);
	opacity: 0.7;
	transition: var(--transition-fast);
}

.main-navigation a:hover {
	opacity: 1;
	color: var(--color-secondary);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
	opacity: 1;
	color: var(--color-secondary);
}

.menu-toggle {
	display: none;
}

/* Espacio principal */
main {
	margin-top: 90px;
}

/* 1. Sección Hero (Asimetría Editorial) */
.hero-section {
	padding: 8rem 0 4rem;
}

.hero-layout {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 4rem;
	align-items: center;
	position: relative;
}

.hero-title-group {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.hero-main-title {
	font-size: 5rem;
	line-height: 1.05;
	font-weight: 300;
	letter-spacing: 0.05em;
}

.hero-main-title .title-last-name {
	display: block;
	padding-left: 2rem;
	color: var(--color-secondary);
	font-style: italic;
	font-family: var(--font-serif);
}

.hero-text {
	font-size: 1.15rem;
	line-height: 1.8;
	color: var(--color-primary);
	max-width: 440px;
}

.cta-scroll-link {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--color-contrast);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	align-self: flex-start;
	transition: var(--transition-fast);
}

.cta-scroll-link:hover {
	color: var(--color-secondary);
}

.cta-scroll-link:hover .arrow {
	transform: translateY(4px);
}

.cta-scroll-link .arrow {
	transition: transform 0.3s ease;
}

.hero-image-container {
	position: relative;
	width: 100%;
	max-width: 580px;
	justify-self: end;
	display: flex;
	flex-direction: column;
}

.hero-image-wrapper {
	position: relative;
	width: 100%;
	box-shadow: 0 30px 60px rgba(0,0,0,0.06);
	overflow: hidden;
	background-color: transparent !important;
	background: transparent !important;
}

.hero-image-wrapper img {
	width: 100%;
	height: auto;
	display: block;
	transition: filter 0.5s ease;
}

.image-caption {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	color: var(--color-primary);
	text-align: right;
	margin-top: 1rem;
	font-style: italic;
	font-family: var(--font-serif);
}

/* 2. Sección de Cita Poética */
.quote-section {
	padding: 10rem 0;
	display: flex;
	justify-content: center;
}

.quote-container-inner {
	max-width: 780px;
	text-align: center;
	position: relative;
}

.quote-decorative-mark {
	font-size: 10rem;
	font-family: var(--font-serif);
	line-height: 1;
	color: var(--color-secondary);
	opacity: 0.15;
	position: absolute;
	top: -5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: -1;
}

.quote-text {
	font-family: var(--font-serif);
	font-size: 2.2rem;
	line-height: 1.6;
	font-weight: 300;
	font-style: italic;
	margin-bottom: 2rem;
	color: var(--color-contrast);
}

.quote-author {
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--color-primary);
}

/* 3. Showcase Alterno de Colecciones */
.showcase-block {
	padding: 12rem 0;
	transition: var(--transition-theme);
	position: relative;
}

.showcase-block[data-theme="dark"] {
	background-color: var(--color-bg); /* Cambiará a negro por la variable */
}

.showcase-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 2rem;
	align-items: center;
}

/* Disposición asimétrica: Imagen Izquierda, Contenido Derecha */
.showcase-block.image-left .showcase-image-container {
	grid-column: 1 / 8;
	grid-row: 1;
}

.showcase-block.image-left .showcase-content-container {
	grid-column: 9 / 13;
	grid-row: 1;
}

/* Disposición asimétrica: Contenido Izquierda, Imagen Derecha */
.showcase-block.image-right .showcase-image-container {
	grid-column: 6 / 13;
	grid-row: 1;
}

.showcase-block.image-right .showcase-content-container {
	grid-column: 1 / 5;
	grid-row: 1;
}

/* Efecto Parallax en la Imagen */
.showcase-image-container {
	position: relative;
	width: 100%;
	box-shadow: 0 25px 50px rgba(0,0,0,0.05);
	overflow: hidden;
}

.showcase-image-wrapper {
	width: 100%;
	max-height: 600px;
	overflow: hidden;
	background-color: transparent;
}

body.theme-dark .showcase-image-wrapper {
	background-color: transparent;
}

.showcase-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: filter 0.5s ease;
}

/* Contenido de la Colección */
.showcase-content-inner {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.showcase-meta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.showcase-num {
	font-family: var(--font-serif);
	font-size: 2rem;
	color: var(--color-secondary);
	font-style: italic;
	line-height: 1;
}

.showcase-tag {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--color-primary);
}

.showcase-title {
	font-size: 2.6rem;
	font-weight: 300;
}

.showcase-desc {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--color-primary);
}

.showcase-link-action {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--color-contrast);
	border-bottom: 2px solid var(--color-secondary);
	padding-bottom: 4px;
	align-self: flex-start;
	transition: var(--transition-fast);
}

.showcase-link-action:hover {
	color: var(--color-secondary);
	border-bottom-color: var(--color-contrast);
}

/* 4. Biografía y Filosofía (La Artista) */
.biography-section {
	padding: 12rem 0;
	background-color: var(--color-bg);
}

.bio-grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 6rem;
	align-items: center;
}

.bio-image-container {
	position: relative;
	box-shadow: 0 20px 40px rgba(0,0,0,0.03);
	overflow: hidden;
}

.bio-image-wrapper {
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background-color: transparent;
}

.bio-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.bio-image-container:hover img {
	transform: scale(1.02);
}

.bio-content {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.bio-title {
	font-size: 3rem;
	font-weight: 300;
}

.bio-intro {
	font-size: 1.3rem;
	line-height: 1.7;
	color: var(--color-secondary);
	font-weight: 300;
}

.bio-content p {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--color-primary);
}

/* 5. Sección de Contacto */
.contact-section {
	padding: 8rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	background-color: var(--color-bg);
}

body.theme-dark .contact-section {
	border-top-color: rgba(255, 255, 255, 0.05);
}

.contact-grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 6rem;
}

.contact-title-group {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact-heading {
	font-size: 2.8rem;
	font-weight: 300;
	line-height: 1.2;
}

.contact-details {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.contact-details p {
	font-size: 1.15rem;
	line-height: 1.8;
	color: var(--color-primary);
}

.email-link {
	font-size: 2.2rem;
	font-weight: 300;
	color: var(--color-secondary);
	text-decoration: underline;
	font-family: var(--font-serif);
	transition: var(--transition-fast);
}

.email-link:hover {
	color: var(--color-contrast);
}

/* Pie de Página */
.site-footer {
	padding: 4rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.03);
	background-color: var(--color-bg);
	transition: var(--transition-theme);
}

body.theme-dark .site-footer {
	border-top-color: rgba(255, 255, 255, 0.03);
}

.footer-layout {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-copyright {
	font-size: 0.85rem;
	color: var(--color-primary);
}

.footer-credits {
	font-size: 0.65rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-primary);
	opacity: 0.8;
}

.footer-credits a {
	color: var(--color-contrast);
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	padding-bottom: 1px;
	transition: var(--transition-fast);
}

body.theme-dark .footer-credits a {
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.footer-credits a:hover {
	color: var(--color-secondary);
	border-bottom-color: var(--color-secondary);
}

.footer-credits .heart {
	color: #e25555;
	margin: 0 2px;
	display: inline-block;
}

/* Animaciones */
.reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Responsivo */
@media (max-width: 1024px) {
	.hero-layout, .bio-grid, .contact-grid {
		grid-template-columns: 1fr;
		gap: 3.5rem;
		text-align: center;
	}
	
	.hero-main-title {
		font-size: 4rem;
	}
	
	.hero-main-title .title-last-name {
		padding-left: 0;
	}
	
	.hero-image-container {
		justify-self: center;
	}
	
	.hero-text {
		margin: 0 auto;
	}
	
	.cta-scroll-link {
		align-self: center;
	}
	
	.showcase-block.image-left .showcase-image-container,
	.showcase-block.image-left .showcase-content-container,
	.showcase-block.image-right .showcase-image-container,
	.showcase-block.image-right .showcase-content-container {
		grid-column: 1 / -1;
		grid-row: auto;
	}
	
	.showcase-grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	
	.showcase-block.image-right .showcase-content-container {
		order: 2;
	}
	
	.showcase-content-inner {
		text-align: center;
		align-items: center;
	}
	
	.showcase-link-action {
		align-self: center;
	}
	
	.bio-image-container {
		max-width: 440px;
		margin: 0 auto;
	}
	
	.contact-heading {
		font-size: 2.2rem;
	}
	
	.email-link {
		font-size: 1.8rem;
	}
}

@media (max-width: 860px) {
	.showcase-image-wrapper {
		max-height: 350px;
	}

	.site-header .container {
		height: 75px;
		padding: 0 1.5rem;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 0;
	}
	
	main {
		margin-top: 100px;
	}
	
	/* Mostrar botón Hamburger */
	.menu-toggle {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		background: none;
		border: none;
		cursor: pointer;
		padding: 0;
		width: 48px;
		height: 48px;
		outline: none;
		color: var(--color-secondary);
	}
	
	.hamburger-icon {
		font-size: 1.8rem;
		line-height: 1;
		color: var(--color-secondary);
		font-weight: normal;
		transition: transform 0.25s ease;
	}
	
	.menu-toggle-text {
		font-size: 0.52rem;
		font-family: var(--font-sans);
		letter-spacing: 0.15em;
		text-transform: uppercase;
		font-weight: 700;
		color: var(--color-secondary);
		margin-top: 1px;
		line-height: 1;
	}
	
	/* Dropdown del menú móvil */
	.main-navigation ul {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 75px;
		left: 0;
		width: 100%;
		background-color: rgb(252, 252, 252);
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
		box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
		padding: 2rem 0;
		margin: 0;
		gap: 1.8rem;
		align-items: center;
		z-index: 9999;
	}
	
	body.theme-dark .main-navigation ul {
		background-color: rgb(18, 18, 18);
		border-bottom-color: rgba(255, 255, 255, 0.06);
		box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
	}
	
	.main-navigation.is-open ul {
		display: flex;
	}
	
	.main-navigation a {
		font-size: 0.75rem;
		letter-spacing: 0.25em;
		display: block;
		width: 100%;
		text-align: center;
		padding: 0.5rem 0;
	}
}

@media (max-width: 600px) {
	main {
		margin-top: 90px;
	}
	
	.site-title {
		font-size: 1rem;
	}
	
	.main-navigation a {
		font-size: 0.68rem;
		letter-spacing: 0.2em;
	}
	
	.hero-main-title {
		font-size: 3rem;
	}
	
	.quote-text {
		font-size: 1.6rem;
	}
	
	.showcase-title {
		font-size: 2rem;
	}
	
	.footer-layout {
		flex-direction: column;
		gap: 1.5rem;
		text-align: center;
	}
}

/* 6. Estilos de Exposición de Páginas Interiores (Mural de Galería & Visor Modal) */
.page-interior-main {
	padding: 6rem 0 0;
	background-color: var(--color-bg);
	transition: var(--transition-theme);
}

.gallery-page-header {
	text-align: center;
	padding: 4rem 0 4rem;
	max-width: 800px;
	margin: 0 auto;
}

.gallery-subtitle {
	font-size: 0.75rem;
	letter-spacing: 0.25em;
	color: var(--color-secondary);
	font-weight: 600;
}

.gallery-page-title {
	font-size: 3.8rem;
	font-weight: 300;
	letter-spacing: 0.05em;
	color: var(--color-contrast);
	font-family: var(--font-serif);
	line-height: 1.2;
	margin-top: 0.5rem;
}

.gallery-header-line {
	width: 60px;
	height: 3px;
	background-color: var(--color-secondary);
	margin: 2rem auto;
}

.gallery-page-intro {
	font-size: 1.15rem;
	line-height: 1.8;
	color: var(--color-primary);
}

.gallery-page-intro p {
	margin-bottom: 1.5rem;
}

/* Sección de la Galería Mural (Wall Gallery Masonry) */
.wall-gallery-section {
	padding: 2rem 0 8rem;
	background-color: transparent;
	width: 100vw;
	margin-left: calc(-50vw + 50%); /* Forzar ancho completo de pantalla */
	position: relative;
}

/* Efecto de Enfoque Cinematográfico Global (Toda la página pasa a negro) */
body.gallery-hover-active {
	background-color: #000000 !important;
	--color-bg: #000000;
	--color-contrast: #fafaf9; /* Blanco roto */
	--color-primary: #d6d3d1; /* Gris piedra claro */
}

/* Ajustes dinámicos del Header en hover de galería */
body.gallery-hover-active .site-header {
	background-color: rgba(0, 0, 0, 0.96) !important;
	border-bottom-color: rgba(255, 255, 255, 0.04) !important;
}

body.gallery-hover-active .site-logo {
	content: url("/wp-content/uploads/2024/07/Arte-D-logo-blanco.png") !important;
}

/* Ajustes dinámicos del Footer en hover de galería */
body.gallery-hover-active .site-footer {
	background-color: #000000 !important;
	border-top-color: rgba(255, 255, 255, 0.04) !important;
}

.wall-gallery-grid {
	column-count: 3;
	column-gap: 8px; /* Apenas espacio entre ellas */
	width: 100%;
	max-width: 96vw; /* Ocupa casi toda la pantalla */
	margin: 0 auto;
	padding: 0 1rem;
	transition: background-color 0.8s ease;
}

.wall-gallery-item {
	break-inside: avoid;
	margin-bottom: 8px; /* Apenas espacio vertical entre ellas */
	opacity: 0;
	transform: translateY(30px);
	transition: 
		opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
		transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
		filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.wall-gallery-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.gallery-image-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1);
	cursor: pointer;
	background-color: transparent;
}

body.theme-dark .gallery-image-wrapper {
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
	background-color: transparent;
}

.gallery-image-wrapper img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Efecto de Enfoque y Atenuación en Grupo (Efecto Galería) */
.wall-gallery-grid:hover .wall-gallery-item:not(:hover) {
	opacity: 0.55; /* Oscurecimiento sutil para mantener visibilidad */
	filter: blur(3px) brightness(0.7); /* Difuminado suave y brillo moderado sin grises */
}

.wall-gallery-item:hover .gallery-image-wrapper {
	transform: scale(1.02);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
	z-index: 10;
}

body.theme-dark .wall-gallery-item:hover .gallery-image-wrapper {
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.wall-gallery-item:hover .gallery-image-wrapper img {
	transform: scale(1.03);
}

/* Responsivo para la Galería Masonry */
@media (max-width: 1024px) {
	.wall-gallery-grid {
		column-count: 2;
		column-gap: 6px;
		max-width: 98vw;
	}
	.wall-gallery-item {
		margin-bottom: 6px;
	}
}

@media (max-width: 600px) {
	.wall-gallery-grid {
		column-count: 1;
		column-gap: 0;
	}
	.wall-gallery-item {
		margin-bottom: 8px;
	}
}

/* Capa de Información al pasar el Cursor (Hover overlay) */
.frame-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to top, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.3) 70%, rgba(18, 18, 18, 0) 100%);
	display: flex;
	align-items: flex-end;
	padding: 1.5rem;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.wall-gallery-item:hover .frame-overlay {
	opacity: 1;
}

.frame-overlay-content {
	color: #fafaf9;
}

.frame-title {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 300;
	color: #ffffff;
	margin-bottom: 0.25rem;
}

.frame-meta {
	font-size: 0.7rem;
	letter-spacing: 0.05em;
	opacity: 0.8;
}

/* 7. VISUALIZADOR MODAL INTERACTIVO (Spotlight Lightbox) */
.gallery-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(252, 252, 252, 0.99);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

body.theme-dark .gallery-lightbox {
	background-color: rgba(18, 18, 18, 0.99);
}

.gallery-lightbox.is-active {
	opacity: 1;
	pointer-events: auto;
}

body.lightbox-open {
	overflow: hidden !important;
}

.lightbox-container {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 5rem;
	width: 100%;
	max-width: 1360px;
	height: 80vh;
	padding: 2rem 4rem;
	align-items: stretch; /* Estirar columnas para evitar colapso de alto */
	box-sizing: border-box;
}

/* Columna de la Pintura Completa */
.lightbox-image-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
	position: relative;
}

.lightbox-image-wrapper {
	width: 100%;
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	background-color: transparent;
}

body.theme-dark .lightbox-image-wrapper {
	box-shadow: none;
	background-color: transparent;
}

#lightbox-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	transition: opacity 0.25s ease-out;
	opacity: 0;
}

body.theme-dark #lightbox-img {
	box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Columna Informativa (Cédula) */
.lightbox-info-col {
	max-height: 80vh;
	overflow-y: auto;
	padding-right: 2rem;
}

.lightbox-info-inner {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.lightbox-meta {
	color: var(--color-secondary);
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.25em;
}

.lightbox-title {
	font-size: 3rem;
	font-weight: 300;
	line-height: 1.15;
	color: var(--color-contrast);
}

.lightbox-tech-sheet {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding: 1.5rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.95rem;
	color: var(--color-primary);
}

body.theme-dark .lightbox-tech-sheet {
	border-top-color: rgba(255, 255, 255, 0.08);
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.lightbox-tech-sheet p {
	margin: 0;
}

.lightbox-tech-sheet strong {
	color: var(--color-contrast);
	font-weight: 600;
	margin-right: 0.5rem;
}

.lightbox-desc p {
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--color-primary);
	margin-bottom: 1.5rem;
	text-align: justify;
}

.lightbox-desc p:last-child {
	margin-bottom: 0;
}

/* Botones de Control del Lightbox */
.lightbox-close {
	position: absolute;
	top: 2.5rem;
	right: 3rem;
	font-size: 3rem;
	background: none;
	border: none;
	color: var(--color-contrast);
	cursor: pointer;
	z-index: 10100;
	line-height: 1;
	opacity: 0.6;
	transition: var(--transition-fast);
}

.lightbox-close:hover {
	opacity: 1;
	color: var(--color-secondary);
	transform: scale(1.1);
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 2.5rem;
	background: none;
	border: none;
	color: var(--color-contrast);
	cursor: pointer;
	z-index: 10100;
	opacity: 0.4;
	transition: var(--transition-fast);
	padding: 1rem;
}

.lightbox-nav:hover {
	opacity: 1;
	color: var(--color-secondary);
}

.lightbox-prev {
	left: 2rem;
}

.lightbox-next {
	right: 2rem;
}

/* 8. RESPONSIVO PARA LA GALERÍA Y LIGHTBOX */
@media (max-width: 1024px) {
	.gallery-page-header {
		padding: 4rem 2rem 3rem;
	}
	
	.gallery-page-title {
		font-size: 2.8rem;
	}
	

	
	/* Colapso del Visualizador Spotlight en Tablets / Móviles */
	.lightbox-container {
		grid-template-columns: 1fr;
		height: 100%;
		max-height: 100vh;
		overflow-y: auto;
		padding: 6rem 2.5rem 4rem;
		align-items: start;
		gap: 2rem;
	}
	
	.lightbox-image-col {
		max-height: none;
		height: auto;
		width: 100%;
	}
	
	.lightbox-image-wrapper {
		box-shadow: none;
		background: none;
		height: 35vh;
		flex: none;
	}
	
	#lightbox-img {
		max-height: 100%;
		width: auto;
		margin: 0 auto;
	}
	
	.lightbox-info-col {
		max-height: none;
		overflow-y: visible;
		padding-right: 0;
	}
	
	.lightbox-title {
		font-size: 2.2rem;
	}
	
	.lightbox-desc p {
		text-align: left;
	}
	
	.lightbox-nav {
		top: auto;
		bottom: 2rem;
		transform: none;
		font-size: 2rem;
	}
	
	.lightbox-prev {
		left: 20%;
	}
	
	.lightbox-next {
		right: 20%;
	}
	
	.lightbox-close {
		top: 1.5rem;
		right: 1.5rem;
		font-size: 2.5rem;
	}
}

@media (max-width: 600px) {
	.gallery-page-title {
		font-size: 2.2rem;
	}
	
	.lightbox-title {
		font-size: 1.8rem;
	}
	
	.lightbox-prev {
		left: 10%;
	}
	
	.lightbox-next {
		right: 10%;
	}
}

/* 9. PÁGINA DE CONTACTO EDITORIAL */
.contact-page-layout {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 5rem;
	margin-top: 4rem;
	align-items: start;
}

.contact-info-column {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.contact-artist-photo-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	background-color: transparent;
}

.contact-artist-img {
	width: 100%;
	height: auto;
	display: block;
	filter: grayscale(100%); /* Blanco y negro por defecto */
	transition: filter 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-artist-img:hover {
	filter: grayscale(0%); /* Transición al color al hacer hover */
	transform: scale(1.02);
}

.contact-details-box {
	font-family: var(--font-sans);
}

.contact-artist-name {
	font-family: var(--font-serif);
	font-size: 2rem;
	font-weight: 300;
	margin-bottom: 0.75rem;
	color: var(--color-contrast);
}

.contact-artist-location, .contact-artist-email {
	font-size: 0.95rem;
	color: var(--color-primary);
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.contact-artist-email a {
	color: var(--color-contrast);
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	padding-bottom: 1px;
}

body.theme-dark .contact-artist-email a {
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.contact-artist-email a:hover {
	color: var(--color-secondary);
	border-bottom-color: var(--color-secondary);
}

/* Columna de Formulario */
.contact-form-column {
	background-color: rgba(0, 0, 0, 0.01);
	padding: 3rem;
	border: 1px solid rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

body.theme-dark .contact-form-column {
	background-color: rgba(255, 255, 255, 0.01);
	border-color: rgba(255, 255, 255, 0.05);
}

.artede-contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-group label {
	font-family: var(--font-sans);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 600;
	color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
	width: 100%;
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background-color: transparent;
	font-family: var(--font-sans);
	font-size: 1rem;
	color: var(--color-contrast);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	box-sizing: border-box;
}

body.theme-dark .form-group input[type="text"],
body.theme-dark .form-group input[type="email"],
body.theme-dark .form-group textarea {
	border-color: rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--color-contrast);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.02);
}

body.theme-dark .form-group input:focus,
body.theme-dark .form-group textarea:focus {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.02);
}

.contact-submit-btn {
	padding: 1.2rem 2.5rem;
	background-color: var(--color-contrast);
	color: var(--color-bg);
	border: none;
	font-family: var(--font-sans);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
	align-self: flex-start;
}

.contact-submit-btn:hover {
	background-color: var(--color-secondary);
	color: #ffffff;
	transform: translateY(-2px);
}

.contact-submit-btn:active {
	transform: translateY(0);
}

/* Alertas de Envío */
.contact-alert {
	padding: 1.5rem;
	margin-bottom: 2rem;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	border: 1px solid transparent;
}

.alert-success {
	background-color: rgba(34, 197, 94, 0.08);
	border-color: rgba(34, 197, 94, 0.2);
	color: #15803d;
}

.alert-error {
	background-color: rgba(239, 68, 68, 0.08);
	border-color: rgba(239, 68, 68, 0.2);
	color: #b91c1c;
}

.contact-alert .alert-title {
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.contact-alert ul {
	padding-left: 1.25rem;
	margin: 0;
}

/* Responsividad de Contacto */
@media (max-width: 900px) {
	.contact-page-layout {
		grid-template-columns: 1fr;
		gap: 3.5rem;
	}
	
	.contact-artist-photo-wrapper {
		max-width: 400px;
		margin: 0 auto;
	}
	
	.contact-details-box {
		text-align: center;
	}
	
	.contact-artist-location, .contact-artist-email {
		justify-content: center;
	}
	
	.contact-submit-btn {
		width: 100%;
		align-self: center;
	}
	
	.contact-form-column {
		padding: 2rem;
	}
}

/* 10. ENLACES LEGALES DEL FOOTER */
.footer-legal-links {
	margin-top: 0.75rem;
	display: flex;
	gap: 1.25rem;
}

.footer-legal-links a {
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	color: var(--color-primary);
	text-decoration: none;
	transition: var(--transition-fast);
}

.footer-legal-links a:hover {
	color: var(--color-secondary);
}

@media (max-width: 600px) {
	.footer-legal-links {
		justify-content: center;
		margin-top: 1rem;
	}
}

/* 11. PÁGINA LA ARTISTA (BIOGRAFÍA EDITORIAL) */
.artist-page-layout {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 5rem;
	margin-top: 4rem;
	align-items: start;
}

.artist-image-column {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.artist-photo-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
	background-color: #121212;
}

.artist-page-img {
	width: 100%;
	height: auto;
	display: block;
	filter: grayscale(100%); /* Blanco y negro por defecto */
	transition: filter 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.artist-page-img:hover {
	filter: grayscale(0%); /* Transición al color al hacer hover */
	transform: scale(1.02);
}

.artist-meta-box {
	font-family: var(--font-sans);
}

.artist-signature-title {
	font-family: var(--font-serif);
	font-size: 1.8rem;
	font-weight: 300;
	margin-bottom: 0.25rem;
	color: var(--color-contrast);
	display: block;
}

.artist-meta-detail {
	font-size: 0.9rem;
	color: var(--color-primary);
	letter-spacing: 0.02em;
}

/* Columna de Texto Biográfico */
.artist-content-column {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.artist-bio-text {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.artist-section-subtitle {
	font-family: var(--font-serif);
	font-size: 1.6rem;
	font-weight: 300;
	color: var(--color-contrast);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	padding-bottom: 0.5rem;
	margin-bottom: 0.5rem;
}

body.theme-dark .artist-section-subtitle {
	border-bottom-color: rgba(255, 255, 255, 0.05);
}

.artist-bio-text p {
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--color-primary);
	text-align: justify;
}

/* Botón de Contacto en Biografía */
.artist-contact-btn {
	display: inline-block;
	padding: 1.2rem 2.5rem;
	background-color: var(--color-contrast);
	color: var(--color-bg);
	border: none;
	font-family: var(--font-sans);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
	align-self: flex-start;
}

.artist-contact-btn:hover {
	background-color: var(--color-secondary);
	color: #ffffff;
	transform: translateY(-2px);
}

/* Sección Preview de Colecciones */
.artist-collections-preview {
	margin-top: 8rem;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	padding-top: 5rem;
}

body.theme-dark .artist-collections-preview {
	border-top-color: rgba(255, 255, 255, 0.05);
}

.preview-section-title {
	font-size: 0.9rem;
	text-transform: uppercase;
	color: var(--color-contrast);
	text-align: center;
	margin-bottom: 3rem;
	opacity: 0.8;
}

.collections-preview-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.preview-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
	background-color: var(--color-bg);
	border: 1px solid rgba(0, 0, 0, 0.03);
}

body.theme-dark .preview-card {
	border-color: rgba(255, 255, 255, 0.03);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.preview-card-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-color: #121212;
}

.preview-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.preview-card-info {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.preview-card-tag {
	font-family: var(--font-sans);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	color: var(--color-secondary);
	font-weight: 600;
}

.preview-card-title {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 300;
	color: var(--color-contrast);
	margin: 0;
	transition: color 0.3s ease;
}

/* Hovers de las Tarjetas */
.preview-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

body.theme-dark .preview-card:hover {
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.preview-card:hover .preview-card-image img {
	transform: scale(1.04);
}

.preview-card:hover .preview-card-title {
	color: var(--color-secondary);
}

/* Responsividad de Biografía */
@media (max-width: 900px) {
	.artist-page-layout {
		grid-template-columns: 1fr;
		gap: 3.5rem;
	}
	
	.artist-photo-wrapper {
		max-width: 400px;
		margin: 0 auto;
	}
	
	.artist-meta-box {
		text-align: center;
	}
	
	.artist-contact-btn {
		width: 100%;
		text-align: center;
		align-self: center;
	}
	
	.collections-preview-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.preview-card {
		max-width: 400px;
		margin: 0 auto;
		width: 100%;
	}
}

/* 12. DETALLES Y PANTALLA COMPLETA EN VISOR SPOTLIGHT */
.lightbox-image-wrapper {
	position: relative;
	cursor: zoom-in; /* Cursor indicativo de click-zoom */
	overflow: hidden;
}

#lightbox-img {
	transition: opacity 0.3s ease, transform 0.4s ease;
}

/* Indicador flotante sobre la imagen principal */
.lightbox-zoom-hint {
	position: absolute;
	bottom: 15px;
	right: 15px;
	background-color: rgba(0, 0, 0, 0.7);
	color: #ffffff;
	padding: 6px 12px;
	font-family: var(--font-sans);
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
	pointer-events: none;
	opacity: 0;
	transform: translateY(5px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	border-radius: 2px;
}

.lightbox-image-wrapper:hover .lightbox-zoom-hint {
	opacity: 1;
	transform: translateY(0);
}

/* Galería de detalles (miniaturas) */
.lightbox-gallery-details {
	display: none; /* Se activa dinámicamente con flex si hay fotos */
	justify-content: center;
	gap: 12px;
	margin-top: 2rem;
	flex-wrap: wrap;
	width: 100%;
}

.details-thumb-wrapper {
	width: 60px;
	height: 60px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.3s ease, transform 0.3s ease;
	background-color: transparent;
	border-radius: 2px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.details-thumb-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.55;
	transition: opacity 0.3s ease;
}

.details-thumb-wrapper:hover img,
.details-thumb-wrapper.is-active img {
	opacity: 1;
}

.details-thumb-wrapper.is-active {
	border-color: var(--color-secondary);
	transform: scale(1.08);
	box-shadow: 0 6px 15px rgba(217, 119, 6, 0.3);
}

/* Ajustes responsivos para miniaturas en móvil */
@media (max-width: 860px) {
	.lightbox-gallery-details {
		margin-top: 1.5rem;
		gap: 8px;
	}
	
	.details-thumb-wrapper {
		width: 50px;
		height: 50px;
	}
}
