/*
Theme Name: MCC Panamá
Theme URI: https://mccpanama.com
Author: Movimiento de Cursillos de Cristiandad · Arquidiócesis de Panamá
Description: Tema de una sola página para invitar a los retiros de damas y varones, migrado del diseño original hecho en Lovable/React a WordPress clásico (sin build step, sin dependencias). Retiros y testimonios se administran como contenido desde wp-admin y el formulario de inscripción envía un correo real.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mcc-panama
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ---------------------------------------------------------------------
   1. Design tokens
   Hex values first as a fallback, oklch second so browsers that
   understand it (everyone current) get the exact original color.
   ------------------------------------------------------------------- */
:root {
	--font-display: "Fraunces", Georgia, serif;
	--font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 0.875rem;

	--color-background: #fefaf1;
	--color-background: oklch(0.985 0.012 85);
	--color-foreground: #321e16;
	--color-foreground: oklch(0.26 0.035 45);
	--color-card: #fffdf7;
	--color-card: oklch(0.995 0.008 85);

	--color-primary: #d76f04;
	--color-primary: oklch(0.65 0.16 55);
	--color-primary-foreground: #fffbf4;
	--color-primary-foreground: oklch(0.99 0.01 85);

	--color-secondary: #f9edd9;
	--color-secondary: oklch(0.95 0.03 80);
	--color-secondary-foreground: #54301f;
	--color-secondary-foreground: oklch(0.35 0.06 45);

	--color-muted: #f3ecde;
	--color-muted: oklch(0.945 0.02 85);
	--color-muted-foreground: #7b6358;
	--color-muted-foreground: oklch(0.52 0.035 45);

	--color-accent: #e4ac59;
	--color-accent: oklch(0.78 0.12 75);

	--color-border: #e5ddce;
	--color-border: oklch(0.9 0.022 85);

	--color-prism-1: #f77f00;
	--color-prism-1: oklch(0.72 0.18 55);
	--color-prism-2: #e0615c;
	--color-prism-2: oklch(0.65 0.16 25);
	--color-prism-3: #00c0b0;
	--color-prism-3: oklch(0.72 0.14 185);
	--color-prism-4: #7c54cd;
	--color-prism-4: oklch(0.55 0.18 295);

	/* Solid brand accents used in place of the prism gradient in a few spots. */
	--color-brand-red: #d52b1e;
	--color-brand-purple: #83549c;

	--gradient-prism: linear-gradient(90deg, var(--color-prism-1), var(--color-prism-2), var(--color-prism-3), var(--color-prism-4));
	--gradient-dawn: linear-gradient(135deg, #fff8ea 0%, #ffeecd 55%, #ffdaad 100%);
	--gradient-dawn: linear-gradient(135deg, oklch(0.98 0.02 85) 0%, oklch(0.96 0.05 75) 55%, oklch(0.92 0.08 65) 100%);

	--shadow-soft: 0 18px 45px -22px rgb(83 46 20 / 0.35);
	--shadow-lift: 0 28px 70px -30px rgb(83 46 20 / 0.45);

	--max-width: 72rem;
	--max-width-narrow: 56rem;
}

/* ---------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link.screen-reader-text:focus {
	position: fixed !important;
	top: 0.75rem; left: 0.75rem;
	width: auto; height: auto;
	clip: auto;
	z-index: 100;
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	padding: 0.6rem 1rem;
	border-radius: 0.5rem;
}

.wrap {
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: 1.25rem;
}
.wrap--narrow { max-width: var(--max-width-narrow); }

.text-prism {
	background-image: var(--gradient-prism);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.quote-highlight { font-style: italic; color: var(--color-brand-red); }
.eyebrow {
	font-size: 0.8rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--color-primary);
	margin: 0 0 0.5rem;
}

/* ---------------------------------------------------------------------
   3. Buttons
   ------------------------------------------------------------------- */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: 0.65rem;
	padding: 0.65rem 1.3rem;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.button--primary {
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	box-shadow: var(--shadow-soft);
}
.button--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.button--outline {
	background: var(--color-card);
	color: var(--color-foreground);
	border-color: var(--color-border);
}
.button--outline:hover { background: var(--color-secondary); }
.button--lg { padding: 0.85rem 1.7rem; font-size: 1rem; }
.button--block { width: 100%; }

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	background: var(--color-card);
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	transition: background-color 0.15s ease;
}
.icon-button:hover { background: var(--color-secondary); }

/* ---------------------------------------------------------------------
   4. Header & nav
   ------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgb(254 250 241 / 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
}
.site-header__bar {
	max-width: var(--max-width);
	margin-inline: auto;
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.site-header__prism { height: 2px; background: var(--color-brand-red); }

.site-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.site-logo__mark { display: inline-flex; border-radius: 0.6rem; overflow: hidden; background: #fff; }
.site-logo__img,
.site-logo__mark img { display: block; width: 40px; height: 40px; object-fit: contain; }
.site-logo__text {
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--color-foreground);
}
.site-logo__text .text-primary { color: var(--color-primary); background: none; -webkit-background-clip: initial; }

.mobile-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.5rem;
	border: 1px solid var(--color-border);
	background: var(--color-card);
	cursor: pointer;
}
.mobile-nav-toggle__bars,
.mobile-nav-toggle__bars::before,
.mobile-nav-toggle__bars::after {
	content: "";
	display: block;
	width: 1.15rem;
	height: 2px;
	background: var(--color-foreground);
	position: relative;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-nav-toggle__bars::before { position: absolute; top: -6px; }
.mobile-nav-toggle__bars::after { position: absolute; top: 6px; }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle__bars { background: transparent; }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav__list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.primary-nav__list a {
	display: block;
	padding: 0.6rem 0.25rem;
	text-decoration: none;
	color: var(--color-muted-foreground);
	font-size: 0.95rem;
}
.primary-nav__list a:hover { color: var(--color-foreground); }
.primary-nav__cta { margin-top: 0.5rem; align-self: flex-start; }

.primary-nav {
	position: absolute;
	inset-inline: 0;
	top: 100%;
	background: var(--color-background);
	border-bottom: 1px solid var(--color-border);
	padding: 0.5rem 1.25rem 1.25rem;
	display: none;
}
.primary-nav.is-open { display: block; }

@media (min-width: 768px) {
	.mobile-nav-toggle { display: none; }
	.primary-nav {
		position: static;
		display: flex !important;
		align-items: center;
		gap: 1.75rem;
		background: none;
		border: 0;
		padding: 0;
	}
	.primary-nav__list { flex-direction: row; gap: 1.75rem; }
	.primary-nav__list a { padding: 0; }
	.primary-nav__cta {
		margin-top: 0;
		margin-left: 0.5rem;
	}
}

/* ---------------------------------------------------------------------
   5. Hero
   ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgb(254 250 241 / 0.85), rgb(254 250 241 / 0.7), var(--color-background));
}
.hero__content { position: relative; padding-block: 5rem; }
.hero__title { font-size: 2.5rem; max-width: 42rem; margin-top: 1rem; }
.hero__subtitle { display: block; margin-top: 1.4rem; max-width: 34rem; color: var(--color-muted-foreground); font-size: 1.05rem; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }

@media (min-width: 768px) {
	.hero__content { padding-block: 8rem; }
	.hero__title { font-size: 3.75rem; }
}

/* ---------------------------------------------------------------------
   6. Sections generic
   ------------------------------------------------------------------- */
.section { padding-block: 4.5rem; }
.section--dawn { background-image: var(--gradient-dawn); border-block: 1px solid var(--color-border); }
.section__title { font-size: 1.85rem; font-weight: 600; }
.section__title--narrow { max-width: 40rem; }
.section__lead { margin-top: 0.75rem; max-width: 34rem; color: var(--color-muted-foreground); }
.section__lead--narrow { max-width: 40rem; }

@media (min-width: 768px) {
	.section { padding-block: 6.5rem; }
	.section__title { font-size: 2.25rem; }
}

/* ---------------------------------------------------------------------
   7. Retiros
   ------------------------------------------------------------------- */
.retiros-grid { margin-top: 2.5rem; display: grid; gap: 1.75rem; }
@media (min-width: 768px) { .retiros-grid { grid-template-columns: 1fr 1fr; } }

.card {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: 1.5rem;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-lift); }
.card__image { width: 100%; height: 14rem; object-fit: cover; }
.card__body { padding: 1.75rem; }
.card__eyebrow { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--color-primary); margin: 0; }
.card__title { margin-top: 0.4rem; font-size: 1.4rem; }
.card__text { margin-top: 0.75rem; font-size: 0.92rem; line-height: 1.6; color: var(--color-muted-foreground); }
.card__meta { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); font-size: 0.88rem; display: grid; gap: 0.4rem; }
.card__meta div { display: flex; justify-content: space-between; gap: 1rem; }
.card__meta dt { color: var(--color-muted-foreground); margin: 0; }
.card__meta dd { margin: 0; font-weight: 500; text-align: right; }
.card__meta + .button,
.card__body > .button { margin-top: 1.5rem; }

/* ---------------------------------------------------------------------
   8. Qué es / momentos
   ------------------------------------------------------------------- */
.momentos-grid { margin-top: 3rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .momentos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .momentos-grid { grid-template-columns: repeat(4, 1fr); } }

.momento-card {
	background: rgb(255 253 247 / 0.7);
	border: 1px solid var(--color-border);
	border-radius: 1rem;
	padding: 1.5rem;
	backdrop-filter: blur(4px);
}
.momento-card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem;
	border-radius: 0.75rem;
	background: rgb(215 111 4 / 0.1);
	color: var(--color-primary);
}
.momento-card__icon svg { width: 1.35rem; height: 1.35rem; }
.momento-card__title { margin-top: 1rem; font-size: 1.05rem; }
.momento-card__text { margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.6; color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------
   9. Triple encuentro
   ------------------------------------------------------------------- */
.triple-encuentro { margin-top: 3rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .triple-encuentro { grid-template-columns: 1fr 1fr; } }

.triple-encuentro__figure {
	border-radius: 1.5rem;
	overflow: hidden;
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-soft);
}
.triple-encuentro__figure img { width: 100%; height: 100%; aspect-ratio: 800 / 1131; object-fit: cover; }
.triple-encuentro__list { display: grid; gap: 1.25rem; }

.encuentro-card {
	display: flex; align-items: flex-start; gap: 1rem;
	background: rgb(255 253 247 / 0.7);
	border: 1px solid var(--color-border);
	border-radius: 1rem;
	padding: 1.5rem;
	backdrop-filter: blur(4px);
}
.encuentro-card__number {
	flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem;
	border-radius: 0.75rem;
	background: rgb(253 117 98 / 0.15);
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--color-prism-1);
}
.encuentro-card__title { font-size: 1.05rem; }
.encuentro-card__text { margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.6; color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------
   10. Parallax sections
   ------------------------------------------------------------------- */
.parallax { position: relative; overflow: hidden; }
.parallax__figure { position: absolute; inset: -15% 0; will-change: transform; }
.parallax__figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.parallax__overlay { position: absolute; inset: 0; }
.parallax__overlay--fade { background: linear-gradient(to bottom, var(--color-background), rgb(254 250 241 / 0.7), var(--color-background)); }
.parallax__overlay--side {
	background: linear-gradient(to right, var(--color-background), rgb(254 250 241 / 0.85), rgb(254 250 241 / 0.5));
}
.parallax__content { position: relative; padding-block: 5.5rem; }
.parallax__quote { margin-top: 1.75rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.3; }
.parallax__quote-sub { margin-top: 1.5rem; color: var(--color-muted-foreground); max-width: 40rem; margin-inline: auto; }

@media (min-width: 768px) {
	.parallax__content { padding-block: 8rem; }
	.parallax__quote { font-size: 2.6rem; }
}

/* ---------------------------------------------------------------------
   11. Testimonios slider
   ------------------------------------------------------------------- */
.testimonios-slider__card {
	position: relative;
	overflow: hidden;
	border-radius: 1.5rem;
	border: 1px solid var(--color-border);
	background: rgb(255 253 247 / 0.85);
	backdrop-filter: blur(6px);
	box-shadow: var(--shadow-soft);
	padding: 2rem;
}
@media (min-width: 768px) { .testimonios-slider__card { padding: 3rem; } }

.testimonios-slider__card::before {
	content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
	background: var(--color-brand-purple);
}
.testimonios-slider__quote-mark {
	font-family: var(--font-display);
	font-size: 2.5rem;
	color: rgb(182 78 16 / 0.5);
	line-height: 1;
}
.testimonios-slider__track { position: relative; min-height: 8rem; }
.testimonios-slider__slide { display: none; margin: 0; }
.testimonios-slider__slide.is-active { display: block; animation: mcc-fade-in 0.4s ease; }
.testimonios-slider__text {
	margin-top: 1.25rem;
	font-family: var(--font-display);
	font-size: 1.3rem;
	line-height: 1.45;
}
@media (min-width: 768px) { .testimonios-slider__text { font-size: 1.75rem; } }
.testimonios-slider__meta { margin-top: 1.5rem; font-size: 0.9rem; color: var(--color-muted-foreground); }
.testimonios-slider__name { font-weight: 500; color: var(--color-foreground); }

.testimonios-slider__controls { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.testimonios-slider__dots { display: flex; gap: 0.5rem; }
.testimonios-slider__dot {
	height: 0.35rem; width: 1rem;
	border-radius: 999px;
	border: 0;
	background: var(--color-border);
	cursor: pointer;
	transition: width 0.3s ease, background-color 0.3s ease;
	padding: 0;
}
.testimonios-slider__dot.is-active { width: 2.5rem; background: var(--color-brand-purple); }
.testimonios-slider__arrows { display: flex; gap: 0.5rem; }

@keyframes mcc-fade-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------
   12. Inscripción
   ------------------------------------------------------------------- */
.inscripcion-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .inscripcion-grid { grid-template-columns: 1fr 1fr; } }

.inscripcion-footnote { margin-top: 2rem; font-size: 0.9rem; color: var(--color-muted-foreground); }

.inscripcion-form {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: 1.5rem;
	padding: 1.75rem;
	box-shadow: var(--shadow-soft);
	display: grid;
	gap: 1.25rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
	font: inherit;
	padding: 0.55rem 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid var(--color-border);
	background: var(--color-background);
	color: var(--color-foreground);
}
.field textarea { resize: vertical; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { text-align: center; font-size: 0.9rem; margin: 0; }
.form-status--ok { color: var(--color-primary); }
.form-status--error { color: #b3261e; }

/* ---------------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background: rgb(245 234 215 / 0.5); }
.site-footer .wrap { padding-block: 2.5rem; font-size: 0.9rem; color: var(--color-muted-foreground); }
.site-footer__brand { display: flex; align-items: center; gap: 0.75rem; }
.site-footer__logo,
.site-footer__brand img { width: 3rem; height: 3rem; object-fit: contain; opacity: 0.7; filter: grayscale(1); }
.site-footer__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--color-foreground); margin: 0; }
.site-footer__tagline { margin-top: 0.5rem; }

/* ---------------------------------------------------------------------
   14. Scroll reveal + reduced motion
   ------------------------------------------------------------------- */
.reveal {
	opacity: 0;
	transform: translateY(1.25rem);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.parallax__figure { transform: none !important; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
