/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* =========================================================
   MDC - Bookly UX
   Paso de servicio/recurso -> horarios
   2026-09-10
   ========================================================= */

/* Ocultar el nombre interno del recurso:
   Agenda Clínica, Agenda Estética, Agenda Pensión, etc. */
body.page-id-1505 .bookly-service-card-mark .bookly-service-staff-mark {
    display: none !important;
}

/* Hacer evidente que la tarjeta es una acción */
body.page-id-1505 .bookly-service-card-mark {
    cursor: pointer !important;
    border: 3px solid #b12028 !important;
    border-radius: 14px !important;
    transition: transform .15s ease, box-shadow .15s ease !important;
    overflow: hidden !important;
}

body.page-id-1505 .bookly-service-card-mark:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.14) !important;
}

/* CTA explícito dentro de la propia tarjeta */
body.page-id-1505 .bookly-service-card-mark::after {
    content: "👇 HAZ CLIC AQUÍ PARA VER LOS HORARIOS DISPONIBLES";
    display: block !important;
    margin: 14px !important;
    padding: 14px 18px !important;
    background: #b12028 !important;
    color: #fff !important;
    border-radius: 9px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    letter-spacing: .02em !important;
}


/* =========================================================
   MDC - Bookly UX v2
   Tarjeta intermedia única -> mostrar horarios
   ========================================================= */

/* Mensaje superior: sólo cuando hay UNA tarjeta */
body.page-id-1505
.bookly-search-form-right
> .bookly-flex.bookly-flex-wrap.bookly-justify-start:has(> .bookly-card-mark:only-child)::before {
    content: "👇 HAZ CLIC EN EL SERVICIO PARA VER LOS HORARIOS DISPONIBLES";
    display: block !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 14px 18px !important;
    background: #fff4f4 !important;
    border: 2px solid #b12028 !important;
    border-radius: 10px !important;
    color: #8f1820 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

/* Compactar la única tarjeta */
body.page-id-1505
.bookly-search-form-right
> .bookly-flex.bookly-flex-wrap.bookly-justify-start:has(> .bookly-card-mark:only-child)
> .bookly-card-mark {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    cursor: pointer !important;
    border: 3px solid #b12028 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.10) !important;
}

/* Quitar fotografía, iniciales y nombre interno Agenda Clínica/Estética/etc. */
body.page-id-1505
.bookly-search-form-right
> .bookly-flex.bookly-flex-wrap.bookly-justify-start:has(> .bookly-card-mark:only-child)
> .bookly-card-mark
.bookly-card-header-mark {
    display: none !important;
}

/* CTA dentro de la tarjeta */
body.page-id-1505
.bookly-search-form-right
> .bookly-flex.bookly-flex-wrap.bookly-justify-start:has(> .bookly-card-mark:only-child)
> .bookly-card-mark::after {
    content: "VER HORARIOS DISPONIBLES →";
    display: block !important;
    margin: 12px 16px 16px !important;
    padding: 14px 18px !important;
    background: #b12028 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* Efecto de botón */
body.page-id-1505
.bookly-search-form-right
> .bookly-flex.bookly-flex-wrap.bookly-justify-start:has(> .bookly-card-mark:only-child)
> .bookly-card-mark:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 9px 24px rgba(0,0,0,.15) !important;
}


/* ==========================================================
   MDC AGENDA — LANDING PAGE
   Página 1505
   ========================================================== */

body.page-id-1505 .mdc-agenda-hero,
body.page-id-1505 .mdc-agenda-steps,
body.page-id-1505 .mdc-agenda-intro {
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

/* HERO */
body.page-id-1505 .mdc-agenda-hero {
    margin-top: 32px;
    padding: 32px 36px;
    min-height: 150px;
    display: flex;
    align-items: center;
    border-radius: 18px;
    background:
        linear-gradient(100deg,
            #ffffff 0%,
            #ffffff 48%,
            #f9eeee 100%);
    box-shadow: 0 8px 30px rgba(0,0,0,.05);
}

body.page-id-1505 .mdc-agenda-hero h1 {
    margin: 0 0 5px;
    color: #85051f;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 800;
}

body.page-id-1505 .mdc-agenda-hero p {
    margin: 0;
    color: #16263d;
    font-size: 20px;
    line-height: 1.4;
}

/* PASOS */
body.page-id-1505 .mdc-agenda-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 42px;
}

body.page-id-1505 .mdc-agenda-steps::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #ead6d9;
    z-index: 0;
}

body.page-id-1505 .mdc-agenda-step {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #4f5967;
}

body.page-id-1505 .mdc-agenda-step > span {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4e6e8;
    color: #85051f;
    font-size: 19px;
    font-weight: 800;
}

body.page-id-1505 .mdc-agenda-step.is-active > span {
    background: #a70f2d;
    color: #fff;
    box-shadow: 0 5px 15px rgba(167,15,45,.22);
}

body.page-id-1505 .mdc-agenda-step strong {
    display: block;
    margin-bottom: 3px;
    color: #85051f;
    font-size: 15px;
    line-height: 1.25;
}

body.page-id-1505 .mdc-agenda-step small {
    display: block;
    max-width: 170px;
    margin: auto;
    color: #657080;
    font-size: 12px;
    line-height: 1.35;
}

/* INTRO SERVICIOS */
body.page-id-1505 .mdc-agenda-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 18px;
}

body.page-id-1505 .mdc-agenda-intro h2 {
    margin: 0 0 3px;
    color: #142943;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
}

body.page-id-1505 .mdc-agenda-intro p {
    margin: 0;
    color: #586575;
    font-size: 17px;
}

/* WHATSAPP */
body.page-id-1505 .mdc-agenda-help {
    min-width: 365px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid #edd8dc;
    border-radius: 16px;
    background: #fbf2f3;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
}

body.page-id-1505 .mdc-agenda-help:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

body.page-id-1505 .mdc-agenda-help strong {
    color: #85051f;
    font-size: 14px;
}

body.page-id-1505 .mdc-agenda-help span {
    color: #39475a;
    font-size: 13px;
}

/* MÓVIL */
@media (max-width: 767px) {

    body.page-id-1505 .mdc-agenda-hero {
        margin: 18px 15px 0;
        padding: 25px 20px;
        min-height: 120px;
        border-radius: 14px;
    }

    body.page-id-1505 .mdc-agenda-hero h1 {
        font-size: 34px;
    }

    body.page-id-1505 .mdc-agenda-hero p {
        font-size: 16px;
    }

    body.page-id-1505 .mdc-agenda-steps {
        margin: 20px 15px 32px;
        gap: 4px;
    }

    body.page-id-1505 .mdc-agenda-steps::before {
        top: 17px;
    }

    body.page-id-1505 .mdc-agenda-step > span {
        width: 35px;
        height: 35px;
        font-size: 15px;
    }

    body.page-id-1505 .mdc-agenda-step strong {
        font-size: 11px;
    }

    body.page-id-1505 .mdc-agenda-step small {
        display: none;
    }

    body.page-id-1505 .mdc-agenda-intro {
        margin: 0 15px 18px;
        display: block;
    }

    body.page-id-1505 .mdc-agenda-intro h2 {
        font-size: 25px;
    }

    body.page-id-1505 .mdc-agenda-intro p {
        font-size: 15px;
    }

    body.page-id-1505 .mdc-agenda-help {
        min-width: 0;
        margin-top: 16px;
    }
}
