/* ============================================================
   KM44 · Dual System CSS
   Estilos de la home que presenta DOS sistemas independientes:
     1) Sistema de Expensas para Administradores de Consorcios
     2) Sistema Contable para Contadores y Estudios Contables
   Se carga DESPUÉS de custom-theme.css, por lo que solo agrega
   clases nuevas y sobreescribe de forma acotada lo necesario.
   ============================================================ */

:root {
    --sys-consorcios: #2563eb;
    --sys-consorcios-dark: #1d4ed8;
    --sys-contable: #7c3aed;
    --sys-contable-dark: #6d28d9;
    --sys-empresa: #059669;
    --sys-empresa-dark: #047857;
}

/* ============================ TRES SECTORES DE NEGOCIO ============================ */
.business-sector {
    position: relative;
    isolation: isolate;
    padding: 105px 0;
    scroll-margin-top: 78px;
    overflow: hidden;
}

.business-sector::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.business-sector::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 440px;
    height: 440px;
    right: -190px;
    top: 80px;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.45;
    pointer-events: none;
}

.business-sector--estudios::before {
    background: linear-gradient(180deg, #f8f7ff 0%, #f2efff 100%);
}

.business-sector--estudios::after {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 68%);
}

.business-sector--empresas::before {
    background: linear-gradient(180deg, #f0fdf8 0%, #e8faf3 100%);
}

.business-sector--empresas::after {
    left: -190px;
    right: auto;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.2), transparent 68%);
}

.business-sector--consorcios::before {
    background: linear-gradient(180deg, #f4f9ff 0%, #eaf3ff 100%);
}

.business-sector--consorcios::after {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 68%);
}

.business-sector + .business-sector {
    border-top: 8px solid #ffffff;
}

.sector-header {
    max-width: 920px;
    margin: 0 auto 48px;
}

.sector-order {
    display: block;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.sector-header .sys-badge {
    margin-bottom: 20px;
}

.sector-header h2 {
    margin-bottom: 18px;
    color: #0f172a;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.business-sector--estudios .sector-header h2 span { color: var(--sys-contable); }
.business-sector--empresas .sector-header h2 span { color: var(--sys-empresa); }
.business-sector--consorcios .sector-header h2 span { color: var(--sys-consorcios); }

.sector-header > p:not(.sys-access) {
    max-width: 850px;
    margin: 0 auto 14px;
    color: #475569;
    font-size: 1.08rem;
}

.sys-badge--empresa {
    color: #047857;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.35);
}

.business-sector--estudios .sector-header .sys-badge--contable {
    color: #2e1065;
    background: rgba(124, 58, 237, 0.14);
    border-color: rgba(91, 33, 182, 0.42);
    text-shadow: none;
}

.business-sector--estudios .sys-feature-block .sys-badge--contable {
    color: #2e1065;
    background: rgba(124, 58, 237, 0.14);
    border-color: rgba(91, 33, 182, 0.42);
    text-shadow: none;
}

.business-sector--consorcios .sector-header .sys-badge--consorcios {
    color: #0f2f63;
    background: rgba(37, 99, 235, 0.13);
    border-color: rgba(29, 78, 216, 0.4);
    text-shadow: none;
}

.business-sector--empresas .sys-access a { color: var(--sys-empresa); }

.sector-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.sector-summary-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sector-summary-card {
    display: flex;
    flex-direction: column;
    min-height: 235px;
    padding: 26px 23px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    scroll-margin-top: 105px;
}

.sector-summary-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.business-sector--estudios .sector-summary-card:hover { border-color: rgba(124, 58, 237, 0.5); }
.business-sector--empresas .sector-summary-card:hover { border-color: rgba(5, 150, 105, 0.5); }
.business-sector--consorcios .sector-summary-card:hover { border-color: rgba(37, 99, 235, 0.5); }

.sector-summary-card > i,
.sector-summary-card > .sector-card-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 15px;
    color: #ffffff;
    font-size: 1.2rem;
}

.sector-summary-card > .sector-card-symbol {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.35rem;
    line-height: 1;
}

.business-sector--estudios .sector-summary-card > i,
.business-sector--estudios .sector-summary-card > .sector-card-symbol { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.business-sector--empresas .sector-summary-card > i,
.business-sector--empresas .sector-summary-card > .sector-card-symbol { background: linear-gradient(135deg, #047857, #10b981); }
.business-sector--consorcios .sector-summary-card > i,
.business-sector--consorcios .sector-summary-card > .sector-card-symbol { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }

.sector-summary-card h3 {
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 1.15rem;
}

.sector-summary-card p {
    margin-bottom: 16px;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.55;
}

.sector-summary-card .sys-module-price {
    margin-top: auto;
}

.sector-usecase--empresa .sys-usecase-list li::before {
    color: var(--sys-empresa);
}

.sector-pricing {
    margin-top: 64px;
    padding: 42px 30px 24px;
    scroll-margin-top: 95px;
}

.sector-pricing-heading {
    max-width: 760px;
    margin: 0 auto 38px;
}

.sector-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.sector-pricing-heading h3 {
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.sector-pricing-heading p {
    color: #cbd5e1;
}

.plans-group--contable {
    background: linear-gradient(145deg, #241047 0%, #472083 100%);
    border-color: rgba(192, 132, 252, 0.45);
    box-shadow: 0 28px 65px rgba(76, 29, 149, 0.18);
}

.plans-group--empresa {
    border-radius: 30px;
    background: linear-gradient(145deg, #073b31 0%, #076b52 100%);
    border: 1px solid rgba(52, 211, 153, 0.4);
    box-shadow: 0 28px 65px rgba(4, 120, 87, 0.18);
}

.plans-group--consorcios {
    background: linear-gradient(145deg, #0b2d5b 0%, #1556a5 100%);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 28px 65px rgba(29, 78, 216, 0.18);
}

.plan-box--empresa {
    border-top: 5px solid #10b981 !important;
}

.plan-box--empresa h4 {
    color: var(--sys-empresa) !important;
}

.plan-main-icon {
    margin: 4px auto 18px;
    color: #7c3aed;
    font-size: 2.65rem;
}

.plan-main-symbol {
    display: block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.18));
}

.plan-box--empresa .plan-main-icon { color: var(--sys-empresa); }
.plans-group--consorcios .plan-main-icon { color: #2563eb; }

.sector-price {
    display: inline-block;
    font-size: clamp(2rem, 3vw, 2.55rem);
    line-height: 1.15;
}

.sector-price--purple { color: #7c3aed; }
.sector-price--blue { color: #2563eb; }
.sector-price--green { color: #059669; }
.sector-price--orange { color: #f59e0b; }

.sector-price-label {
    color: #2563eb;
    font-size: 1.15rem;
}

.plan-flag--blue {
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
}

.sector-pricing .sys-price-table {
    background: rgba(255, 255, 255, 0.08);
}

.sector-faq {
    margin-top: 58px;
    padding-top: 38px;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

.sector-faq > h3 {
    margin-bottom: 24px;
    text-align: center;
    color: #0f172a;
    font-size: 1.65rem;
}

.contact .contact-whatsapp-btn {
    color: #0f2c4a !important;
    background: rgba(255, 255, 255, 0.92);
    border-color: #2563eb;
    font-weight: 700;
    text-shadow: none;
}

.contact .contact-whatsapp-btn:hover,
.contact .contact-whatsapp-btn:focus {
    color: #071a31 !important;
    background: #dbeafe;
    border-color: #1d4ed8;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

@media (max-width: 991px) {
    .business-sector {
        padding: 82px 0;
    }

    .sector-summary-grid,
    .sector-summary-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sector-pricing {
        padding: 36px 22px 18px;
    }
}

@media (max-width: 575px) {
    .business-sector {
        padding: 68px 0;
    }

    .sector-header {
        margin-bottom: 34px;
    }

    .sector-header h2 {
        font-size: 2rem;
    }

    .sector-summary-grid,
    .sector-summary-grid--four {
        grid-template-columns: 1fr;
    }

    .sector-summary-card {
        min-height: auto;
    }

    .sector-pricing {
        margin-top: 46px;
        padding: 30px 14px 12px;
    }
}

/* ============================ HERO POR PERFIL ============================ */
.main-banner {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.22), transparent 30%),
        radial-gradient(circle at 88% 22%, rgba(168, 85, 247, 0.25), transparent 32%),
        linear-gradient(145deg, #071a31 0%, #10284b 45%, #26104d 100%);
}

.main-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    z-index: 2;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.55;
    pointer-events: none;
    animation: heroOrbFloat 9s ease-in-out infinite;
}

.hero-orb--one {
    top: 13%;
    left: -120px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.5), transparent 68%);
}

.hero-orb--two {
    top: 25%;
    right: -100px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.45), transparent 68%);
    animation-delay: -3s;
}

.hero-orb--three {
    bottom: -130px;
    left: 42%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.46), transparent 68%);
    animation-delay: -6s;
}

.main-banner .hero-intro-col .caption {
    max-width: 880px;
}

.hero-intro-col .caption h1 {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    margin-bottom: 14px;
}

.main-banner .hero-intro-p {
    max-width: 720px;
    color: #dbeafe !important;
    font-size: 1.15rem;
}

.hero-profile-grid {
    position: relative;
    z-index: 4;
    max-width: 1400px;
    margin: 28px auto 0;
}

.profile-card {
    --profile-accent: #38bdf8;
    --profile-accent-rgb: 56, 189, 248;
    --pointer-x: 50%;
    --pointer-y: 50%;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    overflow: hidden;
    padding: 27px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
    box-shadow: 0 24px 70px rgba(2, 8, 23, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform-style: preserve-3d;
    transition: transform 0.22s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    animation: profileCardIn 0.75s both cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-profile-grid > div:nth-child(2) .profile-card { animation-delay: 0.12s; }
.hero-profile-grid > div:nth-child(3) .profile-card { animation-delay: 0.24s; }

.profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(380px circle at var(--pointer-x) var(--pointer-y), rgba(var(--profile-accent-rgb), 0.28), transparent 55%);
    transition: opacity 0.35s ease;
}

.profile-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--profile-accent), transparent);
    box-shadow: 0 0 24px rgba(var(--profile-accent-rgb), 0.85);
}

.profile-card:hover {
    border-color: rgba(var(--profile-accent-rgb), 0.72);
    box-shadow: 0 30px 80px rgba(2, 8, 23, 0.42), 0 0 35px rgba(var(--profile-accent-rgb), 0.15);
}

.profile-card:hover::before { opacity: 1; }
.profile-card--empresa { --profile-accent: #34d399; --profile-accent-rgb: 52, 211, 153; }
.profile-card--consorcios { --profile-accent: #c084fc; --profile-accent-rgb: 192, 132, 252; }

.profile-card-glow {
    position: absolute;
    z-index: -2;
    right: -70px;
    top: -80px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(var(--profile-accent-rgb), 0.2);
    filter: blur(35px);
    transition: transform 0.45s ease;
}

.profile-card:hover .profile-card-glow { transform: scale(1.25) translate(-12px, 12px); }

.profile-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.profile-number {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.profile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(var(--profile-accent-rgb), 0.55);
    border-radius: 18px;
    color: #ffffff;
    font-size: 1.35rem;
    background: rgba(var(--profile-accent-rgb), 0.18);
    box-shadow: 0 10px 28px rgba(var(--profile-accent-rgb), 0.18);
}

.profile-icon-symbol {
    display: block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.65rem;
    line-height: 1;
    filter: drop-shadow(0 3px 7px rgba(2, 8, 23, 0.3));
}

.profile-eyebrow {
    margin: 0 0 7px;
    color: var(--profile-accent) !important;
    font-size: 0.78rem !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-card h2 {
    min-height: 2.35em;
    margin: 0 0 10px;
    color: #ffffff !important;
    font-size: clamp(1.6rem, 2.1vw, 2.05rem);
    line-height: 1.2;
}

.profile-card-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 0.78rem !important;
    padding: 4px 12px !important;
    border-radius: 14px !important;
    letter-spacing: 0.02em;
    vertical-align: 3px;
    margin-left: 7px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    line-height: 1.2 !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
}

.profile-description {
    min-height: 3.2em;
    margin-bottom: 20px;
    color: #cbd5e1 !important;
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
}

.profile-links {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.profile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    color: #f8fafc;
    font-size: 0.96rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.055);
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.profile-links a i {
    color: var(--profile-accent);
    font-size: 0.78rem;
    transition: transform 0.25s ease;
}

.profile-link-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.profile-link-label > i,
.profile-link-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border-radius: 8px;
    color: #ffffff !important;
    background: rgba(var(--profile-accent-rgb), 0.35);
    font-size: 0.82rem !important;
}

.profile-link-symbol {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 0.9rem !important;
    line-height: 1;
}

.profile-links a:hover,
.profile-links a:focus-visible {
    color: #ffffff;
    border-color: rgba(var(--profile-accent-rgb), 0.6);
    background: rgba(var(--profile-accent-rgb), 0.17);
    transform: translateX(5px);
    outline: none;
}

.profile-links a:hover i,
.profile-links a:focus-visible i { transform: translateX(4px); }

.profile-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    color: var(--profile-accent);
    font-size: 0.94rem;
    font-weight: 700;
}

.profile-card-cta:hover { color: #ffffff; }
.profile-card-cta i { transition: transform 0.25s ease; }
.profile-card-cta:hover i { transform: translateX(5px); }

.hero-scroll-hint {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 0.85rem !important;
}

.hero-scroll-hint i { animation: hintBounce 1.8s ease-in-out infinite; }

.sys-module,
.plans-group,
.sys-section {
    scroll-margin-top: 105px;
}

.hero-target-highlight {
    animation: targetHighlight 1.8s ease !important;
}

@keyframes profileCardIn {
    from { opacity: 0; transform: translateY(34px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(20px, -22px, 0) scale(1.1); }
}

@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes targetHighlight {
    0%, 100% { box-shadow: inherit; }
    25%, 70% { box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.24), 0 22px 55px rgba(37, 99, 235, 0.24); }
}

@media (max-width: 1199px) {
    .profile-card {
        min-height: 480px;
    }

    .hero-profile-grid > div:last-child .profile-card {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .main-banner {
        padding: 105px 0 72px;
    }

    .hero-profile-grid {
        margin-top: 18px;
    }

    .profile-card,
    .hero-profile-grid > div:last-child .profile-card {
        min-height: auto;
        padding: 23px 20px;
        border-radius: 23px;
    }

    .profile-card h2,
    .profile-description {
        min-height: 0;
    }

    .profile-card h2 {
        font-size: 1.72rem;
    }

    .profile-icon {
        width: 49px;
        height: 49px;
        border-radius: 15px;
    }

    .hero-scroll-hint span {
        max-width: 250px;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .profile-card {
        padding: 20px 17px;
    }

    .profile-links a {
        padding: 10px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-card,
    .hero-orb,
    .hero-scroll-hint i,
    .hero-target-highlight {
        animation: none !important;
    }

    .profile-card,
    .profile-links a,
    .profile-card-cta i {
        transition-duration: 0.01ms !important;
    }
}

/* ============================ HERO (dos columnas) ============================ */
.hero-intro-col {
    position: relative;
    z-index: 4;
}

.hero-intro-col .caption {
    max-width: 1060px;
    margin: 0 auto;
}

.hero-intro-p {
    max-width: 960px;
    margin: 0 auto;
    font-size: 1.08rem;
}

.hero-split {
    position: relative;
    z-index: 4;
    margin-top: 10px;
}

.hero-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 28px;
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    text-align: left;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-card--consorcios {
    border-top: 4px solid var(--sys-consorcios);
}

.hero-card--consorcios:hover {
    transform: translateY(-6px);
    border-color: var(--sys-consorcios);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.28);
}

.hero-card--contable {
    border-top: 4px solid var(--sys-contable);
}

.hero-card--contable:hover {
    transform: translateY(-6px);
    border-color: var(--sys-contable);
    box-shadow: 0 20px 45px rgba(124, 58, 237, 0.28);
}

.hero-card h2 {
    font-size: 1.7rem;
    line-height: 1.25;
    color: #ffffff !important;
    margin: 18px 0 14px;
}

.hero-card p {
    color: #cbd5e1 !important;
    font-size: 1rem;
    margin-bottom: 18px;
}

.hero-card p strong {
    color: #ffffff;
}

.sys-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    padding: 7px 16px;
    border-radius: 30px;
    line-height: 1.4;
}

.sys-badge--consorcios {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(37, 99, 235, 0.45);
}

.sys-badge--contable {
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(124, 58, 237, 0.5);
}

.hero-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.hero-card-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: #cbd5e1;
    font-size: 0.97rem;
    line-height: 1.55;
}

.hero-card-list li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.8rem;
    color: #38bdf8;
}

.hero-card--contable .hero-card-list li::before {
    color: #c084fc;
}

.hero-card-list li strong {
    color: #ffffff;
}

.hero-card-price {
    margin-top: auto;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.95rem;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.12);
    border: 1px dashed rgba(148, 163, 184, 0.35);
}

.hero-card-price strong {
    color: #facc15;
}

.hero-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.hero-card-actions.justify-content-center {
    justify-content: center;
}

.hero-card-actions .cta-btn-glow,
.hero-card-actions .btn-outline-hero {
    margin: 0;
    font-size: 0.95rem;
}

.cta-btn-glow--contable {
    background: linear-gradient(135deg, #6d28d9 0%, #a855f7 50%, #d946ef 100%);
    background-size: 200% auto;
}

/* ============================ SECCIONES DE CADA SISTEMA ============================ */
.sys-section {
    position: relative;
}

.sys-section--consorcios {
    background: #ffffff;
}

.sys-section--contable {
    background: linear-gradient(180deg, #f8fafc 0%, #f2f0fd 100%);
    border-top: 1px solid var(--neon-border);
    border-bottom: 1px solid var(--neon-border);
}

.sys-section .section-heading {
    margin-bottom: 40px;
}

.sys-section .section-heading .sys-badge {
    margin-bottom: 18px;
}

.sys-access {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.sys-access a {
    font-weight: 700;
    color: var(--sys-consorcios);
}

.sys-section--contable .sys-access a {
    color: var(--sys-contable);
}

/* ============================ BLOQUE "PARA QUIÉN ES" (Consorcios) ============================ */
.sys-usecase {
    background: var(--bg-dark-900);
    border: 1px solid var(--neon-border);
    border-radius: 28px;
    padding: 34px;
}

.sys-usecase h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.sys-usecase-img {
    border-radius: 22px;
    border: 1px solid var(--neon-border);
    background: #ffffff;
    max-width: 420px;
}

.sys-usecase-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 22px;
}

.sys-usecase-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.sys-usecase-list li::before {
    content: "\25C6";
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 0.8rem;
    color: var(--sys-consorcios);
}

.sys-usecase-list li strong {
    color: var(--text-main);
}

.sys-inline-cta {
    display: inline-block;
    font-weight: 700;
    color: var(--sys-consorcios);
    border-bottom: 1px dashed currentColor;
    padding-bottom: 2px;
}

/* ============================ EJES TEMÁTICOS (Contadores) ============================ */
.sys-ejes {
    margin-bottom: 30px;
}

.sys-eje {
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--neon-border);
    border-radius: 24px;
    padding: 28px 24px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.sys-eje:hover {
    transform: translateY(-8px);
    border-color: var(--sys-contable);
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.12);
}

.sys-eje i {
    display: inline-block;
    font-size: 1.6rem;
    color: var(--sys-contable);
    margin-bottom: 14px;
}

.sys-eje h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.sys-eje p {
    font-size: 0.95rem;
    margin: 0;
}

/* ============================ GRILLA DE LOS 12 MÓDULOS ============================ */
.sys-modules-heading {
    margin: 20px 0 30px;
}

.sys-modules-heading h3 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.sys-modules-heading p {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-muted);
}

.sys-modules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.sys-module {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--neon-border);
    border-radius: 22px;
    padding: 26px 22px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.sys-module:hover {
    transform: translateY(-6px);
    border-color: var(--sys-contable);
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.12);
}

.sys-module i {
    font-size: 1.5rem;
    color: var(--sys-contable);
    margin-bottom: 14px;
}

.sys-module h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.sys-module p {
    font-size: 0.92rem;
    margin: 0 0 16px;
}

.sys-module-price {
    margin-top: auto;
    font-weight: 800;
    font-size: 1rem;
    color: var(--sys-contable);
}

.sys-carousel {
    margin-top: 10px;
}

/* ============================ BLOQUES DESTACADOS (Contadores) ============================ */
.sys-feature-block {
    background: #ffffff;
    border: 1px solid var(--neon-border);
    border-radius: 28px;
    padding: 34px;
    margin: 0 0 30px;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.sys-feature-block:hover {
    border-color: var(--sys-contable);
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.1);
}

.sys-feature-block h3 {
    font-size: 1.65rem;
    margin: 16px 0 14px;
    color: var(--primary-color);
}

.sys-feature-block p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.sys-feature-block--sueldos {
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}

.sys-feature-img {
    max-width: 400px;
    border-radius: 22px;
    border: 1px solid var(--neon-border);
    background: var(--bg-dark-900);
}

.sys-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.sys-feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-muted);
    line-height: 1.6;
}

.sys-feature-list li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 0.85rem;
    color: var(--sys-contable);
}

.sys-feature-list li strong {
    color: var(--text-main);
}

.sys-inline-cta--contable {
    color: var(--sys-contable);
}

/* ============================ CTA FINAL DEL SISTEMA CONTABLE ============================ */
.sys-cta-final {
    margin-top: 60px;
    padding: 40px 34px;
    border-radius: 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(124, 58, 237, 0.25);
}

.sys-cta-final h3 {
    font-size: 1.9rem;
    margin-bottom: 12px;
}

.sys-cta-final p {
    max-width: 840px;
    margin: 0 auto;
    color: var(--text-muted);
}

.sys-cta-final .hero-card-actions {
    justify-content: center;
}

/* ============================ GRUPOS DE PLANES ============================ */
.plans-group {
    position: relative;
}

.plans-group + .plans-group {
    margin-top: 70px;
}

.plans-group .sys-badge {
    margin-bottom: 14px;
}

.plans-group--consorcios {
    padding: 30px 24px 10px;
    border-radius: 30px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.plans-group--contable {
    padding: 30px 24px 10px;
    border-radius: 30px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.22);
}

/* Sobreescritura de los acentos posicionales de .plan-box para el grupo contable */
.plans-group--contable .col-lg-4:nth-child(1) .plan-box {
    border-top: 5px solid var(--sys-contable);
}

.plans-group--contable .col-lg-4:nth-child(2) .plan-box {
    border-top: 5px solid var(--sys-consorcios);
}

.plans-group--contable .col-lg-4:nth-child(3) .plan-box {
    border-top: 5px solid #6366f1;
}

.plans-group--contable .col-lg-4:nth-child(1) .plan-box h4 {
    color: var(--sys-contable);
}

.plans-group--contable .col-lg-4:nth-child(2) .plan-box h4 {
    color: var(--sys-consorcios);
}

.plans-group--contable .col-lg-4:nth-child(3) .plan-box h4 {
    color: #6366f1;
}

.plan-box--contable {
    position: relative;
}

.plan-box--contable ul.plan-list {
    text-align: left;
}

.plan-flag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6d28d9, #a855f7);
    color: #ffffff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
    white-space: nowrap;
}

.plan-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.plan-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.plan-list li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.78rem;
    color: var(--sys-contable);
}

/* ============================ TABLA DE PRECIOS (sección oscura) ============================ */
.sys-price-table {
    margin-top: 60px;
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sys-price-table h4 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.sys-price-tbl {
    color: #e2e8f0 !important;
    margin-bottom: 0;
}

.sys-price-tbl thead th {
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.sys-price-tbl tbody td,
.sys-price-tbl tbody th,
.sys-price-tbl tfoot td,
.sys-price-tbl tfoot th {
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.94rem;
    font-weight: 500;
    vertical-align: middle;
}

.sys-price-tbl tbody th,
.sys-price-tbl tfoot th {
    color: #ffffff;
    font-weight: 600;
}

#precios-modulos-estudio .sys-price-tbl tbody th::before {
    content: "\2714";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 9px;
    border-radius: 50%;
    color: #ffffff;
    background: #10b981;
    font-size: 0.68rem;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
}

.sys-price-tbl tfoot tr {
    background: rgba(124, 58, 237, 0.18);
}

.sys-price-tbl tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sys-price-note {
    margin: 14px 0 0 !important;
    font-size: 0.85rem;
    color: #94a3b8 !important;
}

/* ============================ FAQ VISIBLE (respalda el FAQPage) ============================ */
.faq-section {
    background: #ffffff;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.faq-item {
    background: var(--bg-dark-900);
    border: 1px solid var(--neon-border);
    border-radius: 20px;
    padding: 20px 22px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
    border-color: var(--sys-consorcios);
    box-shadow: 0 12px 30px rgba(15, 44, 74, 0.06);
}

.faq-item summary {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-main);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "+";
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--sys-consorcios);
}

.faq-item[open] summary::before {
    content: "\2013";
}

.faq-item p {
    margin: 14px 0 0;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ============================ TABLA COMPARATIVA (FAQ) ============================ */
.sys-compare-tbl {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0;
}

.sys-compare-tbl thead th {
    background: var(--bg-dark-900);
    color: var(--primary-color);
    border-color: var(--neon-border);
    font-size: 0.95rem;
    vertical-align: middle;
}

.sys-compare-tbl tbody td,
.sys-compare-tbl tbody th {
    border-color: var(--neon-border);
    font-size: 0.93rem;
    vertical-align: top;
    color: var(--text-muted);
}

.sys-compare-tbl tbody th {
    color: var(--text-main);
    white-space: nowrap;
}

.sys-compare-tbl tbody tr:hover {
    background: rgba(37, 99, 235, 0.03);
}

/* ============================ FOOTER DE DOS SISTEMAS ============================ */
footer .footer-title {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--primary-color);
}

footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footer-links li {
    margin-bottom: 8px;
}

footer .footer-links a {
    color: var(--text-muted);
    font-size: 0.93rem;
}

footer .footer-links a:hover {
    color: var(--sys-consorcios);
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1199px) {
    .sys-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .hero-card {
        padding: 24px 20px;
    }

    .hero-card h2 {
        font-size: 1.45rem;
    }

    .hero-intro-col .caption h1 {
        font-size: 2.3rem;
    }

    .sys-usecase {
        padding: 26px 20px;
    }

    .sys-feature-block {
        padding: 24px 20px;
    }

    .sys-feature-block h3 {
        font-size: 1.4rem;
    }

    .sys-feature-list li {
        padding-left: 26px;
    }

    .sys-usecase-list {
        margin-top: 14px;
    }

    .sys-cta-final {
        padding: 30px 22px;
        margin-top: 45px;
    }

    .sys-cta-final h3 {
        font-size: 1.55rem;
    }

    .sys-modules-heading h3 {
        font-size: 1.6rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .plans-group + .plans-group {
        margin-top: 50px;
    }

    .sys-compare-tbl tbody th {
        white-space: normal;
    }
}

@media (max-width: 575px) {
    .sys-modules {
        grid-template-columns: 1fr;
    }

    .plans-group--consorcios,
    .plans-group--contable {
        padding: 22px 14px 4px;
    }

    .hero-card-actions {
        gap: 10px;
    }

    .hero-card-actions .cta-btn-glow,
    .hero-card-actions .btn-outline-hero {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .sys-price-table {
        padding: 18px 14px;
    }

    .sys-price-table h4 {
        font-size: 1.1rem;
    }
}

/* Prioridad final para los tres sectores: evita que reglas históricas
   vuelvan a mezclar visualmente los paneles de precios. */
.business-sector--estudios .plans-group--contable {
    background: linear-gradient(145deg, #241047 0%, #472083 100%);
    border-color: rgba(192, 132, 252, 0.45);
}

.business-sector--empresas .plans-group--empresa {
    background: linear-gradient(145deg, #073b31 0%, #076b52 100%);
    border-color: rgba(52, 211, 153, 0.4);
}

.business-sector--consorcios .plans-group--consorcios {
    background: linear-gradient(145deg, #0b2d5b 0%, #1556a5 100%);
    border-color: rgba(96, 165, 250, 0.45);
}

@media (max-width: 575px) {
    .business-sector .plans-group--contable,
    .business-sector .plans-group--empresa,
    .business-sector .plans-group--consorcios {
        padding: 30px 14px 12px;
    }
}
