/* =====================================================
   CATÁLOGO PRIMERA COMUNIÓN
   Diseño basado en bautismo, más serio y sobrio
===================================================== */

:root {
  --comunion-ink: #332a2c;
  --comunion-muted: #756e6a;
  --comunion-gold: #c8a66a;
  --comunion-gold-deep: #a77d36;
  --comunion-cream: #fffdf8;
  --comunion-soft: #fff4e5;
  --comunion-blue: #dcefff;
  --comunion-mint: #e8f3ee;
  --comunion-dark: #1b1510;
  --comunion-shadow: 0 28px 70px rgba(86, 68, 45, 0.14);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.comunion-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 9% 5%, rgba(255, 244, 229, 0.94), transparent 26%),
    radial-gradient(circle at 88% 6%, rgba(220, 239, 255, 0.62), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #fffaf2 42%, #f9fcff 100%);
  color: var(--comunion-ink);
  font-family: "Poppins", system-ui, sans-serif;
}

body.comunion-page img,
body.comunion-page video {
  max-width: 100%;
}

/* =====================================================
   LOADER DEL INDEX
===================================================== */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top, #fffdfd 0%, #fff7fa 32%, #fdf0f5 72%, #f8e6ef 100%);
  backdrop-filter: blur(20px);
  transition: opacity .60s ease, visibility .60s ease;
}

#preloader::before,
#preloader::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

#preloader::before {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(255,255,255,.92) 0%, rgba(248, 216, 230, .55) 45%, rgba(248, 216, 230, 0) 74%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(10px);
}

#preloader::after {
  width: 1100px;
  height: 1100px;
  background: radial-gradient(circle, rgba(223, 170, 193, .12) 0%, rgba(223, 170, 193, 0) 65%);
  top: -22%;
  right: -12%;
  animation: loaderHalo 8s linear infinite;
}

#preloader.preloader-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.preloader-active {
  overflow: hidden;
}

.loader-card {
  position: relative;
  z-index: 2;
  width: min(320px, calc(100vw - 34px));
  min-height: 360px;
  padding: 36px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,250,252,.98) 100%);
  border: 1px solid rgba(181, 87, 134, 0.10);
  box-shadow:
    0 30px 70px rgba(67, 37, 63, 0.14),
    0 10px 25px rgba(67, 37, 63, 0.08),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.loader-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  border: 1px solid rgba(181, 87, 134, 0.08);
  pointer-events: none;
}

.loader-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 6px;
  border-radius: 999px;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(244, 214, 225, 0) 0%, rgba(218, 120, 160, .34) 50%, rgba(244, 214, 225, 0) 100%);
}

.loader-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loader-ornament span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(237, 192, 211, .8) 45%, rgba(237,192,211,.3) 100%);
  box-shadow: 0 0 20px rgba(215, 125, 163, .24);
  animation: loaderSparkle 3.2s ease-in-out infinite;
}

.loader-ornament span:nth-child(1) { top: 56px; left: 50px; animation-delay: .1s; }
.loader-ornament span:nth-child(2) { top: 82px; right: 54px; animation-delay: .55s; }
.loader-ornament span:nth-child(3) { bottom: 86px; left: 56px; animation-delay: 1.1s; }
.loader-ornament span:nth-child(4) { bottom: 62px; right: 58px; animation-delay: 1.6s; }

.leaf-loader {
  position: relative;
  width: 136px;
  height: 136px;
  margin-top: 8px;
  animation: leafSpin 1.55s linear infinite;
}

.leaf-loader::before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.92) 0%, rgba(255, 239, 245, .55) 60%, rgba(255,255,255,0) 100%);
  box-shadow: inset 0 0 0 1px rgba(181, 87, 134, .05);
}

.leaf {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 46px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, #d85f75 0%, #ef9eac 100%);
  transform-origin: 50% 66px;
  opacity: .22;
  filter: drop-shadow(0 6px 8px rgba(181, 87, 134, .10));
}

.leaf-1 { transform: translate(-50%, -100%) rotate(0deg); opacity: 1; }
.leaf-2 { transform: translate(-50%, -100%) rotate(45deg); opacity: .84; }
.leaf-3 { transform: translate(-50%, -100%) rotate(90deg); opacity: .70; }
.leaf-4 { transform: translate(-50%, -100%) rotate(135deg); opacity: .56; }
.leaf-5 { transform: translate(-50%, -100%) rotate(180deg); opacity: .44; }
.leaf-6 { transform: translate(-50%, -100%) rotate(225deg); opacity: .34; }
.leaf-7 { transform: translate(-50%, -100%) rotate(270deg); opacity: .26; }
.leaf-8 { transform: translate(-50%, -100%) rotate(315deg); opacity: .18; }

.loader-brand {
  margin: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.15rem, 7vw, 3rem);
  color: #b55786;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: .01em;
  text-shadow: 0 2px 10px rgba(181, 87, 134, .10);
}

#typedBrand {
  white-space: nowrap;
}

.typing-caret {
  display: inline-block;
  margin-left: 4px;
  color: #b55786;
  animation: blinkCaret .8s infinite;
  font-family: inherit;
}

.loader-subtitle {
  margin: -2px 0 0;
  font-size: .86rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(159, 69, 111, .72);
  font-weight: 700;
}

.loader-line {
  width: 110px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(181, 87, 134, 0) 0%, rgba(181, 87, 134, .85) 50%, rgba(181, 87, 134, 0) 100%);
}

.loader-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e3a1bc;
  animation: dotPulse 1.2s infinite ease-in-out;
}

.loader-dots span:nth-child(2) { animation-delay: .15s; }
.loader-dots span:nth-child(3) { animation-delay: .30s; }
.loader-dots span:nth-child(4) { animation-delay: .45s; }

/* =====================================================
   GENERAL
===================================================== */

.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 99999;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--comunion-gold-deep);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
  transition: top 0.25s ease;
}

.skip-link:focus { top: 16px; }

.site-header {
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 30px rgba(67, 42, 62, 0.09);
  backdrop-filter: blur(16px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: .14s;
}

/* =====================================================
   HERO
===================================================== */

.comunion-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--comunion-dark);
}

.comunion-hero-bg,
.comunion-custom-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 14, 22, 0.80) 0%, rgba(18, 14, 22, 0.48) 48%, rgba(18, 14, 22, 0.82) 100%),
    url("../invitaciones/primeracomunion/img/bgcomunion.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.comunion-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 20% 35%, rgba(220, 239, 255, 0.14), transparent 22%),
    radial-gradient(circle at 82% 68%, rgba(255, 244, 229, 0.16), transparent 22%),
    linear-gradient(90deg, rgba(20, 14, 22, 0.76) 0%, rgba(20, 14, 22, 0.48) 45%, rgba(20, 14, 22, 0.80) 100%);
}

.comunion-hero .container,
.comunion-custom-section .container {
  position: relative;
  z-index: 6;
}

.comunion-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 66px);
}

.comunion-hero-gallery {
  position: relative;
  min-height: 545px;
}

.comunion-hero-phone {
  position: absolute;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.comunion-hero-phone img,
.comunion-custom-phone img,
.comunion-template-editorial-card__img img,
.comunion-template-modal__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.comunion-hero-phone img {
  filter: drop-shadow(0 32px 58px rgba(0, 0, 0, 0.34));
}

.comunion-hero-phone--back {
  left: 2%;
  top: 86px;
  width: min(330px, 30vw);
  height: 438px;
  z-index: 1;
  transform: rotate(-3deg);
  animation: heroBackFloat 8s ease-in-out infinite;
}

.comunion-hero-phone--front {
  left: 36%;
  top: 0;
  width: min(355px, 32vw);
  height: 482px;
  z-index: 3;
  transform: rotate(2deg);
  animation: heroFrontFloat 7.8s ease-in-out infinite;
}

.comunion-signature {
  position: absolute;
  left: 14%;
  bottom: 0;
  z-index: 4;
  padding: 12px 26px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255,255,255,0.22);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.18rem, 2.1vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.comunion-hero-content {
  max-width: 710px;
  margin-left: auto;
  text-align: center;
}

.comunion-line {
  width: 84px;
  height: 5px;
  display: block;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
}

.comunion-kicker {
  margin: 0 0 14px;
  color: var(--comunion-gold);
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comunion-hero-content h1 {
  margin: 0 0 22px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.65rem, 5vw, 5.1rem);
  line-height: 0.98;
  font-weight: 800;
}

.comunion-hero-content p {
  margin: 0 auto 30px;
  max-width: 640px;
  color: rgba(255,255,255,0.84);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* =====================================================
   DECORACIONES SERIAS
===================================================== */

.comunion-soft-stains {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.comunion-soft-stains span {
  position: absolute;
  display: block;
  border-radius: 999px;
  opacity: 0.34;
  filter: blur(0.2px);
}

.comunion-soft-stains span:nth-child(1) {
  left: -40px;
  top: 70px;
  width: 280px;
  height: 120px;
  background: rgba(255, 244, 229, 0.18);
  transform: rotate(-8deg);
}

.comunion-soft-stains span:nth-child(2) {
  right: -80px;
  top: 120px;
  width: 280px;
  height: 110px;
  background: rgba(220, 239, 255, 0.18);
  transform: rotate(-5deg);
}

.comunion-soft-stains span:nth-child(3) {
  left: 8%;
  bottom: 36px;
  width: 180px;
  height: 100px;
  background: rgba(232, 243, 238, 0.16);
  transform: rotate(-18deg);
}

.comunion-soft-stains span:nth-child(4) {
  right: 12%;
  bottom: 90px;
  width: 250px;
  height: 88px;
  background: rgba(255, 241, 196, 0.14);
  transform: rotate(-4deg);
}

.comunion-sacred-decor,
.comunion-catalog-deco {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.comunion-symbol {
  position: absolute;
  z-index: 4;
  color: rgba(255, 241, 196, 0.78);
  font-size: clamp(1.8rem, 3.7vw, 3.8rem);
  filter: drop-shadow(0 16px 24px rgba(77, 49, 71, 0.15));
  animation: comunionFloat 9s ease-in-out infinite;
}

.comunion-symbol--cross { left: 7%; top: 16%; }
.comunion-symbol--dove { right: 15%; top: 20%; animation-delay: 1.2s; }
.comunion-symbol--star { right: 9%; bottom: 18%; animation-delay: 2s; }
.comunion-symbol--chalice { left: 46%; bottom: 14%; color: rgba(220, 239, 255, 0.58); animation-delay: 1.6s; }

.comunion-symbol--cat-one { left: 4%; top: 16%; color: rgba(200, 166, 106, .38); }
.comunion-symbol--cat-two { right: 5%; top: 52%; color: rgba(200, 166, 106, .34); animation-delay: 1.5s; }
.comunion-symbol--cat-three { right: 16%; top: 17%; color: rgba(167, 125, 54, .30); animation-delay: 1.2s; }

/* =====================================================
   CTA
===================================================== */

.bt-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  isolation: isolate;
  padding: 19px 22px;
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bt-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  z-index: -1;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  transform: translateY(-50%);
  background: rgba(200, 166, 106, 0.44);
  transition: all 0.3s ease;
}

.bt-cta span {
  position: relative;
  font-size: 0.92rem;
  line-height: 18px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: middle;
}

.bt-cta svg {
  position: relative;
  top: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.bt-cta:hover::before {
  width: 100%;
  background: #c8a66a;
}

.bt-cta:hover svg {
  transform: translateX(0);
}

.bt-cta--light {
  color: #fff;
}

.bt-cta--dark {
  color: var(--comunion-ink);
}

.bt-cta--white-text {
  color: #fff;
}

/* =====================================================
   CATALOGO
===================================================== */

.comunion-catalog-section {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 244, 229, 0.94), transparent 28%),
    radial-gradient(circle at 85% 22%, rgba(220, 239, 255, 0.58), transparent 28%),
    radial-gradient(circle at 48% 92%, rgba(255, 241, 196, 0.25), transparent 24%),
    linear-gradient(180deg, #fffdf8 0%, #fffaf2 52%, #f7fbff 100%);
}

.comunion-catalog-section .container {
  position: relative;
  z-index: 5;
}

.comunion-section-head {
  max-width: 850px;
  margin: 0 auto 44px;
  text-align: center;
}

.comunion-section-head h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4.5vw, 4.6rem);
  line-height: 0.98;
  font-weight: 800;
  color: var(--comunion-ink);
}

.comunion-section-head p:not(.comunion-kicker) {
  margin: 18px auto 0;
  max-width: 720px;
  color: var(--comunion-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.comunion-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(270px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.comunion-template-editorial-card {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-radius: 36px;
  background: #fff;
  box-shadow: var(--comunion-shadow);
  border: 1px solid rgba(200, 166, 106, 0.18);
  isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.comunion-template-editorial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 166, 106, 0.38);
  box-shadow: 0 36px 88px rgba(86, 68, 45, 0.20);
}

.comunion-template-editorial-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 30px 16px 250px;
  background: transparent;
  cursor: pointer;
}

.comunion-template-editorial-card__img img {
  filter: drop-shadow(0 28px 45px rgba(47, 36, 56, 0.18));
  transition: transform .45s ease;
}

.comunion-template-editorial-card:hover .comunion-template-editorial-card__img img {
  transform: translateY(-6px) scale(1.02);
}

.comunion-template-editorial-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(23, 17, 16, 0.05) 46%, rgba(23, 17, 16, 0.86) 100%);
  pointer-events: none;
}

.comunion-template-editorial-card__shine {
  position: absolute;
  inset: -80px;
  z-index: 3;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.18) 38%, transparent 56%);
  transform: translateX(-65%);
  transition: transform .7s ease;
  pointer-events: none;
}

.comunion-template-editorial-card:hover .comunion-template-editorial-card__shine {
  transform: translateX(65%);
}

.comunion-template-editorial-card__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  padding: 0 26px 28px;
  color: #fff;
}

.comunion-template-editorial-card__tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.comunion-template-editorial-card__title {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.75rem, 2.2vw, 2.45rem);
  line-height: 1;
  font-weight: 800;
}

.comunion-template-editorial-card__text {
  margin: 0 0 18px;
  color: rgba(255,255,255,.82);
  line-height: 1.62;
  font-size: .94rem;
}

.comunion-template-editorial-card__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.comunion-template-card-btn {
  width: min(260px, 100%);
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.comunion-template-card-btn--view {
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
}

.comunion-template-card-btn--view:hover {
  color: var(--comunion-gold-deep);
  background: #fff;
  transform: translateY(-3px);
}

.comunion-template-card-btn--buy {
  background: linear-gradient(135deg, #a77d36, #c8a66a);
  box-shadow: 0 14px 28px rgba(167, 125, 54, 0.34);
}

.comunion-template-card-btn--buy:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(167, 125, 54, 0.44);
}

.hidden-template-id {
  display: none !important;
}

/* =====================================================
   MARQUEE
===================================================== */

.comunion-marquee-strip {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  background: linear-gradient(90deg, #1b1510 0%, #261d14 100%);
  color: #fff;
}

.comunion-marquee-track {
  display: flex;
  width: max-content;
  gap: 34px;
  align-items: center;
  white-space: nowrap;
  animation: marqueeMove 34s linear infinite reverse;
}

.comunion-marquee-track span {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.comunion-marquee-track i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  background: var(--comunion-gold);
}

/* =====================================================
   PERSONALIZADO
===================================================== */

.comunion-custom-section {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #171117;
}

.comunion-custom-bg {
  background:
    linear-gradient(90deg, rgba(18, 14, 22, 0.86) 0%, rgba(18, 14, 22, 0.56) 48%, rgba(18, 14, 22, 0.82) 100%),
    url("../invitaciones/primeracomunion/img/bgcomunion2.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.comunion-custom-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 241, 196, 0.14), transparent 24%),
    linear-gradient(90deg, rgba(23, 17, 16, 0.74), rgba(23, 17, 16, 0.38));
}

.comunion-custom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: clamp(34px, 5vw, 70px);
}

.comunion-custom-copy {
  max-width: 720px;
}

.comunion-custom-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  color: #fff1c4;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.comunion-custom-copy h2 {
  margin: 0 0 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  line-height: .98;
  font-weight: 800;
}

.comunion-custom-copy p {
  max-width: 640px;
  margin: 0 0 24px;
  color: rgba(255,255,255,.78);
  font-size: 1.04rem;
  line-height: 1.85;
}

.comunion-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.comunion-pill-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.90);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.comunion-custom-phone {
  width: min(390px, 88vw);
  height: 640px;
  justify-self: center;
}

.comunion-custom-phone img {
  filter: drop-shadow(0 34px 58px rgba(0,0,0,.36));
}

/* =====================================================
   MODAL
===================================================== */

.comunion-template-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  place-items: center;
  padding: 22px;
}

.comunion-template-modal.open {
  display: grid;
}

.comunion-template-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 22, 0.72);
  backdrop-filter: blur(10px);
}

.comunion-template-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(980px, 96vw);
  max-height: 92vh;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1fr);
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(0,0,0,.34);
}

.comunion-template-modal__close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(27, 21, 16, .68);
  cursor: pointer;
}

.comunion-template-modal__image {
  min-height: 620px;
  padding: 26px 18px;
  background: linear-gradient(180deg, #fffdf8, #fff4e5);
}

.comunion-template-modal__content {
  padding: clamp(34px, 5vw, 62px);
  align-self: center;
}

.comunion-template-modal__content small {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--comunion-gold-deep);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.comunion-template-modal__content h3 {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  color: var(--comunion-ink);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.comunion-template-modal__content p {
  margin: 0 0 24px;
  color: var(--comunion-muted);
  line-height: 1.8;
}

.comunion-template-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bt-cta--modal,
.bt-cta--modal-buy {
  color: var(--comunion-ink);
}

.bt-cta--modal-buy::before {
  background: rgba(200, 166, 106, .46);
}

/* =====================================================
   MÚSICA / CHAT / TOAST
===================================================== */

.kids-floating-music {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 9990;
}

.kids-floating-music audio {
  display: none;
}

.kids-music-toggle {
  width: 58px;
  height: 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(135deg, #a77d36 0%, #c8a66a 58%, #dcefff 100%);
  box-shadow:
    0 18px 42px rgba(167, 125, 54, 0.28),
    0 10px 26px rgba(200, 166, 106, 0.24);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.kids-music-toggle:hover {
  transform: translateY(-3px);
  filter: saturate(1.08);
}

.kids-music-toggle .music-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.kids-music-toggle .music-text {
  display: none;
}

.kids-music-toggle .music-icon svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: #fff;
}

.kids-music-toggle .music-icon--pause {
  display: none;
}

.kids-music-toggle.is-playing {
  animation: musicPulse 1.9s ease-in-out infinite;
}

.kids-music-toggle.is-playing .music-icon--play {
  display: none;
}

.kids-music-toggle.is-playing .music-icon--pause {
  display: grid;
}

.chatbot-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9990;
}

.chatbot-toggle {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  color: #fff;
  background: linear-gradient(135deg, #1b1510, #a77d36);
  box-shadow: 0 18px 42px rgba(27, 21, 16, 0.22);
  font-weight: 900;
  cursor: pointer;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(330px, calc(100vw - 34px));
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.20);
  border: 1px solid rgba(200, 166, 106, .14);
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .25s ease;
}

.chatbot-panel.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chatbot-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 14px;
  color: #fff;
  background: linear-gradient(135deg, #1b1510, #a77d36);
}

.chatbot-head strong,
.chatbot-head small {
  display: block;
}

.chatbot-head small {
  margin-top: 4px;
  opacity: .78;
  line-height: 1.35;
}

.chatbot-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.14);
}

.chatbot-body {
  max-height: 240px;
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.bot-msg {
  width: fit-content;
  max-width: 100%;
  padding: 10px 13px;
  border-radius: 16px 16px 16px 4px;
  color: var(--comunion-ink);
  background: #fff4e5;
  line-height: 1.5;
  font-size: .92rem;
}

.chatbot-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}

.chatbot-actions button,
.chatbot-actions a {
  border: 0;
  border-radius: 999px;
  padding: 11px 14px;
  text-align: center;
  color: var(--comunion-ink);
  background: rgba(200, 166, 106, .13);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.mini-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10000;
  transform: translateX(-50%) translateY(20px);
  max-width: min(92vw, 520px);
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #332a2c, #a77d36);
  box-shadow: 0 18px 44px rgba(51, 42, 44, 0.24);
  font-weight: 800;
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

.mini-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* =====================================================
   KEYFRAMES
===================================================== */

@keyframes leafSpin {
  to { transform: rotate(360deg); }
}

@keyframes loaderSparkle {
  0%, 100% { transform: scale(.7) translateY(0); opacity: .42; }
  50% { transform: scale(1.12) translateY(-7px); opacity: 1; }
}

@keyframes loaderHalo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dotPulse {
  0%, 100% { transform: translateY(0) scale(.82); opacity: .42; }
  50% { transform: translateY(-5px) scale(1.08); opacity: 1; }
}

@keyframes blinkCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes comunionFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes heroBackFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes heroFrontFloat {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1199px) {
  .comunion-template-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }

  .comunion-template-editorial-card {
    min-height: 675px;
  }

  .comunion-template-editorial-card__img {
    padding: 30px 14px 230px;
  }
}

@media (max-width: 991px) {
  .comunion-hero,
  .comunion-custom-section {
    min-height: auto;
    padding: 86px 0 78px;
  }

  .comunion-hero-layout,
  .comunion-custom-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .comunion-hero-content,
  .comunion-custom-copy {
    width: min(760px, 100%);
    max-width: 760px;
    margin: 0 auto;
    padding: 0 14px;
    text-align: center;
  }

  .comunion-hero-gallery {
    width: min(690px, 100%);
    min-height: 480px;
    margin: 0 auto;
  }

  .comunion-hero-phone--back {
    left: 8%;
    top: 78px;
    width: min(300px, 42vw);
    height: 410px;
  }

  .comunion-hero-phone--front {
    left: 38%;
    width: min(330px, 45vw);
    height: 460px;
  }

  .comunion-signature {
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
  }

  .comunion-custom-phone {
    width: min(350px, 78vw);
    height: 570px;
  }

  .comunion-template-modal__dialog {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .comunion-template-modal__image {
    min-height: 460px;
  }
}

@media (max-width: 767px) {
  .loader-card {
    width: min(286px, calc(100vw - 26px));
    min-height: 328px;
    padding: 30px 20px 24px;
    gap: 14px;
    border-radius: 20px;
  }

  .leaf-loader {
    width: 118px;
    height: 118px;
  }

  .leaf {
    width: 18px;
    height: 40px;
    transform-origin: 50% 58px;
  }

  .loader-brand {
    min-height: 40px;
    font-size: clamp(1.95rem, 9vw, 2.65rem);
  }

  .loader-subtitle {
    font-size: .74rem;
    letter-spacing: .14em;
  }

  .comunion-hero {
    padding-top: 62px;
  }

  .comunion-hero-gallery {
    min-height: 410px;
  }

  .comunion-hero-phone--back {
    left: 2%;
    top: 80px;
    width: 48%;
    height: 340px;
  }

  .comunion-hero-phone--front {
    left: 38%;
    width: 54%;
    height: 390px;
  }

  .comunion-hero-content h1,
  .comunion-custom-copy h2 {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
  }

  .comunion-template-grid {
    grid-template-columns: 1fr;
  }

  .comunion-template-editorial-card {
    min-height: 650px;
    border-radius: 30px;
  }

  .comunion-template-editorial-card__img {
    padding: 22px 10px 230px;
  }

  .comunion-template-editorial-card__content {
    padding: 0 20px 22px;
  }

  .comunion-template-card-btn {
    width: 100%;
    min-height: 48px;
  }

  .comunion-custom-phone {
    width: min(290px, 78vw);
    height: 485px;
  }

  .comunion-symbol {
    display: block;
    opacity: 0.62;
    font-size: 1.8rem;
  }

  .kids-floating-music {
    right: 14px;
    bottom: 86px;
  }

  .kids-music-toggle {
    width: 52px;
    height: 52px;
    min-height: 52px;
  }

  .chatbot-widget {
    right: 14px;
    bottom: 18px;
  }

  .chatbot-toggle {
    min-height: 52px;
    padding: 12px 18px;
  }
}

@media (max-width: 480px) {
  .comunion-hero-gallery {
    min-height: 360px;
  }

  .comunion-hero-phone--back {
    height: 298px;
  }

  .comunion-hero-phone--front {
    height: 340px;
  }

  .comunion-signature {
    font-size: 1rem;
    padding: 10px 18px;
  }

  .comunion-catalog-section {
    padding: 82px 0;
  }

  .comunion-template-editorial-card {
    min-height: 610px;
  }

  .comunion-template-modal {
    padding: 12px;
  }

  .comunion-template-modal__content {
    padding: 28px 22px;
  }
}
