/* ============================================
   Barber Card Widget — Elementor Plugin
   Fix: imagen completa, badges con borde SVG uniforme,
   caras misma altura y transición limpia front/back.
   ============================================ */

.bcw-card-scene {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: grid;
    grid-template-areas: "card";
    align-items: stretch;
    isolation: isolate;
    overflow: visible;
}

.bcw-card-front,
.bcw-card-back {
    grid-area: card;
    position: relative;
    width: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 32px 40px;
    background-color: #111111;
    color: #ffffff;
    box-sizing: border-box;
    overflow: visible;
    transform-origin: center center;
    transition:
        opacity 0.55s cubic-bezier(.16, 1, .3, 1),
        transform 0.55s cubic-bezier(.16, 1, .3, 1);
}

.bcw-card-front {
    z-index: 2;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.bcw-card-back {
    z-index: 1;
    opacity: 0;
    transform: scale(0.985);
    pointer-events: none;
}

/* Al pulsar +: la frontal desaparece y la trasera aparece. */
.bcw-card-scene.bcw-flipped .bcw-card-front {
    opacity: 0;
    transform: scale(0.985);
    pointer-events: none;
}

.bcw-card-scene.bcw-flipped .bcw-card-back {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 3;
}

/* ══════════════════════════════════════
   BADGE DE PICO
   El borde se dibuja con SVG, no con clip-path anidado.
   Resultado: grosor uniforme también en las puntas.
   ══════════════════════════════════════ */

.bcw-arrow-badge-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 0 0 auto;
}

.bcw-arrow-badge-outer {
    --bcw-tip: 22px;
    --bcw-border-w: 2px;
    --bcw-badge-fill: #111111;
    --bcw-badge-border: #ffffff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    max-width: 92%;
    box-sizing: border-box;
    background: transparent !important;
    color: #ffffff;
    padding: 0;
    border: 0;
    outline: 0;
    transform: translateZ(0);
}

.bcw-badge-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    pointer-events: none;
}

.bcw-badge-shape {
    fill: var(--bcw-badge-fill);
    stroke: var(--bcw-badge-border);
    stroke-width: var(--bcw-border-w);
    vector-effect: non-scaling-stroke;
    stroke-linejoin: miter;
    stroke-miterlimit: 10;
}

.bcw-arrow-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    padding: 10px calc(var(--bcw-tip) + 16px);
    min-width: 240px;
    box-sizing: border-box;
}

.bcw-arrow-badge-outer--btn {
    min-width: 120px;
    cursor: pointer;
    transition:
        opacity 0.25s ease,
        transform 0.35s cubic-bezier(.16, 1, .3, 1),
        filter 0.35s cubic-bezier(.16, 1, .3, 1);
}

.bcw-arrow-badge-outer--btn .bcw-arrow-badge {
    min-width: 120px;
}

.bcw-arrow-badge-outer--btn:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.035);
    filter: drop-shadow(0 0 14px rgba(255,255,255,.20));
}

.bcw-arrow-badge-outer--btn span {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(.16, 1, .3, 1);
}

.bcw-card-scene.bcw-flipped .bcw-card-front .bcw-arrow-badge-outer--btn span,
.bcw-card-scene.bcw-flipped .bcw-card-back .bcw-arrow-badge-outer--btn span {
    transform: rotate(180deg);
}

.bcw-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* ── IMAGEN: círculo perfecto, centrado y cerrado ── */
.bcw-image-wrap {
    --bcw-image-bg: #c8d1d8;
    width: 300px;
    height: 300px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: min(100%, 300px);
    box-sizing: border-box;
    background: var(--bcw-image-bg);
    transform: translateZ(0);
}

.bcw-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--bcw-image-bg);
    z-index: 0;
    pointer-events: none;
}

.bcw-image-wrap img {
    --bcw-image-zoom: 1.55;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    border-radius: inherit;
    transform: scale(var(--bcw-image-zoom));
    transform-origin: center center;
    max-width: none;
}

/* ── BACK CONTENT ── */
.bcw-back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    text-align: center;
    padding: 20px 16px;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
}

.bcw-description {
    font-size: 17px;
    line-height: 1.65;
    color: #ffffff;
    margin: 0;
    max-width: 420px;
    font-family: 'Georgia', serif;
}

.bcw-price {
    font-size: 40px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    font-family: 'Georgia', serif;
}

.bcw-reserve-btn {
    display: inline-block;
    font-size: 28px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 7px;
    text-decoration-thickness: 1px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.25s;
    font-family: 'Georgia', serif;
    background: none;
    border: none;
    padding: 0;
}

.bcw-reserve-btn:hover {
    opacity: 0.75;
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .bcw-card-front,
    .bcw-card-back {
        padding: 24px 22px;
        gap: 22px;
    }

    .bcw-title { font-size: 16px; letter-spacing: 2px; }
    .bcw-image-wrap { width: 180px; height: 180px; max-width: 100%; }
    .bcw-price { font-size: 28px; }
    .bcw-reserve-btn { font-size: 20px; }
    .bcw-arrow-badge { min-width: 160px; }
    .bcw-arrow-badge-outer { min-width: 160px; }
}
