/* =========================================================
   STOCKTMASTER33.COM
   SITIO COMERCIAL
========================================================= */

:root {
    --primary: #0d6efd;
    --primary-dark: #0754c7;
    --primary-deep: #083b87;
    --primary-soft: #eaf3ff;
    --navy: #0a2342;
    --navy-dark: #071a31;
    --text: #26384f;
    --muted: #68788e;
    --background: #f7faff;
    --background-soft: #f2f7fd;
    --white: #ffffff;
    --border: #dfe8f2;
    --success: #14945f;
    --danger: #db5148;
    --shadow-small: 0 8px 24px rgba(26, 67, 114, 0.08);
    --shadow-medium: 0 16px 40px rgba(26, 67, 114, 0.12);
    --shadow-large: 0 26px 65px rgba(20, 63, 110, 0.16);
}


/* =========================================================
   GENERAL
========================================================= */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

section {
    position: relative;
}

.container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   HEADER
========================================================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

    .main-header .navbar {
        min-height: 74px;
        padding-top: 7px;
        padding-bottom: 7px;
    }


/* =========================================================
   LOGO
========================================================= */

.stockmaster-logo {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 9px;
    align-items: center;
    line-height: 1;
    padding: 0;
    margin-right: 30px;
}

.logo-icon {
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient( 135deg, #0d6efd, #48a6ff );
    color: var(--white);
    font-size: 21px;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(13, 110, 253, 0.24);
}

.logo-text {
    color: var(--navy);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-number {
    color: var(--primary);
}

.logo-domain {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.logo-subtitle {
    margin-top: 5px;
    color: #7e8da0;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.35px;
}


/* =========================================================
   MENU
========================================================= */

.main-header .nav-link {
    position: relative;
    margin: 0 7px;
    padding: 14px 3px !important;
    color: #2d3f55 !important;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .main-header .nav-link:hover {
        color: var(--primary) !important;
    }

    .main-header .nav-link::after {
        content: "";
        position: absolute;
        left: 3px;
        right: 3px;
        bottom: 7px;
        height: 2px;
        border-radius: 10px;
        background: var(--primary);
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }

    .main-header .nav-link:hover::after {
        transform: scaleX(1);
    }

.btn-demo {
    padding: 11px 20px;
    border-radius: 9px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient( 135deg, var(--primary), #1478ef );
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn-demo:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(13, 110, 253, 0.25);
    }


/* =========================================================
   HERO
========================================================= */

.hero-section {
    overflow: hidden;
    padding: 72px 0 76px;
    background: radial-gradient( circle at 91% 5%, rgba(13, 110, 253, 0.09), transparent 31% ), radial-gradient( circle at 0% 95%, rgba(67, 157, 255, 0.10), transparent 29% ), linear-gradient( 180deg, #ffffff 0%, #f5f9ff 100% );
}

    .hero-section::before {
        content: "";
        position: absolute;
        width: 430px;
        height: 430px;
        right: -220px;
        bottom: -240px;
        border-radius: 50%;
        background: rgba(13, 110, 253, 0.04);
    }

    .hero-section::after {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        left: -120px;
        top: -115px;
        border-radius: 50%;
        background: rgba(13, 110, 253, 0.035);
    }


/* =========================================================
   HERO TEXTO
========================================================= */

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 19px;
    padding: 7px 15px;
    border-radius: 50px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.hero-title {
    margin: 0 0 22px;
    color: #091f3b;
    font-size: clamp( 43px, 4vw, 62px );
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -2px;
}

    .hero-title span {
        display: block;
        color: var(--primary);
    }

.hero-description {
    max-width: 600px;
    margin-bottom: 29px;
    color: #5e6f85;
    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   HERO BOTONES
========================================================= */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 13px 24px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
}

.btn-hero-primary {
    border: none;
    background: linear-gradient( 135deg, var(--primary), #1479ef );
    box-shadow: 0 11px 25px rgba(13, 110, 253, 0.22);
}

    .btn-hero-primary:hover {
        transform: translateY(-1px);
    }

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.80);
    border-color: #b9d4f5;
}


/* =========================================================
   HERO BENEFICIOS RAPIDOS
========================================================= */

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
    padding-top: 23px;
    border-top: 1px solid #dce5ef;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border-radius: 50%;
    background: #edf5ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.trust-item strong,
.trust-item span {
    display: block;
}

.trust-item strong {
    color: var(--navy);
    font-size: 11px;
    line-height: 1.2;
}

.trust-item span {
    margin-top: 3px;
    color: #77869a;
    font-size: 9px;
}


/* =========================================================
   CAPTURAS DEL SISTEMA
========================================================= */

.hero-section .col-lg-7 > div,
.reports-section .col-lg-7 > div,
.benefits-section .col-lg-7 > div {
    position: relative;
    overflow: hidden;
    border: 1px solid #d9e4ef !important;
    border-radius: 16px !important;
    background: var(--white);
    box-shadow: var(--shadow-large) !important;
    transition: transform 0.30s ease, box-shadow 0.30s ease;
}

    .hero-section .col-lg-7 > div:hover,
    .reports-section .col-lg-7 > div:hover,
    .benefits-section .col-lg-7 > div:hover {
        transform: translateY(-4px);
        box-shadow: 0 30px 75px rgba(20, 63, 110, 0.20) !important;
    }

.hero-section .col-lg-7 img,
.reports-section .col-lg-7 img,
.benefits-section .col-lg-7 img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s ease;
}

.hero-section .col-lg-7 > div:hover img,
.reports-section .col-lg-7 > div:hover img,
.benefits-section .col-lg-7 > div:hover img {
    transform: scale(1.006);
}


/* =========================================================
   MARCO ESPECIAL IMAGEN PRINCIPAL
========================================================= */

.hero-section .col-lg-7 > div::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}


/* =========================================================
   TITULOS GENERALES
========================================================= */

.section-heading {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}

    .section-heading > span,
    .section-label {
        display: inline-block;
        margin-bottom: 10px;
        color: var(--primary);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.1px;
    }

    .section-heading h2,
    .report-content h2,
    .flexible-box h2,
    .cta-box h2 {
        color: var(--navy);
        font-size: clamp( 30px, 3vw, 42px );
        line-height: 1.17;
        font-weight: 800;
        letter-spacing: -1px;
    }

    .section-heading p,
    .report-content p,
    .flexible-box p {
        color: var(--muted);
        font-size: 15px;
        line-height: 1.7;
    }


/* =========================================================
   PRESENTACION
========================================================= */

.features-section {
    padding: 76px 0 22px;
    background: var(--white);
}


/* =========================================================
   MODULOS
========================================================= */

.modules-section {
    padding: 18px 0 80px;
    background: var(--white);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 13px;
}

.module-card {
    min-height: 225px;
    padding: 24px 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    text-align: center;
    box-shadow: var(--shadow-small);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

    .module-card:hover {
        transform: translateY(-5px);
        border-color: #c9dcf3;
        box-shadow: var(--shadow-medium);
    }

.module-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 51px;
    margin: 0 auto 17px;
    border-radius: 13px;
    background: linear-gradient( 135deg, #e5f1ff, #f4f9ff );
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
}

.module-card:nth-child(4)
.module-icon {
    font-size: 10px;
}

.module-card:nth-child(6)
.module-icon {
    background: #fff0ef;
    color: var(--danger);
}

.module-card h3 {
    margin-bottom: 10px;
    color: #12335c;
    font-size: 15px;
    font-weight: 700;
}

.module-card p {
    margin: 0;
    color: #69798f;
    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   SECCIONES DE CAPTURAS
========================================================= */

.reports-section {
    padding: 86px 0;
    background: var(--white);
}

    .reports-section + .reports-section {
        border-top: 1px solid #eef3f8;
    }

.benefits-section {
    padding: 86px 0;
    background: linear-gradient( 180deg, #f7faff, #f3f8fe );
    border-top: 1px solid #edf3f9;
    border-bottom: 1px solid #edf3f9;
}


/* =========================================================
   TEXTO SECCIONES
========================================================= */

.report-content {
    padding-right: 30px;
}

.benefits-section
.report-content {
    padding-left: 20px;
    padding-right: 0;
}

.report-content p {
    margin: 18px 0 23px;
}

.report-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .report-list li {
        position: relative;
        margin-bottom: 11px;
        padding-left: 26px;
        color: #53657c;
        font-size: 14px;
        line-height: 1.5;
    }

        .report-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 17px;
            height: 17px;
            border-radius: 50%;
            background: #e8f3ff;
            color: var(--primary);
            font-size: 10px;
            font-weight: 800;
        }


/* =========================================================
   BENEFICIOS
========================================================= */

.benefit-item {
    height: 100%;
    padding: 25px 22px;
    border: 1px solid transparent;
    border-radius: 13px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .benefit-item:hover {
        transform: translateY(-3px);
        background: var(--white);
        border-color: #e0e9f3;
        box-shadow: var(--shadow-small);
    }

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient( 135deg, var(--primary), #55a7ff );
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 9px 19px rgba(13, 110, 253, 0.20);
}

.benefit-item h3 {
    color: #12335c;
    font-size: 17px;
    font-weight: 700;
}

.benefit-item p {
    margin-bottom: 0;
    color: #68798e;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   CAJA DE REPORTES
========================================================= */

.flexible-box {
    padding: 40px 43px;
    border: 1px solid #dbe6f1;
    border-radius: 16px;
    background: linear-gradient( 135deg, #f6faff, #ffffff );
    box-shadow: var(--shadow-small);
}

    .flexible-box h3 {
        color: #12335c;
    }

    .flexible-box p {
        margin-bottom: 0;
    }


/* =========================================================
   CTA
========================================================= */

.contact-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 35, 65, 0.24);
}

.contact-modal .modal-header {
    align-items: flex-start;
    padding: 24px 26px 18px;
    border-bottom: 1px solid #e7edf5;
}

.contact-modal-kicker {
    color: #0d6efd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.contact-modal .modal-title {
    margin-top: 4px;
    color: #12335c;
    font-size: 27px;
    font-weight: 800;
}

.contact-modal .modal-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}

.contact-modal .modal-body {
    padding: 22px 26px;
}

.contact-modal .modal-footer {
    padding: 16px 26px 22px;
    border-top: 0;
}

.contact-modal .form-label {
    color: #263b56;
    font-size: 13px;
    font-weight: 700;
}

.contact-modal .form-control {
    border-color: #d7e0eb;
    border-radius: 9px;
}

.contact-modal .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.cta-section {
    padding: 15px 0 74px;
    background: var(--white);
}

.cta-box {
    position: relative;
    overflow: hidden;
    padding: 48px 50px;
    border-radius: 18px;
    background: radial-gradient( circle at 92% 20%, rgba(93, 176, 255, 0.26), transparent 29% ), linear-gradient( 120deg, #08448f 0%, #0d6efd 61%, #0758cf 100% );
    box-shadow: 0 20px 48px rgba(13, 86, 190, 0.22);
}

    .cta-box::before {
        content: "";
        position: absolute;
        width: 230px;
        height: 230px;
        right: -95px;
        top: -100px;
        border-radius: 50%;
        border: 32px solid rgba(255, 255, 255, 0.06);
    }

    .cta-box::after {
        content: "";
        position: absolute;
        width: 170px;
        height: 170px;
        right: 90px;
        bottom: -115px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
    }

    .cta-box span {
        position: relative;
        z-index: 2;
        color: #c1ddff;
        font-size: 13px;
        font-weight: 700;
    }

    .cta-box h2 {
        position: relative;
        z-index: 2;
        margin-top: 7px;
        color: var(--white);
    }

    .cta-box p {
        position: relative;
        z-index: 2;
        max-width: 720px;
        margin-bottom: 0;
        color: #dcecff;
        font-size: 15px;
    }

.btn-cta {
    position: relative;
    z-index: 3;
    padding: 14px 23px;
    border-radius: 9px;
    color: #0b5eca;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 11px 26px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease;
}

    .btn-cta:hover {
        transform: translateY(-2px);
    }


/* =========================================================
   FOOTER
========================================================= */

.main-footer {
    padding: 35px 0 23px;
    background: #081c34;
    color: #c8d6e6;
}

.footer-brand {
    color: var(--white);
    font-size: 19px;
    font-weight: 800;
}

    .footer-brand span {
        color: #4ea7ff;
    }

.footer-description {
    margin-top: 4px;
    color: #8799b0;
    font-size: 11px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 22px;
}

    .footer-links a {
        color: #b7c5d6;
        font-size: 12px;
        transition: color 0.2s ease;
    }

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

.main-footer hr {
    margin: 24px 0 18px;
    border-color: rgba(255, 255, 255, 0.10);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #8091a7;
    font-size: 11px;
}

.footer-copyright {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-country-flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}


/* =========================================================
   RESPONSIVE 1200
========================================================= */

@media (max-width: 1199px) {

    .modules-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-title {
        font-size: 49px;
    }

    .hero-section
    .col-lg-7 > div {
        margin-top: 25px;
    }
}


/* =========================================================
   RESPONSIVE 991
========================================================= */

@media (max-width: 991px) {

    .main-header
    .navbar-collapse {
        padding: 14px 0 18px;
    }

    .main-header
    .nav-link {
        margin: 0;
        padding: 10px 0 !important;
    }

        .main-header
        .nav-link::after {
            display: none;
        }

    .main-header
    .nav-item.ms-lg-3 {
        margin-top: 8px;
    }

    .hero-section {
        padding: 52px 0 65px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-section
    .col-lg-7 > div {
        max-width: 850px;
        margin: 42px auto 0;
    }

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

    .report-content {
        padding-right: 0;
        margin-bottom: 35px;
    }

    .benefits-section
    .report-content {
        padding-left: 0;
    }

    .reports-section,
    .benefits-section {
        padding: 68px 0;
    }

    .cta-box {
        text-align: center;
    }

        .cta-box
        .text-lg-end {
            margin-top: 25px;
        }

    .footer-links {
        justify-content: flex-start;
    }
}


/* =========================================================
   RESPONSIVE 767
========================================================= */

@media (max-width: 767px) {

    html {
        font-size: 15px;
    }

    .stockmaster-logo {
        margin-right: 10px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-domain {
        font-size: 12px;
    }

    .logo-subtitle {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .hero-section {
        padding: 42px 0 52px;
    }

    .hero-title {
        font-size: 40px;
        letter-spacing: -1.4px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-trust {
        gap: 16px;
    }

    .features-section {
        padding: 55px 0 15px;
    }

    .modules-section {
        padding-bottom: 58px;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .module-card {
        min-height: auto;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .reports-section,
    .benefits-section {
        padding: 55px 0;
    }

        .hero-section .col-lg-7 > div,
        .reports-section .col-lg-7 > div,
        .benefits-section .col-lg-7 > div {
            border-radius: 12px !important;
        }

    .flexible-box,
    .cta-box {
        padding: 33px 24px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}


/* =========================================================
   RESPONSIVE 480
========================================================= */

@media (max-width: 480px) {

    .contact-modal .modal-dialog {
        margin: 12px;
    }

    .contact-modal .modal-header,
    .contact-modal .modal-body,
    .contact-modal .modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-domain {
        font-size: 10px;
    }

    .logo-subtitle {
        display: none;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-buttons {
        flex-direction: column;
    }

        .hero-buttons .btn {
            width: 100%;
        }

    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading h2,
    .report-content h2,
    .flexible-box h2,
    .cta-box h2 {
        font-size: 28px;
    }

    .report-list li {
        font-size: 13px;
    }
}

/* =========================================================
   PLANES
========================================================= */

.plans-section {
    padding: 86px 0 82px;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    border-top: 1px solid #edf3f9;
}

.plans-heading {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    max-width: 1080px;
    margin: 0 auto;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 31px 29px 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-small);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: #c8ddf5;
    box-shadow: var(--shadow-medium);
}

.plan-card-featured {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 48px rgba(13, 110, 253, 0.16);
}

.plan-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 15px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.22);
}

.plan-card-header {
    min-height: 145px;
}

.plan-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-card h3 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.plan-description {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin: 7px 0 23px;
    color: var(--navy);
}

.plan-price strong {
    font-size: 39px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.4px;
}

.plan-currency {
    align-self: flex-start;
    margin-top: 2px;
    margin-right: 3px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
}

.plan-period {
    margin-left: 7px;
    color: #7c8ba0;
    font-size: 12px;
    font-weight: 600;
}

.plan-features {
    flex: 1;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.plan-features li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 25px;
    color: #51647a;
    font-size: 13px;
    line-height: 1.45;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #e8f3ff;
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
}

.plan-button {
    width: 100%;
    padding: 12px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease;
}

.plan-button:hover {
    transform: translateY(-1px);
}

.plan-button-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 22px rgba(13, 110, 253, .18);
}

.plan-button-primary:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: var(--white);
}

.plan-button-outline {
    border: 1px solid #bad3f1;
    background: var(--white);
    color: var(--primary);
}

.plan-button-outline:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.plans-included {
    max-width: 1080px;
    margin: 27px auto 0;
    padding: 20px 24px;
    border: 1px solid #dfe9f4;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-small);
}

.plans-included-title {
    margin-bottom: 13px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.plans-included-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px 22px;
}

.plans-included-items span {
    color: #53667c;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .plan-card-header {
        min-height: auto;
    }

    .plan-card-featured {
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    .plans-section {
        padding: 58px 0 60px;
    }

    .plan-card {
        padding: 27px 23px 24px;
    }

    .plan-price strong {
        font-size: 35px;
    }

    .plans-included {
        padding: 19px 18px;
    }

    .plans-included-items {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* =========================================================
   PORTAL DE CLIENTES / MIS EMPRESAS
========================================================= */

.portal-page {
    min-height: 620px;
    padding: 54px 0 78px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.portal-narrow-container {
    max-width: 920px;
}

.portal-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.portal-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.portal-title-row h1,
.portal-login-copy h1 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.4px;
}

.portal-title-row p,
.portal-login-copy p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.portal-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-small);
}

.portal-primary-button,
.portal-secondary-button,
.portal-disabled-button,
.portal-header-button {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14px;
}

.portal-primary-button {
    border: none;
    background: linear-gradient(135deg, var(--primary), #1478ef);
    box-shadow: 0 10px 22px rgba(13, 110, 253, .18);
}

.portal-secondary-button,
.portal-header-button {
    color: var(--primary);
    background: #fff;
    border: 1px solid #b9d4f5;
}

.portal-secondary-button:hover,
.portal-header-button:hover {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-color: #9bc4f4;
}

.portal-disabled-button {
    color: #8391a4;
    background: #eef2f7;
    border: 1px solid #dbe3ec;
}

.portal-nav-link {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.portal-user-item {
    max-width: 150px;
}

.portal-user-name {
    display: block;
    padding: 10px 6px;
    color: #50647d;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .8fr);
    gap: 54px;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

.portal-login-copy {
    padding: 28px 0;
}

.portal-login-points {
    display: grid;
    gap: 9px;
    margin-top: 26px;
    color: #34516f;
    font-weight: 600;
}

.portal-login-card {
    padding: 30px;
}

.portal-card-heading {
    margin-bottom: 24px;
}

.portal-card-heading > span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.portal-card-heading h2 {
    margin: 4px 0 6px;
    color: var(--navy);
    font-size: 27px;
    font-weight: 800;
}

.portal-card-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.portal-form {
    display: grid;
    gap: 18px;
}

.portal-field {
    display: grid;
    gap: 7px;
}

.portal-field label {
    color: #32465e;
    font-size: 13px;
    font-weight: 700;
}

.portal-field .form-control {
    min-height: 46px;
    border-radius: 9px;
    border-color: #d7e2ee;
}

.portal-field .form-control:focus {
    border-color: #8bbbf1;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .10);
}

.portal-field small {
    color: var(--muted);
    font-size: 12px;
}

.portal-validation {
    color: #b42318;
    font-size: 13px;
}

.portal-validation:empty {
    display: none;
}

.portal-alert {
    margin-bottom: 22px;
    padding: 14px 17px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.portal-alert-success {
    color: #11633f;
    background: #eaf8f1;
    border: 1px solid #bde7d1;
}

.portal-alert-error {
    color: #9f2b24;
    background: #fff1f0;
    border: 1px solid #f2c6c2;
}

.portal-plan-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--border);
}

.portal-plan-summary > div {
    min-width: 0;
    padding: 18px 20px;
    background: #fff;
}

.portal-summary-label,
.portal-payment-summary span,
.portal-identity-strip span,
.portal-company-meta span {
    display: block;
    margin-bottom: 3px;
    color: #7a899b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.portal-plan-summary strong,
.portal-payment-summary strong,
.portal-identity-strip strong {
    display: block;
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
}

.portal-plan-summary small {
    color: var(--muted);
}

.portal-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #cfe1f7;
    border-radius: 14px;
    background: #f3f8ff;
}

.portal-callout strong {
    color: var(--navy);
}

.portal-callout p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

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

.portal-company-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-small);
}

.portal-company-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.portal-company-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 14px;
    font-weight: 900;
}

.portal-company-head span {
    color: #7c8b9d;
    font-size: 12px;
    font-weight: 700;
}

.portal-company-head h2 {
    margin: 2px 0 0;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.portal-company-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.portal-company-meta > div {
    min-width: 0;
    padding: 12px;
    border-radius: 10px;
    background: #f7f9fc;
}

.portal-company-meta strong {
    color: #334b66;
    font-size: 13px;
}

.portal-status-ok {
    color: var(--success) !important;
}

.portal-status-danger {
    color: var(--danger) !important;
}

.portal-company-warning {
    margin-bottom: 15px;
    padding: 10px 12px;
    color: #9f2b24;
    background: #fff3f2;
    border-radius: 9px;
    font-size: 12px;
}

.portal-company-actions {
    margin-top: auto;
}

.portal-company-actions .btn {
    width: 100%;
}

.portal-add-card {
    align-items: center;
    justify-content: center;
    text-align: center;
    border-style: dashed;
    background: #fbfdff;
}

.portal-add-symbol {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 31px;
    line-height: 1;
}

.portal-add-card h2 {
    margin: 0 0 7px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
}

.portal-add-card p {
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 13px;
}

.portal-simulation-badge {
    display: inline-block;
    margin: -5px 0 20px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #795b00;
    background: #fff7d6;
    border: 1px solid #f0dc8d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

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

.portal-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-small);
}

.portal-plan-featured {
    border-color: #96c0f4;
    box-shadow: 0 16px 42px rgba(13, 110, 253, .12);
}

.portal-plan-popular {
    position: absolute;
    top: -12px;
    right: 18px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.portal-plan-name {
    color: var(--navy);
    font-size: 21px;
    font-weight: 800;
}

.portal-plan-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 13px 0;
}

.portal-plan-price strong {
    color: var(--navy);
    font-size: 30px;
    font-weight: 900;
}

.portal-plan-price span,
.portal-plan-card p,
.portal-plan-card li {
    color: var(--muted);
    font-size: 13px;
}

.portal-plan-card ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 22px;
    padding: 0;
    list-style: none;
}

.portal-plan-card .btn {
    margin-top: auto;
}

.portal-plan-note {
    margin: auto 0 12px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #9f2b24;
    background: #fff3f2;
    font-size: 12px;
}

.portal-payment-card,
.portal-add-company-form {
    padding: 26px;
}

.portal-payment-summary,
.portal-identity-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.portal-payment-summary > div,
.portal-identity-strip > div {
    padding: 14px;
    border-radius: 10px;
    background: #f7f9fc;
}

.portal-test-options {
    display: grid;
    gap: 10px;
}

.portal-test-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
}

.portal-test-option input {
    margin-top: 4px;
}

.portal-test-option strong,
.portal-test-option small {
    display: block;
}

.portal-test-option strong {
    color: var(--navy);
}

.portal-test-option small {
    margin-top: 2px;
    color: var(--muted);
}

.portal-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.portal-provision-note {
    display: grid;
    gap: 5px;
    padding: 15px;
    border-radius: 10px;
    color: #4d627a;
    background: #f7f9fc;
    font-size: 13px;
}

.portal-provision-note strong {
    color: var(--navy);
}

@media (max-width: 991.98px) {
    .portal-login-shell,
    .portal-plans-grid {
        grid-template-columns: 1fr;
    }

    .portal-user-item {
        max-width: none;
    }

    .portal-user-name {
        padding-left: 3px;
    }
}

@media (max-width: 767.98px) {
    .portal-page {
        padding: 36px 0 58px;
    }

    .portal-title-row,
    .portal-callout {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-plan-summary,
    .portal-company-grid,
    .portal-payment-summary,
    .portal-identity-strip {
        grid-template-columns: 1fr;
    }

    .portal-login-card,
    .portal-payment-card,
    .portal-add-company-form,
    .portal-company-card {
        padding: 20px;
    }
}

/* =========================================================
   VALOR COMERCIAL: TRAZABILIDAD Y VALUACIÓN
========================================================= */

.value-showcase-section {
    padding-top: 82px;
    padding-bottom: 86px;
}

.value-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.value-showcase-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-medium);
    transition: transform .25s ease, box-shadow .25s ease;
}

.value-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

.value-showcase-copy {
    padding: 24px 25px 20px;
}

.value-showcase-copy span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.value-showcase-copy h3 {
    margin: 7px 0 8px;
    color: var(--navy);
    font-size: 24px;
    font-weight: 800;
}

.value-showcase-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.value-showcase-card img {
    display: block;
    width: 100%;
    height: 310px;
    object-fit: contain;
    object-position: top center;
    border-top: 1px solid var(--border);
    background: #fff;
}

@media (max-width: 991.98px) {
    .value-showcase-grid {
        grid-template-columns: 1fr;
    }

    .value-showcase-card img {
        height: auto;
    }
}

/* =========================================================
   AJUSTES MÓVILES GENERALES
========================================================= */

@media (max-width: 991.98px) {
    .main-header .navbar-collapse {
        max-height: calc(100vh - 74px);
        margin-top: 8px;
        padding: 12px 14px 16px;
        overflow-y: auto;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 18px 38px rgba(20, 63, 110, .14);
    }

    .main-header .navbar-nav {
        align-items: stretch !important;
    }

    .main-header .nav-link {
        padding: 10px 2px !important;
    }

    .main-header .portal-user-name {
        padding: 9px 2px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .main-header .portal-header-button,
    .main-header .btn-demo {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .main-header .navbar {
        min-height: 66px;
    }

    .stockmaster-logo {
        min-width: 0;
        margin-right: 10px;
    }

    .main-header .navbar-toggler {
        flex: 0 0 auto;
        padding: 7px 9px;
        border-color: #cbd9e8;
        border-radius: 9px;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-bottom {
        gap: 5px;
    }

    .plan-price,
    .portal-plan-price {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .plan-period,
    .portal-plan-price span {
        white-space: nowrap;
    }

    .portal-page {
        min-height: auto;
        padding: 30px 0 48px;
    }

    .portal-title-row {
        gap: 16px;
        margin-bottom: 22px;
    }

    .portal-title-row h1,
    .portal-login-copy h1 {
        font-size: 32px;
        letter-spacing: -.9px;
        overflow-wrap: anywhere;
    }

    .portal-title-row > .btn,
    .portal-callout > .btn {
        width: 100%;
    }

    .portal-login-shell {
        gap: 18px;
    }

    .portal-login-copy {
        padding: 0;
    }

    .portal-form-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .portal-form-actions form,
    .portal-form-actions .btn,
    .portal-form-actions form .btn {
        width: 100%;
    }

    .portal-plan-summary > div,
    .portal-payment-summary > div,
    .portal-identity-strip > div {
        padding: 15px 16px;
    }

    .portal-plan-card {
        padding: 22px 20px;
    }

    .portal-plan-price strong {
        font-size: 28px;
    }

    .portal-company-card {
        min-height: auto;
    }

    .portal-alert,
    .portal-company-warning,
    .portal-provision-note {
        overflow-wrap: anywhere;
    }

    .portal-test-option {
        padding: 12px;
    }
}

@media (max-width: 420px) {
    .portal-company-meta {
        grid-template-columns: 1fr;
    }

    .portal-company-head {
        align-items: flex-start;
    }

    .portal-login-card,
    .portal-payment-card,
    .portal-add-company-form,
    .portal-company-card {
        padding: 17px;
    }
}

/* =========================================================
   CONTACTO DIRECTO: WHATSAPP / LLAMAR
========================================================= */
.contact-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.contact-direct-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-right: auto;
}

.contact-direct-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 10px;
    color: #29415f;
    text-decoration: none;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.contact-direct-option:hover {
    color: #12335c;
    border-color: #b7c7d9;
    box-shadow: 0 5px 14px rgba(15, 35, 65, .08);
    transform: translateY(-1px);
}

.contact-direct-option-whatsapp {
    border-color: rgba(31, 171, 99, .38);
}

.contact-direct-option-whatsapp .contact-direct-icon,
.contact-direct-option-whatsapp strong {
    color: #178b50;
}

.contact-direct-icon {
    display: inline-flex;
    width: 20px;
    justify-content: center;
    color: #58708d;
    font-size: 15px;
    line-height: 1;
}

.contact-direct-option span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.contact-direct-option strong {
    font-size: 12px;
    font-weight: 800;
}

.contact-direct-option small {
    max-width: 145px;
    margin-top: 3px;
    overflow: hidden;
    color: #718096;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-modal-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

@media (max-width: 720px) {
    /*
       En móvil el formulario vive entre .modal-content y .modal-body.
       Lo hacemos flexible para que únicamente el cuerpo del formulario
       se desplace y el footer (Cerrar / Enviar mensaje) permanezca visible.
    */
    .contact-modal .modal-dialog {
        height: calc(100vh - 24px);
        height: calc(100dvh - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .contact-modal .modal-content {
        max-height: 100%;
    }

    .contact-modal .modal-header {
        flex: 0 0 auto;
    }

    .contact-modal .modal-content > form {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .contact-modal .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .contact-modal .modal-footer {
        flex: 0 0 auto;
    }

    .contact-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-direct-options {
        width: 100%;
        order: 1;
    }

    .contact-direct-option {
        flex: 1 1 0;
    }

    .contact-modal-actions {
        width: 100%;
        order: 2;
    }

    .contact-modal-actions .btn {
        flex: 1 1 0;
    }
}
