/*
 * Landing de JR Civil Suite (jrcivilsuite.com). Misma estructura visual
 * que la landing de Site Intel, con el color primario de la aplicación
 * (#F2A333, tema "theme-jrcivil") y su tipografía (DM Sans).
 * Sin estilos inline: todo vive aquí (la landing puede servirse con la
 * misma CSP estricta que la app).
 */

:root {
    --bs-primary: #F2A333;
    --bs-primary-rgb: 242, 163, 51;
    --bs-primary-dark: #d98c1f;
    --bs-link-color-rgb: var(--bs-primary-rgb);
    --jrcs-ink: #2b2620;
}

body,
.navbar,
.btn,
h1, h2, h3, h4, h5, h6 {
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    color: var(--jrcs-ink);
    background: #fffdf9;
}

a {
    color: var(--bs-primary-dark);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary-dark);
    --bs-btn-hover-border-color: var(--bs-primary-dark);
    --bs-btn-active-bg: var(--bs-primary-dark);
    --bs-btn-active-border-color: var(--bs-primary-dark);
    --bs-btn-focus-shadow-rgb: 242, 163, 51;
}

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

.gradient-bg {
    background-image: linear-gradient(to right top, #7a4a0c, #a8650f, #d98c1f, #F2A333, #f6bd6a);
}

/* ---------------------------------------------------------------- Navbar */
#mainNav {
    background: transparent;
    transition: all .3s ease;
}

#mainNav.scrolled {
    background: rgba(255, 253, 249, .75);
    backdrop-filter: blur(50px) saturate(100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
    border-radius: 999px;
    margin: 1rem auto;
    max-width: 1200px;
    padding-inline: 16px;
    border: 1px solid #eeeeee;
}

.nav-link {
    color: #111 !important;
    font-weight: 500;
}

.js-lang-select {
    width: auto;
    border: none;
    background-color: transparent;
    box-shadow: none;
    cursor: pointer;
}

.js-lang-select:focus {
    box-shadow: none;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    padding: .5rem 1rem;
    font-size: .875rem;
    color: var(--bs-secondary-color);
    background: #fff;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

/* ---------------------------------------------------------------- Secciones */
.py-6 {
    padding: 6rem 0;
}

.hero-banner {
    margin-top: 5rem;
}

/* Carruseles del hero (Swiper en modo marquesina). */
.swiper-slide {
    overflow: hidden;
}

.swiper-slide img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.swiper-free-mode > .swiper-wrapper {
    transition-timing-function: linear;
    margin: 0 auto;
}

/* Etiquetas de capacidades (About). */
.tag {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid;
    white-space: nowrap;
}

.tag-amber { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.tag-green { color: #3f6212; background: #ecfccb; border-color: #d9f99d; }
.tag-purple { color: #5b21b6; background: #ede9fe; border-color: #ddd6fe; }
.tag-orange { color: #9a3412; background: #ffedd5; border-color: #fed7aa; }
.tag-blue { color: #1e40af; background: #dbeafe; border-color: #bfdbfe; }
.tag-red { color: #9f1239; background: #ffe4e6; border-color: #fecdd3; }
.tag-cyan { color: #155e75; background: #cffafe; border-color: #a5f3fc; }

/* Tarjetas de features / why. */
.feature-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-card {
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
    transition: transform .3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.bg-amber { background: #fff7e8 !important; }
.bg-green { background: #f6ffe6 !important; }
.bg-purple { background: #f6f2ff !important; }
.bg-blue { background: #eef5ff !important; }

.dot {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.amber { background: #F2A333; }
.dot.green { background: #7acb2f; }
.dot.purple { background: #7c5cff; }
.dot.blue { background: #3b82f6; }

@media (min-width: 992px) {
    .why-sticky {
        top: 160px;
    }
}

/* Flujo de Haul Control (pasos numerados). */
.flow-step {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: #fff;
}

.flow-step-number {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: .75rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 700;
}

/* Franja de módulos (fondo oscuro). */
.modules-section .module-card {
    position: relative;
    height: 100%;
    padding: 1.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .06);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.modules-section .module-card:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .25);
    transform: translateY(-4px);
}

.modules-section .module-card i {
    font-size: 2rem;
    color: #f6bd6a;
}

.modules-section .module-card.is-soon i {
    color: rgba(255, 255, 255, .45);
}

.module-status {
    display: inline-block;
    margin-top: .5rem;
    padding: .15rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.module-status.is-live {
    background: rgba(122, 203, 47, .18);
    color: #b8f07c;
}

.module-status.is-soon {
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .65);
}
