/* ==========================================================================
   DC Child — estilos a medida. Minimal B/N (placeholder). Fotos mandan.
   Tokens arriba para reemplazar por marca real de Daniel cuando llegue.
   ========================================================================== */

/* Kalium inyecta su barra de título (.page-heading) — "Blog" en la home,
   título duplicado en el single. La ocultamos en nuestras vistas. */
.home .page-heading,
.single-dc_portfolio .page-heading,
.page-template-template-contacto .page-heading,
.page-template-template-about .page-heading {
	display: none;
}

:root {
	--dc-bg:        #ffffff;
	--dc-fg:        #111111;
	--dc-muted:     #8a8a8a;
	--dc-line:      #ececec;
	--dc-accent:    #111111;

	--dc-gap:       12px;   /* separación entre tarjetas del grid */
	--dc-row-h:     520px;  /* alto de fila en el grid justificado (~4-5 por fila) */
	--dc-gutter:    40px;   /* margen lateral en full-bleed */
	--dc-maxw:      1600px;

	--dc-font:      "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--dc-fs-small:  0.72rem;
	--dc-tracking:  0.08em;
}

html { scroll-behavior: smooth; }
#contacto { scroll-margin-top: 90px; }

/* ── Header a medida: IG · Logo · Hamburger ───────────────────────────── */
.dc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	display: grid;
	grid-template-columns: auto 1fr;   /* logo izq · cluster der */
	align-items: center;
	gap: 12px;
	padding: 20px var(--dc-gutter);
	background: var(--dc-bg);
	font-family: var(--dc-font);
}
.dc-header__side { display: flex; align-items: center; }
.dc-header__right { justify-content: flex-end; gap: 22px; }

.dc-ig {
	color: var(--dc-fg);
	display: inline-flex;
	transition: opacity .2s ease;
}
.dc-ig:hover { opacity: .55; }

.dc-header__logo { text-align: left; min-width: 0; }
.dc-header__logo a { text-decoration: none; color: var(--dc-fg); }
.dc-header__logo img { max-height: 52px; max-width: 100%; width: auto; height: auto; display: block; margin: 0; }
@media (max-width: 600px) {
	.dc-header { gap: 10px; }
	.dc-header__right { gap: 14px; }
	.dc-header__logo img { max-height: 34px; }
	.dc-ig svg { width: 19px; height: 19px; }
}
.dc-logo-text {
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: .04em;
}

/* Hamburger */
.dc-burger {
	appearance: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
}
.dc-burger span {
	display: block;
	height: 1.5px;
	width: 26px;
	background: var(--dc-fg);
	margin-left: auto;
	transition: transform .3s ease, opacity .3s ease, width .3s ease;
}

/* ── Overlay fullscreen del menú ──────────────────────────────────────── */
.dc-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: rgba(255,255,255,.98);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s ease;
}
.dc-overlay.is-open {
	opacity: 1;
	visibility: visible;
}
.dc-overlay__close {
	position: absolute;
	top: 22px;
	right: calc(var(--dc-gutter) - 4px);
	appearance: none;
	background: none;
	border: 0;
	font-size: 2.4rem;
	line-height: 1;
	color: var(--dc-fg);
	cursor: pointer;
}
.dc-overlay__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}
.dc-overlay__menu li { margin: 10px 0; }
.dc-overlay__menu a {
	font-family: var(--dc-font);
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	font-weight: 600;
	letter-spacing: .01em;
	text-decoration: none;
	color: var(--dc-fg);
	transition: opacity .2s ease;
}
.dc-overlay__menu a:hover { opacity: .5; }
/* Bloquea scroll del body cuando el overlay está abierto */
body.dc-menu-open { overflow: hidden; }

/* ── Footer masthead reglado (opción C) ───────────────────────────────── */
.dc-footer {
	margin-top: 120px;
	font-family: var(--dc-font);
	background: var(--dc-bg);
}
.dc-footer__inner {
	max-width: none;          /* full-bleed, solo gutter lateral */
	margin: 0;
	padding: 0 var(--dc-gutter) 40px;
}
.dc-footer__masthead {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	padding: 30px 0;
	border-top: 1px solid var(--dc-fg);
	border-bottom: 1px solid var(--dc-fg);
}
.dc-footer__label {
	display: block;
	margin-bottom: 14px;
	font-size: 0.68rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--dc-muted);
}
.dc-footer__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--dc-fg);
}
.dc-footer__body a {
	color: var(--dc-fg);
	text-decoration: none;
	transition: opacity .2s ease;
	width: fit-content;
}
.dc-footer__body a:hover { opacity: .5; }
.dc-footer__muted { color: var(--dc-muted); }
a.dc-footer__muted:hover { opacity: 1; color: var(--dc-fg); }

.dc-footer__fine {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dc-muted);
}
.dc-footer__credit a {
	color: var(--dc-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}
.dc-footer__credit a:hover { color: var(--dc-fg); border-bottom-color: var(--dc-fg); }

@media (max-width: 720px) {
	.dc-footer { margin-top: 72px; }
	.dc-footer__masthead { grid-template-columns: 1fr; gap: 24px; }
	.dc-footer__fine { flex-direction: column; }
}

/* ── Base ─────────────────────────────────────────────────────────────── */
.dc-home,
.dc-single,
.dc-contact {
	/* Kalium envuelve el contenido en un contenedor flex; por defecto el
	   flex-item no crece (flex: 0 1 auto) y colapsa al ancho del contenido
	   en pantallas anchas. Forzamos que ocupe todo el ancho disponible. */
	flex: 1 1 auto;
	width: 100%;
	max-width: none;              /* full-bleed */
	margin: 0;
	padding: 28px var(--dc-gutter) 90px;  /* poco aire arriba, gutter lateral fijo */
	color: var(--dc-fg);
	background: var(--dc-bg);
	font-family: var(--dc-font);
}
/* Recorta el espaciado que Kalium mete arriba del contenido en la home/single. */
.home .site-content,
.single-dc_portfolio .site-content,
.page-template-template-contacto .site-content,
.home .site-content > .wrap,
.home #main {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* ── Toolbar: filtros + shuffle ───────────────────────────────────────── */
.dc-toolbar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 48px;
}
/* ── Filtro de categorías ─────────────────────────────────────────────── */
.dc-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	justify-content: center;
}

/* ── Botón shuffle (icon-only, sutil) + reset ─────────────────────────── */
.dc-shuffle-wrap {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.dc-shuffle {
	appearance: none;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	min-height: 0;
	padding: 4px;
	cursor: pointer;
	display: inline-flex;
	color: var(--dc-muted) !important;
	line-height: 0;
	transition: color .2s ease;
}
.dc-shuffle:hover,
.dc-shuffle.is-active { color: var(--dc-accent) !important; }
.dc-shuffle__ico { transition: transform .3s ease; }
.dc-shuffle:hover .dc-shuffle__ico { transform: rotate(90deg); }
.dc-shuffle__ico.is-spin { animation: dc-spin .5s ease; }
@keyframes dc-spin { to { transform: rotate(360deg); } }

.dc-shuffle-reset {
	appearance: none;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	min-height: 0;
	padding: 2px;
	cursor: pointer;
	color: var(--dc-muted) !important;
	font-family: var(--dc-font);
	font-size: var(--dc-fs-small) !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	letter-spacing: var(--dc-tracking);
	text-transform: uppercase;
	transition: color .2s ease;
}
.dc-shuffle-reset:hover { color: var(--dc-accent) !important; }
.dc-shuffle-reset[hidden] { display: none; }

/* Crossfade sutil del grid al mezclar */
.dc-grid { transition: opacity .19s ease; }
.dc-grid.is-fading { opacity: 0; }

@media (max-width: 720px) {
	.dc-toolbar { flex-direction: column; gap: 16px; }
	.dc-shuffle-wrap { position: static; transform: none; }
}
.dc-filter__btn {
	appearance: none;
	background: none;
	border: 0;
	padding: 6px 2px;
	cursor: pointer;
	color: var(--dc-muted);
	font: inherit;
	font-size: var(--dc-fs-small);
	letter-spacing: var(--dc-tracking);
	text-transform: uppercase;
	transition: color .2s ease;
}
.dc-filter__btn:hover,
.dc-filter__btn.is-active {
	color: var(--dc-accent);
}

/* ── Grid: columnas de ANCHO FIJO, alto variable ──────────────────────────
   CSS multi-column = mismo ancho de columna, cada tarjeta conserva su alto
   natural (el cliente reencuadra la miniatura). Sin masonry JS.            */
/* Masonry ROW-MAJOR (grid): columnas de ancho fijo (tope 4), cada foto conserva
   su ALTO NATURAL — sin recorte, respeta la miniatura del cliente. Se llena fila
   por fila (izq→der) → orden visual ≈ DOM ≈ lightbox. El row-span de cada tarjeta
   lo calcula el JS a partir del alto real de la foto. */
.dc-grid {
	display: grid;
	grid-template-columns: 1fr;     /* móvil */
	gap: var(--dc-gap);
	grid-auto-rows: 1px;            /* unidad fina; el span real lo pone el JS */
}
@media (min-width: 600px)  { .dc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .dc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1300px) { .dc-grid { grid-template-columns: repeat(4, 1fr); } }
.dc-card {
	width: 100%;
	grid-row-end: span 400;   /* fallback antes de que el JS calcule */
}
.dc-card__link {
	position: relative;
	display: block;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
}
.dc-card__img {
	display: block;
	width: 100%;
	height: auto;               /* alto natural → sin recorte, respeta la miniatura */
	transition: transform .5s ease, filter .5s ease;
}
.dc-card__link:hover .dc-card__img {
	transform: scale(1.03);
}
/* Meta sobre la imagen, aparece al hover */
.dc-card__meta {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 18px 16px 14px;
	background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .3s ease, transform .3s ease;
}
.dc-card__link:hover .dc-card__meta {
	opacity: 1;
	transform: none;
}
.dc-card__title {
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.2;
}
.dc-card__cat {
	font-size: var(--dc-fs-small);
	letter-spacing: var(--dc-tracking);
	text-transform: uppercase;
	opacity: .8;
}
/* Estado oculto por filtro */
.dc-card.is-hidden {
	display: none;
}
/* Enlaces de galería ocultos (resto de fotos del lightbox del grid) */
.dc-hidden {
	display: none !important;
}

/* ── Single: galería lightbox ─────────────────────────────────────────── */
.dc-single__head {
	max-width: 720px;
	margin: 0 auto 56px;
	text-align: center;
}
.dc-single__title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 600;
	margin: 0 0 10px;
}
.dc-single__meta {
	color: var(--dc-muted);
	font-size: var(--dc-fs-small);
	letter-spacing: var(--dc-tracking);
	text-transform: uppercase;
	margin: 0 0 18px;
}
.dc-single__desc {
	color: #444;
	line-height: 1.7;
}
.dc-gallery {
	column-width: var(--dc-col);
	column-gap: var(--dc-gap);
}
.dc-gallery__item {
	break-inside: avoid;
	display: block;
	margin-bottom: var(--dc-gap);
	overflow: hidden;
}
.dc-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity .3s ease;
}
.dc-gallery__item:hover .dc-gallery__img {
	opacity: .85;
}
.dc-single__photo {
	margin: 0 auto;
	max-width: 1100px;
	text-align: center;
}
.dc-single__img {
	display: block;
	width: 100%;
	height: auto;
}
.dc-single__back {
	margin-top: 64px;
	text-align: center;
}
.dc-single__back a {
	color: var(--dc-fg);
	text-decoration: none;
	font-size: var(--dc-fs-small);
	letter-spacing: var(--dc-tracking);
	text-transform: uppercase;
}

/* ── Contacto ─────────────────────────────────────────────────────────── */
.dc-contact { text-align: center; }
.dc-contact__title {
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 600;
	margin: 0 0 24px;
}
.dc-contact__intro {
	max-width: 560px;
	margin: 0 auto 40px;
	line-height: 1.7;
	color: #444;
}
.dc-contact__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.dc-contact__list a {
	color: var(--dc-fg);
	text-decoration: none;
	font-size: 1.05rem;
	border-bottom: 1px solid var(--dc-line);
	padding-bottom: 4px;
	transition: border-color .2s ease;
}
.dc-contact__list a:hover {
	border-color: var(--dc-fg);
}

/* ── Vacíos ───────────────────────────────────────────────────────────── */
.dc-empty {
	text-align: center;
	color: var(--dc-muted);
	padding: 60px 0;
}

/* ── About Me — editorial tipográfico (sin foto) ──────────────────────── */
.dc-about {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px var(--dc-gutter) 110px;
	font-family: var(--dc-font);
	color: var(--dc-fg);
}
/* Lead = la cita, grande y fina, como protagonista */
.dc-about__lead {
	max-width: 16em;
	margin: 40px 0 72px;
	font-size: clamp(1.7rem, 4.2vw, 3.2rem);
	font-weight: 300;
	line-height: 1.18;
	letter-spacing: -0.01em;
}
/* Cuerpo: label (versalitas) izquierda + bio derecha, entre líneas finas */
.dc-about__grid {
	display: grid;
	grid-template-columns: 0.9fr 2.1fr;
	gap: 48px;
	padding: 40px 0;
	border-top: 1px solid var(--dc-fg);
	border-bottom: 1px solid var(--dc-line);
}
.dc-about__eyebrow {
	margin: 0 0 14px;
	font-size: var(--dc-fs-small);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--dc-muted);
}
.dc-about__name {
	margin: 0 0 12px;
	font-size: clamp(1.3rem, 2vw, 1.7rem);
	font-weight: 600;
	line-height: 1.15;
}
.dc-about__meta {
	margin: 0;
	font-size: var(--dc-fs-small);
	letter-spacing: var(--dc-tracking);
	text-transform: uppercase;
	color: var(--dc-muted);
	line-height: 1.6;
}
.dc-about__body {
	color: #333;
	line-height: 1.85;
	font-size: 1.02rem;
	max-width: 46em;
}
.dc-about__body p { margin: 0 0 1.15em; }
.dc-about__body p:last-child { margin-bottom: 0; }
.dc-about__cta {
	margin-top: 44px;
}
.dc-about__cta a {
	font-size: var(--dc-fs-small);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dc-fg);
	text-decoration: none;
	border-bottom: 1px solid var(--dc-fg);
	padding-bottom: 4px;
	transition: opacity .2s ease;
}
.dc-about__cta a:hover { opacity: .55; }
@media (max-width: 780px) {
	.dc-about { padding: 24px var(--dc-gutter) 80px; }
	.dc-about__grid { grid-template-columns: 1fr; gap: 24px; }
	.dc-about__lead { margin: 24px 0 48px; max-width: none; }
}

/* ── Lightbox (GLightbox) — ajustes de estética ───────────────────────── */
/* Aire arriba/abajo y a los lados: la foto no toca los bordes. */
.glightbox-container .gslide-image img {
	max-height: 82vh !important;
	max-width: 88vw !important;
	border-radius: 2px;
	box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
/* Pie de foto elegante: sin caja blanca, texto claro sobre el fondo oscuro. */
.glightbox-container .gslide-description {
	background: transparent !important;
	text-align: center;
	padding: 16px 20px 0;
}
.glightbox-container .gdesc-inner {
	padding: 0 !important;
}
.glightbox-container .gslide-title {
	color: #fff !important;
	font-family: var(--dc-font);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.3;
	margin: 0 0 3px !important;
}
.glightbox-container .gslide-desc {
	color: rgba(255,255,255,.6) !important;
	font-family: var(--dc-font);
	font-size: var(--dc-fs-small);
	letter-spacing: var(--dc-tracking);
	text-transform: uppercase;
}
/* Fondo del overlay: negro casi sólido, más limpio. */
.glightbox-clean .goverlay,
.glightbox-container .goverlay {
	background: rgba(8,8,8,.96);
}

/* ── Botón flotante WhatsApp ──────────────────────────────────────────── */
.dc-wa {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0,0,0,.18);
	transition: transform .2s ease;
}
.dc-wa:hover { transform: scale(1.08); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	:root { --dc-gap: 8px; --dc-gutter: 14px; }
	.dc-home,
	.dc-single,
	.dc-contact { padding: 20px var(--dc-gutter) 70px; }
}
