/* =====================================================================
   ServiceDetail — Landing pública (servicedetail.com.ar)
   Skin "Studio": oscuro glass con acento cian, igual al ServiceDetail
   Studio del ERP y a la presentación cinemática. Mantiene los nombres
   de clase del markup (Bootstrap + card-box, ba-, time-slot, etc.).
   ===================================================================== */

:root {
    --brand-primary: #06b6d4;       /* cian ServiceDetail */
    --brand-primary-dark: #0e7490;
    --brand-header:  #0b2233;
    --gl:   rgba(6,182,212,.5);     /* glow cian */
    --line: rgba(255,255,255,.09);
    --glass:  rgba(255,255,255,.05);
    --glass2: rgba(255,255,255,.08);
    --txt: #e8f1f5;
    --mut: #7f97a6;
}

* { box-sizing: border-box; }
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--txt);
    background:
        radial-gradient(1100px 560px at 82% -8%, rgba(6,182,212,.18), transparent 60%),
        radial-gradient(820px 460px at -8% 112%, rgba(14,116,144,.2), transparent 55%),
        #07131c;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Overrides Bootstrap → tema oscuro Studio --- */
.btn-primary {
    --bs-btn-bg: var(--brand-primary);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: var(--brand-primary-dark);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: var(--brand-primary-dark);
    --bs-btn-active-border-color: transparent;
    background: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-dark));
    box-shadow: 0 6px 20px var(--gl);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline-primary {
    --bs-btn-color: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-bg: var(--brand-primary);
    --bs-btn-hover-border-color: var(--brand-primary);
    --bs-btn-active-bg: var(--brand-primary-dark);
}
.text-primary   { color: var(--brand-primary) !important; }
.bg-primary     { background-color: var(--brand-primary) !important; }
.border-primary { border-color: var(--brand-primary) !important; }
.text-muted     { color: var(--mut) !important; }
.text-brand-header { color: var(--txt) !important; }   /* títulos claros sobre fondo oscuro */
.bg-white       { background: transparent !important; }

/* --- Navbar: glass oscuro con blur --- */
.navbar-custom {
    background: rgba(7,19,28,.75) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.nav-link { font-weight: 600; color: #ffffff !important; opacity: 0.8; transition: 0.2s; }
.nav-link:hover { opacity: 1; transform: translateY(-1px); }

/* --- Hero con foto real del último trabajo --- */
.hero-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 130px 0 90px 0;
    text-align: center;
    background: linear-gradient(135deg, #0b2233, #0e7490);
}
.hero-photo {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    will-change: transform;
}
.hero-section::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 50% 10%, transparent 35%, rgba(4,12,18,.6) 100%),
        linear-gradient(180deg, rgba(4,12,18,.62) 0%, rgba(4,12,18,.45) 45%, rgba(7,19,28,.95) 100%);
}
.hero-section .container { position: relative; z-index: 2; }

/* --- Tarjetas glass --- */
.card-box {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
    margin-bottom: 20px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    color: var(--txt);
    display: flex; flex-direction: column;
}
.card-box:hover { transform: translateY(-3px); border-color: rgba(6,182,212,.4); box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 24px rgba(6,182,212,.12); }
.card-box-top-blue { border-top: 3px solid var(--brand-primary); }
.card-box .small.text-muted { color: var(--mut) !important; }

/* --- Vitrina antes/después (slider interactivo, mismo modelo que cliente.php) --- */
.vt-card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0,0,0,.3);
    height: 100%;
    display: flex; flex-direction: column;
}
.vt-slider {
    position: relative; width: 100%; aspect-ratio: 4/3;
    overflow: hidden; user-select: none; cursor: ew-resize;
    background: #0d2230; touch-action: pan-y;
}
/* cada lado: contenedor (clip del wipe) + capa de foto con encuadre + fondo blur */
.ba-img { position: absolute; inset: 0; overflow: hidden; }
.ba-lay { position: absolute; inset: 0; background-repeat: no-repeat; background-position: center; will-change: transform; }
.ba-img.cover  .ba-lay { background-size: cover; }
.ba-img.contain .ba-lay { background-size: contain; }
.ba-back { position: absolute; inset: 0; background-size: cover; background-position: center;
           filter: blur(22px) brightness(.55); transform: scale(1.25); display: none; }
.ba-img.contain .ba-back { display: block; }
.ba-img.after { clip-path: inset(0 0 0 50%); }
.ba-img.ph-on { background: repeating-linear-gradient(45deg, #0d2230, #0d2230 12px, #123049 12px, #123049 24px); }
.ba-tag { position: absolute; top: 10px; font-size: .64rem; font-weight: 800; text-transform: uppercase;
          letter-spacing: .06em; padding: 4px 11px; border-radius: 999px; z-index: 3; pointer-events: none; }
.ba-tag.antes   { left: 10px;  background: rgba(4,12,18,.8); color: #fff; }
.ba-tag.despues { right: 10px; background: var(--brand-primary); color: #fff; box-shadow: 0 4px 14px var(--gl); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; z-index: 4;
             transform: translateX(-50%); box-shadow: 0 0 12px rgba(0,0,0,.4), 0 0 18px var(--gl); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px;
           background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
           color: var(--brand-primary); box-shadow: 0 4px 14px rgba(0,0,0,.35); z-index: 5; font-size: .82rem;
           animation: vtpulse 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes vtpulse { 0%,100% { box-shadow: 0 4px 14px rgba(0,0,0,.35); } 50% { box-shadow: 0 4px 14px rgba(0,0,0,.35), 0 0 0 9px rgba(6,182,212,.16); } }
.vt-info { padding: 14px 16px 16px; }
.vt-info .t { font-weight: 800; font-size: .95rem; color: var(--txt); }
.vt-info .v { color: var(--mut); font-size: .78rem; font-weight: 700; margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; }

/* placeholder cuando todavía no hay trabajos con par de fotos */
.ba-ph { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
         background: repeating-linear-gradient(45deg, #0d2230, #0d2230 12px, #123049 12px, #123049 24px);
         color: #35566e; }

/* --- Formulario turno: inputs oscuros --- */
.form-control, .form-control.bg-light {
    background: #0d2230 !important;
    border: 1px solid var(--line) !important;
    color: var(--txt) !important;
    border-radius: 11px;
}
.form-control:focus { border-color: var(--brand-primary) !important; box-shadow: 0 0 0 4px rgba(6,182,212,.12); }
.form-control::placeholder { color: #4f6b7d; }
label.small.text-secondary { color: var(--mut) !important; }

.time-slot { border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: 0.2s; text-align: center;
             padding: 12px 5px; font-weight: bold; color: var(--mut); display: block; font-size: 0.9rem; background: var(--glass); }
.time-slot:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: rgba(6,182,212,.08); }
.time-slot input { display: none; }
.time-slot:has(input:checked) { border-color: var(--brand-primary); background: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-dark)); color: #fff; box-shadow: 0 6px 18px var(--gl); }

.alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.alert-success .text-success, .alert-success h5 { color: #4ade80 !important; }

/* --- WhatsApp flotante --- */
.float-wa { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25d366;
            color: #fff; border-radius: 50%; text-align: center; font-size: 30px;
            box-shadow: 0 4px 15px rgba(37,211,102,0.4); z-index: 1000; display: flex; align-items: center;
            justify-content: center; transition: 0.3s; }
.float-wa:hover { background-color: #128c7e; color: #fff; transform: scale(1.1); }

/* --- Tipografía corporativa (igual a ServiceMotors/Studio) --- */
.sm-title, .nav-link, .btn-nav-clientes {
    font-family: 'Open Sans', sans-serif !important;
    font-stretch: 75% !important;       /* SemiCondensed */
    font-style: italic !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
}

.btn-outline-light:hover, .btn-outline-light:active {
    background-color: #fff !important;
    color: var(--brand-header) !important;
    border-color: #fff !important;
    transform: translateY(-2px);
}

footer.navbar-custom { border-top: 1px solid var(--line); border-bottom: none; margin-top: auto; }

@media (max-width: 575.98px) {
    .hero-section { padding: 100px 0 64px; }
}
