/* =====================================================================
   Vidalle · Fotos del salón (v1)
   Taste Skill: "un lugar se muestra con fotografías reales". Las fotos
   las sube el salón (Configuración → portada; Tratamientos → foto de
   cada servicio). Sin foto, se ve un bloque sobrio del color de marca.
   ===================================================================== */

/* ---------- Portada del Inicio ---------- */
.hero-salon {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: 230px; border-radius: 16px; margin-bottom: 1.1rem;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
    padding: 1.6rem 1.75rem; color: #fff;
    background:
        radial-gradient(600px 260px at 85% 20%, rgba(243, 201, 224, .35), transparent 60%),
        radial-gradient(500px 300px at 10% 120%, rgba(255, 255, 255, .10), transparent 60%),
        linear-gradient(135deg, #6e3017 0%, #b85d31 55%, #cf7f52 100%);
}
.hero-salon.con-foto { min-height: 280px; background: #2a160d; }
.hero-salon.con-foto::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background: var(--portada) center / cover no-repeat;
    transform: scale(1.01);
}
.hero-salon.con-foto::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(40, 18, 8, .82) 0%, rgba(40, 18, 8, .55) 45%, rgba(40, 18, 8, .05) 100%),
                linear-gradient(0deg, rgba(40, 18, 8, .45) 0%, transparent 55%);
}
.hero-texto { max-width: 34rem; }
.hero-fecha { display: inline-block; font-size: .78rem; font-weight: 500; letter-spacing: .02em; opacity: .85; margin-bottom: .35rem; }
.hero-salon h1 { color: #fff !important; font-size: clamp(1.6rem, 2.6vw, 2.25rem) !important; font-weight: 600 !important; letter-spacing: -.03em !important; line-height: 1.1; margin: 0 0 .3rem; }
.hero-salon p { color: rgba(255, 255, 255, .85); margin: 0 0 1.1rem; font-size: .95rem; }
.hero-acciones { display: flex; gap: .5rem; flex-wrap: wrap; }
.hero-salon .btn { height: 40px; border-radius: 10px; font-weight: 600; padding: 0 1.05rem; }
.hero-btn-1 { background: #fff !important; color: #6e3017 !important; border: 0 !important; }
.hero-btn-1:hover { background: #fbf1ea !important; }
.hero-btn-2 { background: rgba(255, 255, 255, .14) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .35) !important;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-btn-2:hover { background: rgba(255, 255, 255, .22) !important; }
.hero-subir {
    align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem;
    font-size: .8rem; font-weight: 500; color: #fff !important; text-decoration: none;
    padding: .4rem .75rem; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .5);
}
.hero-subir:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 575.98px) {
    .hero-salon { min-height: 210px; padding: 1.2rem; border-radius: 14px; flex-direction: column; align-items: stretch; }
    .hero-salon.con-foto::after { background: linear-gradient(0deg, rgba(40, 18, 8, .88) 0%, rgba(40, 18, 8, .45) 60%, rgba(40, 18, 8, .15) 100%); }
    .hero-subir { order: -1; align-self: flex-end; }
    .hero-acciones .btn { flex: 1; justify-content: center; }
}

/* ---------- Cobrar: tarjetas de servicio con foto ---------- */
#grid-servicios { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important; gap: .75rem !important; }
#grid-servicios .tpv-prod { padding: 0 0 .75rem !important; overflow: hidden; text-align: left !important; border-radius: 12px !important; }
#grid-servicios .tpv-prod > :not(.tpv-foto) { padding-left: .8rem; padding-right: .8rem; }
.tpv-foto {
    aspect-ratio: 4 / 3; margin-bottom: .6rem; position: relative;
    background: center / cover no-repeat;
}
.tpv-foto[data-inicial] {
    background: linear-gradient(135deg, #f8ede4, #efdccd);
    display: flex; align-items: center; justify-content: center;
}
.tpv-foto[data-inicial]::after {
    content: attr(data-inicial); font-size: 2rem; font-weight: 600; letter-spacing: -.03em;
    color: rgba(184, 93, 49, .45);
}
#grid-servicios .tpv-prod .nombre { min-height: 2.4em; font-size: .86rem; }
#grid-servicios .tpv-prod .meta { margin-bottom: .1rem; }
@media (hover: hover) and (pointer: fine) {
    .tpv-foto { transition: transform 300ms cubic-bezier(.23, 1, .32, 1); }
    #grid-servicios .tpv-prod:hover .tpv-foto { transform: scale(1.03); }
}
@media (max-width: 575.98px) {
    #grid-servicios { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------- Catálogo: miniatura ---------- */
.trat-mini {
    width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, #f8ede4, #efdccd) center / cover no-repeat;
}

/* ---------- Formularios: subir foto ---------- */
.foto-servicio { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: center; }
.foto-servicio-img {
    aspect-ratio: 4 / 3; border-radius: 12px; border: 1px dashed #d9d9de;
    background: #fafafa center / cover no-repeat;
    display: flex; align-items: center; justify-content: center; color: #a1a1aa; font-size: .85rem;
}
.foto-servicio-img[style] { border-style: solid; border-color: #e7e7ea; }
@media (max-width: 575.98px) { .foto-servicio { grid-template-columns: 1fr; } }

/* ---------- Ingreso con foto ---------- */
.ui-login-marca.con-foto { background: #2a160d !important; position: relative; isolation: isolate; overflow: hidden; }
.ui-login-marca.con-foto::before {
    content: ''; position: absolute; inset: 0; z-index: -2; background: var(--portada) center / cover no-repeat;
}
.ui-login-marca.con-foto::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(40, 18, 8, .25) 0%, rgba(40, 18, 8, .35) 40%, rgba(40, 18, 8, .85) 100%);
}
.ui-login-marca.con-foto .ui-mock { display: none; }
.ui-login-marca.con-foto .ui-burbuja { display: none; }
