/* Tiendap Custom Enterprise Styling */

.badge-proxima,
.badge-pronto {
    background: #2f55d4 !important;
    color: #fff !important;
    font-size: .65rem;
}

.badge-iniciado,
.badge-desarrollo,
.badge-encurso {
    background: #2eca8b !important;
    color: #fff !important;
    font-size: .65rem;
}

.badge-planificado,
.badge-enplan {
    background: #e43f52 !important;
    color: #fff !important;
    font-size: .65rem;
}

.hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.hero-module-badge,
.hero-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 32px;
    padding: 0.38rem 0.82rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.hero-module-badge {
    color: #fff;
    background: #2f55d4;
    box-shadow: 0 5px 16px rgba(47, 85, 212, 0.24);
}

.hero-module-badge i {
    font-size: 0.95rem;
    line-height: 1;
}

.hero-status-badge--soon {
    color: #fff;
    background: rgba(244, 133, 33, 0.96);
}

.hero-status-badge--vision {
    color: #162650;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.hero-btn-secondary {
    color: #162650;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(7, 18, 45, 0.16);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus-visible {
    color: #0d1a3a;
    background: rgba(255, 255, 255, 0.95);
    border-color: #fff;
}

.hero-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

#home,
#ventajas,
#modulos,
#complementos,
#aplicaciones,
#servicios,
#planes,
#consultas,
section#home,
section#ventajas,
section#modulos {
    background-color: #f2f2f2 !important;
}

section#modulos,
section#complementos,
section#aplicaciones,
section#servicios,
section#planes,
section#consultas {
    scroll-margin-top: 110px !important;
}

/* Module cards: flat grey, no shadow, no border — blends with section background */
#modulos .module-card,
#complementos .module-card,
#aplicaciones .module-card {
    background-color: #f2f2f2 !important;
    box-shadow: none !important;
    border: none !important;
}

/* 50% stronger grey card background so selectable module cards pop off the page */
.style-module-card {
    background-color: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    transition: all 0.2s ease-in-out;
}

.style-module-card:hover {
    border-color: #2f55d4 !important;
    background-color: #cbd5e1 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.style-module-card:has(input:checked),
.style-module-card.checked-module-card {
    background-color: #eef2ff !important;
    border-color: #2f55d4 !important;
    box-shadow: 0 4px 14px rgba(47, 85, 212, 0.18) !important;
}

/* Range Slider Exact Ticks Alignment */
.range-ticks-container {
    display: flex;
    justify-content: space-between;
    padding: 0 8px; /* Exact offset matching Bootstrap 5 form-range thumb radius */
    margin-top: 4px;
}

.range-ticks-container span {
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease, font-weight 0.15s ease;
    display: inline-block;
    width: 18px;
    text-align: center;
}

.range-ticks-container span:hover,
.range-ticks-container span.active-tick {
    color: #2f55d4 !important;
    font-weight: 700;
}

/* Footer ISO & Security Badges — Exact 33px height & 8px horizontal separation */
.footer-badge,
footer img[src*="normas"],
.footer img[src*="normas"],
.footer-bar img[src*="normas"],
footer img[src*="iso_"],
footer img[src*="gdpr_"],
.footer img[src*="iso_"],
.footer img[src*="gdpr_"],
.footer-bar img[src*="iso_"],
.footer-bar img[src*="gdpr_"],
footer .avatar-med,
.footer-bar .avatar-med,
img.avatar.avatar-med,
.avatar-med {
    height: 33px !important;
    max-height: 33px !important;
    min-height: 33px !important;
    width: 33px !important;
    max-width: 33px !important;
    min-width: 33px !important;
    display: inline-block !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    margin-left: 3px !important;
    margin-right: 3px !important;
}

.footer-bar ul.list-unstyled,
.footer-bar ul.list-inline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
}

/* Floating Back to Top Button */
#back-to-top,
.back-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 9999 !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 8px !important;
    background-color: #2f55d4 !important;
    color: #ffffff !important;
    text-align: center !important;
    box-shadow: 0 4px 14px rgba(47, 85, 212, 0.4) !important;
    transition: all 0.3s ease !important;
    display: none;
    cursor: pointer !important;
    border: none !important;
}

#back-to-top:hover,
.back-to-top:hover {
    background-color: #1d3db0 !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(47, 85, 212, 0.5) !important;
}

#back-to-top.show,
.back-to-top.show {
    display: block !important;
}
