.atl-catalog {
	--atl-ink: #22201d;
	--atl-muted: #726d66;
	--atl-paper: #fbfaf7;
	--atl-panel: #ffffff;
	--atl-line: #ded8ce;
	--atl-accent: #9a6b54;
	--atl-soft: #f3ece3;
	color: var(--atl-ink);
	font-family: Georgia, "Times New Roman", serif;
}

.atl-theme-navidad {
	--atl-ink: #24372f;
	--atl-accent: #a72f2a;
	--atl-paper: #fbf7ef;
	--atl-soft: #efe6d4;
}

.atl-theme-bodas {
	--atl-ink: #292625;
	--atl-accent: #b8946f;
	--atl-paper: #fbfaf7;
	--atl-soft: #eee7df;
}

.atl-theme-comuniones,
.atl-theme-comunion {
	--atl-ink: #29313f;
	--atl-accent: #6d88a8;
	--atl-paper: #f7f8fb;
	--atl-soft: #e8edf4;
}

.atl-catalog * {
	box-sizing: border-box;
}

.atl-catalog-hero {
	align-items: center;
	background: var(--atl-paper);
	border-bottom: 1px solid var(--atl-line);
	display: grid;
	gap: 32px;
	grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
	margin: 0 calc(50% - 50vw) 32px;
	padding: 64px max(24px, calc((100vw - 1120px) / 2));
}

.atl-catalog-hero h1 {
	font-size: clamp(2.25rem, 6vw, 5.5rem);
	font-weight: 400;
	letter-spacing: 0;
	line-height: 0.95;
	margin: 0 0 18px;
}

.atl-kicker,
.atl-product-family {
	color: var(--atl-accent);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.atl-hero-subtitle,
.atl-hero-intro {
	color: var(--atl-muted);
	font-size: 1.05rem;
	max-width: 720px;
}

.atl-catalog-hero figure {
	margin: 0;
}

.atl-catalog-hero img {
	aspect-ratio: 4 / 5;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.atl-family-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 auto 28px;
	max-width: 1120px;
}

.atl-campaign-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 auto 30px;
	max-width: 1120px;
}

.atl-campaign-nav a {
	border: 1px solid var(--atl-line);
	color: var(--atl-ink);
	padding: 10px 14px;
	text-decoration: none;
}

.atl-campaign-nav a:hover {
	background: var(--atl-ink);
	color: #fff;
}

.atl-family-filter button,
.atl-link-button,
.atl-primary-button,
.atl-lead-form button {
	background: var(--atl-ink);
	border: 1px solid var(--atl-ink);
	color: #fff;
	cursor: pointer;
	font: inherit;
	padding: 10px 14px;
	text-decoration: none;
}

.atl-family-filter button {
	background: transparent;
	color: var(--atl-ink);
}

.atl-family-filter button.is-active,
.atl-family-filter button:hover {
	background: var(--atl-ink);
	color: #fff;
}

.atl-products {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	margin: 0 auto;
	max-width: 1120px;
}

.atl-product-card {
	background: var(--atl-panel);
	border: 1px solid var(--atl-line);
	display: grid;
	grid-template-rows: auto 1fr;
	min-width: 0;
	position: relative;
}

.atl-product-media img,
.atl-image-placeholder {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.atl-image-placeholder {
	align-items: center;
	background: linear-gradient(135deg, var(--atl-soft), #fff);
	color: var(--atl-muted);
	display: flex;
	justify-content: center;
	padding: 24px;
	text-align: center;
}

.atl-product-body {
	padding: 22px;
}

.atl-product-body h2 {
	font-size: 1.55rem;
	font-weight: 400;
	line-height: 1.1;
	margin: 0 0 10px;
}

.atl-product-subtitle,
.atl-chip-line {
	color: var(--atl-muted);
}

.atl-contact-link {
	color: var(--atl-accent);
	display: inline-block;
	margin-left: 12px;
	text-decoration: underline;
}

.atl-product-panel {
	background: rgba(34, 32, 29, 0.72);
	inset: 0;
	padding: 24px;
	position: fixed;
	z-index: 9999;
}

.atl-product-panel-inner {
	background: #fff;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
	margin: 4vh auto;
	max-height: 88vh;
	max-width: 1080px;
	overflow: auto;
	padding: 24px;
	position: relative;
}

.atl-panel-close {
	background: transparent;
	border: 1px solid var(--atl-line);
	cursor: pointer;
	height: 36px;
	position: absolute;
	right: 14px;
	top: 14px;
	width: 36px;
}

.atl-gallery-main img {
	display: block;
	height: auto;
	width: 100%;
}

.atl-gallery-thumbs {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
	margin-top: 10px;
}

.atl-gallery-thumbs button {
	background: none;
	border: 1px solid var(--atl-line);
	cursor: pointer;
	padding: 2px;
}

.atl-gallery-thumbs img {
	aspect-ratio: 1;
	display: block;
	object-fit: cover;
	width: 100%;
}

.atl-detail h4 {
	margin: 18px 0 6px;
}

.atl-contact {
	background: var(--atl-soft);
	margin: 42px calc(50% - 50vw) 0;
	padding: 44px max(24px, calc((100vw - 1120px) / 2));
}

.atl-contact h2 {
	font-size: 2rem;
	font-weight: 400;
	margin-top: 0;
}

.atl-lead-form {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 820px;
}

.atl-lead-form label,
.atl-lead-form textarea,
.atl-lead-form button {
	min-width: 0;
}

.atl-lead-form input,
.atl-lead-form select,
.atl-lead-form textarea {
	border: 1px solid var(--atl-line);
	display: block;
	font: inherit;
	margin-top: 6px;
	padding: 11px 12px;
	width: 100%;
}

.atl-lead-form label:has(textarea),
.atl-lead-form button {
	grid-column: 1 / -1;
}

.atl-notice {
	background: #fff;
	border-left: 4px solid var(--atl-accent);
	padding: 12px 14px;
}

.atl-notice-error {
	border-left-color: #9d2c2c;
}

@media (max-width: 760px) {
	.atl-catalog-hero,
	.atl-product-panel-inner,
	.atl-lead-form {
		grid-template-columns: 1fr;
	}

	.atl-catalog-hero {
		padding-top: 40px;
	}
}
