/* tidyPLC public theme – loaded after Bootstrap 5.3 (CDN) */
:root {
    --tp-primary: #0f766e;
    --tp-primary-600: #0d9488;
    --tp-primary-800: #115e59;
    --tp-primary-50: #f0fdfa;
    --tp-primary-100: #ccfbf1;
    --tp-accent: #f59e0b;
    --tp-whatsapp: #15803d;
    --tp-ink: #0f172a;
    --tp-text: #1e293b;
    --tp-muted: #475569;
    --tp-bg: #f8fafc;
    --tp-border: #e2e8f0;
    --tp-radius: 1.25rem;
    --tp-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --tp-shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .30);

    --bs-primary: #0f766e;
    --bs-primary-rgb: 15, 118, 110;
    --bs-link-color: #0f766e;
    --bs-link-color-rgb: 15, 118, 110;
    --bs-link-hover-color: #115e59;
    --bs-link-hover-color-rgb: 17, 94, 89;
    --bs-body-font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --bs-body-font-size: 1.125rem;
    --bs-body-line-height: 1.7;
    --bs-body-color: #1e293b;
    --bs-body-bg: #f8fafc;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    color: var(--tp-ink);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}

h5, h6, .h5, .h6 { color: var(--tp-ink); font-weight: 700; }

.lead { font-size: 1.25rem; color: var(--tp-muted); }

a { text-underline-offset: .2em; }

:focus-visible {
    outline: 3px solid var(--tp-accent) !important;
    outline-offset: 3px;
}

.tp-skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 2000;
    background: var(--tp-ink);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: .75rem;
}
.tp-skip:focus { top: 1rem; color: #fff; }

/* ───────── Buttons ───────── */
.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: .7rem 1.4rem;
}
.btn-sm { padding: .45rem .9rem; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.15rem; }

.btn-primary {
    --bs-btn-bg: #0f766e;
    --bs-btn-border-color: #0f766e;
    --bs-btn-hover-bg: #115e59;
    --bs-btn-hover-border-color: #115e59;
    --bs-btn-active-bg: #134e4a;
    --bs-btn-active-border-color: #134e4a;
    --bs-btn-disabled-bg: #0f766e;
    --bs-btn-disabled-border-color: #0f766e;
    --bs-btn-focus-shadow-rgb: 15, 118, 110;
    box-shadow: 0 8px 20px -10px rgba(15, 118, 110, .7);
}

.btn-outline-primary {
    --bs-btn-color: #0f766e;
    --bs-btn-border-color: #0f766e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0f766e;
    --bs-btn-hover-border-color: #0f766e;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #115e59;
    --bs-btn-active-border-color: #115e59;
    border-width: 2px;
    background: #fff;
}

.btn-whatsapp {
    --bs-btn-color: #fff;
    --bs-btn-bg: #15803d;
    --bs-btn-border-color: #15803d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #166534;
    --bs-btn-hover-border-color: #166534;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #14532d;
    --bs-btn-active-border-color: #14532d;
}

.btn-light.text-primary { color: var(--tp-primary) !important; }

/* ───────── Header ───────── */
.tp-header {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--tp-border);
}
.tp-header .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--tp-ink);
    letter-spacing: -.02em;
}
.tp-header .nav-link {
    font-weight: 600;
    color: var(--tp-text);
    padding: .5rem 1rem !important;
    border-radius: 999px;
}
.tp-header .nav-link:hover,
.tp-header .nav-link.active {
    background: var(--tp-primary-50);
    color: var(--tp-primary);
}
.tp-header .dropdown-menu {
    border-radius: 1rem;
    border-color: var(--tp-border);
    box-shadow: var(--tp-shadow);
    padding: .5rem;
}
.tp-header .dropdown-item {
    border-radius: .6rem;
    padding: .5rem .9rem;
    font-weight: 500;
}
.tp-header .dropdown-item.active,
.tp-header .dropdown-item:active {
    background: var(--tp-primary);
}

/* ───────── Hero ───────── */
.tp-hero {
    background:
        radial-gradient(circle at 85% 10%, rgba(20, 184, 166, .18), transparent 45%),
        linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--tp-border);
}
.tp-hero-title {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    line-height: 1.12;
}
.tp-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--tp-primary-100);
    color: var(--tp-primary-800);
    font-weight: 600;
    font-size: .95rem;
    padding: .4rem .95rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px -8px rgba(15, 118, 110, .5);
}
.tp-checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .5rem 1.25rem;
}
.tp-checks li { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; }
.tp-checks i { color: var(--tp-primary); margin-top: .2rem; }

.tp-hero-media { position: relative; }
.tp-hero-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow-lg);
}
.tp-floating-alert {
    position: absolute;
    left: -1rem;
    bottom: 1.5rem;
    display: flex;
    gap: .75rem;
    align-items: center;
    max-width: 300px;
    background: #fff;
    border-radius: 1rem;
    padding: .85rem 1.1rem;
    box-shadow: var(--tp-shadow-lg);
    animation: tp-pop .6s ease-out .4s both;
}
.tp-floating-alert i { font-size: 1.9rem; color: var(--tp-whatsapp); }
.tp-floating-alert strong { display: block; color: var(--tp-ink); line-height: 1.3; }
.tp-floating-alert small { color: var(--tp-muted); }
@media (max-width: 991.98px) {
    .tp-floating-alert { left: .75rem; bottom: .75rem; }
}
@keyframes tp-pop {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to { opacity: 1; transform: none; }
}

/* ───────── Sections ───────── */
.tp-section { padding: 5rem 0; }
.tp-section-alt {
    background: #fff;
    border-top: 1px solid var(--tp-border);
    border-bottom: 1px solid var(--tp-border);
}
@media (max-width: 767.98px) {
    .tp-section { padding: 3.5rem 0; }
}
.tp-section-head {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}
.tp-section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: .75rem; }
.tp-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .85rem;
    font-weight: 700;
    color: var(--tp-primary);
    margin-bottom: .5rem;
}

/* ───────── Cards ───────── */
.tp-card {
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}
.tp-card-hover:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow); }
.tp-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.tp-card p { color: var(--tp-muted); }
.tp-card p:last-child { margin-bottom: 0; }

.tp-icon {
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 auto;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: var(--tp-primary-50);
    color: var(--tp-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.tp-icon-whatsapp { background: #dcfce7; color: var(--tp-whatsapp); }

.tp-list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: 1rem;
    height: 100%;
}
.tp-list-item .tp-icon { margin: 0; width: 3rem; height: 3rem; font-size: 1.35rem; }
.tp-list-item h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.tp-list-item p { margin: 0; color: var(--tp-muted); font-size: 1rem; line-height: 1.55; }

.tp-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow);
}

/* ───────── Problem / steps ───────── */
.tp-problems { list-style: none; padding: 0; margin: 0; }
.tp-problems li {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .85rem 1rem;
    margin-bottom: .6rem;
    border-radius: .9rem;
    background: #fff1f2;
    color: #9f1239;
    font-weight: 600;
}
.tp-steps { counter-reset: tp-step; list-style: none; padding: 0; margin: 0; }
.tp-steps li {
    counter-increment: tp-step;
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.25rem;
    min-height: 2.5rem;
}
.tp-steps li::before {
    content: counter(tp-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--tp-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

/* ───────── Pills ───────── */
.tp-pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.tp-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.05rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--tp-border);
    font-weight: 600;
    color: var(--tp-text);
}
.tp-pill i { color: var(--tp-primary); }

/* ───────── CTA blocks ───────── */
.tp-cta {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    color: #e6fffb;
    border-radius: var(--tp-radius);
    padding: 3.5rem 1.5rem;
    box-shadow: var(--tp-shadow-lg);
}
.tp-cta h2 { color: #fff; }
.tp-cta .lead { color: #ccfbf1; }

.tp-final { background: var(--tp-ink); color: #cbd5e1; }
.tp-final h2 { color: #fff; }
.tp-final .lead { color: #cbd5e1; }

/* ───────── FAQ ───────── */
.tp-faq { max-width: 860px; margin: 0 auto; }
.tp-faq .accordion-item {
    border: 1px solid var(--tp-border);
    border-radius: 1rem !important;
    overflow: hidden;
    margin-bottom: .75rem;
    background: #fff;
}
.tp-faq .accordion-button {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.25rem 1.4rem;
    color: var(--tp-ink);
}
.tp-faq .accordion-button:not(.collapsed) {
    background: var(--tp-primary-50);
    color: var(--tp-primary-800);
    box-shadow: none;
}
.tp-faq .accordion-button:focus { box-shadow: 0 0 0 .25rem rgba(15, 118, 110, .2); }
.tp-faq .accordion-body { color: var(--tp-muted); padding: 1.1rem 1.4rem 1.4rem; }

/* ───────── Forms ───────── */
.tp-form .form-label { font-weight: 600; color: var(--tp-ink); margin-bottom: .35rem; }
.tp-form .form-control {
    padding: .85rem 1rem;
    font-size: 1.1rem;
    border-radius: .85rem;
    border: 2px solid var(--tp-border);
    background: #fff;
}
.tp-form .form-control:focus {
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 .25rem rgba(15, 118, 110, .18);
}
.tp-form .form-text { font-size: .95rem; color: var(--tp-muted); }
.tp-form .alert { border-radius: .9rem; font-weight: 600; }

.modal-content { border: 0; border-radius: 1.5rem; box-shadow: var(--tp-shadow-lg); }
.modal-header { border-bottom: 0; padding: 1.5rem 1.5rem .5rem; }
.modal-body { padding: .5rem 1.5rem 1.5rem; }

/* ───────── Timeline (about) ───────── */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 2.5rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: .9rem;
    top: .5rem;
    bottom: .5rem;
    width: 3px;
    border-radius: 3px;
    background: var(--tp-primary-100);
}
.timeline-step { position: relative; margin-bottom: 1.25rem; }
.timeline-step::before {
    content: '';
    position: absolute;
    left: -2.05rem;
    top: 1.75rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--tp-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--tp-primary-100);
}

/* ───────── Legal ───────── */
.tp-legal { max-width: 860px; }
.tp-legal h1 { font-size: 1.75rem; margin-top: 2.5rem; }
.tp-legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.tp-legal h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.tp-legal table {
    width: 100%;
    margin: 1rem 0 1.5rem;
    border-collapse: collapse;
    background: #fff;
    font-size: 1rem;
}
.tp-legal th, .tp-legal td { border: 1px solid var(--tp-border); padding: .6rem .8rem; }
.tp-legal th { background: var(--tp-primary-50); }

/* ───────── Footer ───────── */
.tp-footer { background: var(--tp-ink); color: #cbd5e1; font-size: 1rem; }
.tp-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.tp-footer a { color: #e2e8f0; text-decoration: none; }
.tp-footer a:hover { color: #5eead4; }
.tp-footer ul { list-style: none; padding: 0; margin: 0; }
.tp-footer li { margin-bottom: .5rem; }
.tp-footer hr { border-color: rgba(255, 255, 255, .15); opacity: 1; }

/* ───────── Mobile action bar & WhatsApp ───────── */
.tp-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--tp-border);
    box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .25);
}
.tp-mobilebar .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
    padding: .55rem .25rem;
    font-size: .95rem;
    border-radius: .9rem;
    box-shadow: none;
}
.tp-mobilebar .btn i { font-size: 1.3rem; }
@media (max-width: 991.98px) {
    body { padding-bottom: 5.5rem; }
}
@media (min-width: 992px) {
    .tp-mobilebar { display: none; }
}

.tp-whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1030;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: var(--tp-whatsapp);
    color: #fff;
    display: none;
    place-items: center;
    font-size: 1.9rem;
    box-shadow: var(--tp-shadow-lg);
    transition: transform .2s ease;
}
.tp-whatsapp-float:hover { color: #fff; transform: scale(1.07); }
@media (min-width: 992px) {
    .tp-whatsapp-float { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
