@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
    --primary: #087f8c;
    --primary-dark: #05616c;
    --primary-light: #e8f7f7;
    --accent: #23b6a5;

    --navy: #12343b;
    --text: #263d42;
    --muted: #71868a;

    --white: #ffffff;
    --bg: #f5f9f9;
    --border: #dce8e9;

    --shadow-sm: 0 8px 24px rgba(20, 67, 73, .07);
    --shadow-md: 0 18px 45px rgba(20, 67, 73, .10);
    --shadow-lg: 0 30px 70px rgba(20, 67, 73, .14);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;

    --container: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .91);
    border-bottom: 1px solid rgba(220, 232, 233, .8);
    backdrop-filter: blur(16px);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--white);
    background: linear-gradient(145deg, var(--primary), var(--accent));
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(8, 127, 140, .20);
}

.brand > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand strong {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
}

.brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .04em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.desktop-nav a {
    color: #50696e;
    font-size: .92rem;
    font-weight: 600;
    transition: color .2s ease;
}

.desktop-nav a:hover {
    color: var(--primary);
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    min-height: 50px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    color: var(--white);
    background: var(--primary);
    font-weight: 700;
    box-shadow: 0 9px 22px rgba(8, 127, 140, .18);
    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 13px 28px rgba(8, 127, 140, .23);
}

.btn-small {
    min-height: 42px;
    padding-inline: 18px;
    font-size: .88rem;
}

.btn-secondary {
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-secondary:hover {
    color: var(--primary);
    background: var(--white);
    border-color: #a9cdcf;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 95px 0 90px;
    background:
        radial-gradient(circle at 90% 15%, rgba(35, 182, 165, .12), transparent 27%),
        radial-gradient(circle at 15% 85%, rgba(8, 127, 140, .07), transparent 28%),
        linear-gradient(180deg, #fbfefe 0%, #f4fafa 100%);
}

.hero::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -280px;
    bottom: -280px;
    border: 70px solid rgba(8, 127, 140, .04);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    align-items: center;
    gap: 90px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.hero h1 {
    max-width: 700px;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: clamp(3rem, 5.5vw, 5.1rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.hero h1 span {
    color: var(--primary);
}

.hero-copy > p {
    max-width: 590px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-trust {
    display: flex;
    gap: 38px;
    margin-top: 48px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.hero-trust div {
    display: flex;
    flex-direction: column;
}

.hero-trust strong {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 1.4rem;
}

.hero-trust span {
    color: var(--muted);
    font-size: .78rem;
}


/* =========================================================
   HERO CARD
========================================================= */

.hero-card {
    position: relative;
    padding: 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(237,249,249,.94));
    box-shadow: var(--shadow-lg);
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    top: -60px;
    border-radius: 50%;
    background: rgba(35, 182, 165, .08);
}

.status {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #37726f;
    background: #eaf8f4;
    font-size: .76rem;
    font-weight: 700;
}

.status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #26b77e;
    box-shadow: 0 0 0 5px rgba(38, 183, 126, .11);
}

.calendar-icon {
    width: 118px;
    height: 126px;
    margin: 42px auto 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.calendar-top {
    width: 100%;
    height: 25px;
    position: absolute;
    align-self: flex-start;
    transform: translateY(-51px);
    background: var(--primary);
}

.calendar-icon strong {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 2.45rem;
    line-height: 1;
}

.calendar-icon span {
    margin-top: 7px;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.hero-card h2 {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 1.65rem;
    text-align: center;
}

.hero-card > p {
    margin: 12px auto 26px;
    max-width: 370px;
    color: var(--muted);
    font-size: .93rem;
    text-align: center;
}

.mini-feature {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    color: #4f696d;
    border-top: 1px solid var(--border);
    font-size: .88rem;
    font-weight: 600;
}

.mini-feature span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: var(--primary-light);
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.specialties,
.how,
.booking-section {
    padding: 105px 0;
}

.section-heading {
    max-width: 670px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading h2 {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.section-heading p {
    max-width: 570px;
    margin: 17px auto 0;
    color: var(--muted);
}


/* =========================================================
   SPECIALTIES
========================================================= */

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.specialty-card {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.specialty-card:hover {
    transform: translateY(-6px);
    border-color: #b7d9da;
    box-shadow: var(--shadow-md);
}

.specialty-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--primary);
    background: var(--primary-light);
    font-family: "Manrope", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.specialty-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 1.18rem;
}

.specialty-card p {
    min-height: 76px;
    color: var(--muted);
    font-size: .9rem;
}

.specialty-card a {
    display: inline-block;
    margin-top: 23px;
    color: var(--primary);
    font-size: .87rem;
    font-weight: 700;
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.how {
    background: var(--bg);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    position: relative;
    padding: 34px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--border);
}

.step > span {
    display: inline-block;
    margin-bottom: 38px;
    color: var(--primary);
    font-family: "Manrope", sans-serif;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.step > span::after {
    content: "";
    display: inline-block;
    width: 55px;
    height: 1px;
    margin-left: 13px;
    vertical-align: middle;
    background: #c7dcde;
}

.step h3 {
    margin-bottom: 10px;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 1.15rem;
}

.step p {
    color: var(--muted);
    font-size: .9rem;
}


/* =========================================================
   BOOKING
========================================================= */

.booking-section {
    background:
        radial-gradient(circle at 20% 20%, rgba(35, 182, 165, .07), transparent 24%),
        #fff;
}

.booking-heading {
    margin-bottom: 45px;
}

.booking-app {
    min-height: 520px;
    display: grid;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.booking-sidebar {
    padding: 42px 30px;
    color: var(--white);
    background:
        radial-gradient(circle at 10% 90%, rgba(35,182,165,.20), transparent 30%),
        linear-gradient(160deg, #123b44, #0b6973);
}

.booking-step {
    position: relative;
    display: flex;
    gap: 15px;
    padding: 10px 0 36px;
    opacity: .48;
}

.booking-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 49px;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,.23);
}

.booking-step.active {
    opacity: 1;
}

.booking-step > span {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 800;
}

.booking-step.active > span {
    color: var(--primary-dark);
    background: var(--white);
    border-color: var(--white);
}

.booking-step div {
    display: flex;
    flex-direction: column;
}

.booking-step strong {
    font-size: .9rem;
}

.booking-step small {
    margin-top: 4px;
    color: rgba(255,255,255,.68);
    font-size: .72rem;
}

.booking-content {
    padding: 50px 55px;
}

.booking-title {
    margin-bottom: 32px;
}

.booking-title > span {
    color: var(--primary);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.booking-title h3 {
    margin-top: 7px;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 1.75rem;
}

.booking-title p {
    max-width: 600px;
    margin-top: 9px;
    color: var(--muted);
    font-size: .9rem;
}


/* =========================================================
   PROFESSIONALS — injected later by JS
========================================================= */

/* Filtros de profesionales en la reserva pública */
.professional-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 9px;
    margin-bottom: 24px;
}

.professional-filters label {
    color: var(--navy);
    font-size: .82rem;
    font-weight: 700;
}

.professional-filters label[for="filtroEspecialidad"] {
    grid-column: 1;
    grid-row: 1;
}

.professional-filters label[for="filtroNombreProfesional"] {
    grid-column: 2;
    grid-row: 1;
}

.professional-filters select,
.professional-filters input {
    width: 100%;
    min-width: 0;
    height: 49px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    color: var(--text);
    background: var(--white);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.professional-filters select {
    grid-column: 1;
    grid-row: 2;
    cursor: pointer;
}

.professional-filters input {
    grid-column: 2;
    grid-row: 2;
}

.professional-filters input::placeholder {
    color: #a8b6b8;
}

.professional-filters select:focus,
.professional-filters input:focus {
    border-color: #69b4ba;
    box-shadow: 0 0 0 4px rgba(8, 127, 140, .08);
}

@media (max-width: 600px) {
    .professional-filters {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 8px;
    }

    .professional-filters label[for="filtroEspecialidad"],
    .professional-filters select,
    .professional-filters label[for="filtroNombreProfesional"],
    .professional-filters input {
        grid-column: 1;
        grid-row: auto;
    }

    .professional-filters label[for="filtroNombreProfesional"] {
        margin-top: 8px;
    }
}

.professionals {
    display: grid;
    gap: 13px;
}

.professional-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--white);
    cursor: pointer;
    text-align: left;
    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.professional-card:hover {
    transform: translateX(3px);
    border-color: #8fc4c7;
    background: #fbfefe;
}

.professional-avatar {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--primary);
    background: var(--primary-light);
    font-family: "Manrope", sans-serif;
    font-weight: 800;
}

.professional-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.professional-info strong {
    color: var(--navy);
    font-size: .98rem;
}

.professional-info span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .82rem;
}

.professional-arrow {
    color: var(--primary);
    font-size: 1.25rem;
}


/* =========================================================
   LOADING
========================================================= */

.loading {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--muted);
    font-size: .87rem;
}

.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #dcebec;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.demo-notice {
    margin-top: 24px;
    color: #8a9b9e;
    font-size: .75rem;
    text-align: center;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 55px 0;
    color: rgba(255,255,255,.7);
    background: #102f36;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    align-items: center;
    gap: 40px;
}

.footer-brand strong {
    color: var(--white);
}

.footer-brand small {
    color: rgba(255,255,255,.58);
}

.footer-content > p {
    max-width: 440px;
    font-size: .8rem;
}

.footer-content > span {
    font-size: .75rem;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {

    .desktop-nav {
        display: none;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero-card {
        max-width: 600px;
    }

    .specialty-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .specialty-card p {
        min-height: 0;
    }

    .booking-app {
        grid-template-columns: 240px 1fr;
    }

    .booking-content {
        padding: 42px 35px;
    }

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


@media (max-width: 700px) {

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .nav {
        min-height: 68px;
    }

    .nav > .btn {
        display: none;
    }

    .hero {
        padding: 65px 0 70px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .hero-copy > p {
        font-size: .98rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust {
        gap: 18px;
        justify-content: space-between;
    }

    .hero-trust strong {
        font-size: 1.2rem;
    }

    .hero-trust span {
        font-size: .68rem;
    }

    .hero-card {
        padding: 27px 22px;
        border-radius: 23px;
    }

    .specialties,
    .how,
    .booking-section {
        padding: 78px 0;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .booking-app {
        display: block;
        border-radius: 20px;
    }

    .booking-sidebar {
        display: flex;
        padding: 20px;
        gap: 8px;
    }

    .booking-step {
        flex: 1;
        display: block;
        padding: 0;
        text-align: center;
    }

    .booking-step:not(:last-child)::after {
        display: none;
    }

    .booking-step > span {
        margin: 0 auto 7px;
    }

    .booking-step strong {
        display: block;
        font-size: .68rem;
    }

    .booking-step small {
        display: none;
    }

    .booking-content {
        padding: 32px 20px;
    }

    .booking-title h3 {
        font-size: 1.4rem;
    }

    .professional-card {
        gap: 13px;
        padding: 14px;
    }

    .professional-avatar {
        width: 46px;
        height: 46px;
    }
}


@media (max-width: 420px) {

    .brand-mark {
        width: 39px;
        height: 39px;
    }

    .brand strong {
        font-size: .9rem;
    }

    .brand small {
        font-size: .65rem;
    }

    .hero-trust {
        gap: 10px;
    }

    .hero-trust span {
        max-width: 80px;
    }

    .specialty-card,
    .step {
        padding: 27px 24px;
    }
}


@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* =========================================================
   BOOKING — PASO 2 / FECHA Y HORA
========================================================= */

.booking-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.change-professional {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--primary);
    background: var(--white);
    cursor: pointer;
    font-size: .76rem;
    font-weight: 700;
    transition:
        border-color .2s ease,
        background .2s ease;
}

.change-professional:hover {
    border-color: #9bc9cc;
    background: var(--primary-light);
}


/* FECHAS */

.date-selector {
    display: flex;
    gap: 10px;
    margin: 6px -4px 30px;
    padding: 4px 4px 12px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #c4d9db transparent;
}

.date-card {
    flex: 0 0 72px;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.date-card:hover {
    transform: translateY(-2px);
    border-color: #9fcacc;
    box-shadow: var(--shadow-sm);
}

.date-card span,
.date-card small {
    color: var(--muted);
    font-size: .69rem;
    text-transform: capitalize;
}

.date-card strong {
    margin: 2px 0;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 1.35rem;
}

.date-card.selected {
    color: var(--white);
    border-color: var(--primary);
    background:
        linear-gradient(145deg, var(--primary), #0998a2);
    box-shadow: 0 10px 24px rgba(8, 127, 140, .22);
}

.date-card.selected strong,
.date-card.selected span,
.date-card.selected small {
    color: var(--white);
}


/* HORAS */

.time-section {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fbfdfd;
}

.time-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.time-heading strong {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: .95rem;
    text-transform: capitalize;
}

.time-heading span {
    color: var(--muted);
    font-size: .75rem;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-slot {
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--primary-dark);
    background: var(--white);
    cursor: pointer;
    font-size: .86rem;
    font-weight: 700;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.time-slot:hover {
    transform: translateY(-1px);
    border-color: #83bfc3;
    background: var(--primary-light);
}

.time-slot.selected {
    color: var(--white);
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 7px 17px rgba(8, 127, 140, .20);
}


/* ACCIONES */

.booking-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 28px;
}

.booking-actions .btn {
    min-width: 135px;
}

.btn:disabled {
    opacity: .42;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* ERRORES */

.booking-error {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.booking-error strong {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 1.3rem;
}

.booking-error p {
    margin: 8px 0 25px;
    color: var(--muted);
}


/* SELECCIÓN PASO 1 */

.professional-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}


/* =========================================================
   PASO 2 RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .booking-title-row {
        display: block;
    }

    .change-professional {
        margin-top: 15px;
    }

    .date-selector {
        margin-top: 5px;
    }

    .date-card {
        flex-basis: 66px;
        min-height: 85px;
    }

    .time-section {
        padding: 20px 15px;
    }

    .time-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .booking-actions {
        flex-direction: column-reverse;
    }

    .booking-actions .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {

    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .date-card {
        flex-basis: 62px;
    }
}


/* =========================================================
   BOOKING — PASO 3 / DATOS DEL PACIENTE
========================================================= */

.booking-summary {
    display: grid;
    grid-template-columns: auto 1.5fr 1fr .65fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #f8fcfc;
}

.summary-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--primary);
    background: var(--primary-light);
    font-family: "Manrope", sans-serif;
    font-weight: 800;
}

.booking-summary > div:not(.summary-icon) {
    display: flex;
    flex-direction: column;
}

.booking-summary span {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.booking-summary strong {
    color: var(--navy);
    font-size: .88rem;
    text-transform: capitalize;
}

.booking-summary small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .72rem;
}


/* FORMULARIO */

.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-full {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--navy);
    font-size: .82rem;
    font-weight: 700;
}

.form-group label small {
    color: var(--muted);
    font-weight: 400;
}

.form-group input {
    width: 100%;
    height: 49px;
    padding: 0 15px;
    outline: none;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    background: var(--white);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.form-group input::placeholder {
    color: #a8b6b8;
}

.form-group input:focus {
    border-color: #69b4ba;
    background: #fdffff;
    box-shadow: 0 0 0 4px rgba(8, 127, 140, .08);
}


/* MENSAJES */

.booking-message {
    grid-column: 1 / -1;
    min-height: 0;
}

.booking-message.error {
    padding: 12px 15px;
    border: 1px solid #f0c9c9;
    border-radius: 10px;
    color: #a13c3c;
    background: #fff5f5;
    font-size: .8rem;
}

.form-actions {
    grid-column: 1 / -1;
    margin-top: 6px;
}


/* =========================================================
   CONFIRMACIÓN
========================================================= */

.booking-success {
    min-height: 410px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(145deg, var(--primary), var(--accent));
    box-shadow: 0 13px 30px rgba(8, 127, 140, .22);
    font-size: 1.8rem;
    font-weight: 800;
}

.success-eyebrow {
    color: var(--primary);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.booking-success h3 {
    margin-top: 8px;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 1.8rem;
}

.booking-success > p {
    margin-top: 8px;
    color: var(--muted);
    font-size: .88rem;
}

.success-card {
    width: 100%;
    margin: 28px 0;
    padding: 22px;
    display: grid;
    grid-template-columns: 1.5fr 1fr .65fr .65fr;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #f8fcfc;
    text-align: left;
}

.success-card div {
    display: flex;
    flex-direction: column;
}

.success-card span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.success-card strong {
    color: var(--navy);
    font-size: .88rem;
    text-transform: capitalize;
}

.success-card small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .7rem;
}


/* =========================================================
   PASO 3 RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .booking-summary {
        grid-template-columns: auto 1fr;
    }

    .summary-date,
    .summary-time {
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }

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


@media (max-width: 600px) {

    .booking-form {
        grid-template-columns: 1fr;
    }

    .form-full,
    .booking-message,
    .form-actions {
        grid-column: 1;
    }

    .booking-summary {
        grid-template-columns: auto 1fr;
        gap: 15px;
    }

    .summary-date,
    .summary-time {
        grid-column: 1 / -1;
    }

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

    .success-card div {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }

    .success-card div:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }
}


/* =========================================================
   AVISO — ANTICIPACIÓN DE RESERVA
========================================================= */

.advance-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 13px 15px;
    border: 1px solid rgba(8, 127, 140, .18);
    border-radius: 12px;
    background: rgba(8, 127, 140, .055);
}

.advance-notice-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--primary);
    font-family: "Manrope", sans-serif;
    font-size: .78rem;
    font-weight: 800;
}

.advance-notice strong {
    display: block;
    margin-bottom: 2px;
    color: var(--navy);
    font-size: .78rem;
}

.advance-notice p {
    margin: 0;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.45;
}

.advance-notice b {
    color: var(--primary);
    font-weight: 800;
}


/* =========================================================
   AUTH / LOGIN
========================================================= */

.topbar-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

.topbar-user-info strong {
    color: var(--navy);
    font-size: .78rem;
}

.topbar-user-info small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .66rem;
}

.login-back {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 600;
}

.login-back:hover {
    color: var(--primary);
}

.login-main {
    min-height: calc(100vh - 76px - 70px);
    padding: 70px 20px;

    display: grid;
    place-items: center;

    background:
        radial-gradient(
            circle at top left,
            rgba(8, 127, 140, .08),
            transparent 34%
        ),
        #f7fbfb;
}

.login-card {
    width: min(100%, 460px);
    padding: 38px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 24px 60px rgba(20, 67, 73, .10);
}

.login-heading {
    margin-bottom: 30px;
}

.login-heading h1 {
    margin: 10px 0 10px;

    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.25rem);
    line-height: 1.1;
}

.login-heading p {
    margin: 0;

    color: var(--muted);
    line-height: 1.65;
}

.login-form {
    display: grid;
    gap: 19px;
}

.login-field {
    display: grid;
    gap: 7px;
}

.login-field label {
    color: var(--navy);
    font-size: .78rem;
    font-weight: 700;
}

.login-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;

    border: 1px solid #d5e3e5;
    border-radius: 11px;

    outline: none;

    color: var(--navy);
    background: #fff;

    font: inherit;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.login-field input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(8, 127, 140, .09);
}

.login-error {
    padding: 11px 13px;

    border: 1px solid #efd2d2;
    border-radius: 10px;

    color: #9b4040;
    background: #fff5f5;

    font-size: .78rem;
    line-height: 1.45;
}

.login-submit {
    width: 100%;
    margin-top: 3px;
}

.login-submit:disabled {
    cursor: wait;
    opacity: .65;
}

.login-footer {
    padding: 22px 20px;

    color: var(--muted);
    background: #fff;

    font-size: .72rem;
}

@media (max-width: 760px) {

    .desktop-nav {
        display: none;
    }

    .topbar-user-info {
        display: none;
    }

    .login-card {
        padding: 28px 22px;
    }

}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;

    width: 40px;
    height: 40px;

    transform: translateY(-50%);

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 9px;

    cursor: pointer;

    color: var(--muted);
    background: transparent;

    font-size: .9rem;
}

.password-toggle:hover {
    color: var(--primary);
    background: #f1f8f8;
}

.password-toggle.is-visible {
    color: var(--primary);
}


/* HERO KPI CARDS — DEMOAGENDA */

.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border-top: 0;
    padding-top: 0;
}

.hero-trust > div {
    min-width: 0;
    padding: 18px 14px;
    border: 1px solid rgba(8, 127, 140, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 24px rgba(15, 55, 63, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-trust > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 55, 63, .085);
}

.hero-trust strong {
    color: var(--primary);
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.25;
}

.hero-trust span {
    margin-top: 5px;
    max-width: none;
    line-height: 1.45;
}

@media (max-width: 480px) {
    .hero-trust {
        gap: 8px;
    }

    .hero-trust > div {
        padding: 14px 9px;
        border-radius: 14px;
    }

    .hero-trust strong {
        font-size: 1.2rem;
    }

    .hero-trust span {
        font-size: .66rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-trust > div {
        transition: none;
    }
}

/* Scroll interno · profesionales de la reserva pública */
.professionals {
    max-height: min(480px, 65vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    align-content: start;
    padding: 2px 8px 2px 2px;
    scrollbar-width: thin;
    scrollbar-color: #a9cfd1 transparent;
}
