/* DigiTurnos - Landing. Filtros responsivos integrados sin alterar el diseño personalizado. */
:root {
    --navy: #08111f;
    --navy-soft: #111d30;
    --orange: #ff6500;
    --ink: #eaf0f7;
    --muted: #9bacbe;
    --line: rgba(232,241,251,.13);
    --card: rgba(17,29,48,.84);
    --green: #55d39a;
    --red: #ff8559;
    --gray: #607086;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: radial-gradient(circle at 8% 4%,#1d385d 0,transparent 27rem),radial-gradient(circle at 96% 30%,rgba(255,101,0,.16) 0,transparent 28rem),var(--navy);
    color: var(--ink);
    font-family: "Instrument Sans",sans-serif;
}
.dt-header,.dt-hero,.dt-demo,.dt-benefits,.dt-cta {
    width: min(1460px,calc(100% - 2rem));
    margin: auto;
}
.dt-header {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dt-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #fff;
    text-decoration: none;
    font: 800 1.65rem Manrope,sans-serif;
    letter-spacing: -.06em;
}
.dt-brand img {
    width: 38px;
}
.dt-back {
    color: #d2dce8;
    text-decoration: none;
    font-weight: 700;
}
.dt-hero {
    display: block;
    position: relative;
    padding: 4.2rem 0 2.7rem;
}
.dt-hero>div:first-child {
    width: 100%;
}
.dt-kicker,.dt-eyebrow {
    margin: 0 0 .65rem;
    color: var(--orange);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .13em;
}
.dt-hero h1,.dt-benefits h2,.dt-cta h2 {
    max-width: 850px;
    margin: 0;
    font: 800 clamp(2.45rem,6vw,5.25rem)/.98 Manrope,sans-serif;
    letter-spacing: -.065em;
}
.dt-hero h1 {
    max-width: none;
    width: 100%;
}
.dt-hero p:not(.dt-kicker) {
    max-width: 680px;
    margin: 1.4rem 0 0;
    color: #bdc9d8;
    font-size: 1.15rem;
    line-height: 1.65;
}
.dt-live-pill {
    position: absolute;
    top: 4.2rem;
    right: 0;
    white-space: nowrap;
    margin-bottom: .4rem;
    padding: .65rem .9rem;
    border: 1px solid rgba(85,211,154,.34);
    border-radius: 999px;
    color: #bcefd6;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .07em;
}
.dt-live-pill span {
    display: inline-block;
    width: .48rem;
    height: .48rem;
    margin-right: .35rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(85,211,154,.12);
}
.dt-demo {
    display: grid;
    grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
    gap: 1.2rem;
    align-items: start;
}
.dt-agenda-panel,.dt-chat-panel,.dt-benefits,.dt-cta {
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 24px 70px rgba(0,0,0,.2);
    backdrop-filter: blur(12px);
}
.dt-agenda-panel,.dt-chat-panel {
    border-radius: 24px;
    padding: 1.35rem;
    min-width: 0;
}
.dt-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.dt-panel-head h2 {
    margin: 0;
    font: 800 1.55rem Manrope,sans-serif;
    letter-spacing: -.04em;
}
.dt-refresh,.dt-online {
    padding: .42rem .65rem;
    border-radius: 999px;
    background: rgba(85,211,154,.1);
    color: #aee8ca;
    font-size: .72rem;
    font-weight: 800;
}
.dt-controls {
    display: grid;
    grid-template-columns: minmax(13rem,.9fr) minmax(0,1.25fr) minmax(0,1.45fr);
    gap: .7rem;
    margin: 1.35rem 0;
}
.dt-controls:has(#subspecialty-filter-wrap:not([hidden])) {
    grid-template-columns: minmax(12rem,.8fr) repeat(3,minmax(0,1fr));
}
#subspecialty-filter-wrap[hidden] {
    display: none !important;
}
.dt-date-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding: .42rem;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.dt-date-nav button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #1b2a40;
    color: #fff;
    font-size: 1.45rem;
    cursor: pointer;
    flex-shrink: 0;
}
.dt-date-nav strong {
    flex: 1;
    min-width: 0;
    text-align: center;
    text-transform: capitalize;
    font-size: .78rem;
    line-height: 1.25;
    white-space: normal;
    text-wrap: balance;
}
.dt-select-label {
    display: grid;
    min-width: 0;
    gap: .3rem;
    color: var(--muted);
    font-size: .69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.dt-select-label select {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #13233a;
    color: #eff5fb;
    padding: .62rem;
    font: 600 .83rem "Instrument Sans";
}
.dt-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .5rem 0 .95rem;
    color: #bfccdb;
    font-size: .78rem;
    font-weight: 700;
}
.dt-legend i {
    display: inline-block;
    width: .52rem;
    height: .52rem;
    margin-right: .3rem;
    border-radius: 50%;
}
.available {
    --slot: var(--green);
}
.reserved {
    --slot: var(--red);
}
.blocked {
    --slot: var(--gray);
}
.dt-legend i {
    background: var(--slot);
}
.dt-status {
    min-height: 1.2rem;
    color: var(--muted);
    font-size: .76rem;
}
.dt-agenda-grid {
    display: grid;
    gap: .75rem;
    margin-top: .7rem;
    max-height: 515px;
    overflow: auto;
    padding-right: .2rem;
}
.dt-resource {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.dt-resource header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem .85rem;
    background: rgba(255,255,255,.035);
}
.dt-resource header strong {
    font-size: .88rem;
}
.dt-resource header span {
    color: var(--muted);
    font-size: .75rem;
}
.dt-slots {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .7rem;
}
.dt-slot {
    display: grid;
    gap: .16rem;
    min-width: 72px;
    padding: .47rem;
    border: 1px solid color-mix(in srgb,var(--slot) 40%,transparent);
    border-radius: 9px;
    background: color-mix(in srgb,var(--slot) 11%,transparent);
    color: #f2f8fd;
    font: 700 .68rem "Instrument Sans";
    text-align: center;
}
.dt-slot b {
    color: var(--slot);
    font-size: .55rem;
    letter-spacing: .03em;
}
.dt-slot.reserved {
    cursor: pointer;
}
.dt-slot.blocked {
    cursor: default;
    opacity: .8;
}
.dt-empty {
    margin: .2rem;
    color: var(--muted);
    font-size: .82rem;
}
.dt-privacy {
    margin: .95rem 0 0;
    color: var(--muted);
    font-size: .72rem;
}
.dt-chat-panel .dt-panel-head {
    margin-bottom: 1rem;
}
.dt-julia-title {
    display: flex;
    align-items: center;
    gap: .7rem;
}
.dt-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg,#ff8740,var(--orange));
    color: #fff;
    font: 800 1rem Manrope,sans-serif;
}
.dt-julia-copy {
    margin: 1.2rem 0;
    color: #c2cede;
    line-height: 1.55;
}
.dt-widget-shell {
    min-height: 420px;
    width: 100%;
    min-width: 0;
}
.dt-widget-pending {
    display: grid;
    place-content: center;
    min-height: 420px;
    padding: 2rem;
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 16px;
    background: rgba(8,17,31,.45);
    text-align: center;
}
.dt-widget-pending strong {
    font: 800 1.1rem Manrope,sans-serif;
}
.dt-widget-pending p {
    max-width: 300px;
    margin: .75rem auto 0;
    color: var(--muted);
    line-height: 1.5;
}
.dt-benefits {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem;
    border-radius: 24px;
}
.dt-benefits h2,.dt-cta h2 {
    font-size: clamp(2rem,3.6vw,3.4rem);
}
.dt-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: .8rem;
}
.dt-benefit-grid article {
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8,17,31,.3);
}
.dt-benefit-grid h3 {
    margin: 0;
    font-size: .95rem;
}
.dt-benefit-grid p {
    margin: .5rem 0 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}
.dt-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 1.2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(120deg,#ff7c2a,var(--orange));
}
.dt-cta .dt-kicker {
    color: #3c1a09;
}
.dt-cta a {
    padding: .9rem 1.1rem;
    border-radius: 11px;
    background: #fff;
    color: var(--navy);
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}
.dt-dialog {
    max-width: 360px;
    border: 0;
    border-radius: 18px;
    padding: 1.6rem;
    background: #14233a;
    color: #fff;
    box-shadow: 0 20px 80px #000;
}
.dt-dialog::backdrop {
    background: rgba(0,0,0,.65);
}
.dt-dialog button {
    float: right;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.dt-dialog h2 {
    margin: 1rem 0 .4rem;
    font: 800 1.4rem Manrope,sans-serif;
}
.dt-dialog p {
    margin: .2rem 0;
    color: #dbe5ee;
}
.dt-dialog small {
    color: #9facbc;
}
@media (max-width:1080px) {
    .dt-demo {
        grid-template-columns: 1fr;
    }
    .dt-chat-panel {
        order: -1;
    }
}
@media (max-width:880px) {
    .dt-hero {
        padding-top: 2.6rem;
    }
    .dt-live-pill {
        position: static;
        display: inline-block;
        margin-top: 1.3rem;
    }
    .dt-benefits {
        grid-template-columns: 1fr;
    }
    .dt-widget-shell,.dt-widget-pending {
        min-height: 330px;
    }
}
@media (max-width:700px) {
    .dt-controls,.dt-controls:has(#subspecialty-filter-wrap:not([hidden])) {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .dt-date-nav {
        grid-column: 1/-1;
    }
    .dt-date-nav strong {
        font-size: .84rem;
    }
}
@media (max-width:590px) {
    .dt-header {
        min-height: 68px;
    }
    .dt-brand span {
        font-size: 1.35rem;
    }
    .dt-back {
        font-size: .78rem;
    }
    .dt-hero {
        display: block;
        padding-bottom: 1.8rem;
    }
    .dt-live-pill {
        display: inline-block;
        margin-top: 1.3rem;
    }
    .dt-controls,.dt-controls:has(#subspecialty-filter-wrap:not([hidden])) {
        grid-template-columns: 1fr;
    }
    .dt-date-nav {
        grid-column: auto;
    }
    .dt-date-nav strong {
        font-size: .8rem;
    }
    .dt-agenda-panel,.dt-chat-panel {
        padding: 1rem;
        border-radius: 18px;
    }
    .dt-resource header {
        display: block;
    }
    .dt-resource header span {
        display: block;
        margin-top: .22rem;
    }
    .dt-slot {
        min-width: calc(33.33% - .35rem);
    }
    .dt-benefit-grid {
        grid-template-columns: 1fr;
    }
    .dt-cta {
        display: block;
        padding: 1.35rem;
        border-radius: 18px;
    }
    .dt-cta a {
        display: inline-flex;
        margin-top: 1rem;
    }
    .dt-benefits {
        margin-top: 2.5rem;
        padding: 1.2rem;
        border-radius: 18px;
    }
}
/* Indicador de demo dentro del panel de Julia */
.dt-chat-panel .dt-live-pill {
    position: static;
    margin: 0;
    flex-shrink: 0;
}
@media (max-width: 590px) {
    .dt-chat-panel .dt-panel-head {
        flex-wrap: wrap;
    }
}
