/* =====================================================================
   CEREMONIAS — gabrielaormaza.com
   TODO namespaceado bajo .ceremonias-custom (no choca con Blocksy/Stackable).
   Misma familia estética que "Sobre Mí" y "Terapias de Paz".
   Rejilla de tarjetas: foto rectangular + texto breve + botón al producto.
   ===================================================================== */

.ceremonias-custom {
	/* ---- Paleta compartida con las otras plantillas ---- */
	--cer-bg:       #0e0819;
	--cer-ink:      #f4eefc;
	--cer-text:     rgba(244, 238, 252, .80);
	--cer-soft:     rgba(244, 238, 252, .56);
	--cer-lila:     #bda7cc;
	--cer-lavanda:  #cdb8ec;
	--cer-violeta:  #9a7be0;
	--cer-rosa:     #e7b3d6;
	--cer-turquesa: #a9e2df;
	--cer-oro:      #e6c88c;
	--cer-line:     rgba(189, 167, 204, .26);
	--cer-card:     rgba(255, 255, 255, .045);

	--cer-serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--cer-script: "Great Vibes", "Cormorant Garamond", cursive;
	--cer-sans:   "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: var(--cer-text);
	font-family: var(--cer-sans);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.9;
	letter-spacing: .01em;

	background:
		radial-gradient(90% 42% at 76% 5%,  rgba(154, 123, 224, .34) 0%, transparent 55%),
		radial-gradient(78% 38% at 14% 22%, rgba(231, 179, 214, .15) 0%, transparent 55%),
		radial-gradient(94% 46% at 86% 48%, rgba(132, 98, 216, .28) 0%, transparent 56%),
		radial-gradient(70% 34% at 10% 66%, rgba(169, 226, 223, .11) 0%, transparent 55%),
		radial-gradient(92% 46% at 60% 88%, rgba(189, 167, 204, .17) 0%, transparent 55%),
		linear-gradient(180deg, #110b22 0%, #1e1342 36%, #180d33 64%, #14092a 85%, #100a1e 100%);
	background-color: var(--cer-bg);
}

/* Reset acotado */
.ceremonias-custom *,
.ceremonias-custom *::before,
.ceremonias-custom *::after { box-sizing: border-box; }
.ceremonias-custom img { display: block; max-width: 100%; height: auto; }
.ceremonias-custom p,
.ceremonias-custom ul,
.ceremonias-custom figure { margin: 0; padding: 0; }
.ceremonias-custom li { list-style: none; }

/* Texto solo para lectores de pantalla */
.ceremonias-custom .screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Polvo estelar (SVG tileable, muy liviano) ---- */
.ceremonias-custom .cer-stars {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: .55;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='18' cy='36' r='1' opacity='.9'/%3E%3Ccircle cx='120' cy='18' r='.7' opacity='.5'/%3E%3Ccircle cx='210' cy='54' r='1.1' opacity='.8'/%3E%3Ccircle cx='72' cy='96' r='.6' opacity='.45'/%3E%3Ccircle cx='168' cy='120' r='.9' opacity='.7'/%3E%3Ccircle cx='240' cy='150' r='.7' opacity='.5'/%3E%3Ccircle cx='30' cy='168' r='1' opacity='.75'/%3E%3Ccircle cx='108' cy='198' r='.7' opacity='.5'/%3E%3Ccircle cx='198' cy='216' r='1' opacity='.8'/%3E%3Ccircle cx='138' cy='246' r='.6' opacity='.4'/%3E%3Ccircle cx='60' cy='240' r='.8' opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
}

.ceremonias-custom .cer-section { position: relative; z-index: 1; padding-block: 84px; }

/* =====================================================================
   Estructura
   ===================================================================== */
.ceremonias-custom .cer-wrap {
	width: 100%;
	max-width: 1120px;
	margin-inline: auto;
	padding-inline: 24px;
}
.ceremonias-custom .cer-narrow { max-width: 720px; margin-inline: auto; }
.ceremonias-custom .cer-center { text-align: center; }

/* =====================================================================
   Tipografía
   ===================================================================== */
.ceremonias-custom .cer-eyebrow {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--cer-lila);
	margin-bottom: 16px;
	text-align: center;
}
.ceremonias-custom .cer-title,
.ceremonias-custom .cer-h2 {
	font-family: var(--cer-serif);
	font-weight: 500;
	line-height: 1.14;
	color: var(--cer-ink);
	text-wrap: balance;
	text-align: center;
	margin-inline: auto;
}
.ceremonias-custom .cer-title { font-size: clamp(44px, 7vw, 78px); margin-bottom: 24px; }
.ceremonias-custom .cer-h2 { font-size: clamp(27px, 3.4vw, 40px); max-width: 20ch; margin-bottom: 48px; }

.ceremonias-custom .cer-lead {
	margin-bottom: 18px;
	text-align: center;
	max-width: 62ch;
	margin-inline: auto;
}
.ceremonias-custom .cer-lead em { color: var(--cer-lavanda); font-style: italic; }
.ceremonias-custom .cer-lead--suave { color: var(--cer-soft); font-size: .94em; }

/* Frase que abre la página, entre el título y el banner */
.ceremonias-custom .cer-destacado {
	font-family: var(--cer-serif);
	font-size: clamp(22px, 3vw, 32px);
	font-style: italic;
	line-height: 1.4;
	color: var(--cer-lavanda);
	text-align: center;
	text-wrap: balance;
	max-width: 22ch;
	margin: 0 auto 40px;
}

/* Banner panorámico del bloque inicial */
.ceremonias-custom .cer-banner {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	margin-bottom: 44px;
	box-shadow: 0 26px 64px rgba(8, 4, 20, .55);
}
.ceremonias-custom .cer-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px var(--cer-line);
	/* Funde los bordes del banner con el fondo de la página */
	background: linear-gradient(180deg, rgba(14, 8, 25, .30) 0%, transparent 26%, transparent 72%, rgba(14, 8, 25, .55) 100%);
}
.ceremonias-custom .cer-banner img { width: 100%; }

.ceremonias-custom .cer-script {
	font-family: var(--cer-script);
	font-size: clamp(27px, 3.1vw, 38px);
	line-height: 1.55;
	color: var(--cer-oro);
	text-align: center;
	margin-top: 24px;
	padding-bottom: .12em;
	text-wrap: balance;
}
.ceremonias-custom .cer-quote {
	font-family: var(--cer-serif);
	font-size: clamp(24px, 3vw, 34px);
	font-style: italic;
	line-height: 1.4;
	color: var(--cer-ink);
	text-align: center;
	text-wrap: balance;
	margin-bottom: 26px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--cer-line);
}

/* =====================================================================
   Intro
   ===================================================================== */
.ceremonias-custom .cer-intro { padding-top: 76px; padding-bottom: 44px; }

/* Lunas decorativas */
.ceremonias-custom .cer-moons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 18px;
	padding-block: 8px;
	position: relative;
	z-index: 1;
}
.ceremonias-custom .cer-moon {
	width: 10px; height: 10px;
	border-radius: 50%;
	display: block;
	background: var(--cer-lila);
	opacity: .55;
}
.ceremonias-custom .cer-moon--new  { box-shadow: inset 0 0 0 1px var(--cer-lila); background: transparent; }
.ceremonias-custom .cer-moon--wax  { background: linear-gradient(90deg, transparent 50%, var(--cer-lavanda) 50%); }
.ceremonias-custom .cer-moon--full { background: var(--cer-oro); opacity: .8; box-shadow: 0 0 14px rgba(230, 200, 140, .6); }
.ceremonias-custom .cer-moon--wan  { background: linear-gradient(90deg, var(--cer-lavanda) 50%, transparent 50%); }

/* =====================================================================
   La rejilla de ceremonias
   3 columnas en escritorio · 2 en tableta · 1 en móvil.
   Con 8 tarjetas que llevan foto, texto y botón, apilarlas en móvil es lo
   único que deja el botón usable a ancho completo.
   ===================================================================== */
.ceremonias-custom .cer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px 28px;
}
.ceremonias-custom .cer-card {
	display: flex;
	flex-direction: column;
	background: var(--cer-card);
	border: 1px solid var(--cer-line);
	border-radius: 22px;
	overflow: hidden;
	transition: transform .45s cubic-bezier(.22,.68,.35,1), box-shadow .45s ease, border-color .45s ease;
	box-shadow: 0 18px 44px rgba(8, 4, 20, .42);
}
.ceremonias-custom .cer-card:hover,
.ceremonias-custom .cer-card:focus-within {
	transform: translateY(-6px);
	border-color: rgba(205, 184, 236, .55);
	box-shadow: 0 28px 64px rgba(8, 4, 20, .58), 0 0 36px rgba(154, 123, 224, .22);
}

/* Foto rectangular, siempre la misma proporción aunque el original cambie */
.ceremonias-custom .cer-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.ceremonias-custom .cer-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ceremonias-custom .cer-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 58%, rgba(14, 8, 25, .55) 100%);
}

.ceremonias-custom .cer-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 22px 26px;
	text-align: center;
}
.ceremonias-custom .cer-card__title {
	font-family: var(--cer-serif);
	font-size: clamp(22px, 2.4vw, 27px);
	font-weight: 500;
	line-height: 1.2;
	color: var(--cer-ink);
	margin: 0 0 12px;
	text-wrap: balance;
}
.ceremonias-custom .cer-card__text {
	font-size: 15px;
	line-height: 1.75;
	margin-bottom: 22px;
}
.ceremonias-custom .cer-card__body .cer-btn { margin-top: auto; }
.ceremonias-custom .cer-card__nota {
	font-size: 13px;
	color: var(--cer-soft);
	margin-top: 10px;
}

/* =====================================================================
   Botones
   ===================================================================== */
.ceremonias-custom .cer-btn {
	display: inline-block;
	font-family: var(--cer-sans);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .05em;
	line-height: 1.3;
	text-decoration: none;
	text-align: center;
	color: #170e2b;
	background: linear-gradient(135deg, var(--cer-lavanda) 0%, var(--cer-rosa) 55%, var(--cer-oro) 100%);
	border: 0;
	border-radius: 999px;
	padding: 13px 26px;
	cursor: pointer;
	transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
	box-shadow: 0 8px 24px rgba(154, 123, 224, .32);
}
.ceremonias-custom a.cer-btn:hover,
.ceremonias-custom a.cer-btn:focus-visible {
	transform: translateY(-2px);
	filter: brightness(1.06);
	box-shadow: 0 14px 34px rgba(154, 123, 224, .48);
	color: #170e2b;
}
.ceremonias-custom .cer-btn--grande { font-size: 15px; padding: 16px 36px; }

/* Botón todavía sin producto: visible pero claramente apagado */
.ceremonias-custom .cer-btn--pendiente {
	background: transparent;
	color: var(--cer-soft);
	border: 1px dashed var(--cer-line);
	box-shadow: none;
	cursor: default;
}

/* =====================================================================
   Cierre — la caja de "ceremonia a medida"
   ===================================================================== */
.ceremonias-custom .cer-cierre { padding-bottom: 104px; }

.ceremonias-custom .cer-caja {
	position: relative;
	isolation: isolate;
	max-width: 860px;
	margin-inline: auto;
	padding: clamp(34px, 5vw, 60px) clamp(24px, 4vw, 56px);
	border: 1px solid rgba(205, 184, 236, .34);
	border-radius: 28px;
	background: rgba(255, 255, 255, .04);
	box-shadow: 0 28px 70px rgba(8, 4, 20, .5);
	text-align: center;
	overflow: hidden;
}
/* Resplandor interior, para que la caja se sienta iluminada por dentro */
.ceremonias-custom .cer-caja__brillo {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 50% at 50% 0%,   rgba(154, 123, 224, .30) 0%, transparent 70%),
		radial-gradient(50% 40% at 12% 100%, rgba(231, 179, 214, .18) 0%, transparent 70%),
		radial-gradient(50% 40% at 88% 92%,  rgba(169, 226, 223, .14) 0%, transparent 70%);
}
.ceremonias-custom .cer-caja__titulo {
	font-family: var(--cer-serif);
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 500;
	line-height: 1.2;
	color: var(--cer-ink);
	text-wrap: balance;
	max-width: 20ch;
	margin: 0 auto 22px;
}

/* Los tres pasos */
.ceremonias-custom .cer-pasos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 40px 0 8px;
	text-align: left;
}
.ceremonias-custom .cer-paso {
	padding: 22px 20px 24px;
	border: 1px solid var(--cer-line);
	border-radius: 18px;
	background: rgba(255, 255, 255, .035);
}
.ceremonias-custom .cer-paso__num {
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(230, 200, 140, .5);
	font-family: var(--cer-serif);
	font-size: 17px;
	font-variant-numeric: lining-nums;   /* si no, el "1" parece una "I" */
	color: var(--cer-oro);
	margin-bottom: 14px;
}
.ceremonias-custom .cer-paso__titulo {
	font-family: var(--cer-serif);
	font-size: 21px;
	font-weight: 500;
	color: var(--cer-ink);
	margin: 0 0 8px;
}
.ceremonias-custom .cer-paso p { font-size: 14.5px; line-height: 1.7; }

/* Dentro de la caja la cita no lleva la línea de abajo */
.ceremonias-custom .cer-caja .cer-quote {
	border-bottom: 0;
	padding-bottom: 0;
	margin: 36px auto 30px;
	max-width: 24ch;
}

/* =====================================================================
   Reveal al scroll
   Por defecto TODO es visible. Solo se oculta si hay JS (.cer-js),
   así que si el JS falla la página se ve igual.
   ===================================================================== */
.cer-js .ceremonias-custom .cer-reveal {
	opacity: 0;
	transform: translateY(22px);
}
.cer-js .ceremonias-custom .cer-reveal.is-in {
	opacity: 1;
	transform: none;
	transition:
		opacity .8s cubic-bezier(.22,.68,.35,1) calc(var(--cer-i, 0) * 90ms),
		transform .8s cubic-bezier(.22,.68,.35,1) calc(var(--cer-i, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
	.cer-js .ceremonias-custom .cer-reveal { opacity: 1; transform: none; }
	.ceremonias-custom .cer-card,
	.ceremonias-custom .cer-btn { transition: none; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
	.ceremonias-custom { font-size: 16px; }
	.ceremonias-custom .cer-section { padding-block: 60px; }
	.ceremonias-custom .cer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
	.ceremonias-custom .cer-card__body { padding: 20px 18px 22px; }
	.ceremonias-custom .cer-card__text { font-size: 14px; }
	.ceremonias-custom .cer-banner { border-radius: 18px; margin-bottom: 34px; }
	/* Al apilarse, los pasos se centran: alineados a la izquierda quedaban
	   descolgados dentro de una caja cuyo texto va centrado. */
	.ceremonias-custom .cer-pasos {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		text-align: center;
	}
	.ceremonias-custom .cer-paso__num { margin-inline: auto; }
}

@media (max-width: 560px) {
	.ceremonias-custom .cer-wrap { padding-inline: 20px; }
	.ceremonias-custom .cer-intro { padding-top: 56px; }
	.ceremonias-custom .cer-cierre { padding-bottom: 76px; }

	/* Una sola columna: es lo único que deja el botón a ancho completo
	   y el texto legible sin partir palabras. */
	.ceremonias-custom .cer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.ceremonias-custom .cer-card__body { padding: 22px 20px 24px; }
	.ceremonias-custom .cer-card__text { font-size: 15px; }
	.ceremonias-custom .cer-btn { width: 100%; }
	.ceremonias-custom .cer-destacado { margin-bottom: 30px; }
	.ceremonias-custom .cer-caja { border-radius: 22px; }
	.ceremonias-custom .cer-paso { padding: 18px 16px 20px; }
}
