/*
 * Estilos publicos de la landing.
 * Mantiene una base sobria y facil de personalizar desde Bootstrap.
 */

:root {
    --brand-color: #1f7a5c;
    --brand-dark: #173f35;
}

body {
    color: #17211d;
    background: #f8faf9;
}

.site-logo {
    max-height: 42px;
    width: auto;
}

.hero {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-color));
    color: #fff;
    padding: 5rem 0;
}

.section-title {
    color: var(--brand-dark);
}

.btn-brand {
    --bs-btn-bg: var(--brand-color);
    --bs-btn-border-color: var(--brand-color);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    color: #fff;
}

.product-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e9ecef;
}

.product-thumb-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.product-thumb-button:focus-visible {
    outline: 3px solid var(--brand-color);
    outline-offset: 3px;
    border-radius: 8px;
}

.product-thumb-button.is-active img {
    border-color: var(--brand-color) !important;
    box-shadow: 0 0 0 2px var(--brand-color);
}

.banner-slide {
    display: block !important;
    min-height: auto;
    background: var(--brand-dark);
    color: #fff;
    overflow: hidden;
}

.commercial-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.service-card {
    position: relative;
    padding: 28px;
    border: 1px solid #e5ede9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 8px;
    background: rgba(31, 122, 92, 0.12);
    color: var(--brand-color);
    font-size: 1.4rem;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-color);
    font-weight: 700;
    text-decoration: none;
}

.service-card__link:hover,
.service-card__link:focus {
    color: var(--brand-dark);
}

.service-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border-radius: 8px;
    background: #dbe7e2;
}

.service-trust > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: #f4f8f6;
    color: #173f35;
    font-weight: 700;
}

.service-trust i {
    color: var(--brand-color);
    font-size: 1.25rem;
}

.site-footer {
    background: #17211d;
    color: #fff;
}

.social-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.call-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-color);
    color: #fff;
    font-size: 1.6rem;
    z-index: 1030;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.consult-widget {
    position: fixed;
    right: 88px;
    bottom: 20px;
    width: min(340px, calc(100vw - 128px));
    z-index: 1030;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.consult-widget__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.consult-widget__items {
    max-height: 96px;
    overflow-y: auto;
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.consult-widget__item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border-top: 1px solid #eef2f1;
}

.consult-widget__remove {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #6c757d;
    padding: 0 2px;
}

.banner-slide.has-caption::before {
    content: none;
}

.banner-slide > .container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 1;
}

.banner-image {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .banner-slide .btn-light.btn-lg {
        max-width: 48vw;
        padding: 0.45rem 0.9rem;
        font-size: 1rem;
        line-height: 1.2;
        border-radius: 0.5rem;
        white-space: normal;
    }
}

@media (max-width: 767.98px) {
    .service-trust {
        grid-template-columns: 1fr;
    }
}

.section-media {
    max-height: 320px;
    object-fit: cover;
}

.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    flex: 0 0 260px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.admin-sidebar .nav-link.active {
    background: var(--brand-color);
    color: #fff;
}

.admin-topbar {
    min-height: 72px;
}

.stat-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.stat-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.admin-image-preview {
    max-height: 140px;
    object-fit: contain;
}

.admin-favicon-preview {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.admin-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-thumb-empty {
    background: #eef2f1;
    color: #6c757d;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        width: 100%;
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .consult-widget {
        right: 12px;
        bottom: 88px;
        width: calc(100vw - 24px);
    }
}
