/* Parcours marketing Agendar : layout commun (formulaire + página de horario) */

.booking-page {
    --c-bg: #fafaf9;
    --c-surface: #fff;
    --c-text: #1a1a1a;
    --c-muted: #6b7280;
    --c-accent: #2563eb;
    --c-accent-hover: #1d4ed8;
    --c-accent-light: #eff6ff;
    --c-border: #e5e7eb;
    --c-danger: #dc2626;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-family: var(--font-sans);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
}

.booking-page * {
    box-sizing: border-box;
}

.bk-layout {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
}

.bk-pulse {
    position: relative;
    opacity: 0;
    transform: translate3d(-28px, 8px, 0) scale(0.96);
    animation: bk-pop-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

@keyframes bk-pop-in {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.bk-pulse-inner {
    position: relative;
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 55%, #e0e7ff 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.22);
    border-radius: 18px 18px 18px 6px;
    padding: 1.1rem 1.15rem 1.15rem 1.2rem;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    animation: bk-glow 3s ease-in-out 1.2s infinite;
}

.bk-pulse-inner::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border-right: 1.5px solid rgba(37, 99, 235, 0.18);
    border-top: 1.5px solid rgba(37, 99, 235, 0.18);
    border-radius: 0 4px 0 0;
}

.bk-pulse-icon {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 0.45rem;
    line-height: 1;
}

.bk-pulse-icon--svg svg {
    display: block;
    width: 22px;
    height: 22px;
    color: #1d4ed8;
}

.bk-pulse-text {
    font-size: 0.86rem;
    line-height: 1.55;
    color: #1e3a5f;
    margin: 0;
}

.bk-pulse-text strong {
    color: #1d4ed8;
    font-weight: 800;
}

/* Columna izquierda: bulle principale + segundo bloque (p. ej. página horario) */
.bk-pulse-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bk-pulse-next {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-left: 3px solid var(--c-accent);
}

.bk-pulse-next .bk-pulse-text {
    margin: 0;
}

@keyframes bk-glow {
    0%,
    100% {
        box-shadow: 0 8px 28px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    }
    50% {
        box-shadow: 0 10px 32px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(15, 23, 42, 0.06);
    }
}

@media (min-width: 900px) {
    .bk-layout {
        grid-template-columns: minmax(240px, 280px) minmax(0, 680px);
        gap: 2rem 2.25rem;
        padding-top: 2.5rem;
        justify-content: center;
    }
    .bk-pulse {
        position: sticky;
        top: 5.5rem;
    }
    .bk-pulse-stack {
        position: sticky;
        top: 5.5rem;
        align-self: start;
    }
    .bk-pulse-stack .bk-pulse {
        position: static;
    }
}

@media (max-width: 899px) {
    .bk-pulse-inner {
        border-radius: 16px;
    }
    .bk-pulse-inner::after {
        display: none;
    }
    .bk-pulse {
        animation-delay: 0.1s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bk-pulse {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .bk-pulse-inner {
        animation: none;
    }
}

.bk-wrap {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

.bk-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.bk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--c-accent-light);
    color: var(--c-accent);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bk-title {
    font-size: clamp(1.45rem, 3vw + 0.3rem, 1.95rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.bk-subtitle {
    font-size: 1rem;
    color: var(--c-muted);
    max-width: 520px;
    margin: 0 auto;
}

.bk-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--c-muted);
    font-weight: 600;
}

.bk-duration svg {
    width: 18px;
    height: 18px;
    stroke: var(--c-accent);
    fill: none;
    stroke-width: 2;
}

.bk-alert {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    font-size: 0.88rem;
    line-height: 1.55;
}

.bk-alert-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #92400e;
}

.bk-alert ol {
    margin: 0;
    padding-left: 1.25rem;
    color: #78350f;
}

.bk-alert ol li {
    margin-bottom: 0.35rem;
}

.bk-alert-note {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: #92400e;
    font-weight: 600;
}

/* Tarjeta + embed agenda (Calendly / iframe) */
.bk-schedule-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.bk-schedule-embed {
    min-height: 640px;
    width: 100%;
}

.bk-schedule-embed iframe {
    display: block;
    width: 100%;
    min-height: 640px;
    border: none;
    border-radius: 10px;
    background: #fff;
}

.calendly-inline-widget {
    min-width: 280px;
    height: 680px;
}

.bk-schedule-placeholder {
    padding: 2rem 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--c-muted);
    line-height: 1.55;
    border: 1px dashed var(--c-border);
    border-radius: 12px;
    background: var(--c-bg);
}

.bk-schedule-placeholder code {
    font-size: 0.82rem;
    color: var(--c-text);
    word-break: break-all;
}

@media (max-width: 600px) {
    .bk-layout {
        padding: 0 0.75rem 3rem;
    }
}
