/* ============================================================
   LAYOUT-DISTRIBUTION.CSS
   Capa compartida de distribucion visual entre modulos:
   - portalCitas
   - agendar
   - profesionales (publico)
   ============================================================ */

.app-layout {
    --layout-shell-max: 80rem;
    --layout-content-max: 72rem;
    --layout-header-min-h: 4.25rem;
    --layout-main-pt: clamp(1rem, 2.4vw, 2rem);
    --layout-main-pb: clamp(1.25rem, 2.8vw, 2.5rem);
    --layout-footer-py: clamp(1rem, 2vw, 1.5rem);
    --layout-footer-text-size: 0.875rem;
    --layout-footer-line: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-layout .container {
    max-width: var(--layout-shell-max);
}

.app-layout .layout-header {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.app-layout .layout-header .header-container,
.app-layout .layout-header .header__container {
    min-height: var(--layout-header-min-h);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.app-layout .layout-main {
    width: 100%;
    padding-top: var(--layout-main-pt);
    padding-bottom: var(--layout-main-pb);
}

.app-layout .layout-footer {
    margin-top: auto;
    padding-top: var(--layout-footer-py);
    padding-bottom: var(--layout-footer-py);
}

.app-layout .layout-footer .footer-text {
    font-size: var(--layout-footer-text-size);
    line-height: var(--layout-footer-line);
}

.app-layout .tagline {
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--gray-600);
}

.app-layout--portal {
    --layout-content-max: 68rem;
}

.app-layout--agendar {
    --layout-content-max: 76rem;
}

.app-layout--reagendar {
    --layout-content-max: 72rem;
}

.app-layout--portal .layout-main > .card {
    max-width: var(--layout-content-max);
    margin-left: auto;
    margin-right: auto;
}

.app-layout--agendar .layout-main > .wizard-card {
    max-width: var(--layout-content-max);
    margin-left: auto;
    margin-right: auto;
}

.app-layout--reagendar #screen-summary > .card {
    max-width: var(--layout-content-max);
    margin-left: auto;
    margin-right: auto;
}

.app-layout--portal .layout-footer .footer-text,
.app-layout--agendar .layout-footer .footer-text,
.app-layout--reagendar .layout-footer .footer-text {
    max-width: 72ch;
}

.app-layout--profesionales {
    --container-max: 80rem;
    --layout-main-pt: 0;
    --layout-main-pb: 0;
    --layout-footer-py: 0;
    --layout-content-max: 80rem;
}

.app-layout--profesionales .section {
    padding-top: clamp(2.25rem, 4.5vw, 3.5rem);
    padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

.app-layout--profesionales .section__header {
    margin-bottom: clamp(1.5rem, 3.2vw, 2.25rem);
}

.app-layout--profesionales .layout-footer {
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: 1.5rem;
}

@media (max-width: 1023px) {
    .app-layout {
        --layout-content-max: 100%;
    }
}

@media (max-width: 767px) {
    .app-layout .layout-header .header-container,
    .app-layout .layout-header .header__container {
        min-height: 3.75rem;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .app-layout {
        --layout-main-pt: 0.8rem;
        --layout-main-pb: 1.2rem;
        --layout-footer-py: 0.9rem;
        --layout-footer-text-size: 0.78rem;
    }

    .app-layout .tagline {
        display: none;
    }

    .app-layout .logo-img {
        width: 104px;
        max-height: 52px;
    }

    .app-layout--portal .layout-main > .card,
    .app-layout--agendar .layout-main > .wizard-card,
    .app-layout--reagendar #screen-summary > .card {
        border-radius: 0.875rem;
    }

    .app-layout--portal .layout-main > .card {
        margin-bottom: 1rem;
    }

    .app-layout--profesionales .section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}
