/* ==========================================================================
   SCS Soluciones Integrales — Estilos compartidos de subpáginas
   ========================================================================== */

body {
    --accent: var(--blue);
    --accent-dark: var(--blue-dark);
    --accent-soft: #eaf3ff;
}

/* --------------------------------------------------------------------------
   Hero de página
   -------------------------------------------------------------------------- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 6vw, 74px) 0 clamp(48px, 6vw, 78px);
    color: var(--white);
    background: linear-gradient(115deg, #002a5c 0%, #003f86 52%, #0065bd 100%);
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 52%;
    height: 180%;
    background:
        linear-gradient(130deg, transparent 30%, rgba(41, 182, 246, .16) 31% 35%, transparent 36% 42%, rgba(255, 255, 255, .09) 43% 46%, transparent 47%);
    transform: skewX(-14deg);
    pointer-events: none;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 12% 90%, rgba(0, 123, 255, .35), transparent 52%);
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(28px, 4.5vw, 58px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #9fd8ff;
    font-size: 12px;
    font-weight: 800;
}

.breadcrumb a {
    color: #d7ecff;
    transition: color .2s ease;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb .icon {
    width: 13px;
    height: 13px;
    opacity: .7;
}

.page-hero h1 {
    margin-bottom: 16px;
    color: var(--white);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -.022em;
    line-height: 1.1;
}

.page-hero h1 span {
    color: #5fd0ff;
}

.page-hero .lead {
    max-width: 660px;
    margin-bottom: 24px;
    color: #dcecff;
    font-size: clamp(14.5px, 1.2vw, 16.5px);
    line-height: 1.72;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.page-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    color: #e6f4ff;
    font-size: 11.5px;
    font-weight: 800;
}

.page-hero-tag .icon {
    width: 14px;
    height: 14px;
    color: #8fe0ff;
}

.page-hero-media {
    position: relative;
}

.page-hero-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 430px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.page-hero-media .media-badge {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-sm);
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
}

.page-hero-media .media-badge .icon {
    width: 17px;
    height: 17px;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */

.page-section {
    padding: clamp(48px, 6vw, 76px) 0;
}

.page-section.alt {
    background: var(--pale);
}

.page-section.tight {
    padding: clamp(36px, 4.5vw, 56px) 0;
}

.section-lead {
    max-width: 760px;
    margin: 0 auto 34px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.7;
    text-align: center;
}

.section-lead.left {
    margin-left: 0;
    text-align: left;
}

.accent-text {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Bloques de dos columnas
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4.5vw, 54px);
}

.split-media img {
    width: 100%;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.split.circle-media .split-media img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.split-copy > .section-kicker {
    margin-bottom: 8px;
}

.split-copy h2 {
    margin-bottom: 14px;
    color: var(--navy);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 900;
    letter-spacing: -.015em;
    line-height: 1.16;
}

.split-copy h2 span {
    color: var(--accent);
}

.split-copy p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.72;
}

.split-copy .button {
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Tarjetas de características
   -------------------------------------------------------------------------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}

.feature-icon .icon {
    width: 23px;
    height: 23px;
}

.feature-card h3 {
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Módulos del sistema
   -------------------------------------------------------------------------- */

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.module-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, transform .2s ease;
}

.module-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.module-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
}

.module-icon .icon {
    width: 18px;
    height: 18px;
}

.module-card h3 {
    margin-bottom: 3px;
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.3;
}

.module-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Lista de beneficios / checks
   -------------------------------------------------------------------------- */

.check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list.one {
    grid-template-columns: minmax(0, 1fr);
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #243b58;
    font-size: 14px;
    line-height: 1.55;
}

.check-list .icon {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    flex: 0 0 19px;
    color: var(--green);
}

/* --------------------------------------------------------------------------
   Pasos de implementación
   -------------------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.step {
    position: relative;
    padding: 24px 20px 20px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 4px 4px 14px 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
}

.step h3 {
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 900;
}

.step p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12.8px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Franja de datos
   -------------------------------------------------------------------------- */

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.stat-strip .stat {
    padding: 24px 18px;
    text-align: center;
}

.stat-strip .stat + .stat {
    border-left: 1px solid var(--line);
}

.stat strong {
    display: block;
    color: var(--accent);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.1;
}

.stat span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Sectores / etiquetas
   -------------------------------------------------------------------------- */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    color: #243b58;
    font-size: 12.5px;
    font-weight: 800;
    transition: border-color .2s ease, color .2s ease;
}

.chip:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.chip .icon {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Preguntas frecuentes
   -------------------------------------------------------------------------- */

.faq {
    display: grid;
    gap: 10px;
    max-width: 860px;
    margin: 0 auto;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 900;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    margin: 0;
    padding: 0 18px 17px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Aviso / banner
   -------------------------------------------------------------------------- */

.notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid #bcdcf6;
    border-radius: 12px;
    background: #eef7ff;
    color: #1c3b5c;
    font-size: 13.5px;
    line-height: 1.65;
}

.notice .icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: 0 0 20px;
    color: var(--accent);
}

.notice strong {
    font-weight: 900;
}

/* --------------------------------------------------------------------------
   Modalidades de los sistemas
   -------------------------------------------------------------------------- */

.version-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}

.version-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
}

.version-card {
    padding: 25px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.version-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.version-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}

.version-icon .icon {
    width: 23px;
    height: 23px;
}

.version-card h3 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 17px;
    font-weight: 900;
}

.version-card p {
    min-height: 78px;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.version-card strong {
    color: var(--accent-dark);
    font-size: 12px;
    line-height: 1.4;
}

.versions-notice {
    max-width: 1080px;
    margin: 22px auto 0;
}

@media (max-width: 760px) {
    .version-grid,
    .version-grid-two {
        grid-template-columns: minmax(0, 1fr);
    }

    .version-card p {
        min-height: 0;
    }
}

/* --------------------------------------------------------------------------
   CTA de subpágina
   -------------------------------------------------------------------------- */

.page-cta {
    padding: 0 0 clamp(48px, 6vw, 76px);
}

.page-cta .cta-copy h2 {
    max-width: 640px;
}

.page-cta .cta-actions {
    flex-direction: column;
    align-items: stretch;
}

.page-cta .cta .button {
    min-height: 54px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .page-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-hero-media {
        max-width: 640px;
    }

    .split {
        grid-template-columns: minmax(0, 1fr);
    }

    .split-media {
        order: -1;
    }

    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-strip .stat:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .stat-strip .stat:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .page-cta .cta-actions {
        flex-direction: row;
    }
}

@media (max-width: 760px) {
    .page-hero {
        padding: 36px 0 44px;
    }

    .page-hero-actions .button {
        width: 100%;
    }

    .page-hero-actions {
        flex-direction: column;
    }

    .page-section {
        padding: 42px 0;
    }

    .feature-grid,
    .feature-grid.two {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .check-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .page-cta .cta-actions {
        flex-direction: column;
    }

    .page-cta .cta .button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .module-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-strip .stat + .stat {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

/* --------------------------------------------------------------------------
   Buscador de m�dulos
   -------------------------------------------------------------------------- */

.module-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto 26px;
    padding: 6px 8px 6px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.module-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.module-filter-label .icon {
    width: 17px;
    height: 17px;
}

.module-filter input {
    width: 100%;
    min-width: 0;
    padding: 9px 12px;
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.module-filter input:focus {
    outline: none;
}

.module-filter:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .12);
}

.module-empty {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

[hidden] {
    display: none !important;
}

@media (max-width: 520px) {
    .module-filter {
        align-items: stretch;
        flex-direction: column;
        padding: 12px 14px;
    }

    .module-filter input {
        border-top: 1px solid var(--line);
        border-left: 0;
        padding-left: 0;
    }
}
