html, body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f7f7f9;
}

.content-area {
    min-height: calc(100vh - 70px);
}

.object-fit-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.catalogo-card {
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}

.catalogo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.12) !important;
}

.tag-atributo,
.tag-servicio {
    background-color: #c9a87c;
    color: #1d1d1d;
    font-weight: 500;
    padding: .45rem .9rem;
    font-size: .85rem;
}

.tag-servicio {
    background-color: #b88f5e;
}

/* ===== Listado admin ===== */
.admin-clickable {
    cursor: pointer;
    transition: opacity .12s ease, color .12s ease;
}

.admin-clickable:hover {
    opacity: .85;
    color: var(--bs-primary);
    text-decoration: underline;
}

img.admin-clickable:hover {
    opacity: .85;
    box-shadow: 0 0 0 2px var(--bs-primary);
    text-decoration: none;
}

.tarifa-badge {
    font-weight: 500;
    font-size: .78rem;
    white-space: nowrap;
}

/* ===== Descripcion ===== */
.modal-sl-desc {
    color: #5a5a63;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ===== Ficha de datos (grid de stats) ===== */
.ficha-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
    margin-bottom: 1.25rem;
}

.ficha-item {
    background: #f6f6f9;
    border: 1px solid #ececf1;
    border-radius: .65rem;
    padding: .55rem .8rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.ficha-label {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #9a9aa3;
    font-weight: 600;
}

.ficha-label i {
    color: #b88f5e;
}

.ficha-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2a2a30;
}

/* ===== Tarjeta de tarifas y contacto ===== */
.contacto-card {
    border: 1px solid #e7e7ec;
    border-radius: .8rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.04);
}

.contacto-card-header {
    background: linear-gradient(90deg, #1f2a37, #2c3a4d);
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .6rem .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.contacto-card-body {
    padding: .35rem .9rem .9rem;
}

.tarifa-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .1rem;
    border-bottom: 1px solid #f0f0f3;
}

.tarifa-row:last-of-type {
    border-bottom: none;
}

.tarifa-dur {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: #4a4a52;
    font-weight: 500;
    flex: 1;
}

.tarifa-dur i {
    color: #b88f5e;
}

.tarifa-precio {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1f2a37;
    margin-left: auto;
    white-space: nowrap;
}

.tarifa-wa-empty {
    color: #c4c4cc;
    width: 38px;
    text-align: center;
}

/* Boton WhatsApp circular por tarifa */
.btn-wa-mini {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform .1s ease, background .12s ease, box-shadow .12s ease;
}

.btn-wa-mini:hover {
    background: #1ebe5b;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 .25rem .6rem rgba(37,211,102,.4);
}

/* Boton WhatsApp principal */
.btn-wa-full {
    margin-top: .75rem;
    width: 100%;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    border-radius: .6rem;
    padding: .65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-decoration: none;
    transition: background .12s ease, box-shadow .12s ease;
}

.btn-wa-full:hover {
    background: #1ebe5b;
    color: #fff;
    box-shadow: 0 .35rem .9rem rgba(37,211,102,.35);
}

.btn-wa-full i {
    font-size: 1.2rem;
}

/* ===== Titulos de seccion (atributos / servicios) ===== */
.seccion-titulo {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8a8a93;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: .6rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid #efeff2;
}

.seccion-titulo i {
    color: #b88f5e;
}

/* ===== Modal de detalle de modelo ===== */
.modal-backdrop-sl {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 20, .6);
    backdrop-filter: blur(2px);
    z-index: 1050;
    animation: slFade .18s ease;
}

.modal-sl-wrapper {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1rem;
    overflow-y: auto;
}

.modal-sl-dialog {
    background: #fff;
    border-radius: .9rem;
    box-shadow: 0 1.5rem 4rem rgba(0,0,0,.35);
    width: 100%;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    animation: slPop .2s cubic-bezier(.2,.8,.3,1);
}

.modal-sl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #ececf1;
}

.modal-sl-body {
    padding: 1.5rem;
    max-height: calc(100vh - 11rem);
    overflow-y: auto;
}

.modal-sl-footer {
    padding: .9rem 1.5rem;
    border-top: 1px solid #ececf1;
    display: flex;
    justify-content: flex-end;
    background: #fafafb;
}

.modal-sl-loading {
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.modal-sl-foto {
    max-height: 460px;
    height: 460px;
}

.modal-sl-thumb {
    width: 72px;
    height: 72px;
    cursor: pointer;
    transition: transform .1s ease, opacity .1s ease;
    opacity: .8;
}

.modal-sl-thumb:hover {
    transform: scale(1.05);
    opacity: 1;
}

.btn-close-sl {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f1f1f4;
    color: #444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .12s ease, color .12s ease;
}

.btn-close-sl:hover {
    background: #e0697a;
    color: #fff;
}

@keyframes slFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slPop {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

#blazor-error-ui {
    background: #ffefef;
    border-top: 1px solid #f5c2c7;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.1);
    display: none;
    left: 0;
    padding: .8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1100;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}
