/* Ventanas flotantes de la portada y la landing: precios, opiniones, cobertura,
   mapa y el aviso del cargo. Salieron de home-redesign.css para que la portada
   rediseñada pueda dejar de cargar esa hoja sin perderlas. */

@media (min-width: 1200px) {
    /* Compactado vertical de la zona superior. Las dos columnas son
       hermanas, asi que hay que bajar las dos: si solo se achica el
       buscador, el alto lo pasa a mandar la columna de intro. */
    .home-intro {
        padding-top: 0;
        padding-bottom: 0;
    }

    .home-lead {
        margin: 12px 0 10px;
        font-size: 18px;
        line-height: 1;
    }

    .home-title {
        font-size: 27px;
        line-height: 1;
    }

    .home-benefits {
        margin-bottom: 0;
    }

    .home-search-form--compact {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .home-filter-bar-title {
        margin-bottom: 6px;
    }

    .home-search-card .home-filter-bar {
        margin-bottom: 10px;
    }

    /* Compactado vertical del bloque de resultados: el alto de la cabecera
       lo fijaba el desplegable de orden, no el titulo. Solo escritorio. */
    .home-results {
        padding: 4px 5px 8px;
    }

    .home-results-header {
        margin-bottom: 6px;
    }

    .home-sort select {
        height: 32px;
    }

    .home-provider-scroll {
        position: relative;
    }

    .home-provider-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 2px 12px;
        scroll-snap-type: x proximity;
        scrollbar-color: #79aa82 #f1f5f1;
        scrollbar-width: thin;
    }

    .home-provider-grid.has-results-scroll {
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 2px;
    }

    .home-provider-grid.has-results-scroll::-webkit-scrollbar {
        width: auto;
        height: 8px;
    }

    .home-provider-card {
        flex: 0 0 calc((100% - 40px) / 5);
        scroll-snap-align: start;
    }

    .home-loading,
    .home-error,
    .home-empty-state {
        flex: 0 0 100%;
    }

    .home-slider-control {
        position: absolute;
        top: calc(50% - 6px);
        z-index: 3;
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid #cfe1d2;
        border-radius: 50%;
        color: var(--home-green);
        background: #fff;
        box-shadow: 0 8px 22px rgba(21, 55, 28, .16);
        font-size: 14px;
        transform: translateY(-50%);
        cursor: pointer;
        transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
    }

    .home-slider-control[hidden] {
        display: none;
    }

    .home-slider-control:hover,
    .home-slider-control:focus {
        color: #fff;
        background: var(--home-green);
        box-shadow: 0 10px 26px rgba(21, 129, 47, .24);
        outline: none;
    }

    .home-slider-control:active {
        transform: translateY(-50%) scale(.96);
    }

    .home-slider-prev {
        left: -17px;
    }

    .home-slider-next {
        right: -17px;
    }
}


.home-loading,
.home-error {
    grid-column: 1 / -1;
    padding: 42px 24px;
    color: var(--home-muted);
    text-align: center;
}


.home-loading .fa {
    color: var(--home-green);
}


.home-loading p,
.home-error p {
    margin: 14px 0 0;
    font-size: 13px;
    font-weight: 700;
}


.home-error {
    color: #b34e4b;
}


.home-coverage-modal-body {
    color: #4f5a52;
    line-height: 1.6;
}


.home-map-frame {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 8px;
}


.home-price-dialog {
    max-width: 680px;
}


.home-price-modal-content {
    border: 1px solid rgba(22, 127, 49, 0.12);
}


.home-price-modal-content .home-modal-body {
    padding: 0;
}


.home-price-modal-content .home-modal-header {
    padding: 30px 78px 22px 30px;
}


.home-price-modal-body {
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding: 24px 30px 30px;
}


.home-price-modal-actions {
    display: none;
    justify-content: flex-end;
    padding: 12px 20px 20px;
}


.calagend-home-body .home-price-modal-close-mobile {
    position: static;
    flex: 0 0 auto;
    margin: 0;
}


.home-price-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e3ece5;
    border-radius: 18px;
    background: #f8fcf9;
}


.home-price-summary-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    border-radius: 18px;
    color: var(--home-green);
    background: #eaf7ed;
    font-size: 26px;
    font-weight: 900;
}


.home-price-summary-icon .fa {
    font-size: 21px;
}


.home-price-summary h3 {
    margin: 0 0 4px;
    color: var(--home-ink);
    font-size: 22px;
    line-height: 1.15;
}


.home-price-summary p {
    margin: 0;
    color: var(--home-muted);
    font-size: 14px;
}


.home-price-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}


/* Tarjetas de valores por modalidad: reusan .next-values-summary del modal de
   /proxima_hora, aca solo se apilan. */
.home-price-cards {
    display: grid;
    gap: 10px;
    margin: 16px 0 18px;
}


.home-price-cards .home-price-service-fee {
    margin-top: 3px;
    color: var(--home-muted);
    font-size: 12px;
    font-weight: 500;
}


.home-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e3e8e4;
    border-radius: 16px;
    background: #fff;
}


.home-price-row strong,
.home-price-row span,
.home-price-values small {
    display: block;
}


.home-price-row > div:first-child strong {
    color: var(--home-ink);
    font-size: 15px;
}


.home-price-row > div:first-child span {
    margin-top: 3px;
    color: var(--home-muted);
    font-size: 13px;
}


.home-price-values {
    min-width: 120px;
    text-align: right;
}


.home-price-values strong {
    color: var(--home-green);
    font-size: 16px;
}


.home-price-values small {
    margin-top: 4px;
    color: var(--home-muted);
    font-size: 12px;
}


.home-price-service-fee {
    display: block;
    margin-top: 4px;
    color: #303632;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}


.home-price-service-info {
    display: inline;
    margin: 0 0 0 2px;
    padding: 0;
    border: 0;
    color: #316aa0;
    background: transparent;
    font-size: inherit;
    font-weight: 800;
    line-height: inherit;
    cursor: pointer;
}


.home-price-service-info:hover,
.home-price-service-info:focus {
    color: var(--home-green);
    outline: none;
}


.home-price-note,
.home-price-empty {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f3f8f4;
    color: var(--home-muted);
    font-size: 14px;
}


.home-price-note strong,
.home-price-note span {
    display: block;
}


.home-price-note strong {
    color: var(--home-ink);
}


.home-price-note span {
    margin-top: 3px;
}


.home-opinion-summary {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #f9dee4;
    border-radius: 16px;
    background: #fef7f8;
}


.home-opinion-summary h3 {
    margin: 0;
    color: var(--home-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}


.home-opinion-summary p {
    margin: 4px 0 0;
    color: var(--home-muted);
    font-size: 13px;
}


.home-opinion-segments {
    margin-top: 10px;
}


.home-opinion-segments-bar {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #f0e4e6;
}


.home-opinion-segments-slice {
    height: 100%;
}


.home-opinion-segments-slice--brandlover,
.home-opinion-segments-dot--brandlover {
    background: var(--apm-brandlover);
}


.home-opinion-segments-slice--funcional,
.home-opinion-segments-dot--funcional {
    background: var(--apm-funcional);
}


.home-opinion-segments-slice--dismiss,
.home-opinion-segments-dot--dismiss {
    background: var(--apm-dismiss);
}


.home-opinion-segments-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}


.home-opinion-segments-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--home-muted);
    font-size: 12px;
}


.home-opinion-segments-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}


.home-opinion-tag {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--apm-dismiss-soft);
    color: var(--apm-dismiss-ink);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}


.home-opinion-tag--brandlover {
    background: var(--apm-brandlover-soft);
    color: var(--apm-brandlover-ink);
}


.home-opinion-tag--funcional {
    background: var(--apm-funcional-soft);
    color: var(--apm-funcional-ink);
}


.home-opinion-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}


.home-opinion-pager-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #dfe4e0;
    border-radius: 50%;
    background: #fff;
    color: var(--home-green);
    font-size: 14px;
    cursor: pointer;
}


.home-opinion-pager-btn:hover:not(:disabled),
.home-opinion-pager-btn:focus:not(:disabled) {
    border-color: var(--home-green);
    background: var(--home-green-soft);
    outline: none;
}


.home-opinion-pager-btn:disabled {
    color: #c3ccc6;
    cursor: default;
    opacity: .6;
}


.home-opinion-pager-status {
    color: var(--home-muted);
    font-size: 13px;
}


.home-opinion-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.home-opinion {
    padding: 11px 14px;
    border: 1px solid #e3ece5;
    border-radius: 16px;
    background: #fff;
}


.home-opinion--positiva {
    background: #f8fcf9;
}


.home-opinion-head {
    display: flex;
    align-items: center;
    gap: 12px;
}


.home-opinion-emotion {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    object-fit: contain;
}


.home-opinion-emotion--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f8f4;
    color: var(--home-muted);
}


.home-opinion-meta {
    min-width: 0;
}


.home-opinion-meta strong {
    display: block;
    color: var(--home-ink);
    font-size: 14px;
    line-height: 1.25;
}


.home-opinion-meta span {
    display: block;
    margin-top: 2px;
    color: var(--home-muted);
    font-size: 12px;
}


.home-opinion-comment {
    margin: 8px 0 0;
    color: var(--home-ink);
    font-size: 14px;
    line-height: 1.45;
}


.home-professional-details {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e3e8e4;
}


.home-professional-details-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}


.home-professional-details-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border-radius: 14px;
    color: var(--home-green);
    background: #eaf7ed;
    font-size: 18px;
}


.home-professional-details-heading h3,
.home-professional-details-heading p {
    margin: 0;
}


.home-professional-details-heading h3 {
    color: var(--home-ink);
    font-size: 18px;
}


.home-professional-details-heading p {
    margin-top: 3px;
    color: var(--home-muted);
    font-size: 13px;
}


.calagend-home-body .home-modal-dialog {
    width: min(calc(100% - 32px), 1040px);
    max-width: 1040px;
    margin: 24px auto;
}


.calagend-home-body .home-modal-content {
    overflow: hidden;
    border: 1px solid rgba(21, 129, 47, .12);
    border-radius: 24px;
    background: #fff !important;
    box-shadow: 0 28px 80px rgba(7, 25, 12, .24);
}


.calagend-home-body .home-modal-body {
    padding: 30px;
}


.calagend-home-body .home-modal-close {
    width: 40px;
    height: 40px;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    border: 1px solid #e4e9e5;
    border-radius: 50%;
    color: #49524c;
    background: #fff;
    box-shadow: 0 6px 16px rgba(18, 40, 23, .08);
    font-size: 16px;
    line-height: 1;
    opacity: 1;
}


.calagend-home-body .home-modal-close:hover {
    color: var(--home-green);
    border-color: #cfe1d2;
    background: var(--home-green-soft);
}


.calagend-home-body .home-modal-header {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 58px 22px 0;
    border-bottom: 1px solid #e8ece9;
    text-align: left;
}


.calagend-home-body .legal-modal-header.home-modal-header {
    padding: 28px 76px 22px 30px;
}


.home-modal-header-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--home-green);
    background: var(--home-green-soft);
    font-size: 21px;
}


/* El corazon del modal de Opiniones va en el mismo rojo que el de la ficha;
   el verde del icono generico es para el resto de los modales. */
.home-modal-header-icon--heart {
    color: #f20d20;
    background: #fdeaec;
}


.calagend-home-body .home-modal-title {
    margin: 0 0 3px;
    color: var(--home-ink);
    font-family: 'Nunito Sans', Arial, sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.3px;
    line-height: 1.15;
    text-align: left;
}


.calagend-home-body .home-modal-subtitle {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.4;
}


.home-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e8ece9;
    color: var(--home-muted);
    font-size: 13px;
}


.home-modal-primary-action {
    padding: 11px 20px;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(100deg, #0b7728, #169338);
    font-weight: 700;
    text-decoration: none !important;
}


.next-service-fee {
    display: block;
    margin-top: 2px;
    color: #303632;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}


.next-values-button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 5px;
    padding: 0;
    border: 0;
    color: #316aa0;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}


.next-values-button:hover,
.next-values-button:focus {
    color: var(--home-green);
    outline: none;
}


.next-values-dialog {
    width: min(calc(100% - 28px), 620px);
    max-width: 620px;
}


.next-values-modal {
    border-radius: 22px;
}


/* Los valores usan la misma tarjeta que los datos del profesional para que las
   dos filas del modal se lean como una sola cosa. */
.next-values-summary-prices p + p {
    margin-top: 3px;
}


/* El destacado es para el valor declarado, no para el aviso de contacto, que
   puede quedar primero cuando el profesional no declaro valor. */
.next-values-summary-prices p:first-of-type:not(.next-values-contact) {
    color: var(--home-ink);
    font-size: 14px;
    font-weight: 700;
}


/* La ficha de la portada dentro del modal de precios: el h3 de la tarjeta la
   pisaba con 19px y todo en negrita, y el apellido tiene que ir liviano. */
.next-values-summary .home-provider-name {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.18;
    text-transform: none;
}


/* En el modal la lista de comunas va completa: se permite partir en lineas,
   a diferencia de la ficha de la portada, que la corta en una. Va con las dos
   clases porque .home-provider-location la deja en una sola linea y, al no
   partirse, empujaba el ancho de la ventana. */
.next-values-summary .next-values-location {
    margin-top: 4px;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
}


/* Brandlover, Funcional y Dismiss con los colores del reporte de APM. En el
   modal hay ancho, asi que la linea puede partirse. */
.next-values-segments {
    flex-wrap: wrap;
    white-space: normal;
    gap: 4px 12px;
}


.next-values-segment {
    font-weight: 700;
}


.next-values-segment--funcional {
    color: var(--apm-funcional-ink);
}


.next-values-segment--dismiss {
    color: var(--apm-dismiss-ink);
}


/* De que depende el precio: contexto, no un valor mas. */
.next-values-factors {
    margin-top: 7px !important;
    padding-top: 7px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}


.next-values-content {
    display: grid;
    gap: 10px;
    padding-top: 12px;
}


.next-values-summary {
    display: flex;
    /* Arriba y no al centro: con tres lineas de texto el icono se descuadraba
       respecto de la tarjeta de al lado. */
    align-items: flex-start;
    gap: 13px;
    padding: 14px;
    border: 1px solid #e3ece5;
    border-radius: 17px;
    background: #f8fcf9;
}


.home-price-cards > * {
    min-width: 0;
}


.next-values-summary {
    max-width: 100%;
}


.next-values-summary > *,
.next-values-summary .home-provider-content {
    min-width: 0;
}


.next-values-summary h3,
.next-values-summary p {
    overflow-wrap: anywhere;
}


/* Aviso de que el profesional contacta antes de la hora. Los iconos son dibujo:
   ni el telefono ni el correo se publican aqui. */
.next-values-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eef7f0;
    color: #2c3a30;
}


.next-values-contact-icons {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}


.next-values-contact-icons span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1f7a45;
    color: #fff;
    font-size: 14px;
}


.next-values-summary-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 15px;
    color: var(--home-green);
    background: #eaf7ed;
    font-size: 18px;
}


.next-values-summary h3 {
    margin: 0 0 4px;
    color: var(--home-ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: capitalize;
}


.next-values-summary p {
    margin: 0;
    color: var(--home-muted);
    font-size: 12px;
    line-height: 1.35;
}


.next-values-profile {
    display: grid;
    gap: 10px;
}


.next-values-profile > div,
.next-values-empty {
    padding: 12px 14px;
    border: 1px solid #e3e8e4;
    border-radius: 15px;
    background: #fff;
}


.next-values-profile strong {
    display: block;
    margin-bottom: 4px;
    color: var(--home-ink);
    font-size: 13px;
    font-weight: 800;
}


.next-values-profile p,
.next-values-empty {
    margin: 0;
    color: #525c56;
    font-size: 12px;
    line-height: 1.45;
}


.next-values-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}


.next-values-landing-button,
.next-values-close-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}


.next-values-landing-button {
    border: 0;
    color: #fff !important;
    background: linear-gradient(100deg, #0b7728, #169338);
}


.next-values-close-button {
    border: 1px solid #dce5df;
    color: #525c56;
    background: #fff;
}


.next-service-fee-dialog {
    width: min(calc(100% - 28px), 460px);
    max-width: 460px;
}


.next-service-fee-modal {
    border-radius: 22px;
}


.next-service-fee-header.home-modal-header {
    padding-bottom: 18px;
}


.next-service-fee-copy {
    padding-top: 18px;
    color: #525c56;
    font-size: 13px;
    line-height: 1.5;
}


.next-service-fee-copy p {
    margin: 0 0 12px;
}


.next-service-fee-copy strong {
    display: block;
    color: var(--home-ink);
    font-weight: 800;
}


.next-service-fee-footer {
    margin-top: 18px;
}
@media (max-width: 767px) {
    .home-top-grid {
        gap: 14px;
    }

    .home-header-inner,
    .home-shell,
    .calagend-home-body .footer {
        width: min(100% - 28px, 1424px);
    }

    .home-header-inner {
        min-height: 74px;
    }

    .home-brand {
        font-size: 25px;
    }

    .home-brand img {
        width: 37px;
        height: 37px;
    }

    .home-brand--lockup img {
        width: auto;
        height: 42px;
    }

    .home-about-button {
        display: none;
    }

    .home-provider-login {
        padding: 10px 14px;
        font-size: 11px;
    }

    .home-main {
        padding-top: 14px;
    }

    .home-intro {
        padding: 4px 0 0;
    }

    .home-title {
        font-size: 31px;
    }

    .home-lead {
        margin: 16px 0 0;
        font-size: 17px;
    }

    .home-categories {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-search-form .home-categories {
        gap: 7px;
    }

    .home-search-form .home-category {
        grid-template-rows: 34px 20px;
        font-size: 8px;
    }

    .home-search-form .home-category-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 18px;
    }

    .home-search-form .home-category-label {
        padding-top: 5px;
    }

    .home-search-form {
        padding: 20px 5px;
    }

    .home-search-form--compact {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .home-search-types {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .home-radio-copy {
        white-space: normal;
    }

    .home-search-field {
        min-height: 60px;
    }

    .home-search-form--compact .home-search-field {
        min-height: 60px;
    }

    .home-search-copy {
        position: relative;
        padding-left: 19px;
    }

    .home-search-input {
        font-size: 15px;
    }

    /* En movil no cabe el placeholder de escritorio, asi que se oculta y se
       dibuja encima un texto mas corto de una sola linea. */
    .home-search-input::-webkit-input-placeholder {
        color: transparent;
    }

    .home-search-input::placeholder {
        color: transparent;
    }

    .home-search-hint {
        display: flex;
        position: absolute;
        top: 0;
        right: 12px;
        bottom: 0;
        left: 19px;
        align-items: center;
        color: #8b7b6e;
        font-size: 15px;
        line-height: 1.2;
        white-space: nowrap;
        pointer-events: none;
    }

    .home-search-input:not(:placeholder-shown) + .home-search-hint {
        display: none;
    }

    .home-search-example {
        display: none;
    }

    .home-search-submit {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        margin-right: 10px;
        font-size: 16px;
    }

    .home-benefits {
        display: none;
    }

    .home-filter-toggle {
        width: calc(100% - 10px);
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin: 0 5px 8px;
        padding: 9px 15px;
        border: 1px solid #e6ebe7;
        border-radius: 16px;
        color: #172018;
        background: #fff;
        box-shadow: 0 10px 24px rgba(20, 38, 25, .07);
        text-align: left;
    }

    .home-filter-toggle strong,
    .home-filter-toggle small {
        display: block;
    }

    .home-filter-toggle strong {
        font-size: 13px;
        line-height: 1.15;
    }

    .home-filter-toggle small {
        margin-top: 2px;
        color: #6b7280;
        font-size: 11px;
        line-height: 1.2;
    }

    .home-filter-toggle .fa {
        color: var(--home-green);
        transition: transform .18s ease;
    }

    .home-filter-toggle.is-open .fa {
        transform: rotate(180deg);
    }

    .home-filter-toggle.has-active-filters {
        border-color: #cdebd4;
        background: #f8fcf9;
    }

    .home-filter-toggle.has-active-filters strong::after {
        content: "";
        width: 7px;
        height: 7px;
        display: inline-block;
        margin-left: 7px;
        border-radius: 50%;
        background: var(--home-green);
        vertical-align: 1px;
    }

    .home-search-card .home-filter-bar {
        display: none;
        margin: 0 5px 14px;
    }

    .home-search-card .home-filter-bar.is-open {
        display: grid;
    }

    .home-search-card .home-filter-bar-title {
        display: none;
    }

    .home-search-card .home-filter-toggle.is-open + .home-filter-bar-title {
        display: block;
        margin: 0 5px 8px;
    }

    .home-filter-bar {
        grid-template-columns: 1fr;
    }

    .home-filter {
        min-height: 54px;
        border-right: 0;
        border-bottom: 1px solid #e7e9ec;
    }

    .home-clear-filters {
        min-height: 42px;
    }

    .home-results {
        padding-top: 14px;
    }

    .home-results-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 8px;
    }

    .home-scroll-hint {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: -4px 0 10px;
        color: #6b7280;
        font-size: 12px;
        font-weight: 700;
    }

    .home-scroll-hint.is-hidden {
        display: none;
    }

    .home-scroll-hint .fa {
        color: var(--home-green);
    }

    /* iOS ignora ::-webkit-scrollbar y en Safari viejo no existe
       scrollbar-width, asi que la barra nativa se dibuja igual y salen dos.
       Se recorta: el scroller sobresale 18px por abajo y el contenedor los
       tapa. El margin negativo devuelve el alto, que no cambia. */
    .home-provider-scroll {
        position: relative;
        overflow: hidden;
    }

    .home-provider-grid {
        display: flex;
        gap: 14px;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        margin-bottom: -18px;
        padding: 0 2px 32px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    /* Safari en iOS ignora ::-webkit-scrollbar y la barra nativa es overlay:
       se esconde sola y no queda pista de que hay mas fichas al lado. Por eso
       se oculta la nativa y se dibuja una propia, que si se ve en todos lados.
       La mueve updateSliderControls() en home-redesign.js.
       Va tambien sobre .has-results-scroll: sus reglas base tienen mas
       especificidad y devolvian la barra nativa apenas hay mas de 4 fichas. */
    .home-provider-grid::-webkit-scrollbar,
    .home-provider-grid.has-results-scroll::-webkit-scrollbar {
        display: none;
    }

    .home-scroll-track {
        position: relative;
        height: 4px;
        display: block;
        margin: 2px 2px 0;
        border-radius: 999px;
        background: #e6ebe7;
        overflow: hidden;
    }

    .home-scroll-track.is-hidden {
        display: none;
    }

    .home-scroll-thumb {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        display: block;
        width: 30%;
        border-radius: 999px;
        background: #79aa82;
    }

    .home-provider-grid.has-results-scroll {
        max-height: none;
        overflow-y: hidden;
        padding-right: 2px;
        scrollbar-width: none;
    }

    .home-provider-card {
        min-width: min(330px, 82vw);
        scroll-snap-align: start;
    }

    /* La ficha es mas ancha en movil que en escritorio, asi que los botones
       de modalidad reparten el ancho sobrante en vez de dejarlo muerto a la
       derecha. Al ensanchar, el texto cabe en dos lineas y el alto lo dicta
       el contenido: mas anchos y mas bajos que los 57x68 de escritorio. */
    .home-provider-actions {
        align-items: stretch;
    }

    .home-provider-modes {
        flex: 1 1 auto;
    }

    .home-provider-mode-icon {
        width: auto;
        height: auto;
        min-height: 54px;
        flex: 1 1 0;
        min-width: 0;
        max-width: 78px;
    }

    .home-provider-info {
        width: auto;
        height: auto;
        min-height: 54px;
        flex: 0 0 66px;
    }

    .calagend-home-body .footer > .text-center {
        flex-direction: column;
        gap: 8px;
    }

    .home-footer-links,
    .home-footer-contact {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .home-footer-links a + a::before {
        margin-right: 10px;
    }

    .calagend-home-body .home-modal-dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .calagend-home-body .home-modal-content {
        border-radius: 20px;
    }

    .calagend-home-body .home-modal-body {
        padding: 20px;
    }

    .calagend-home-body .home-modal-close {
        width: 36px;
        height: 36px;
        top: 14px;
        right: 14px;
    }

    .calagend-home-body .home-modal-header {
        gap: 11px;
        padding: 0 42px 17px 0;
    }

    .calagend-home-body .legal-modal-header.home-modal-header {
        padding: 20px 58px 17px 20px;
    }

    .home-price-modal-content .home-modal-body {
        padding: 0;
    }

    .home-price-modal-content .home-modal-header {
        padding: 20px 20px 17px;
    }

    .home-price-modal-body {
        max-height: calc(100vh - 210px);
        padding: 20px;
    }

    .home-price-modal-close-desktop {
        display: none !important;
    }

    .calagend-home-body .home-price-modal-close-mobile {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .home-price-modal-actions {
        display: flex;
        padding: 10px 14px 14px;
    }

    .home-price-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-price-values {
        width: 100%;
        text-align: left;
    }

    .home-professional-details {
        margin-top: 18px;
        padding-top: 17px;
    }

    .home-professional-service summary {
        padding: 13px 14px;
    }

    .home-professional-service-body {
        padding: 0 14px 14px;
    }

    .home-modal-header-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 13px;
        font-size: 18px;
    }

    .calagend-home-body .home-modal-title {
        font-size: 18px;
    }

    .calagend-home-body .home-modal-subtitle {
        font-size: 11px;
    }

    .home-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 18px;
    }

    .calagend-home-body .calagend-info-video {
        min-height: 0;
    }

    .calagend-home-body .calagend-info-block {
        padding: 15px;
    }

    .home-modal-footer {
        align-items: stretch;
        flex-direction: column;
        margin-top: 18px;
        text-align: center;
    }

    .home-modal-primary-action {
        text-align: center;
    }

    .calagend-home-body .legal-modal-body {
        padding: 16px 20px 20px;
    }

    .calagend-home-body .legal-modal-scroll {
        height: 62vh;
        padding: 17px;
    }

    .contact-main {
        min-height: 0;
        padding: 28px 0 34px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-intro {
        transform: none;
    }

    .contact-title {
        font-size: 39px;
        letter-spacing: -1.8px;
    }

    .contact-lead {
        margin: 17px 0 23px;
        font-size: 16px;
    }

    .contact-support-list {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 21px;
        border-radius: 20px;
    }

    .contact-card-header {
        align-items: flex-start;
        margin-bottom: 21px;
        padding-bottom: 18px;
    }

    .contact-card-header h2 {
        font-size: 19px;
    }

    .contact-form {
        gap: 16px;
    }

    .search-results-main {
        min-height: 0;
        padding: 20px 0 34px;
    }

    .results-search-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 21px;
    }

    .results-search-heading h1 {
        font-size: 28px;
    }

    .results-home-link {
        display: inline-flex;
    }

    .results-heading-actions {
        width: 100%;
        justify-content: space-between;
    }

    .results-search-form {
        gap: 17px;
        padding: 19px 21px 22px;
    }

    .results-search-types {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .results-search-control {
        min-height: 48px;
        padding-left: 14px;
    }

    .results-search-control button {
        min-width: 88px;
    }

    .results-list-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .results-professional-card {
        grid-template-columns: 1fr;
        gap: 17px;
        padding: 16px;
    }

    .results-professional-profile > img {
        width: 88px;
        height: 88px;
        flex-basis: 88px;
    }

    .results-professional-profile h3 {
        font-size: 16px;
    }

    .results-availability {
        grid-template-columns: 1fr;
        padding: 16px 0;
        border-top: 1px solid #e7ebe8;
        border-right: 0;
        border-bottom: 1px solid #e7ebe8;
        border-left: 0;
    }

    .results-availability-item {
        align-items: center;
    }

    .results-professional-actions {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .results-empty-state {
        margin-top: 22px;
        padding: 27px 20px;
    }

    .next-appointment-main {
        min-height: 0;
        padding: 25px 0 35px;
    }

    .next-appointment-heading {
        align-items: flex-start;
    }

    .next-appointment-heading h1 {
        font-size: 30px;
    }

    .next-professional-profile {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 20px;
    }

    .next-professional-profile img {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
    }

    .next-professional-profile h2 {
        font-size: 18px;
    }

    .next-profile-status {
        width: 100%;
        justify-content: center;
    }

    .next-appointment-form {
        padding: 21px 20px 23px;
    }

    .next-options-heading {
        align-items: flex-start;
    }

    .next-option-card {
        grid-template-columns: 22px 40px minmax(0, 1fr);
        gap: 11px;
        padding: 15px;
    }

    .next-option-icon {
        width: 40px;
        height: 40px;
    }

    .next-option-date,
    .next-option-price {
        grid-column: 2 / -1;
        padding: 11px 0 0;
        border-top: 1px solid #e6eae7;
        border-left: 0;
    }

    .next-option-price {
        margin-top: -1px;
    }

    .next-appointment-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .next-continue-button,
    .next-calendar-link {
        width: 100%;
    }

    .calagend-home-body .calagend-help-modal .modal-dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .calagend-home-body .calagend-help-modal .modal-content {
        border-radius: 20px;
    }

    .calagend-home-body .calagend-help-modal .modal-body {
        padding: 20px;
    }

    .calagend-home-body .calagend-help-modal .bootbox-close-button {
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
    }

    .calagend-help-header {
        gap: 11px;
        padding: 0 56px 17px 0;
    }

    .calagend-help-header-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .calagend-help-header h2 {
        font-size: 18px;
    }

    .calagend-help-header p {
        font-size: 11px;
    }

    .calagend-help-content p {
        padding: 14px;
        font-size: 12px;
        line-height: 1.8;
    }

    .calagend-home-body .calagend-help-modal .modal-footer {
        padding: 0 20px 20px;
    }

    .calagend-help-accept {
        width: 100%;
    }

    .booking-calendar-main {
        min-height: 0;
        padding: 24px 0 35px;
    }

    .booking-calendar-heading {
        align-items: flex-start;
    }

    .booking-calendar-heading h1 {
        font-size: 30px;
    }

    .calendar-professional-profile {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 19px;
    }

    .calendar-professional-profile img {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .calendar-professional-profile h2 {
        font-size: 17px;
    }

    .calendar-profile-status {
        width: 100%;
        justify-content: center;
    }

    .booking-calendar-toolbar {
        padding: 18px 19px;
    }

    .booking-calendar-navigation {
        width: 100%;
        justify-content: space-between;
    }

    .booking-calendar-navigation > div {
        min-width: 130px;
    }

    .booking-calendar-legend {
        flex-wrap: wrap;
    }

    .booking-calendar-scroll {
        overflow-x: auto;
        padding: 18px 19px 10px;
        -webkit-overflow-scrolling: touch;
    }

    .booking-calendar-grid {
        min-width: 720px;
    }

    .booking-calendar-mobile-hint {
        display: flex;
        align-items: center;
        gap: 7px;
        margin: 14px 19px 0;
        color: #737a75;
        font-size: 10px;
        font-weight: 700;
    }

    .booking-calendar-note {
        margin: 12px 19px 20px;
    }
}


.booking-summary-price-values .next-service-fee {
    display: block;
    margin-top: 3px;
    color: #4b5563;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
}
