/* ==========================================================
   service_details.css
   Styles for templates/app_core/snippets/service_details.html
   ========================================================== */

/* ── Service title ── */
.service-main-title { font-size: 48px; font-weight: 800; margin: 0 0 10px; line-height: 1.1; }
.service-main-title a { color: inherit; text-decoration: none; }
.service-subtitle { font-size: 14px; color: #666; }

@media (max-width: 768px) {
    .service-main-title { font-size: 28px; }
    #page-content-wrapper.no-title { padding-top: 80px !important; }
}

/* Extra separation between banner and service block */
.blog-post-content-wrapper { margin-top: 60px; }
@media (max-width: 768px) {
    .blog-post-content-wrapper { margin-top: 30px; }
}

/* ==========================================================
   Before / After Comparison Slider
   ========================================================== */
.ba-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 50px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
}
.ba-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}
.ba-before-img {
    position: relative;
    z-index: 1;
}
.ba-after-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    clip-path: inset(0 0 0 50%);
}
.ba-divider {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 3;
}
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    pointer-events: none;
    z-index: 4;
}
.ba-handle svg { flex-shrink: 0; }
.ba-label {
    position: absolute;
    top: 14px;
    padding: 4px 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 5;
    pointer-events: none;
}
.ba-label-before { left: 14px; }
.ba-label-after  { right: 14px; }
.ba-section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
    letter-spacing: .5px;
}
@media (max-width: 600px) {
    .ba-handle { width: 34px; height: 34px; }
}

/* ==========================================================
   Widget de Categorías
   ========================================================== */
.widget_categories {
    background: #ffffff;
    padding: 32px 20px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    margin-bottom: 56px;
    border: none;
}
.widget_categories .widgettitle {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    /* Add vertical padding to create space around the "Categories" heading */
    padding: 20px 0;
    margin-bottom: 24px;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1.5px;
}
.widget_categories .widgettitle::before,
.widget_categories .widgettitle::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid #f0f0f0;
    margin: 0 15px;
}
.widget_categories ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.widget_categories ul li.cat-item {
    padding: 0;
    border: none;
}
.widget_categories ul li.cat-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    background: transparent;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    color: #c31319;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.18s ease;
}
.widget_categories .cat-name {
    display: flex;
    align-items: center;
}
.widget_categories .cat-name::before {
    /* Removed visual arrow to avoid duplicate arrows when category names
       already include a leading symbol. Keep spacing minimal. */
    content: "";
    font-size: 20px;
    font-weight: 400;
    color: #c31319;
    margin-right: 0;
    line-height: 1;
    transition: color 0.2s ease;
}
.widget_categories .cat-count {
    background: #c31319;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.2s ease;
    border: none;
}
.widget_categories ul li.cat-item a:hover {
    background: #c31319;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.widget_categories ul li.cat-item a:hover .cat-name::before {
    color: #ffffff;
}
.widget_categories ul li.cat-item a:hover .cat-count {
    background: #ffffff;
    color: #c31319;
}

/* ==========================================================
   Widget de Contacto
   ========================================================== */
.widget-divider {
    border: none;
    border-top: 2px solid #f0f0f0;
}
.contact-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    border: none;
}
.contact-widget h3 {
    margin: 0 0 14px 0;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-widget .cw-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 10px 0;
}
.contact-widget .cw-row svg { width: 18px; height: 18px; flex-shrink: 0; fill: #c31319; }
.contact-widget a { color: #0b74de; text-decoration: none; font-weight: 600; }
.contact-widget a:hover { text-decoration: underline; }
.contact-widget .cw-address { color: #444; font-size: 14px; }
.contact-widget .cw-company { font-weight: 700; margin-bottom: 6px; }
