/* CDH Galería de fotos v17 */
.cdt-gallery-page{background:#fff;color:#111;font-family:'Inter',sans-serif}.cdt-gallery-hero{position:relative;min-height:330px;display:flex;align-items:center;background-image:var(--cdt-gallery-hero-image);background-size:cover;background-position:center;overflow:hidden}.cdt-gallery-hero__overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.82),rgba(0,0,0,.52),rgba(0,0,0,.22));z-index:1}.cdt-gallery-hero__inner{position:relative;z-index:2;padding-top:72px;padding-bottom:72px;color:#fff}.cdt-gallery-hero__eyebrow{display:flex;gap:10px;align-items:center;color:#ed1c24;font-size:14px;font-weight:900;text-transform:uppercase;letter-spacing:1px;margin-bottom:18px}.cdt-gallery-hero h1{margin:0;font-family:'Oswald',sans-serif;font-size:clamp(42px,6vw,76px);line-height:1;text-transform:uppercase;letter-spacing:1px}.cdt-gallery-hero p{max-width:700px;margin:22px 0 0;font-size:19px;line-height:1.55;font-weight:600;color:rgba(255,255,255,.92)}.cdt-gallery-content{padding-top:38px;padding-bottom:70px}.cdt-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:34px}.cdt-gallery-filters{display:flex;flex-wrap:wrap;gap:12px}.cdt-gallery-filter,.cdt-gallery-order{border:0;border-radius:6px;background:#f1f1f1;color:#111;padding:11px 18px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.4px}.cdt-gallery-filter{cursor:pointer;transition:all .2s ease}.cdt-gallery-filter:hover,.cdt-gallery-filter.is-active{background:#111;color:#fff}.cdt-gallery-order{white-space:nowrap}.cdt-gallery-grid{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:132px;gap:12px}.cdt-gallery-empty{grid-column:1/-1;padding:30px;background:#f7f7f7;border-radius:14px}.cdt-gallery-item{grid-column:span 3;grid-row:span 2;overflow:hidden;border-radius:12px;background:#eee}.cdt-gallery-item--wide{grid-column:span 6;grid-row:span 2}.cdt-gallery-item--tall{grid-column:span 3;grid-row:span 3}.cdt-gallery-item--large{grid-column:span 6;grid-row:span 3}.cdt-gallery-item__button{position:relative;width:100%;height:100%;padding:0;border:0;background:none;display:block;cursor:pointer;overflow:hidden}.cdt-gallery-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}.cdt-gallery-item__overlay{position:absolute;inset:0;display:flex;align-items:flex-end;padding:18px;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.72));opacity:0;transition:opacity .25s ease;color:#fff;text-align:left}.cdt-gallery-item__overlay span{font-family:'Oswald',sans-serif;text-transform:uppercase;font-size:20px;line-height:1.05;letter-spacing:.5px}.cdt-gallery-item:hover img{transform:scale(1.04)}.cdt-gallery-item:hover .cdt-gallery-item__overlay{opacity:1}.cdt-gallery-loadmore-wrap{text-align:center;margin-top:34px}.cdt-gallery-loadmore{border:1px solid #111;background:#fff;color:#111;border-radius:8px;padding:13px 28px;font-size:13px;font-weight:900;text-transform:uppercase;cursor:pointer}.cdt-gallery-loadmore:hover{background:#111;color:#fff}.cdt-gallery-loadmore[disabled]{opacity:.45;cursor:not-allowed}.cdt-gallery-loadmore-wrap p{margin:12px 0 0;color:#aaa;font-size:13px}.cdt-gallery-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;padding:60px}.cdt-gallery-lightbox[hidden]{display:none}.cdt-gallery-lightbox img{max-width:min(1100px,90vw);max-height:82vh;border-radius:12px;object-fit:contain}.cdt-gallery-lightbox__close,.cdt-gallery-lightbox__nav{position:absolute;border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer}.cdt-gallery-lightbox__close{right:28px;top:22px;width:44px;height:44px;border-radius:50%;font-size:34px;line-height:1}.cdt-gallery-lightbox__nav{top:50%;transform:translateY(-50%);width:54px;height:70px;border-radius:12px;font-size:52px;line-height:1}.cdt-gallery-lightbox__nav--prev{left:28px}.cdt-gallery-lightbox__nav--next{right:28px}.cdt-gallery-lightbox__caption{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);color:#fff;font-weight:800;text-align:center}.body-gallery-open{overflow:hidden}@media(max-width:1100px){.cdt-gallery-grid{grid-template-columns:repeat(6,1fr)}.cdt-gallery-item,.cdt-gallery-item--tall{grid-column:span 3}.cdt-gallery-item--wide,.cdt-gallery-item--large{grid-column:span 6}}@media(max-width:720px){.cdt-gallery-hero{min-height:300px}.cdt-gallery-toolbar{align-items:flex-start;flex-direction:column}.cdt-gallery-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:120px}.cdt-gallery-item,.cdt-gallery-item--wide,.cdt-gallery-item--tall,.cdt-gallery-item--large{grid-column:span 2;grid-row:span 2}.cdt-gallery-lightbox{padding:28px}.cdt-gallery-lightbox__nav{display:none}}


/* CDH Galería privacidad v19 */
.cdt-gallery-item--private .cdt-gallery-item__private-dot{
    position:absolute;
    top:12px;
    right:12px;
    width:15px;
    height:15px;
    border-radius:50%;
    background:#ed1c24;
    border:2px solid #fff;
    box-shadow:0 4px 12px rgba(0,0,0,.35);
    z-index:3;
}
.cdt-gallery-item--private .cdt-gallery-item__private-inline{
    display:inline-block;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#ed1c24;
    margin-right:8px;
    vertical-align:1px;
}
.cdt-gallery-item--private .cdt-gallery-item__overlay span{
    display:inline-flex;
    align-items:center;
}
.cdt-gallery-item--private .cdt-gallery-item__overlay::after{
    content:'Solo miembros';
    position:absolute;
    left:18px;
    top:18px;
    background:#ed1c24;
    color:#fff;
    border-radius:999px;
    padding:5px 9px;
    font-family:'Inter',sans-serif;
    font-size:10px;
    line-height:1;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.4px;
}


/* CDH Galería v21 filtros por salida y privadas */
.cdt-gallery-toolbar{
	align-items:flex-start;
}
.cdt-gallery-filters{
	max-width:100%;
}
.cdt-gallery-filter[data-salida]{
	max-width:280px;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.cdt-gallery-private-toggle{
	display:inline-flex;
	align-items:center;
	gap:9px;
	border-radius:999px;
	background:#111;
	color:#fff;
	padding:10px 15px;
	font-size:12px;
	font-weight:900;
	text-transform:uppercase;
	letter-spacing:.4px;
	white-space:nowrap;
	cursor:pointer;
}
.cdt-gallery-private-toggle input{
	accent-color:#ed1c24;
}
@media(max-width:720px){
	.cdt-gallery-private-toggle{
		width:100%;
		justify-content:center;
	}
	.cdt-gallery-filter[data-salida]{
		max-width:100%;
	}
}

/* CDH Galería v22 selector de salida + privadas con tooltip */
.cdt-gallery-toolbar{
	align-items:center;
	flex-wrap:wrap;
}
.cdt-gallery-filters{
	display:flex;
	align-items:center;
	gap:12px;
	flex:1 1 320px;
	min-width:0;
}
.cdt-gallery-select-label{
	font-size:12px;
	font-weight:900;
	text-transform:uppercase;
	letter-spacing:.4px;
	color:#111;
	white-space:nowrap;
}
.cdt-gallery-select{
	appearance:none;
	-webkit-appearance:none;
	width:100%;
	max-width:440px;
	border:0;
	border-radius:6px;
	background:#f1f1f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
	color:#111;
	padding:12px 42px 12px 18px;
	font-family:inherit;
	font-size:13px;
	font-weight:700;
	line-height:1.2;
	cursor:pointer;
	text-overflow:ellipsis;
	transition:background-color .2s ease,box-shadow .2s ease;
}
.cdt-gallery-select:hover{
	background-color:#e8e8e8;
}
.cdt-gallery-select:focus{
	outline:0;
	box-shadow:0 0 0 2px #fff,0 0 0 4px #111;
}
.cdt-gallery-private-wrap{
	display:inline-flex;
	align-items:center;
	gap:10px;
}
.cdt-gallery-private-toggle{
	text-transform:none;
	letter-spacing:0;
	font-size:13px;
	font-weight:700;
}
.cdt-gallery-info{
	position:relative;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	flex:0 0 auto;
	width:22px;
	height:22px;
	border-radius:50%;
	background:#111;
	color:#fff;
	cursor:help;
	outline:0;
}
.cdt-gallery-info__icon{
	font-family:Georgia,'Times New Roman',serif;
	font-size:13px;
	font-weight:700;
	font-style:italic;
	line-height:1;
}
.cdt-gallery-info:focus-visible{
	box-shadow:0 0 0 2px #fff,0 0 0 4px #ed1c24;
}
.cdt-gallery-tooltip{
	position:absolute;
	top:calc(100% + 12px);
	right:-6px;
	z-index:30;
	width:290px;
	max-width:calc(100vw - 32px);
	padding:14px 16px;
	border-radius:10px;
	background:#111;
	color:rgba(255,255,255,.92);
	font-family:'Inter',sans-serif;
	font-size:13px;
	font-weight:500;
	font-style:normal;
	line-height:1.5;
	text-align:left;
	text-transform:none;
	letter-spacing:0;
	box-shadow:0 14px 34px rgba(0,0,0,.28);
	opacity:0;
	visibility:hidden;
	transform:translateY(-4px);
	transition:opacity .18s ease,transform .18s ease,visibility .18s;
	pointer-events:none;
}
.cdt-gallery-tooltip::before{
	content:'';
	position:absolute;
	top:-6px;
	right:14px;
	width:12px;
	height:12px;
	background:#111;
	transform:rotate(45deg);
	border-radius:2px;
}
.cdt-gallery-tooltip strong{
	display:block;
	margin-bottom:6px;
	color:#fff;
	font-family:'Oswald',sans-serif;
	font-size:13px;
	font-weight:600;
	letter-spacing:.8px;
	text-transform:uppercase;
}
.cdt-gallery-info:hover .cdt-gallery-tooltip,
.cdt-gallery-info:focus .cdt-gallery-tooltip{
	opacity:1;
	visibility:visible;
	transform:translateY(0);
}
@media(max-width:720px){
	.cdt-gallery-filters{
		width:100%;
		flex-basis:100%;
	}
	.cdt-gallery-select{
		max-width:none;
	}
	.cdt-gallery-private-wrap{
		width:100%;
	}
	.cdt-gallery-private-toggle{
		flex:1 1 auto;
		width:auto;
		white-space:normal;
		justify-content:flex-start;
		line-height:1.3;
	}
}

/* CDH Galería v23 likes + opciones */
.cdt-gallery-options{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	justify-content:flex-end;
	gap:10px;
}
.cdt-gallery-item{
	position:relative;
}
.cdt-gallery-like{
	position:absolute;
	right:10px;
	bottom:10px;
	z-index:4;
	display:inline-flex;
	align-items:center;
	gap:6px;
	padding:6px 11px 6px 9px;
	border:0;
	border-radius:999px;
	background:rgba(17,17,17,.62);
	-webkit-backdrop-filter:blur(4px);
	backdrop-filter:blur(4px);
	color:#fff;
	font-family:'Inter',sans-serif;
	font-size:12px;
	font-weight:800;
	line-height:1;
	cursor:pointer;
	transition:transform .15s ease,background-color .2s ease;
}
.cdt-gallery-like:hover{
	background:rgba(17,17,17,.82);
	transform:scale(1.06);
}
.cdt-gallery-like:focus-visible{
	outline:2px solid #fff;
	outline-offset:2px;
}
.cdt-gallery-like__icon{
	display:block;
	fill:none;
	stroke:currentColor;
	stroke-width:2;
	transition:fill .2s ease,stroke .2s ease,transform .2s ease;
}
.cdt-gallery-like.is-liked{
	cursor:default;
}
.cdt-gallery-like.is-liked:hover{
	transform:none;
}
.cdt-gallery-like.is-liked .cdt-gallery-like__icon{
	fill:#ed1c24;
	stroke:#ed1c24;
	animation:cdt-like-pop .35s ease;
}
@keyframes cdt-like-pop{
	0%{transform:scale(.7)}
	60%{transform:scale(1.3)}
	100%{transform:scale(1)}
}
.cdt-gallery-like--lightbox{
	right:28px;
	bottom:20px;
	padding:9px 15px 9px 12px;
	font-size:15px;
	background:rgba(255,255,255,.14);
}
.cdt-gallery-like--lightbox:hover{
	background:rgba(255,255,255,.26);
}
.cdt-gallery-toast{
	position:fixed;
	z-index:100001;
	display:flex;
	align-items:center;
	gap:12px;
	width:260px;
	padding:12px 14px;
	border-radius:10px;
	background:#111;
	color:#fff;
	font-family:'Inter',sans-serif;
	font-size:13px;
	font-weight:600;
	line-height:1.35;
	box-shadow:0 14px 34px rgba(0,0,0,.35);
	opacity:0;
	visibility:hidden;
	transform:translateY(6px);
	transition:opacity .2s ease,transform .2s ease,visibility .2s;
}
.cdt-gallery-toast.is-visible{
	opacity:1;
	visibility:visible;
	transform:translateY(0);
}
.cdt-gallery-toast__btn{
	flex:0 0 auto;
	border:0;
	border-radius:6px;
	background:#ed1c24;
	color:#fff;
	padding:8px 11px;
	font-family:inherit;
	font-size:12px;
	font-weight:800;
	cursor:pointer;
}
.cdt-gallery-toast__btn:hover{
	background:#c8141b;
}
@media(max-width:720px){
	.cdt-gallery-options{
		width:100%;
		justify-content:flex-start;
	}
	.cdt-gallery-like--lightbox{
		right:16px;
		bottom:16px;
	}
}

/* CDH Galería v24 alineación de la barra de filtros */
.cdt-gallery-toolbar{
	align-items:center;
	gap:16px 24px;
}
.cdt-gallery-filters{
	flex:1 1 300px;
	flex-wrap:nowrap;
	align-items:center;
	min-width:0;
}
.cdt-gallery-select{
	flex:1 1 auto;
	width:auto;
	min-width:0;
	height:40px;
	padding-top:0;
	padding-bottom:0;
}
.cdt-gallery-options{
	align-items:center;
}
.cdt-gallery-private-toggle{
	box-sizing:border-box;
	height:40px;
	padding-top:0;
	padding-bottom:0;
	line-height:1;
}
.cdt-gallery-info{
	align-self:center;
}
@media(max-width:720px){
	.cdt-gallery-filters{
		flex-basis:100%;
	}
	.cdt-gallery-private-toggle{
		height:auto;
		min-height:40px;
		padding-top:8px;
		padding-bottom:8px;
	}
}

/* v1.2.0 — modo mini: [cdh_galeria mini="s"] para espacios chicos */
.cdt-gallery-page--mini .cdt-gallery-content{
	padding:0;
	max-width:none;
	width:100%;
}
.cdt-gallery-page--mini .cdt-gallery-toolbar{
	gap:8px;
	margin-bottom:10px;
}
.cdt-gallery-page--mini .cdt-gallery-filters,
.cdt-gallery-page--mini .cdt-gallery-options{
	gap:6px;
}
.cdt-gallery-page--mini .cdt-gallery-select-label{
	display:none;
}
.cdt-gallery-page--mini .cdt-gallery-select,
.cdt-gallery-page--mini .cdt-gallery-private-toggle{
	height:30px;
	min-height:30px;
	font-size:11px;
	padding-top:0;
	padding-bottom:0;
}
.cdt-gallery-page--mini .cdt-gallery-info{
	display:none;
}
.cdt-gallery-page--mini .cdt-gallery-grid{
	grid-template-columns:repeat(auto-fill,minmax(84px,1fr));
	grid-auto-rows:84px;
	gap:6px;
}
.cdt-gallery-page--mini .cdt-gallery-item,
.cdt-gallery-page--mini .cdt-gallery-item--wide,
.cdt-gallery-page--mini .cdt-gallery-item--tall,
.cdt-gallery-page--mini .cdt-gallery-item--large{
	grid-column:span 1;
	grid-row:span 1;
}
.cdt-gallery-page--mini .cdt-gallery-item__photo-credit{
	display:none;
}
.cdt-gallery-page--mini .cdt-gallery-item__overlay{
	padding:6px;
}
.cdt-gallery-page--mini .cdt-gallery-item__overlay span{
	font-size:10px;
	line-height:1.1;
	letter-spacing:.3px;
}
.cdt-gallery-page--mini .cdt-gallery-item .cdt-gallery-like{
	right:4px;
	bottom:4px;
	gap:3px;
	padding:3px 6px 3px 5px;
	font-size:10px;
}
.cdt-gallery-page--mini .cdt-gallery-item .cdt-gallery-like__icon{
	width:12px;
	height:12px;
}
.cdt-gallery-page--mini .cdt-gallery-loadmore-wrap{
	margin-top:12px;
}
.cdt-gallery-page--mini .cdt-gallery-loadmore-wrap p{
	display:none;
}
.cdt-gallery-page--mini .cdt-gallery-loadmore{
	min-height:32px;
	padding:6px 14px;
	font-size:11px;
}

/* v1.2.1 — modo mini: filtros alineados a la izquierda y compactos */
.cdt-gallery-page--mini .cdt-gallery-toolbar{
	flex-direction:column;
	align-items:stretch;
}
.cdt-gallery-page--mini .cdt-gallery-filters{
	flex:0 0 auto;
	width:100%;
}
.cdt-gallery-page--mini .cdt-gallery-options{
	justify-content:flex-start;
	margin-left:0;
	flex-wrap:wrap;
}
.cdt-gallery-page--mini .cdt-gallery-private-toggle{
	padding-left:10px;
	padding-right:10px;
}
