.phcl-bar {
    --phcl-teal: #14565d;
    --phcl-ink: #103e46;
}

.phcl-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: .65rem;
}

.phcl-bar .phcl-link {
    --phcl-accent: var(--phcl-teal);
    --phcl-number: var(--phcl-ink);
    --phcl-surface: #f1f8f7;
    --phcl-icon-bg: #dcefea;
    --phcl-border: #c8e3de;
    display: flex;
    align-items: center;
    gap: clamp(.55rem, 1.8vw, .95rem);
    min-height: 4.75rem;
    padding: .7rem clamp(.65rem, 2vw, 1rem);
    color: var(--phcl-accent);
    background: var(--phcl-surface);
    border: 1px solid var(--phcl-border);
    border-radius: .85rem;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 3px 9px #103e4608;
    transition: box-shadow .18s ease, border-color .18s ease;
}

.phcl-bar .phcl-emergency {
    --phcl-accent: #922737;
    --phcl-number: #792031;
    --phcl-surface: #fff4f5;
    --phcl-icon-bg: #f8dfe4;
    --phcl-border: #edc6cf;
}

.phcl-bar .phcl-link:hover {
    border-color: var(--phcl-accent);
    box-shadow: 0 4px 12px #103e4616;
}

.phcl-bar .phcl-link:focus-visible {
    outline: 2px solid var(--phcl-accent);
    outline-offset: 2px;
}

.phcl-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: .7rem;
    background: var(--phcl-icon-bg);
}

.phcl-icon:empty {
    display: none;
}

.phcl-icon .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.phcl-copy {
    display: grid;
    gap: .2rem;
}

.phcl-label {
    font-size: .82rem;
    font-weight: 700;
}

.phcl-bar .phcl-copy strong {
    color: var(--phcl-number);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: .015em;
    white-space: nowrap;
}

.phcl-inline {
    margin-block: 1rem;
}

.phcl-home-contact {
    margin-block: 1.5rem 2rem;
}

.phcl-footer {
    padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 4vw, 2.25rem);
    background: linear-gradient(180deg, var(--teal, #007f89), #073f49);
}

.phcl-footer .phcl-links {
    max-width: 45rem;
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(.65rem, 2vw, 1rem);
}

.phcl-footer .phcl-link {
    --phcl-accent: #fff;
    --phcl-number: #fff;
    --phcl-surface: #14565d;
    --phcl-hover: #10484e;
    --phcl-icon-bg: #ffffff26;
    --phcl-border: #83bdbe;
    --phcl-focus: #fff;
    min-height: 4.5rem;
    padding: .75rem clamp(.875rem, 2vw, 1.125rem);
    border-radius: .65rem;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease;
}

.phcl-footer .phcl-emergency {
    --phcl-accent: #842439;
    --phcl-number: #741b2e;
    --phcl-surface: #fff;
    --phcl-hover: #fff2f4;
    --phcl-icon-bg: #f8e5e9;
    --phcl-border: #d99eab;
    --phcl-focus: #fff;
}

.phcl-footer .phcl-link:hover {
    background: var(--phcl-hover);
    border-color: var(--phcl-focus);
    box-shadow: none;
}

.phcl-footer .phcl-link:focus-visible {
    outline-color: var(--phcl-focus);
}

.phcl-footer .phcl-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.phcl-footer .phcl-copy {
    gap: .125rem;
}

.phcl-footer .phcl-copy strong {
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    letter-spacing: 0;
}

.phcl-footer .phcl-link::after {
    content: "";
    flex: 0 0 .4rem;
    height: .4rem;
    margin-inline-start: auto;
    margin-inline-end: .2rem;
    border-block-start: 2px solid currentColor;
    border-inline-end: 2px solid currentColor;
    transform: rotate(45deg);
}

@media (max-width: 560px) {
    .phcl-footer .phcl-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .phcl-footer .phcl-link {
        min-height: 4rem;
    }
}

.phcl-mobile,
body .mobile-actions,
.site-footer .footer-phone {
    display: none;
}

@media (max-width: 760px) {
    body .floating-whatsapp,
    body.home .floating-whatsapp {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    body .floating-phone,
    body.home .floating-phone {
        bottom: calc(144px + env(safe-area-inset-bottom, 0px));
    }

    .phcl-mobile {
        position: fixed;
        z-index: 998;
        inset: auto 0 0;
        display: block;
        padding: .4rem .55rem calc(.4rem + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid #d4e7e3;
        box-shadow: 0 -4px 18px #102f3a22;
    }

    .phcl-mobile .phcl-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .4rem;
    }

    .phcl-mobile .phcl-link {
        gap: .4rem;
        padding: .35rem .45rem;
        min-height: 3.15rem;
        border-radius: .65rem;
    }

    .phcl-mobile .phcl-icon {
        width: 1.7rem;
        height: 1.7rem;
        border-radius: .4rem;
    }

    .phcl-mobile .phcl-icon .icon {
        width: .95rem;
        height: .95rem;
    }

    .phcl-mobile .phcl-label {
        font-size: .75rem;
    }

    .phcl-mobile .phcl-copy strong {
        font-size: clamp(.875rem, 3.65vw, 1rem);
    }

    body .site-footer,
    body.home .site-footer {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .phcl-bar .phcl-link {
        transition: none;
    }
}

@media print {
    .phcl-mobile {
        display: none;
    }
}
