/* =========================================================
   IT-MAC | Soluciones de Software
   Ubicación: /public_html/css/soluciones-software.css
   Esta hoja no reemplaza el CSS general del sitio.
   ========================================================= */

/* ---------- Submenú Servicios ---------- */
.nav-services {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-services > .nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-services > .nav-link > i {
    font-size: 0.68rem;
    color: #36bfff;
    transition: transform 0.2s ease;
}

.nav-services:hover > .nav-link > i,
.nav-services:focus-within > .nav-link > i {
    transform: rotate(180deg);
}

.nav-services-submenu {
    position: absolute;
    top: calc(100% - 3px);
    left: 0;
    z-index: 100;
    width: 310px;
    padding: 10px;
    background: rgba(5, 22, 38, 0.99);
    border: 1px solid rgba(52, 154, 222, 0.26);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(9px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-services:hover .nav-services-submenu,
.nav-services:focus-within .nav-services-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-services-submenu > a {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 11px;
    padding: 11px;
    color: #dcecf8;
    text-decoration: none;
    border-radius: 10px;
}

.nav-services-submenu > a:hover,
.nav-services-submenu > a:focus-visible,
.nav-services-submenu > a.active {
    color: #59c9ff;
    background: #0d3250;
}

.nav-services-submenu > a > i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #45c3ff;
    background: rgba(34, 164, 238, 0.12);
    border-radius: 9px;
}

.nav-services-submenu span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.nav-services-submenu strong { font-size: 0.86rem; }
.nav-services-submenu small {
    margin-top: 3px;
    color: #91a9be;
    font-size: 0.7rem;
}

/* ---------- Configuración general de la página ---------- */
.software-page {
    --container: 1400px;
    background: #f6f8fb;
}

/* ---------- Hero ---------- */
.software-hero {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: #031321 url("../img/webp/fondo-red-tecnologica-itmac.webp") center / cover no-repeat;
}

.software-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(2, 14, 26, 0.99) 0%, rgba(2, 18, 33, 0.93) 42%, rgba(2, 20, 37, 0.48) 100%),
        radial-gradient(circle at 68% 52%, rgba(0, 119, 255, 0.19), transparent 46%);
}

.software-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
    align-items: center;
    gap: 20px;
    min-height: 480px;
}

.software-hero-copy {
    position: relative;
    z-index: 3;
    max-width: 620px;
    padding: 42px 0 48px;
    color: #fff;
}

.software-hero-copy .eyebrow {
    margin-bottom: 11px;
    font-size: 0.72rem;
}

.software-hero-copy h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(2.35rem, 3.25vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.software-highlight {
    margin: 0 0 17px !important;
    color: #16aef4 !important;
    font-family: Sora, Inter, sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.28rem) !important;
    font-weight: 700;
}

.software-hero-copy > p:not(.software-highlight) {
    max-width: 545px;
    margin-bottom: 0;
    color: #d8e5f0;
    font-size: 0.95rem;
    line-height: 1.65;
}

.software-hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 25px 0 23px;
}

.software-hero-actions .btn {
    min-height: 43px;
    padding: 9px 15px;
    font-size: 0.84rem;
    white-space: nowrap;
}

.btn-light-software {
    color: #087cc6;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.btn-light-software:hover,
.btn-light-software:focus-visible {
    background: #eaf8ff;
}

.software-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    max-width: 500px;
    color: #dbe9f5;
    font-size: 0.84rem;
    line-height: 1.5;
}

.software-note i {
    margin-top: 4px;
    color: #18adf2;
}

/* Imagen principal alineada como la referencia */
.software-hero-visual {
    position: relative;
    z-index: 2;
    align-self: center;
    justify-self: end;
    width: min(100%, 828px);
    margin-top: 4px;
}

.software-hero-visual picture,
.software-hero-visual img {
    display: block;
    width: 100%;
}

.software-hero-visual img {
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.24));
}

/* Botones superiores independientes de la imagen */
.software-visual-links {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.software-visual-link {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 118px;
    padding: 0 10px;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: clamp(0.68rem, 0.85vw, 0.89rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(7, 47, 87, 0.97), rgba(5, 27, 52, 0.97));
    border: 1px solid rgba(75, 157, 226, 0.5);
    border-radius: 11px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25), inset 0 0 18px rgba(14, 118, 210, 0.08);
    pointer-events: auto;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.software-visual-link:hover,
.software-visual-link:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #0b4f8c, #072c52);
    border-color: #32b9ff;
    box-shadow: 0 0 0 3px rgba(38, 183, 255, 0.13), 0 14px 28px rgba(0, 0, 0, 0.28);
}

.software-visual-link i {
    color: #189fff;
    font-size: 1.18em;
}

.software-visual-link-crm {
    top: 8.1%;
    right: 13.4%;
    width: 21.1%;
    aspect-ratio: 3 / 1;
}

.software-visual-link-erp {
    top: 22.1%;
    right: 5.9%;
    width: 22.8%;
    aspect-ratio: 3.4 / 1;
}

/* ---------- Tarjetas de beneficios ---------- */
.software-benefits {
    padding: 24px 0;
    background: #fff;
    border-bottom: 1px solid var(--border, #dce7f0);
}

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

.software-benefit-grid article {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-height: 132px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border, #dce7f0);
    border-radius: 15px;
    box-shadow: 0 7px 22px rgba(15, 35, 65, 0.05);
}

.software-benefit-grid article > i {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    color: #087ee1;
    font-size: 1.55rem;
    background: #eaf6ff;
    border-radius: 50%;
}

.software-benefit-grid h2 {
    margin: 3px 0 5px;
    font-family: Inter, sans-serif;
    font-size: 0.98rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.software-benefit-grid p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
}

/* ---------- Producto destacado ---------- */
.software-product-section {
    padding: 20px 0 24px;
    background: #fff;
}

.software-product-card {
    display: grid;
    grid-template-columns: 315px 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 164px;
    padding: 0 30px 0 0;
    overflow: hidden;
    background: linear-gradient(100deg, #edf8ff, #fff 55%, #eef7ff);
    border: 1px solid #9dcaf0;
    border-radius: 15px;
}

.software-product-image {
    align-self: stretch;
    min-height: 164px;
    background: #eaf6ff;
}

.software-product-image picture,
.software-product-image img {
    width: 100%;
    height: 100%;
}

.software-product-image img { object-fit: cover; }

.software-product-copy { padding: 16px 0; }
.software-product-copy .eyebrow { margin: 0 0 6px; }
.software-product-copy h2 {
    margin-bottom: 4px;
    font-size: clamp(1.12rem, 1.7vw, 1.5rem);
    letter-spacing: -0.025em;
}
.software-product-copy p {
    margin-bottom: 12px;
    font-size: 0.84rem;
}

.software-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.software-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    color: #33475d;
    font-size: 0.75rem;
    background: #fff;
    border: 1px solid #dfeaf4;
    border-radius: 8px;
}

.software-tags i { color: #118de5; }
.software-demo-button { white-space: nowrap; }

/* ---------- CTA final ---------- */
.software-platform-cta {
    padding: 0 0 72px;
    background: #fff;
}

.software-platform-inner {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 126px;
    padding: 23px 48px;
    color: #fff;
    background: #041b35 url("../img/webp/fondo-red-tecnologica-itmac.webp") center / cover no-repeat;
    border-radius: 15px;
    box-shadow: 0 18px 40px rgba(3, 31, 60, 0.16);
}

.software-platform-inner h2 {
    margin: 0 0 5px;
    font-size: clamp(1.22rem, 2vw, 1.75rem);
}

.software-platform-inner p {
    margin: 0;
    color: #d7e6f3;
    font-size: 0.88rem;
}

.software-rocket {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    color: #26baff;
    font-size: 2rem;
    background: rgba(0, 120, 230, 0.14);
    border: 1px solid rgba(29, 165, 244, 0.35);
    border-radius: 50%;
}

.btn-platform {
    color: #087ed0;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.17);
}

.btn-platform:hover,
.btn-platform:focus-visible { background: #eaf7ff; }

/* ---------- Modo oscuro ---------- */
html[data-theme="dark"] .software-page,
html[data-theme="dark"] .software-benefits,
html[data-theme="dark"] .software-product-section,
html[data-theme="dark"] .software-platform-cta { background: #061321; }

html[data-theme="dark"] .software-benefit-grid article {
    background: var(--surface, #0c2033);
    border-color: var(--border, #28465f);
}

html[data-theme="dark"] .software-benefit-grid article > i {
    background: #102a42;
    border: 1px solid #285273;
}

html[data-theme="dark"] .software-product-card {
    background: linear-gradient(100deg, #0b253a, #0c2033 55%, #0a2942);
    border-color: #2b6288;
}

html[data-theme="dark"] .software-product-image { background: #10283e; }
html[data-theme="dark"] .software-tags span {
    color: #dbe9f5;
    background: #10283e;
    border-color: #31516c;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .software-page { --container: 1240px; }

    .software-hero-actions {
        flex-wrap: wrap;
    }

    .software-product-card {
        grid-template-columns: 255px 1fr;
    }

    .software-product-image {
        grid-row: 1 / 3;
    }

    .software-demo-button {
        grid-column: 2;
        justify-self: start;
        margin-bottom: 22px;
    }
}

@media (max-width: 900px) {
    .nav-services { display: block; }
    .nav-services > .nav-link {
        width: 100%;
        justify-content: space-between;
    }
    .nav-services > .nav-link > i { transform: none !important; }
    .nav-services-submenu {
        position: static;
        width: auto;
        padding: 2px 0 5px 17px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav-services-submenu > a {
        grid-template-columns: 30px 1fr;
        padding: 8px 10px;
    }
    .nav-services-submenu > a > i {
        width: 30px;
        height: 30px;
    }
    .nav-services-submenu small { display: none; }

    .software-hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
    }

    .software-hero-copy {
        max-width: 760px;
        padding: 46px 0 12px;
    }

    .software-hero-copy h1 br { display: none; }

    .software-hero-visual {
        justify-self: center;
        width: min(100%, 780px);
        margin-top: 0;
    }

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

    .software-product-card {
        grid-template-columns: 1fr;
        padding: 0 24px 24px;
    }

    .software-product-image {
        grid-row: auto;
        height: 225px;
        margin: 0 -24px;
    }

    .software-demo-button {
        grid-column: auto;
        justify-self: start;
        margin: 0;
    }

    .software-platform-inner {
        grid-template-columns: 80px 1fr;
    }

    .btn-platform {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .software-hero-copy h1 {
        font-size: 2.45rem;
    }

    .software-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .software-hero-actions .btn { width: 100%; }

    .software-visual-link {
        min-width: 0;
        gap: 5px;
        padding: 0 5px;
        font-size: 0.58rem;
        border-radius: 7px;
    }

    .software-benefit-grid { grid-template-columns: 1fr; }
    .software-benefit-grid article { padding: 18px; }

    .software-product-card { padding: 0 18px 22px; }
    .software-product-image {
        height: 190px;
        margin: 0 -18px;
    }

    .software-platform-inner {
        grid-template-columns: 1fr;
        padding: 30px 24px;
    }

    .software-rocket {
        width: 66px;
        height: 66px;
    }

    .btn-platform {
        grid-column: auto;
        width: 100%;
    }
}
