:root {
    --ink: #141414;
    --muted: #727272;
    --gold: #c9a24d;
    --paper: #f7f4ef;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--ink);
    background: #fff;
}

h1, h2, h3, .brand-admin {
    font-family: 'Playfair Display', Georgia, serif;
}

.navbar {
    min-height: 64px;
}

.text-brand {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: .98rem;
    font-weight: 800;
    color: #06113a;
    letter-spacing: 0;
}

.navbar .nav-link {
    color: #111827;
    font-size: .9rem;
}

.navbar-brand img {
    height: 42px;
}

.agenda-page {
    background: #f7f7f8;
    min-height: calc(100vh - 64px);
    padding: 16px 0 28px;
}

.agenda-wrap {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
}

.agenda-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 396px;
    gap: 48px;
    align-items: start;
}

.agenda-main {
    min-width: 0;
}

.cover-card {
    background: #222;
    border-radius: 16px;
    overflow: hidden;
    height: clamp(300px, 31vw, 392px);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.salon-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 10px 0 24px;
}

.salon-logo {
    width: 142px;
    height: 142px;
    border-radius: 24px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(15,23,42,.04);
    overflow: hidden;
}

.salon-logo img {
    width: 126px;
    height: 126px;
    object-fit: contain;
}

.salon-summary h1 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.65rem;
    line-height: 1.15;
    color: #06113a;
    font-weight: 800;
    margin: 0 0 4px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #06113a;
    font-size: .88rem;
}

.stars {
    color: #ffad4d;
    letter-spacing: 2px;
    font-size: 1.15rem;
}

.rating-row a {
    color: #06113a;
    font-size: .8rem;
}

.agenda-aside {
    position: sticky;
    top: 86px;
}

.map-card {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 16px;
    overflow: hidden;
}

.real-map {
    height: 220px;
    overflow: hidden;
    background: #eef4f8;
}

.real-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.aside-body {
    padding: 16px;
    color: #1f2937;
}

.aside-body p,
.aside-body a,
.hours-toggle {
    display: flex;
    gap: 14px;
    color: #1f2937;
    text-decoration: none;
    font-size: .92rem;
    margin-bottom: 18px;
}

.hours-toggle {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
}

.hours-toggle span {
    display: flex;
    gap: 14px;
    align-items: center;
}

.desktop-schedule {
    background: #f8fafc;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    padding: 8px 12px;
    margin: -8px 0 16px;
}

.aside-body h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: .92rem;
    font-weight: 800;
    margin: 0 0 12px;
}

.professionals-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.professional-mini {
    width: 58px;
    text-align: center;
}

.pro-avatar,
.mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #9aa1aa;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .86rem;
    font-weight: 500;
    overflow: hidden;
}

.pro-avatar img,
.mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professional-mini strong {
    display: block;
    color: #1f2937;
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.22;
    margin-top: 7px;
}

.mobile-info {
    display: none;
}

.services-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 10px;
}

.search-box {
    width: 44px;
    height: 44px;
    border: 1px solid #d9d9dc;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 auto;
}

.search-box input {
    position: absolute;
    inset: 0;
    width: 44px;
    opacity: 0;
    border: 0;
}

.search-box:focus-within {
    width: 220px;
    justify-content: flex-start;
    padding-left: 12px;
    transition: width .18s ease;
}

.search-box:focus-within input {
    opacity: 1;
    width: 100%;
    padding: 0 10px 0 30px;
    outline: 0;
    background: transparent;
    font-size: .85rem;
}

.service-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.pill {
    border: 0;
    background: #eceff2;
    color: #2d3748;
    border-radius: 7px;
    min-height: 34px;
    padding: 0 16px;
    font-size: .74rem;
    white-space: nowrap;
}

.pill.active {
    background: #fff;
    box-shadow: inset 0 0 0 1px #d7d7d9;
}

.accordion-list {
    display: grid;
    gap: 8px;
}

.agenda-category {
    background: #fff;
    border-radius: 7px;
    overflow: hidden;
}

.category-toggle {
    width: 100%;
    min-height: 40px;
    border: 0;
    background: #eef1f4;
    color: #06113a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    font-size: .78rem;
    font-weight: 800;
    text-align: left;
}

.category-toggle i {
    font-size: .8rem;
    transition: transform .16s ease;
}

.category-toggle:not(.collapsed) i {
    transform: rotate(45deg);
}

.category-services {
    background: #fff;
    border: 1px solid #edf0f2;
    border-top: 0;
}

.agenda-service {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 16px;
    border-bottom: 1px solid #edf0f2;
}

.service-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.agenda-service:last-child {
    border-bottom: 0;
}

.agenda-service h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: .95rem;
    font-weight: 800;
    margin: 0 0 5px;
    color: #06113a;
}

.agenda-service p {
    color: #667085;
    font-size: .84rem;
    line-height: 1.45;
    margin: 0 0 8px;
}

.service-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: .82rem;
    color: #667085;
}

.service-meta strong {
    color: #06113a;
}

.reserve-button {
    align-self: flex-start;
    border: 0;
    background: #111827;
    color: #fff;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.service-image-button {
    flex: 0 0 104px;
    width: 104px;
    height: 86px;
    border: 1px solid #e6e9ee;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
}

.service-image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-image-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
}

.service-image-modal .modal-header {
    background: #fff;
}

.service-image-modal .modal-body {
    padding: 0;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

#imagenServicioFull {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    object-fit: contain;
}

.admin-service-thumb {
    width: 72px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e6e9ee;
    background: #f8fafc;
}

.admin-service-preview {
    max-width: 320px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e6e9ee;
}

.admin-professional-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e6e9ee;
    background: #f8fafc;
}

.admin-professional-preview {
    max-width: 260px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e6e9ee;
    object-fit: cover;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(37, 211, 102, .32);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.whatsapp-float:hover {
    color: #fff;
    background: #1fbd5a;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(37, 211, 102, .4);
}

.whatsapp-float i {
    font-size: 1.55rem;
}

.reservation-modal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.reservation-modal .modal-header {
    background: #f7f8fa;
    border-bottom-color: #edf0f2;
}

.reservation-modal .modal-header span {
    display: block;
    color: #667085;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.reservation-modal .modal-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.selected-service-box {
    background: #f7f8fa;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: #475467;
}

.selected-service-box strong {
    color: #06113a;
}

.hero-public {
    position: relative;
    min-height: 78vh;
    background: url('../../portada.png') center/cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.35), rgba(0,0,0,.15));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.min-vh-hero {
    min-height: 78vh;
    padding: 4rem 0;
}

.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.eyebrow.dark {
    color: #735b23;
}

.hero-public h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: .95;
    margin-bottom: 1rem;
}

.hero-public p {
    max-width: 620px;
    color: rgba(255,255,255,.86);
    font-size: 1.1rem;
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #161616;
    font-weight: 700;
}

.status-panel {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: grid;
    gap: .35rem;
}

.public-main {
    background: #fff;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-heading span {
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
    font-size: .78rem;
}

.section-heading h2 {
    font-size: 2.4rem;
}

.service-group {
    border: 1px solid #eee;
    margin-bottom: 1rem;
    background: #fff;
}

.service-group h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: .9rem;
    letter-spacing: .05rem;
    font-weight: 800;
    padding: 1rem;
    margin: 0;
    background: var(--paper);
}

.service-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid #eee;
}

.service-item h4 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.service-item p {
    color: var(--muted);
    margin-bottom: .35rem;
}

.service-actions {
    min-width: 120px;
    text-align: right;
}

.info-card, .professional-card, .public-form, .admin-card {
    border: 1px solid #eee;
    background: #fff;
    padding: 1.25rem;
}

.sticky-lg-top {
    top: 1rem;
}

.info-logo {
    width: 110px;
    margin-bottom: 1rem;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: .45rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.professional-card {
    height: 100%;
}

.avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #161616;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    overflow: hidden;
    margin-bottom: 1rem;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professional-card h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 800;
    font-size: 1rem;
}

.professional-card p {
    color: var(--muted);
    font-size: .9rem;
}

.reservation-band {
    background: var(--paper);
}

.public-footer {
    background: #111;
    color: #fff;
    padding: 1.25rem 0;
}

.public-footer a {
    color: var(--gold);
}

.login-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    padding: 2rem;
}

.login-card {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid #eee;
    padding: 2rem;
}

.login-logo {
    width: 180px;
    margin-bottom: 1.5rem;
}

.admin-shell {
    min-height: 100vh;
    display: flex;
    background: #f4f6f8;
}

.admin-sidebar {
    width: 260px;
    background: #111;
    color: #fff;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand-admin img {
    width: 190px;
    margin-bottom: 1.5rem;
}

.admin-menu {
    display: grid;
    gap: .35rem;
}

.admin-menu a, .logout-link {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    padding: .75rem;
    display: flex;
    gap: .65rem;
    align-items: center;
}

.admin-menu a:hover, .logout-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.logout-link {
    margin-top: auto;
}

.admin-content {
    flex: 1;
    padding: 1.25rem;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 1rem;
    margin-bottom: 1rem;
}

.metric-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 1rem;
    display: grid;
    gap: .4rem;
}

.metric-card span {
    color: var(--muted);
    font-size: .82rem;
}

.metric-card strong {
    font-size: 1.7rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 1px solid #e7e7e7;
    padding: 1rem;
    color: var(--ink);
    text-decoration: none;
    background: #fafafa;
}

.quick-link:hover {
    background: #111;
    color: #fff;
}

@media (max-width: 900px) {
    .agenda-page {
        padding: 0;
        background: #fff;
        min-height: calc(100vh - 64px);
    }
    .agenda-wrap {
        width: 100%;
        max-width: none;
        background: #fff;
        min-height: calc(100vh - 64px);
        padding: 16px clamp(14px, 4vw, 22px) 86px;
        margin: 0;
    }
    .agenda-grid {
        display: block;
    }
    .agenda-aside {
        display: none;
    }
    .cover-card {
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
        margin-top: 0;
    }
    .cover-image {
        object-fit: cover;
        object-position: center center;
    }
    .salon-summary {
        gap: 14px;
        margin: 12px 0 14px;
        align-items: center;
    }
    .salon-logo {
        width: 74px;
        height: 74px;
        border-radius: 16px;
        flex: 0 0 auto;
        box-shadow: none;
    }
    .salon-logo img {
        width: 68px;
        height: 68px;
    }
    .salon-summary h1 {
        font-size: clamp(1.05rem, 5.2vw, 1.45rem);
        margin-bottom: 3px;
    }
    .rating-row {
        gap: 5px;
        font-size: .82rem;
        white-space: nowrap;
    }
    .stars {
        font-size: .92rem;
        letter-spacing: 1px;
    }
    .rating-row a {
        font-size: .72rem;
    }
    .mobile-info {
        display: grid;
        border-top: 1px solid #edf0f2;
        border-bottom: 1px solid #edf0f2;
        margin: 0 0 14px;
    }
    .mobile-info-row {
        border: 0;
        border-bottom: 1px solid #edf0f2;
        background: #fff;
        min-height: 44px;
        padding: 8px 2px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #06113a;
        font-size: .95rem;
        font-weight: 800;
        text-align: left;
    }
    .mobile-info-row:last-of-type {
        border-bottom: 0;
    }
    .mobile-info-panel {
        background: #fbfbfc;
        padding: 10px;
        font-size: .86rem;
        color: #344054;
    }
    .mobile-info-panel p {
        display: flex;
        gap: 8px;
        margin: 0 0 8px;
    }
    .mobile-info .schedule-row {
        font-size: .82rem;
        padding: 6px 0;
    }
    .mobile-pro-stack {
        display: flex;
        align-items: center;
    }
    .mini-avatar {
        width: 24px;
        height: 24px;
        font-size: .62rem;
        margin-left: -4px;
        border: 1px solid #fff;
    }
    .pro-list-mobile {
        display: grid;
        gap: 6px;
    }
    .pro-line {
        display: flex;
        align-items: center;
        gap: 7px;
    }
    .pro-line .mini-avatar {
        width: 28px;
        height: 28px;
        margin-left: 0;
    }
    .services-toolbar {
        gap: 8px;
        margin: 14px 0;
    }
    .search-box {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: .95rem;
    }
    .search-box input {
        width: 44px;
    }
    .search-box:focus-within {
        width: min(190px, 50vw);
    }
    .service-pills {
        gap: 8px;
    }
    .pill {
        min-height: 38px;
        border-radius: 8px;
        padding: 0 14px;
        font-size: .74rem;
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .accordion-list {
        gap: 10px;
    }
    .category-toggle {
        min-height: 52px;
        border-radius: 12px;
        padding: 0 16px;
        font-size: .9rem;
    }
    .agenda-service {
        display: grid;
        grid-template-columns: 1fr 78px;
        gap: 12px;
        padding: 14px;
    }
    .agenda-service h3 {
        font-size: .95rem;
    }
    .agenda-service p {
        font-size: .82rem;
        line-height: 1.4;
    }
    .service-meta {
        font-size: .8rem;
    }
    .reserve-button {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 8px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: .85rem;
    }
    .service-image-button {
        width: 78px;
        height: 68px;
        flex-basis: 78px;
        border-radius: 9px;
    }
    .service-copy {
        min-width: 0;
    }
    .service-image-modal .modal-dialog {
        margin: .75rem;
    }
    #imagenServicioFull {
        max-height: calc(100vh - 110px);
    }
    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 52px;
        height: 52px;
        min-height: 52px;
        padding: 0;
        justify-content: center;
        box-shadow: 0 10px 24px rgba(37, 211, 102, .36);
    }
    .whatsapp-float span {
        display: none;
    }
    .whatsapp-float i {
        font-size: 1.6rem;
    }
    .reservation-modal .modal-dialog {
        margin: .75rem;
    }
    .admin-shell {
        display: block;
    }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    .admin-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .service-item {
        display: block;
    }
    .service-actions {
        text-align: left;
        margin-top: .75rem;
    }
}
