﻿/* =========================================================
   PLANTILLA: primera-comunion/caliz-de-luz
   ARCHIVO: assets/estilo.css
   VERSIÓN: 1.0
   ENFOQUE: mobile first, religioso, elegante, sacramental
   ASSETS:
   ├── fondo-caliz.png
   ├── caliz-hostia.png
   ├── ornamento-dorado.svg
   ├── footer-caliz.svg
   └── flores-eucaristia.png
   ========================================================= */

:root {
    --cl-bg: #fbf7ee;
    --cl-bg-soft: #fffdf8;
    --cl-paper: rgba(255, 253, 247, 0.92);
    --cl-paper-solid: #fffdf7;
    --cl-cream: #f8efe1;
    --cl-cream-soft: #fff8eb;

    --cl-gold: #b98a32;
    --cl-gold-dark: #7a5721;
    --cl-gold-soft: #ead3a0;
    --cl-gold-pale: #f6ecd6;

    --cl-rose-muted: #9d7479;
    --cl-green-muted: #9b9a75;

    --cl-text: #3b3027;
    --cl-muted: #786c5d;

    --cl-line: rgba(185, 138, 50, 0.25);
    --cl-line-soft: rgba(185, 138, 50, 0.14);

    --cl-shadow-soft: 0 28px 90px rgba(91, 68, 31, 0.16);
    --cl-shadow-card: 0 18px 48px rgba(91, 68, 31, 0.10);
    --cl-shadow-button: 0 16px 34px rgba(123, 91, 34, 0.22);

    --cl-radius-page: 34px;
    --cl-radius-card: 26px;
    --cl-radius-soft: 20px;

    --cl-font-display: "Cormorant Garamond", Georgia, serif;
    --cl-font-script: "Parisienne", cursive;
    --cl-font-body: "Manrope", Arial, sans-serif;

    --asset-bg: url("fondo-caliz.png");
    --asset-chalice: url("caliz-hostia.png");
    --asset-ornament: url("ornamento-dorado.svg");
    --asset-footer: url("footer-caliz.svg");
    --asset-flowers: url("flores-eucaristia.png");
}

/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body.primera-comunion-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--cl-text);
    font-family: var(--cl-font-body);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), transparent 24rem),
        radial-gradient(circle at 82% 6%, rgba(234, 211, 160, 0.54), transparent 20rem),
        radial-gradient(circle at 8% 24%, rgba(255, 244, 219, 0.68), transparent 18rem),
        linear-gradient(180deg, #fffdf8 0%, #fbf7ee 52%, #fff8ec 100%);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.primera-comunion-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.84), transparent 18rem),
        radial-gradient(circle at 76% 18%, rgba(255, 239, 190, 0.42), transparent 18rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 38rem);
}

body.primera-comunion-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: 0.18;
    background:
        radial-gradient(circle at 12% 20%, rgba(185, 138, 50, 0.44) 0 1px, transparent 2px),
        radial-gradient(circle at 58% 16%, rgba(255, 255, 255, 0.90) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 44%, rgba(185, 138, 50, 0.30) 0 1px, transparent 2px),
        radial-gradient(circle at 32% 72%, rgba(255, 255, 255, 0.66) 0 2px, transparent 3px);
    background-size: 112px 112px;
    mask-image: linear-gradient(180deg, black, transparent 84%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
strong {
    overflow-wrap: anywhere;
}

/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.cl-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 24px 12px 36px;
}

.cl-card {
    position: relative;
    width: min(100%, 940px);
    margin: 0 auto;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(185, 138, 50, 0.18);
    border-radius: var(--cl-radius-page);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), transparent 24rem),
        radial-gradient(circle at 88% 8%, rgba(234, 211, 160, 0.30), transparent 22rem),
        linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(251, 247, 238, 0.94));
    box-shadow: var(--cl-shadow-soft);
    isolation: isolate;
}

.cl-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: -1;
    border: 1px solid rgba(185, 138, 50, 0.14);
    border-radius: calc(var(--cl-radius-page) - 10px);
    pointer-events: none;
}

/* =========================================================
   CAPAS VISUALES
   ========================================================= */

.cl-bg-light,
.cl-gold-rays,
.cl-corner,
.cl-floral,
.cl-soft-sparkles {
    position: absolute;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
}

.cl-bg-light {
    inset: 0 0 auto;
    height: 720px;
    z-index: -3;
    opacity: 0.98;
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.04), rgba(255, 253, 247, 0.50) 72%, rgba(255, 253, 247, 0.98) 100%),
        var(--asset-bg);
    background-position: center top;
    background-size: cover;
}

.cl-gold-rays {
    top: 42px;
    left: 50%;
    z-index: 1;
    width: 520px;
    height: 520px;
    opacity: 0.76;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 3.4rem, rgba(255, 246, 205, 0.60) 5.8rem, transparent 13rem),
        repeating-conic-gradient(
            from 0deg,
            rgba(255, 246, 205, 0.00) 0deg,
            rgba(255, 246, 205, 0.34) 3deg,
            rgba(185, 138, 50, 0.08) 6deg,
            rgba(255, 246, 205, 0.00) 10deg
        );
    border-radius: 999px;
    filter: blur(0.4px);
    mask-image: radial-gradient(circle, black 0 45%, transparent 72%);
    animation: cl-rays-pulse 6.2s ease-in-out infinite;
}

.cl-soft-sparkles {
    inset: 18px 12px auto;
    z-index: 4;
    height: 640px;
    opacity: 0.72;
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.94) 0 2px, transparent 3px),
        radial-gradient(circle at 74% 10%, rgba(255, 245, 197, 0.98) 0 2px, transparent 3px),
        radial-gradient(circle at 82% 32%, rgba(255, 255, 255, 0.88) 0 2px, transparent 3px),
        radial-gradient(circle at 22% 54%, rgba(255, 245, 197, 0.78) 0 1px, transparent 2px),
        radial-gradient(circle at 65% 62%, rgba(255, 255, 255, 0.86) 0 2px, transparent 3px);
    animation: cl-sparkles-soft-glow 5.8s ease-in-out infinite;
}

.cl-corner {
    z-index: 5;
    width: 164px;
    height: 164px;
    opacity: 0.68;
    background-image: var(--asset-ornament);
    background-position: center;
}

.cl-corner-top-left {
    top: 26px;
    left: 26px;
}

.cl-corner-top-right {
    top: 26px;
    right: 26px;
    transform: scaleX(-1);
}

.cl-floral {
    z-index: 3;
    width: 270px;
    height: 270px;
    opacity: 0.86;
    background-image: var(--asset-flowers);
    background-position: center bottom;
    filter: drop-shadow(0 18px 30px rgba(91, 68, 31, 0.10));
}

.cl-floral-left {
    top: 300px;
    left: 8px;
}

.cl-floral-right {
    top: 300px;
    right: 8px;
    transform: scaleX(-1);
}

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

.cl-hero {
    position: relative;
    overflow: hidden;
    min-height: auto;
    padding: 0;
    border: 1px solid rgba(185, 138, 50, 0.14);
    border-radius: calc(var(--cl-radius-page) - 8px);
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.12), rgba(255, 253, 247, 0.90)),
        rgba(255, 253, 247, 0.46);
}

.cl-floating-confirm {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(185, 138, 50, 0.30);
    border-radius: 999px;
    background: rgba(255, 253, 247, 0.70);
    color: var(--cl-gold);
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 16px 34px rgba(91, 68, 31, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.cl-floating-confirm:hover {
    transform: translateY(-2px);
    border-color: rgba(185, 138, 50, 0.50);
    background: rgba(255, 253, 247, 0.94);
}

/* =========================================================
   CÁLIZ + HOSTIA PNG TRANSPARENTE
   La luz se genera en CSS, el PNG queda nítido.
   ========================================================= */

.cl-sacrament-wrap {
    position: absolute;
    top: 76px;
    left: 50%;
    z-index: 8;
    width: 280px;
    height: 280px;
    transform: translateX(-50%);
    pointer-events: none;
}

.cl-sacrament-wrap::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 4px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    transform: translateX(-50%);
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 2.9rem, rgba(255, 242, 184, 0.58) 4.7rem, rgba(185, 138, 50, 0.10) 7.6rem, transparent 8.4rem);
    filter: blur(0.2px);
    animation: cl-host-glow 5.4s ease-in-out infinite;
}

.cl-sacrament-wrap::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -54px;
    width: 410px;
    height: 410px;
    border-radius: 999px;
    transform: translateX(-50%);
    background:
        repeating-conic-gradient(
            from -8deg,
            rgba(255, 244, 200, 0.00) 0deg,
            rgba(255, 244, 200, 0.20) 2deg,
            rgba(185, 138, 50, 0.08) 4deg,
            rgba(255, 244, 200, 0.00) 8deg
        );
    opacity: 0.54;
    mask-image: radial-gradient(circle, black 0 36%, transparent 70%);
    filter: blur(0.5px);
    animation: cl-rays-rotate 24s linear infinite;
}

.cl-host,
.cl-chalice {
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.cl-host {
    left: 50%;
    top: 14px;
    z-index: 3;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.98), rgba(255, 248, 220, 0.92) 60%, rgba(234, 211, 160, 0.62) 100%);
    border: 1px solid rgba(185, 138, 50, 0.22);
    box-shadow:
        0 0 34px rgba(255, 246, 205, 0.82),
        0 14px 32px rgba(91, 68, 31, 0.10);
}

.cl-host-cross {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 26px;
    height: 44px;
    transform: translate(-50%, -50%);
}

.cl-host-cross::before,
.cl-host-cross::after {
    content: "";
    position: absolute;
    background: rgba(122, 87, 33, 0.86);
    border-radius: 999px;
}

.cl-host-cross::before {
    left: 50%;
    top: 0;
    width: 3px;
    height: 44px;
    transform: translateX(-50%);
}

.cl-host-cross::after {
    left: 0;
    top: 17px;
    width: 26px;
    height: 3px;
}

.cl-chalice {
    left: 50%;
    bottom: 0;
    z-index: 4;
    width: 230px;
    height: 220px;
    background-image: var(--asset-chalice);
    transform: translateX(-50%);
    filter:
        drop-shadow(0 26px 34px rgba(91, 68, 31, 0.18))
        drop-shadow(0 0 18px rgba(255, 246, 205, 0.32));
    animation: cl-chalice-breathe 6s ease-in-out infinite;
}

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

.cl-hero-content {
    position: relative;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 760px;
    padding: 360px 30px 34px;
    text-align: center;
}

.cl-ornament-line,
.cl-title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(100%, 330px);
    color: var(--cl-gold);
}

.cl-ornament-line {
    margin-bottom: 12px;
}

.cl-title-divider {
    margin-top: 14px;
}

.cl-ornament-line span,
.cl-title-divider span {
    display: block;
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(185, 138, 50, 0.52), transparent);
}

.cl-ornament-line i,
.cl-title-divider i {
    color: var(--cl-gold);
    font-style: normal;
    font-size: 13px;
    line-height: 1;
}

.cl-kicker {
    margin: 0;
    color: var(--cl-gold-dark);
    font-family: var(--cl-font-display);
    font-size: clamp(1.46rem, 3.8vw, 2.25rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.05;
}

.cl-script {
    margin: -2px 0 0;
    color: var(--cl-gold-dark);
    font-family: var(--cl-font-script);
    font-size: clamp(4.2rem, 12vw, 7.8rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-shadow:
        0 14px 36px rgba(91, 68, 31, 0.12),
        0 0 1px rgba(185, 138, 50, 0.18);
}

.cl-title {
    width: min(100%, 760px);
    margin: 16px 0 0;
    color: var(--cl-rose-muted);
    font-family: var(--cl-font-display);
    font-size: clamp(3rem, 8.2vw, 5.7rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: 0.01em;
    text-shadow: 0 10px 26px rgba(91, 68, 31, 0.08);
}

.cl-message {
    width: min(100%, 560px);
    margin: 20px auto 0;
    color: var(--cl-text);
    font-family: var(--cl-font-display);
    font-size: clamp(1.08rem, 2.45vw, 1.38rem);
    font-weight: 500;
    line-height: 1.62;
    text-wrap: balance;
}

/* =========================================================
   BOTONES PRINCIPALES
   ========================================================= */

.cl-actions {
    position: relative;
    z-index: 14;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 690px);
    margin: 28px auto 0;
}

.cl-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 66px;
    padding: 12px 16px;
    border: 1px solid rgba(185, 138, 50, 0.22);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.90), transparent 72%),
        rgba(255, 253, 247, 0.88);
    color: var(--cl-gold-dark);
    font-family: var(--cl-font-display);
    font-size: clamp(1.08rem, 2.4vw, 1.38rem);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-shadow: var(--cl-shadow-button);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.cl-action:hover {
    transform: translateY(-2px);
    border-color: rgba(185, 138, 50, 0.42);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), transparent 72%),
        rgba(255, 251, 238, 0.98);
    box-shadow: 0 20px 40px rgba(123, 91, 34, 0.23);
}

.cl-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.38), transparent 70%),
        linear-gradient(180deg, #d5ad5b, #8f6924);
    color: #fffdf7;
    font-family: var(--cl-font-body);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(123, 91, 34, 0.24);
}

/* =========================================================
   FECHA Y RESUMEN DE LUGARES
   ========================================================= */

.cl-date-card {
    position: relative;
    display: grid;
    justify-items: center;
    width: min(100%, 270px);
    margin: 30px auto 0;
    padding: 18px 26px 16px;
    border: 1px solid rgba(185, 138, 50, 0.30);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.86), transparent 72%),
        rgba(255, 253, 247, 0.78);
    box-shadow: 0 18px 44px rgba(91, 68, 31, 0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.cl-date-card::before,
.cl-date-card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 110px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(185, 138, 50, 0.50), transparent);
    pointer-events: none;
}

.cl-date-card::before {
    right: 100%;
    margin-right: 18px;
}

.cl-date-card::after {
    left: 100%;
    margin-left: 18px;
}

.cl-date-weekday,
.cl-date-month {
    color: var(--cl-gold-dark);
    font-size: 0.70rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    line-height: 1.4;
    text-transform: uppercase;
}

.cl-date-day {
    display: block;
    margin: 4px 0 2px;
    color: var(--cl-gold);
    font-family: var(--cl-font-display);
    font-size: clamp(3.2rem, 9vw, 4.6rem);
    font-weight: 700;
    line-height: 0.86;
}

.cl-hero-places {
    position: relative;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 680px);
    margin: 24px auto 0;
}

.cl-hero-place {
    min-height: 104px;
    padding: 17px 16px;
    border: 1px solid rgba(185, 138, 50, 0.16);
    border-radius: 22px;
    background: rgba(255, 253, 247, 0.70);
    box-shadow: 0 14px 34px rgba(91, 68, 31, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cl-hero-place span {
    display: block;
    color: var(--cl-gold);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cl-hero-place strong {
    display: block;
    margin-top: 8px;
    color: var(--cl-gold-dark);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.cl-hero-place p {
    margin: 8px 0 0;
    color: var(--cl-muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

/* =========================================================
   ESTADO DEL EVENTO
   ========================================================= */

.cl-event-state {
    display: grid;
    gap: 4px;
    margin: 16px 0 0;
    padding: 18px 20px;
    border: 1px solid rgba(185, 138, 50, 0.16);
    border-radius: var(--cl-radius-card);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.82), transparent 12rem),
        rgba(255, 253, 247, 0.82);
    text-align: center;
    box-shadow: var(--cl-shadow-card);
}

.cl-event-state-label {
    margin: 0;
    color: var(--cl-gold);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cl-event-state strong {
    color: var(--cl-gold-dark);
    font-family: var(--cl-font-display);
    font-size: clamp(1.5rem, 4.8vw, 2.35rem);
    font-weight: 700;
    line-height: 1.08;
}

body.event-live .cl-event-state {
    border-color: rgba(185, 138, 50, 0.42);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.24), transparent 14rem),
        linear-gradient(180deg, #d5ad5b, #8f6924);
    animation: cl-live-state-pulse 2.4s ease-in-out infinite;
}

body.event-live .cl-event-state-label,
body.event-live .cl-event-state strong {
    color: #fffdf7;
}

body.event-after .cl-event-state {
    background:
        radial-gradient(circle at 50% 0%, rgba(234, 211, 160, 0.58), transparent 14rem),
        rgba(255, 253, 247, 0.88);
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

.cl-section,
.cl-location-card,
.cl-info-card,
.cl-global-footer {
    position: relative;
    margin-top: 16px;
    padding: 28px 22px;
    border: 1px solid rgba(185, 138, 50, 0.14);
    border-radius: var(--cl-radius-card);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.70), transparent 14rem),
        linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(251, 247, 238, 0.82));
    box-shadow: var(--cl-shadow-card);
}

.cl-section-heading {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.cl-section-heading span,
.cl-eyebrow {
    margin: 0;
    color: var(--cl-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.20em;
    line-height: 1.5;
    text-transform: uppercase;
}

.cl-section-heading h2,
.cl-location-card h2,
.cl-info-card h2 {
    margin: 0;
    color: var(--cl-gold-dark);
    font-family: var(--cl-font-display);
    font-size: clamp(2.05rem, 6.2vw, 3.05rem);
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

/* =========================================================
   COUNTDOWN
   ========================================================= */

.cl-countdown-section {
    overflow: hidden;
    text-align: center;
}

.cl-countdown-section::before,
.cl-countdown-section::after {
    content: "";
    position: absolute;
    bottom: -18px;
    width: 170px;
    height: 120px;
    pointer-events: none;
    opacity: 0.34;
    background-image: var(--asset-ornament);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
}

.cl-countdown-section::before {
    left: -38px;
}

.cl-countdown-section::after {
    right: -38px;
    transform: scaleX(-1);
}

.cl-countdown {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 680px);
    margin: 20px auto 0;
}

.cl-countdown-item {
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(185, 138, 50, 0.16);
}

.cl-countdown-item:last-child {
    border-right: 0;
}

.cl-countdown-item strong {
    color: var(--cl-gold-dark);
    font-family: var(--cl-font-display);
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

.cl-countdown-item span {
    display: block;
    margin-top: 7px;
    color: var(--cl-muted);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.event-after .cl-countdown-section {
    display: none;
}

/* =========================================================
   FAMILIA
   ========================================================= */

.cl-family-section {
    overflow: hidden;
    text-align: center;
}

.cl-family-section::before {
    content: "";
    position: absolute;
    top: -28px;
    right: -26px;
    width: 170px;
    height: 150px;
    opacity: 0.25;
    background-image: var(--asset-flowers);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    transform: scaleX(-1);
}

.cl-family-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 700px);
    margin: 20px auto 0;
}

.cl-family-card {
    position: relative;
    overflow: hidden;
    min-height: 158px;
    padding: 22px 18px;
    border: 1px solid rgba(185, 138, 50, 0.14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), transparent 70%),
        rgba(255, 253, 247, 0.72);
    box-shadow: 0 14px 32px rgba(91, 68, 31, 0.08);
}

.cl-family-card::after {
    content: "✦";
    position: absolute;
    right: 14px;
    bottom: 8px;
    color: rgba(185, 138, 50, 0.20);
    font-size: 28px;
    line-height: 1;
}

.cl-family-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border: 1px solid rgba(185, 138, 50, 0.20);
    border-radius: 999px;
    color: var(--cl-gold);
    background: rgba(255, 253, 247, 0.68);
    font-size: 1.12rem;
}

.cl-family-label {
    margin: 0;
    color: var(--cl-gold);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cl-family-names {
    margin-top: 12px;
    color: var(--cl-gold-dark);
    font-family: var(--cl-font-display);
    font-size: clamp(1.42rem, 4.5vw, 2rem);
    font-weight: 700;
    line-height: 1.18;
}

.cl-family-names p {
    margin: 0;
}

.cl-family-names p + p {
    margin-top: 6px;
}

/* =========================================================
   CEREMONIA Y RECEPCIÓN
   ========================================================= */

.cl-locations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.cl-location-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    margin-top: 0;
    overflow: hidden;
    text-align: center;
}

.cl-location-card::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 118px;
    pointer-events: none;
    opacity: 0.34;
    background:
        linear-gradient(180deg, transparent, rgba(234, 211, 160, 0.32));
}

.cl-location-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin-bottom: 14px;
    border: 1px solid rgba(185, 138, 50, 0.22);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), transparent 72%),
        rgba(255, 253, 247, 0.76);
    color: var(--cl-gold);
    font-size: 1.7rem;
    line-height: 1;
    box-shadow: 0 14px 34px rgba(91, 68, 31, 0.10);
}

.cl-location-time {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    color: var(--cl-gold);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cl-location-place {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: var(--cl-gold-dark);
    font-family: var(--cl-font-display);
    font-size: 1.48rem;
    font-weight: 700;
    line-height: 1.12;
}

.cl-location-address {
    position: relative;
    z-index: 1;
    margin: 10px auto 0;
    color: var(--cl-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* =========================================================
   RSVP
   ========================================================= */

.cl-rsvp-section {
    text-align: center;
}

.cl-rsvp-card {
    width: min(100%, 720px);
    margin: 20px auto 0;
    text-align: left;
}

.cl-rsvp-card form {
    display: grid;
    gap: 15px;
}

.cl-rsvp-card label {
    display: grid;
    gap: 8px;
    color: var(--cl-gold-dark);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.cl-rsvp-card input,
.cl-rsvp-card textarea,
.cl-rsvp-card select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(185, 138, 50, 0.24);
    border-radius: 15px;
    background: rgba(255, 253, 247, 0.82);
    color: var(--cl-text);
    padding: 12px 14px;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.cl-rsvp-card textarea {
    min-height: 112px;
    resize: vertical;
}

.cl-rsvp-card input:focus,
.cl-rsvp-card textarea:focus,
.cl-rsvp-card select:focus {
    border-color: rgba(185, 138, 50, 0.58);
    background: #fffdf7;
    box-shadow: 0 0 0 4px rgba(185, 138, 50, 0.12);
}

.cl-rsvp-card .rsvp-section,
.cl-rsvp-card .rsvp-card,
.cl-rsvp-card .rsvp-container {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.cl-rsvp-card h1,
.cl-rsvp-card h2,
.cl-rsvp-card h3,
.cl-rsvp-card h4 {
    color: var(--cl-gold-dark);
    font-family: var(--cl-font-display);
    text-align: center;
}

/* =========================================================
   INFORMACIÓN EXTRA
   ========================================================= */

.cl-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.cl-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    margin-top: 0;
    text-align: center;
}

.cl-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border: 1px solid rgba(185, 138, 50, 0.24);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(234, 211, 160, 0.42));
    color: var(--cl-gold);
    font-size: 25px;
    line-height: 1;
    box-shadow: 0 14px 30px rgba(91, 68, 31, 0.10);
}

.cl-info-card strong {
    display: block;
    margin-top: 14px;
    color: var(--cl-gold-dark);
    font-size: 1.05rem;
    font-weight: 900;
}

.cl-info-card p:not(.cl-eyebrow) {
    margin: 12px 0 0;
    color: var(--cl-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

/* =========================================================
   BOTONES SECUNDARIOS
   ========================================================= */

.cl-primary-button,
.cl-secondary-button,
.cl-rsvp-card button,
.cl-rsvp-card input[type="submit"] {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 20px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-align: center;
    text-transform: uppercase;
    transition:
        transform 190ms ease,
        box-shadow 190ms ease,
        background 190ms ease,
        border-color 190ms ease;
}

.cl-primary-button,
.cl-rsvp-card button,
.cl-rsvp-card input[type="submit"] {
    border: 1px solid rgba(185, 138, 50, 0.48);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 70%),
        linear-gradient(180deg, #d5ad5b, #8f6924);
    color: #fffdf7;
    box-shadow: 0 16px 30px rgba(123, 91, 34, 0.22);
}

.cl-secondary-button {
    border: 1px solid rgba(185, 138, 50, 0.44);
    background: rgba(255, 253, 247, 0.86);
    color: var(--cl-gold);
}

.cl-primary-button:hover,
.cl-secondary-button:hover,
.cl-rsvp-card button:hover,
.cl-rsvp-card input[type="submit"]:hover {
    transform: translateY(-2px);
}

.cl-secondary-button:hover {
    border-color: var(--cl-gold);
    background: rgba(255, 253, 247, 0.98);
    box-shadow: 0 14px 28px rgba(91, 68, 31, 0.10);
}

.cl-rsvp-card button,
.cl-rsvp-card input[type="submit"] {
    width: 100%;
    cursor: pointer;
}

/* =========================================================
   FOOTER
   ========================================================= */

.cl-global-footer {
    color: var(--cl-muted);
    text-align: center;
}

.cl-signature-footer {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 40px 14px 22px;
    color: var(--cl-gold-dark);
    text-align: center;
}

.cl-signature-footer::before {
    content: "";
    width: min(420px, 72vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(185, 138, 50, 0.40), transparent);
}

.cl-footer-ornament {
    width: min(390px, 88vw);
    height: 128px;
    margin-bottom: -10px;
    pointer-events: none;
    opacity: 0.92;
    background-image: var(--asset-footer);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation: cl-footer-float 10s ease-in-out infinite;
}

.cl-signature-footer p {
    margin: 0;
    color: var(--cl-gold-dark);
    font-family: var(--cl-font-display);
    font-size: clamp(2rem, 7vw, 3rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1;
}

.cl-signature-footer span {
    color: var(--cl-gold);
    font-size: 18px;
}

/* =========================================================
   ESTADOS VISUALES
   ========================================================= */

body.event-live .cl-title,
body.event-live .cl-script {
    animation: cl-title-live-glow 3.8s ease-in-out infinite;
}

body.event-live .cl-date-card {
    animation: cl-live-date-pulse 2.8s ease-in-out infinite;
}

body.event-after .cl-section,
body.event-after .cl-location-card,
body.event-after .cl-info-card,
body.event-after .cl-global-footer {
    background:
        radial-gradient(circle at 50% 0%, rgba(234, 211, 160, 0.38), transparent 14rem),
        linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(255, 248, 234, 0.84));
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes cl-rays-pulse {
    0%,
    100% {
        opacity: 0.58;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.82;
        transform: translateX(-50%) scale(1.035);
    }
}

@keyframes cl-rays-rotate {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes cl-host-glow {
    0%,
    100% {
        opacity: 0.78;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.045);
    }
}

@keyframes cl-chalice-breathe {
    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.018);
    }
}

@keyframes cl-sparkles-soft-glow {
    0%,
    100% {
        opacity: 0.50;
        transform: translateY(0);
    }

    50% {
        opacity: 0.82;
        transform: translateY(4px);
    }
}

@keyframes cl-live-state-pulse {
    0%,
    100% {
        box-shadow: 0 14px 34px rgba(123, 91, 34, 0.18);
    }

    50% {
        box-shadow: 0 18px 46px rgba(123, 91, 34, 0.30);
    }
}

@keyframes cl-title-live-glow {
    0%,
    100% {
        text-shadow:
            0 14px 36px rgba(91, 68, 31, 0.10),
            0 0 1px rgba(185, 138, 50, 0.18);
    }

    50% {
        text-shadow:
            0 18px 46px rgba(185, 138, 50, 0.28),
            0 0 18px rgba(234, 211, 160, 0.28);
    }
}

@keyframes cl-live-date-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}

@keyframes cl-footer-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

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

@media (max-width: 840px) {
    .cl-page {
        padding: 12px 8px 24px;
    }

    .cl-card {
        padding: 12px;
        border-radius: 30px;
    }

    .cl-hero-content {
        min-height: 740px;
        padding: 350px 18px 30px;
    }

    .cl-script {
        font-size: clamp(4.1rem, 16vw, 7rem);
    }

    .cl-title {
        font-size: clamp(3rem, 10vw, 5.1rem);
    }

    .cl-locations,
    .cl-extra-grid {
        grid-template-columns: 1fr;
    }

    .cl-date-card::before,
    .cl-date-card::after {
        width: 78px;
    }

    .cl-floral {
        width: 230px;
        height: 230px;
    }

    .cl-floral-left {
        left: -34px;
    }

    .cl-floral-right {
        right: -34px;
    }
}

/* =========================================================
   RESPONSIVE MÓVIL
   ========================================================= */

@media (max-width: 640px) {
    .cl-page {
        padding: 0;
    }

    .cl-card {
        width: 100%;
        min-height: 100vh;
        padding: 8px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .cl-card::before {
        inset: 8px;
        border-radius: 22px;
    }

    .cl-bg-light {
        height: 660px;
        background-position: center top;
    }

    .cl-gold-rays {
        top: 40px;
        width: 350px;
        height: 350px;
        opacity: 0.68;
    }

    .cl-soft-sparkles {
        inset: 10px 2px auto;
        height: 560px;
        opacity: 0.66;
    }

    .cl-corner {
        width: 96px;
        height: 96px;
        opacity: 0.58;
    }

    .cl-corner-top-left {
        top: 20px;
        left: 18px;
    }

    .cl-corner-top-right {
        top: 20px;
        right: 18px;
    }

    .cl-floral {
        width: 150px;
        height: 150px;
        opacity: 0.78;
    }

    .cl-floral-left {
        top: 244px;
        left: -22px;
    }

    .cl-floral-right {
        top: 244px;
        right: -22px;
    }

    .cl-hero {
        border-radius: 24px;
    }

    .cl-floating-confirm {
        top: 14px;
        left: 14px;
        width: 46px;
        height: 46px;
        font-size: 19px;
    }

    .cl-sacrament-wrap {
        top: 76px;
        width: 220px;
        height: 220px;
    }

    .cl-sacrament-wrap::before {
        width: 172px;
        height: 172px;
    }

    .cl-sacrament-wrap::after {
        top: -42px;
        width: 300px;
        height: 300px;
        opacity: 0.46;
    }

    .cl-host {
        top: 8px;
        width: 90px;
        height: 90px;
    }

    .cl-host-cross {
        width: 21px;
        height: 34px;
    }

    .cl-host-cross::before {
        height: 34px;
        width: 2.4px;
    }

    .cl-host-cross::after {
        top: 13px;
        width: 21px;
        height: 2.4px;
    }

    .cl-chalice {
        width: 174px;
        height: 172px;
    }

    .cl-hero-content {
        min-height: 700px;
        padding: 310px 10px 24px;
    }

    .cl-ornament-line,
    .cl-title-divider {
        width: min(100%, 238px);
        gap: 10px;
    }

    .cl-ornament-line {
        margin-bottom: 10px;
    }

    .cl-kicker {
        font-size: 1.34rem;
        letter-spacing: 0.04em;
    }

    .cl-script {
        font-size: clamp(4rem, 22vw, 6.3rem);
        line-height: 0.88;
    }

    .cl-title {
        margin-top: 12px;
        font-size: clamp(2.65rem, 14vw, 4.6rem);
        line-height: 0.94;
    }

    .cl-title-divider {
        margin-top: 12px;
    }

    .cl-message {
        max-width: 334px;
        margin-top: 17px;
        font-size: 1rem;
        line-height: 1.56;
    }

    .cl-actions {
        gap: 8px;
        width: 100%;
        margin-top: 22px;
    }

    .cl-action {
        flex-direction: column;
        gap: 7px;
        min-height: 78px;
        padding: 9px 5px;
        border-radius: 18px;
        font-size: 0.94rem;
    }

    .cl-action-icon {
        width: 34px;
        height: 34px;
        font-size: 0.88rem;
    }

    .cl-date-card {
        width: min(100%, 224px);
        margin-top: 24px;
        padding: 16px 22px 14px;
    }

    .cl-date-card::before,
    .cl-date-card::after {
        display: none;
    }

    .cl-date-weekday,
    .cl-date-month {
        font-size: 0.64rem;
        letter-spacing: 0.16em;
    }

    .cl-date-day {
        font-size: clamp(3rem, 16vw, 4.1rem);
    }

    .cl-hero-places {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 14px;
    }

    .cl-hero-place {
        min-height: auto;
        padding: 14px 12px;
        border-radius: 17px;
    }

    .cl-hero-place span {
        font-size: 0.60rem;
        letter-spacing: 0.12em;
    }

    .cl-hero-place strong {
        margin-top: 6px;
        font-size: 0.78rem;
    }

    .cl-hero-place p {
        margin-top: 6px;
        font-size: 0.84rem;
    }

    .cl-event-state {
        margin-top: 12px;
        padding: 15px 14px;
        border-radius: 20px;
    }

    .cl-event-state-label {
        font-size: 0.62rem;
        letter-spacing: 0.13em;
    }

    .cl-event-state strong {
        font-size: 1.48rem;
    }

    .cl-section,
    .cl-location-card,
    .cl-info-card,
    .cl-global-footer {
        margin-top: 12px;
        padding: 23px 14px;
        border-radius: 22px;
    }

    .cl-section-heading span,
    .cl-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
    }

    .cl-section-heading h2,
    .cl-location-card h2,
    .cl-info-card h2 {
        font-size: clamp(1.9rem, 9vw, 2.52rem);
    }

    .cl-countdown {
        gap: 0;
        margin-top: 16px;
    }

    .cl-countdown-item {
        min-height: 82px;
    }

    .cl-countdown-item strong {
        font-size: 1.9rem;
    }

    .cl-countdown-item span {
        font-size: 0.54rem;
        letter-spacing: 0.08em;
    }

    .cl-family-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 16px;
    }

    .cl-family-card {
        min-height: 124px;
        padding: 19px 15px;
        border-radius: 20px;
    }

    .cl-family-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
        font-size: 1rem;
    }

    .cl-family-label {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
    }

    .cl-family-names {
        font-size: 1.48rem;
    }

    .cl-locations,
    .cl-extra-grid {
        gap: 12px;
        margin-top: 12px;
    }

    .cl-location-icon {
        width: 62px;
        height: 62px;
        margin-bottom: 12px;
        font-size: 1.42rem;
    }

    .cl-location-time {
        font-size: 0.76rem;
        letter-spacing: 0.12em;
    }

    .cl-location-place {
        font-size: 1.34rem;
    }

    .cl-location-address {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .cl-info-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 12px;
        font-size: 23px;
    }

    .cl-primary-button,
    .cl-secondary-button,
    .cl-rsvp-card button,
    .cl-rsvp-card input[type="submit"] {
        width: 100%;
        min-height: 48px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 0.66rem;
        letter-spacing: 0.08em;
    }

    .cl-rsvp-card {
        margin-top: 16px;
    }

    .cl-rsvp-card label {
        font-size: 0.66rem;
        letter-spacing: 0.08em;
    }

    .cl-rsvp-card input,
    .cl-rsvp-card textarea,
    .cl-rsvp-card select {
        min-height: 47px;
        border-radius: 14px;
    }

    .cl-footer-ornament {
        width: min(340px, 92vw);
        height: 100px;
    }

    .cl-signature-footer {
        padding: 30px 12px 18px;
    }

    .cl-signature-footer p {
        font-size: clamp(2rem, 10vw, 2.65rem);
    }
}

/* =========================================================
   MÓVIL ANGOSTO
   ========================================================= */

@media (max-width: 390px) {
    .cl-sacrament-wrap {
        top: 72px;
        width: 200px;
        height: 200px;
    }

    .cl-host {
        width: 82px;
        height: 82px;
    }

    .cl-chalice {
        width: 158px;
        height: 158px;
    }

    .cl-floral {
        width: 130px;
        height: 130px;
    }

    .cl-floral-left,
    .cl-floral-right {
        top: 235px;
    }

    .cl-hero-content {
        min-height: 680px;
        padding-top: 292px;
    }

    .cl-kicker {
        font-size: 1.22rem;
    }

    .cl-script {
        font-size: clamp(3.6rem, 21vw, 5.6rem);
    }

    .cl-title {
        font-size: clamp(2.35rem, 13vw, 4rem);
    }

    .cl-message {
        font-size: 0.96rem;
    }

    .cl-action {
        min-height: 72px;
        font-size: 0.84rem;
    }

    .cl-action-icon {
        width: 31px;
        height: 31px;
        font-size: 0.82rem;
    }

    .cl-date-card {
        width: min(100%, 206px);
    }

    .cl-countdown-item strong {
        font-size: 1.72rem;
    }

    .cl-countdown-item span {
        font-size: 0.5rem;
    }
}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}