html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: #f5f7fb;
}

/* Keep sidebar navigation readable regardless of Bootstrap text utilities. */
.app-sidebar a.nav-link,
.app-sidebar a.nav-link:visited {
  color: #f1f5f9 !important;
}

.app-sidebar a.nav-link i {
  color: #93c5fd !important;
}

.app-sidebar a.nav-link:hover,
.app-sidebar a.nav-link:focus-visible {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.14);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Landing page */
.app-main:has(.public-hero) {
    max-width: 1320px;
    margin-inline: auto;
    padding: 0 clamp(1rem, 5vw, 4rem) 3rem;
}
 .public-hero {
    /* Keep the landing message near the navbar rather than below a tall hero gutter. */
    padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}
 .public-hero > .row {
    /* The taller workflow card must not vertically push the headline downward. */
    align-items: flex-start !important;
}
 .hero-kicker {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    margin-bottom: 1.25rem;
    color: #1d4ed8;
    font-weight: 700;
}
 .public-hero h1 {
    max-width: 780px;
    margin-bottom: 1.25rem;
    color: #0f172a;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .99;
}
 .hero-lead {
    max-width: 700px;
    margin-bottom: 2rem;
    color: #526079;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}
 .hero-plan-link {
    display: inline-flex;
    gap: .25rem;
    margin-top: 1.15rem;
    align-items: center;
    color: #1d4ed8;
    font-size: .92rem;
    font-weight: 750;
    text-decoration: none;
}

 .hero-plan-link:hover,
 .hero-plan-link:focus-visible {
    color: #1e40af;
    text-decoration: underline;
    text-underline-offset: 4px;
}

 .hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
    color: #475569;
    font-size: .92rem;
}
 .hero-trust i {
    margin-right: .35rem;
    color: #16a34a;
}
 .workflow-card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .1);
}
 .workflow-heading {
    display: flex;
    margin-bottom: 1.25rem;
    align-items: center;
    justify-content: space-between;
    color: #0f172a;
    font-weight: 700;
}
 .workflow-list {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: workflow;
}
 .workflow-list li {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    background: #f8fafc;
    border-radius: .85rem;
}
 .workflow-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: #2563eb;
    background: #dbeafe;
    border-radius: .7rem;
    font-size: 1.15rem;
}
 .workflow-list strong,
.workflow-list small {
    display: block;
}
 .workflow-list small {
    margin-top: .15rem;
    color: #64748b;
}
 .public-section {
    padding: 2rem 0 5rem;
}
 .section-heading {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
}
 .section-heading > span {
    color: #2563eb;
    font-weight: 700;
}
 .section-heading h2 {
    margin: .65rem 0 .85rem;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.04em;
}
 .section-heading p,
.feature-card p {
    color: #64748b;
    line-height: 1.65;
}
 .feature-card {
    height: 100%;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
 .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, .08);
}
 .feature-card > i {
    display: inline-grid;
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    place-items: center;
    color: #2563eb;
    background: #eff6ff;
    border-radius: .8rem;
    font-size: 1.35rem;
}
 .feature-card h3 {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
}
 .feature-card p {
    margin-bottom: 0;
}
/* Public organization plan comparison */
.pricing-section {
    position: relative;
    margin: 1rem 0 5rem;
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 0%, rgba(59, 130, 246, .13), transparent 28%),
        radial-gradient(circle at 5% 25%, rgba(16, 185, 129, .09), transparent 24%),
        #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 1.75rem;
}

.pricing-heading {
    max-width: 820px;
}

.pricing-value-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
    margin: 0 0 1.6rem;
}

.pricing-value-strip > div {
    display: flex;
    gap: .7rem;
    min-width: 0;
    padding: .9rem 1rem;
    align-items: center;
    background: rgba(255, 255, 255, .88);
    border: 1px solid #dbeafe;
    border-radius: .95rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.pricing-value-strip i {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: .7rem;
    font-size: 1rem;
}

.pricing-value-strip span,
.pricing-value-strip strong,
.pricing-value-strip small {
    display: block;
    min-width: 0;
}

.pricing-value-strip strong {
    color: #0f172a;
    font-size: .86rem;
    line-height: 1.25;
}

.pricing-value-strip small {
    margin-top: .16rem;
    color: #64748b;
    font-size: .74rem;
    line-height: 1.35;
}

.plan-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 1.6rem;
    flex-direction: column;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dce5f0;
    border-radius: 1.3rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 24px 55px rgba(15, 23, 42, .11);
}

.plan-card-featured {
    border: 2px solid #2563eb;
    box-shadow: 0 24px 58px rgba(37, 99, 235, .15);
}

.plan-ribbon {
    position: absolute;
    top: -13px;
    left: 50%;
    display: inline-flex;
    gap: .4rem;
    padding: .38rem .85rem;
    align-items: center;
    color: #fff;
    background: #2563eb;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    transform: translateX(-50%);
    white-space: nowrap;
}

.plan-card-header {
    display: flex;
    gap: .75rem;
    margin-top: .35rem;
    align-items: flex-start;
    justify-content: space-between;
}

.plan-eyebrow {
    display: block;
    margin-bottom: .4rem;
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.plan-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.65rem;
    font-weight: 850;
    letter-spacing: -.025em;
}

.plan-level-badge {
    padding: .28rem .6rem;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.plan-description {
    min-height: 3.4rem;
    margin: .85rem 0 1rem;
    color: #64748b;
    line-height: 1.6;
}

.plan-price {
    display: flex;
    gap: .4rem;
    margin-bottom: .75rem;
    align-items: baseline;
    color: #0f172a;
}

.plan-price strong {
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 850;
    letter-spacing: -.045em;
}

.plan-price span {
    color: #64748b;
    font-size: .9rem;
    font-weight: 600;
}

.plan-billing-options {
    display: flex;
    gap: .4rem;
    min-height: 2.05rem;
    margin: -.2rem 0 .8rem;
    flex-wrap: wrap;
}

.plan-billing-options span {
    padding: .3rem .55rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .55rem;
    font-size: .72rem;
    font-weight: 650;
}

.plan-savings-badge {
    display: inline-flex;
    margin-left: .25rem;
    padding: .12rem .36rem;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 800;
    white-space: nowrap;
}

.plan-capacity-callout {
    display: flex;
    gap: .85rem;
    margin: .35rem 0 1.15rem;
    padding: .9rem 1rem;
    align-items: center;
    color: #0f172a;
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px solid #dbeafe;
    border-radius: .85rem;
}

.plan-capacity-callout > i {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    color: #1d4ed8;
    background: #fff;
    border-radius: .7rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .06);
}

.plan-capacity-callout strong,
.plan-capacity-callout small {
    display: block;
}

.plan-capacity-callout strong {
    font-size: 1.02rem;
}

.plan-capacity-callout small {
    margin-top: .12rem;
    color: #64748b;
}

.plan-feature-list {
    display: grid;
    gap: .72rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.plan-feature-list li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: .55rem;
    align-items: start;
    color: #334155;
    font-size: .9rem;
    line-height: 1.45;
}

.plan-feature-list li > i {
    margin-top: .08rem;
}

.plan-feature-on > i {
    color: #16a34a;
}

.plan-feature-off {
    color: #94a3b8 !important;
}

.plan-feature-off > i {
    color: #94a3b8;
}

.seat-explainer {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1.2rem;
    margin: 2rem 0;
    padding: clamp(1.35rem, 3vw, 2rem);
    color: #e2e8f0;
    background:
        radial-gradient(circle at 90% 10%, rgba(59, 130, 246, .2), transparent 30%),
        linear-gradient(135deg, #0f172a, #172554);
    border-radius: 1.2rem;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .16);
}

.seat-explainer-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #bfdbfe;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: .95rem;
    font-size: 1.45rem;
}

.seat-explainer span {
    color: #93c5fd;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.seat-explainer h3 {
    margin: .32rem 0 .5rem;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 800;
}

.seat-explainer p {
    max-width: 960px;
    margin: 0;
    color: #cbd5e1;
    line-height: 1.65;
}

.plan-comparison-shell {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 1.2rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .05);
}

.plan-comparison-intro {
    display: flex;
    gap: 1rem 2rem;
    padding: 1.25rem 1.4rem;
    align-items: end;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.plan-comparison-intro span {
    color: #2563eb;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.plan-comparison-intro h3 {
    margin: .25rem 0 0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
}

.plan-comparison-intro small {
    max-width: 420px;
    color: #64748b;
    line-height: 1.5;
    text-align: right;
}

.plan-comparison-table {
    --bs-table-bg: transparent;
    min-width: 760px;
}

.plan-comparison-table th,
.plan-comparison-table td {
    padding: .9rem 1rem;
    border-color: #e9eef5;
}

.plan-comparison-table thead th {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    color: #0f172a;
    background: #f8fafc;
    font-weight: 800;
    text-align: center;
}

.plan-comparison-table thead th:first-child {
    text-align: left;
}

.plan-comparison-table thead th span,
.plan-comparison-table thead th small {
    display: block;
}

.plan-comparison-table thead th small {
    margin-top: .2rem;
    color: #2563eb;
    font-size: .7rem;
}

.plan-comparison-table tbody th {
    min-width: 180px;
    color: #475569;
    background: #fbfdff;
    font-weight: 700;
}

.plan-comparison-table thead th:first-child,
.plan-comparison-table tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
}

.plan-comparison-table thead th:first-child {
    z-index: 3;
}

.plan-comparison-table tbody tr:hover td,
.plan-comparison-table tbody tr:hover th {
    background-color: #f8fbff;
}

.plan-comparison-table tbody td {
    color: #334155;
    text-align: center;
}

.plan-comparison-table tbody td small {
    display: block;
    margin-top: .15rem;
    color: #64748b;
}

.plan-comparison-table .comparison-featured {
    background: #eff6ff;
}

.comparison-yes,
.comparison-no {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    justify-content: center;
}

.comparison-yes {
    color: #15803d;
    font-weight: 700;
}

.comparison-no {
    color: #94a3b8;
}

.comparison-saving {
    color: #15803d !important;
    font-weight: 700;
}

.comparison-scroll-hint {
    display: flex;
    gap: .4rem;
    padding: .65rem .9rem;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: .78rem;
    font-weight: 700;
}

.comparison-cta-row th,
.comparison-cta-row td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: #fbfdff;
}

.pricing-footnote {
    margin: 1rem 0 0;
    color: #64748b;
    font-size: .83rem;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 767.98px) {
    .pricing-section {
        margin-inline: -.35rem;
        padding-inline: 1rem;
        border-radius: 1.2rem;
    }

    .pricing-value-strip {
        grid-template-columns: 1fr 1fr;
    }

    .plan-card-grid {
        grid-template-columns: 1fr;
    }

    .plan-description {
        min-height: 0;
    }

    .seat-explainer {
        grid-template-columns: 1fr;
    }

    .plan-comparison-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .plan-comparison-intro small {
        text-align: left;
    }

    .plan-comparison-table th,
    .plan-comparison-table td {
        padding: .8rem .75rem;
    }
}

@media (max-width: 479.98px) {
    .pricing-value-strip {
        grid-template-columns: 1fr;
    }
}

 .public-cta {
    display: flex;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(125deg, #1d4ed8, #14213d);
    border-radius: 1.25rem;
}
 .public-cta span {
    color: #bfdbfe;
    font-weight: 600;
}
 .public-cta h2 {
    margin: .4rem 0 0;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 750;
}
 @media (max-width: 767.98px) {
    .public-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Public SEO content pages */
.seo-public-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem clamp(.25rem, 3vw, 2rem) 3rem;
}

.seo-breadcrumb {
    display: flex;
    gap: .45rem;
    margin: .5rem 0 1.5rem;
    align-items: center;
    color: #64748b;
    font-size: .9rem;
}

.seo-breadcrumb a {
    color: #475569;
    text-decoration: none;
}

.seo-breadcrumb a:hover,
.seo-breadcrumb a:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.seo-page-hero {
    padding: clamp(2.5rem, 7vw, 5rem);
    background:
        radial-gradient(circle at 85% 10%, rgba(96, 165, 250, .22), transparent 28%),
        linear-gradient(135deg, #eff6ff, #ffffff 55%, #f5f3ff);
    border: 1px solid #dbeafe;
    border-radius: 1.5rem;
}

.seo-page-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: #1d4ed8;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.seo-page-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #0f172a;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.seo-page-hero > p {
    max-width: 800px;
    margin: 1.35rem 0 0;
    color: #526079;
    font-size: 1.12rem;
    line-height: 1.75;
}

.seo-page-sections {
    display: grid;
    gap: 1.25rem;
    margin: 2rem 0;
}

.seo-content-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 1.25rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.15rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .045);
}

.seo-content-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #2563eb;
    background: #eff6ff;
    border-radius: .9rem;
    font-size: 1.35rem;
}

.seo-content-card h2 {
    margin: 0 0 .65rem;
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 800;
}

.seo-content-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.seo-content-card ul {
    display: grid;
    gap: .55rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.seo-content-card li {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    color: #475569;
}

.seo-content-card li i {
    margin-top: .1rem;
    color: #16a34a;
}

.seo-page-bottom-cta {
    display: flex;
    gap: 2rem;
    padding: clamp(1.8rem, 4vw, 3rem);
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(125deg, #1d4ed8, #312e81);
    border-radius: 1.25rem;
}

.seo-page-bottom-cta span {
    color: #bfdbfe;
    font-weight: 700;
}

.seo-page-bottom-cta h2 {
    margin: .35rem 0 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .seo-public-page {
        padding-inline: 0;
    }

    .seo-page-hero {
        border-radius: 1rem;
    }

    .seo-content-card {
        grid-template-columns: 1fr;
    }

    .seo-page-bottom-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Configured platform contact actions */
.floating-whatsapp-contact {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 1050;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .24);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.floating-whatsapp-contact:hover,
.floating-whatsapp-contact:focus-visible {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.floating-whatsapp-contact:focus-visible { outline: 3px solid #134e4a; outline-offset: 3px; }
.contact-call-link { white-space: nowrap; }
@media (max-width: 575.98px) {
    .floating-whatsapp-contact { width: 52px; height: 52px; font-size: 27px; }
    .guest-header .contact-call-link { padding-inline: .55rem; }
}

/* QuizCasa brand mark shared by sidebar, guest header and footer */
.quizcasa-brand-icon { display:inline-block; width:34px; height:34px; flex:none; object-fit:contain; vertical-align:middle; }
.sidebar-brand .quizcasa-brand-icon { width:38px; height:38px; }
.footer-brand .quizcasa-brand-icon { width:36px; height:36px; }
@media (max-width:575.98px) { .quizcasa-brand-icon { width:30px; height:30px; } }
