/* ===============================
   VARIABLES SOLUSOFT
================================ */
:root {
    --orange: #d9822b;
    --orange-dark: #b96823;
    --gold: #d49a2a;
    --navy: #17233c;
    --navy-deep: #0f172a;
    --brown: #2b211d;
    --brown-mid: #453027;
    --brown-deep: #211a17;
    --white: #ffffff;
    --bg: #f8fafc;
    --bg-warm: #fffaf5;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e8edf4;
    --success: #16a34a;
    --whatsapp: #25D366;
    --radius: 16px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

/* ===============================
   CONFIGURACIÓN GENERAL
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* ===============================
   HEADER
================================ */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding-left: 8px;
    padding-right: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text strong {
    font-size: 22px;
    font-weight: 700;
    color: #d79a55;
}

.logo-text span {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #555;
}

.nav {
    display: flex;
    align-items: center;
    gap: 29px;
    margin-left: auto;
}

.nav a {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--orange);
}

.btn-demo {
    padding: 12px 21px;
    border-radius: 9px;
    background: var(--orange);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease;
}

.btn-demo:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 27px;
    color: var(--navy);
    cursor: pointer;
}

/* ===============================
   HERO / INICIO
================================ */
.hero {
    min-height: 100vh;
    padding: 140px 0 90px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 80% 30%, rgba(217, 130, 43, 0.13), transparent 35%),
        radial-gradient(circle at 20% 90%, rgba(212, 154, 42, 0.08), transparent 30%),
        var(--bg-warm);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 22px;
    padding: 8px 14px;
    border-radius: 50px;
    background: #fff1e3;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.03;
    letter-spacing: -2px;
    color: var(--navy);
}

.hero h1 span {
    display: block;
    color: var(--orange);
}

.hero-content > p {
    margin-top: 25px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 32px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    border-radius: 9px;
    font-weight: 700;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.btn-primary {
    padding: 15px 24px;
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 14px 22px;
    border: 1px solid #d8c7b7;
    background: var(--white);
    color: var(--navy);
}

.btn-secondary:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 13px;
}

.hero-benefits div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-benefits span {
    color: var(--orange);
    font-weight: 800;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    display: block;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(23, 35, 60, 0.16);
}

/* ===============================
   CABECERAS DE SECCIÓN
================================ */
.section-header {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-tag {
    display: inline-block;
    margin-bottom: 15px;
    padding: 7px 13px;
    border-radius: 50px;
    background: #fff1e3;
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
}

.section-header h2 {
    color: var(--navy);
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1.8px;
}

.section-header h2 span {
    color: var(--orange);
}

.section-header p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

/* ===============================
   FUNCIONALIDADES
================================ */
.features {
    padding: 120px 0 100px;
    background: var(--white);
}

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

.feature-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: #f0cfad;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #fff1e3;
    font-size: 24px;
}

.feature-card h3 {
    margin-bottom: 11px;
    color: var(--navy);
    font-size: 19px;
}

.feature-card p {
    min-height: 72px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.feature-card a {
    display: inline-block;
    margin-top: 18px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.2s ease;
}

.feature-card a:hover {
    transform: translateX(4px);
}

/* ===============================
   VISTA DEL SISTEMA
================================ */
.system-preview {
    padding: 110px 0;
    background: var(--bg);
}

.system-window {
    width: min(1050px, 100%);
    margin: 45px auto 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 25px 60px rgba(23, 35, 60, 0.12);
}

.system-topbar {
    height: 55px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 0 20px;
    background: var(--navy-deep);
    color: var(--white);
}

.window-buttons {
    display: flex;
    gap: 7px;
}

.window-buttons span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64748b;
}

.window-buttons span:nth-child(1) { background: #ef4444; }
.window-buttons span:nth-child(2) { background: #f59e0b; }
.window-buttons span:nth-child(3) { background: #22c55e; }

.system-title {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.system-user {
    text-align: right;
    color: #cbd5e1;
    font-size: 11px;
}

.system-body {
    display: grid;
    grid-template-columns: 175px 1fr;
    min-height: 480px;
}

.system-sidebar {
    padding: 25px 16px;
    background: #111827;
}

.sidebar-logo {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 25px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.sidebar-logo img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    display: block;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #1e293b;
    color: var(--white);
}

.sidebar-menu a.active {
    border-left: 3px solid var(--orange);
}

.system-content {
    min-width: 0;
    padding: 25px;
    background: var(--bg);
}

.system-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.system-content-header small,
.system-stat small,
.preview-card-title small,
.product-row small {
    color: #94a3b8;
}

.system-content-header small { font-size: 10px; }
.system-content-header h3 { margin-top: 3px; font-size: 24px; }

.system-content-header button {
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--orange);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

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

.system-stat {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px;
    border: 1px solid #e7edf5;
    border-radius: 12px;
    background: var(--white);
}

.stat-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff1e3;
}

.system-stat small { font-size: 9px; }
.system-stat h3 { margin: 3px 0; font-size: 16px; }
.system-stat span { color: var(--success); font-size: 8px; }

.system-main-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr;
    gap: 16px;
    margin-top: 16px;
}

.sales-chart,
.top-products {
    padding: 20px;
    border: 1px solid #e7edf5;
    border-radius: 13px;
    background: var(--white);
}

.preview-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.preview-card-title small { font-size: 9px; }
.preview-card-title h4 { margin-top: 2px; font-size: 14px; }
.preview-card-title > span { color: var(--muted); font-size: 9px; }

.line-chart {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.line-chart svg {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.chart-grid-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.chart-grid-line:nth-child(1) { top: 25%; }
.chart-grid-line:nth-child(2) { top: 50%; }
.chart-grid-line:nth-child(3) { top: 75%; }

.chart-days {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    color: #94a3b8;
    font-size: 9px;
}

.product-row {
    display: grid;
    grid-template-columns: 35px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
}

.product-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff1e3;
    color: var(--orange);
    font-size: 10px;
    font-weight: 800;
}

.product-row div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-row strong { font-size: 10px; }
.product-row small { font-size: 8px; }

/* ===============================
   SOLUCIONES POR RUBRO
================================ */
.solutions {
    padding: 100px 0;
    background: #f7f7f5;
}

.solutions .section-header {
    max-width: 760px;
    margin-bottom: 55px;
}

.solutions .section-tag {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.solutions .section-header h2 {
    margin: 0;
    color: #1d1d1d;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    line-height: 1;
}

.solutions .section-header h2 span {
    display: block;
    color: var(--gold);
}

.solutions .section-header p {
    max-width: 650px;
    margin-top: 22px;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
}

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

.solution-card {
    display: flex;
    flex-direction: column;
    min-height: 350px;
    padding: 32px 28px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 154, 42, 0.6);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
}

.solution-image {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--white);
    cursor: zoom-in;
}

.solution-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.solution-image:hover img {
    transform: scale(1.05);
}

.solution-image::after {
    content: "🔍 Ver imagen";
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%) translateY(10px);
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(23, 35, 60, 0.88);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.solution-image:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.solution-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 14px;
    background: #f4eee3;
    font-size: 30px;
}

.solution-card h3 {
    margin: 0 0 14px;
    color: #1c1c1c;
    font-size: 1.45rem;
    line-height: 1.2;
}

.solution-card p {
    margin: 0 0 28px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.65;
}

.video-btn {
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 18px;
    border: 0;
    background: #171717;
    color: var(--white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.video-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.video-btn span {
    font-size: 13px;
}

/* ===============================
   PLANES
================================ */
.plans {
    padding: 100px 0;
    background: var(--bg-warm);
}

.plans .section-header {
    max-width: 750px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    border: 1px solid #ead8c5;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(23, 35, 60, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.10);
}

.plan-card.featured {
    border: 2px solid var(--orange);
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(233, 138, 46, 0.18);
}

.plan-card.featured:hover {
    transform: translateY(-16px);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 18px;
    border-radius: 20px;
    background: var(--orange);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.plan-name {
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.plan-card h3 {
    margin: 12px 0 15px;
    color: var(--navy);
    font-size: 1.6rem;
}

.plan-description {
    color: #5f6878;
    line-height: 1.6;
}

.plan-features {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.plan-features li {
    padding: 9px 0;
    border-bottom: 1px solid #eee;
    color: #5f6878;
}

.plan-btn {
    display: block;
    margin-top: auto;
    padding: 14px 20px;
    border: 2px solid var(--navy);
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.plan-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
}

.plan-card.featured .plan-btn {
    background: var(--orange);
    border-color: var(--orange);
}

.plan-card.featured .plan-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
}

.plan-custom-price {
    margin: 5px 0 25px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff1e3;
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

/* ===============================
   NOSOTROS
================================ */
.about {
    padding: 100px 0;
    background: var(--bg-warm);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(23, 35, 60, 0.12);
}

.about-content h2 {
    margin: 10px 0 22px;
    color: var(--navy);
    font-size: clamp(2.5rem, 4vw, 4.2rem);
    line-height: 1.05;
}

.about-content h2 span {
    display: block;
    color: var(--orange);
}

.about-content > p {
    margin-bottom: 14px;
    color: #666;
    line-height: 1.75;
}

.about-benefits {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-benefit {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.about-benefit:hover {
    background: var(--white);
    box-shadow: 0 10px 25px rgba(23, 35, 60, 0.08);
    transform: translateY(-2px);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff1e3;
    color: var(--orange);
    font-size: 22px;
}

.about-benefit h3 {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 1.1rem;
}

.about-benefit p {
    margin: 0;
    color: #666;
    line-height: 1.55;
}

.about-stats {
    margin-top: 55px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat {
    padding: 30px 15px;
    border: 1px solid #ead8c5;
    border-radius: 16px;
    background: var(--white);
    text-align: center;
    box-shadow: 0 8px 24px rgba(23, 35, 60, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
}

.stat strong {
    display: block;
    margin-bottom: 8px;
    color: var(--orange);
    font-size: 2.2rem;
    font-weight: 800;
}

.stat span {
    color: var(--navy);
    font-weight: 600;
}

/* ===============================
   CONTACTO
================================ */
.contact {
    padding: 125px 0 90px;
    background: linear-gradient(
        135deg,
        var(--brown) 0%,
        var(--brown-mid) 50%,
        var(--brown-deep) 100%
    );
    color: var(--white);

    scroll-margin-top: 76px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 55px;
    align-items: center;
}

.contact-info h2 {
    margin: 10px 0 22px;
    color: var(--white);
    font-size: clamp(2.7rem, 4vw, 4.5rem);
    line-height: 1.05;
}

.contact-info h2 span {
    display: block;
    color: var(--orange);
}

.contact-info > p {
    max-width: 520px;
    color: #c8cfda;
    line-height: 1.7;
}

.contact-data {
    display: flex;
    gap: 45px;
    margin-top: 35px;
}

.contact-data div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-data strong {
    color: var(--white);
}

.contact-data span {
    color: #c9c3bf;
}

.contact-form {
    padding: 32px;
    border: 1px solid rgba(217, 130, 43, 0.35);
    border-radius: 18px;
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #f8f9fb;
    color: var(--navy);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(217, 130, 43, 0.12);
}

.contact-form textarea {
    resize: vertical;
}

.contact-submit {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--orange);
    border-radius: 8px;
    background: var(--orange);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-submit:hover {
    background: var(--white);
    color: var(--orange);
    transform: translateY(-2px);
}

/* ===============================
   MAPA / UBICACIÓN
================================ */
.location-map {
    margin-top: 55px;
}

.map-header {
    margin-bottom: 18px;
    text-align: left;
}

.map-header h3 {
    margin-top: 8px;
    color: var(--white);
    font-size: 25px;
}

.map-container {
    overflow: hidden;
    border: 1px solid rgba(217, 130, 43, 0.35);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.20);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
}

/* ===============================
   FOOTER
================================ */
.footer {
    padding: 55px 0 20px;
    background: var(--brown-deep);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 45px;
}

.footer-brand h3 {
    margin-bottom: 15px;
    color: var(--white);
    font-size: 28px;
}

.footer-brand h3 span,
.footer-column h4 {
    color: var(--orange);
}

.footer-brand p {
    max-width: 330px;
    color: #c9c3bf;
    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4 {
    margin-bottom: 8px;
    font-size: 17px;
}

.footer-column a,
.footer-column p {
    color: #c9c3bf;
}

.footer-column p {
    margin: 0;
}

.footer-column a {
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-column a:hover {
    color: var(--orange);
    transform: translateX(4px);
}

.footer-column .footer-contact {
    width: fit-content;
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 7px;
    background: var(--orange);
    color: var(--white);
    font-weight: 600;
}

.footer-column .footer-contact:hover {
    background: var(--white);
    color: var(--orange);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom p {
    color: #9f9894;
    font-size: 14px;
}

/* ===============================
   WHATSAPP FLOTANTE
================================ */
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 20px;
    border-radius: 50px;
    background: var(--whatsapp);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.20);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.whatsapp-icon {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

/* ===============================
   MODALES DE FUNCIONALIDADES
================================ */
.feature-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.feature-modal.active {
    display: flex;
}

.feature-modal-box {
    position: relative;
    width: min(700px, 95%);
    max-height: 85vh;
    overflow-y: auto;
    padding: 45px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.feature-modal-box h2 {
    margin: 12px 0 18px;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.feature-modal-box h2 span {
    display: block;
    color: var(--orange);
}

.feature-modal-box p {
    color: #667085;
    line-height: 1.7;
}

.feature-modal-box ul {
    margin-top: 25px;
    padding-left: 22px;
}

.feature-modal-box li {
    margin-bottom: 10px;
}

.feature-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f6;
    color: var(--navy);
    font-size: 26px;
    cursor: pointer;
}

/* ===============================
   VISOR DE IMAGEN
================================ */
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    position: relative;
    width: min(1100px, 95vw);
    max-height: 90vh;
    padding: 20px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.30);
}

.image-modal-content h3 {
    margin: 0 50px 15px 0;
    color: var(--navy);
    font-size: 24px;
}

.image-modal-content img {
    width: 100%;
    max-height: 78vh;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

.image-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f6;
    color: var(--navy);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* ===============================
   RESPONSIVE - 1100px
================================ */
@media (max-width: 1100px) {
    .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===============================
   RESPONSIVE - 950px
================================ */
@media (max-width: 950px) {
    .navbar {
        position: relative;
    }

    .nav,
    .btn-demo {
        display: none;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 9px;
        background: transparent;
        font-size: 27px;
        color: var(--navy);
        cursor: pointer;
    }

    .nav.active {
        position: absolute;
        top: 72px;
        left: 7%;
        right: 7%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        max-height: 58vh;
        overflow-y: auto;
        border: 1px solid #ead8c5;
        border-radius: 14px;
        background: var(--white);
        box-shadow: 0 18px 40px rgba(23, 35, 60, 0.15);
    }

    .nav.active a {
        padding: 8px 12px;
        border-radius: 8px;
        color: var(--navy);
        font-size: 14px;
        font-weight: 600;
    }

    .nav.active a:hover {
        background: #fff1e3;
        color: var(--orange);
    }

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

    .section-header h2 {
        font-size: 36px;
    }

    .system-body {
        grid-template-columns: 150px 1fr;
    }

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

    .system-main-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   RESPONSIVE - 900px
================================ */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding: 120px 0 75px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
    }

    .hero-content {
        max-width: 700px;
        margin: auto;
    }

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

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

    .hero-image {
        max-width: 750px;
        margin: auto;
    }

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

    .plan-card.featured {
        transform: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

/* ===============================
   RESPONSIVE - 850px
================================ */
@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ===============================
   RESPONSIVE - 768px
================================ */
@media (max-width: 768px) {
    .solutions {
        padding: 70px 0;
    }

    .solutions .section-header {
        margin-bottom: 38px;
    }

    .solutions .section-header h2 {
        font-size: 2.7rem;
    }

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

/* ===============================
   RESPONSIVE - 650px
================================ */
@media (max-width: 650px) {

    .plans {
        padding: 65px 0;
    }

    .about {
        padding: 70px 0;
    }

    .plans .section-header {
        margin-bottom: 32px;
    }

    .plans-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        gap: 25px;
    }

    .plan-card {
        padding: 26px 22px;
        border-radius: 14px;
    }

    .plan-card.featured {
        transform: none;
    }

    .plan-card.featured:hover {
        transform: translateY(-4px);
    }

    .plan-name {
        font-size: 12px;
    }

    .plan-card h3 {
        margin: 9px 0 10px;
        font-size: 1.4rem;
    }

    .plan-description {
        font-size: 14px;
        line-height: 1.55;
    }

    .plan-features {
        margin: 20px 0 24px;
    }

    .plan-features li {
        padding: 8px 0;
        font-size: 14px;
    }

    .plan-btn {
        width: 100%;
        padding: 13px 15px;
        font-size: 14px;
    }

    .about-image img {
        height: auto;
    }
}

/* ===============================
   RESPONSIVE - 600px
================================ */
@media (max-width: 600px) {
    .hero {
        padding: 110px 0 60px;
    }

    .hero h1 {
        font-size: 2.6rem;
        line-height: 1.08;
    }

    .hero-content > p {
        font-size: 16px;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-benefits {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .features {
        padding: 75px 0;
    }

    .features-grid,
    .solutions-grid,
    .system-stats,
    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 31px;
    }

    .section-header p {
        font-size: 15px;
    }

    .feature-card {
        padding: 25px;
    }

    .system-preview {
        padding: 65px 0;
    }

    .system-window{
        width: 100%;
        margin-top: 30px;
        border-radius: 16px;
    }

    .system-topbar {
        grid-template-columns: 1fr auto;
        padding: 0 14px;
    }

    .system-title,
    .system-sidebar {
        display: none;
    }

    .system-body {
        display: block;
        min-height: auto;
    }

    .system-content {
        padding: 14px;
    }

    .system-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .system-stat{
        padding: 13px;
    }

    .system-content-header {
        gap: 10px;
        align-items: center;
    }

    .system-content-header h3 {
        font-size: 20px;
    }

    .system-content-header button {
        padding: 9px 11px;
        font-size: 10px;
        white-space: nowrap;
    }

    .system-main-grid{
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .line-chart {
        height: 160px;
    }

    .solutions {
        padding: 70px 0;
    }

    .solutions .section-header{
        margin-bottom: 30px;
    }

    .solutions .section-header h2{
        font-size: 2.2rem;
        line-height: 1.6;
    }

    .solutions .section-header p{
        font-size: 15px;
        line-height: 1.6;
    }

    .solution-card {
        min-height: auto;
        padding: 20px;
    }

    .solution-image{
        height: 190px;
        margin-bottom: 18px;
        background: #f8fafc;
    }

    .solution-image img{
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .solution-icon{
        width: 48px;
        height: 48px;
        margin-bottom: 15px;
        font-size: 24px;
    }

    .solution-card h3{
        margin-bottom: 10px;
        font-size: 1.3rem;
    }

    .solution-card p{
        margin-bottom: 20px;
        font-size: 14px;
    }

    .video-btn{
        padding: 13px 15px;
    }

    .contact {
        padding: 70px 0;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .contact-data {
        flex-direction: column;
        gap: 18px;
    }

    .footer {
        padding-top: 40px;
    }

    .footer-bottom {
        text-align: left;
    }

    .feature-modal-box {
        padding: 32px 22px;
    }

    .whatsapp-float {
        right: 12px;
        bottom: 18px;
        width: 46px;
        height: 46px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }

    .whatsapp-float > span{
        display: none;
    }

    .whatsapp-text {
        display: none;
    }

    .sales-chart,
    .top-products{
        padding: 14px;
    }

    .product-row{
        grid-template-columns: 32px minmax(0, 1fr)auto;
        gap: 8px;
    }

    .product-row strong{
        font-size: 9px;
    }

    .location-map {
    margin-top: 40px;
    }

    .map-header {
        margin-bottom: 14px;
    }

    .map-header h3 {
        font-size: 22px;
    }

    .map-container {
        border-radius: 14px;
    }

    .map-container iframe {
        height: 260px;
    }
}

/* ===============================
   AJUSTES DESKTOP
================================ */
@media (min-width: 901px) {
    .hero {
        min-height: 92vh;
        padding-top: 135px;
        padding-bottom: 80px;
    }

    .hero-grid {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 70px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 4.3vw, 4.5rem);
    }

    .hero-image img {
        width: 100%;
        max-height: 500px;
        object-fit: cover;
    }
}

@media (min-width: 951px) {
    .nav {
        gap: 24px;
    }

    .btn-demo {
        padding: 11px 18px;
        white-space: nowrap;
    }
}

/* ===============================
   MODULO REAL - VENTAS / FACTURACION
================================ */

.real-module {
    width: 100%;
}

.real-module-title {
    margin-bottom: 20px;
    text-align: center;
}

.real-module-title h3 {
    color: #b96823;
    font-size: 30px;
    font-weight: 800;
}

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

.real-filter {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.real-filter label {
    color: #374151;
    font-size: 10px;
    font-weight: 800;
}

.real-filter input,
.real-filter select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #374151;
    font-size: 10px;
}

.real-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 18px 0;
}

.real-export-buttons {
    display: flex;
    align-items: center;
    gap: 7px;
}

.real-export-buttons button {
    width: 38px;
    height: 34px;
    border: 1px solid #d4a72c;
    border-radius: 5px;
    background: #fffbea;
    cursor: pointer;
}

.real-detail-check {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4b5563;
    font-size: 10px;
}

.real-search-area {
    display: flex;
    align-items: end;
    gap: 14px;
}

.real-search-area label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #4b5563;
    font-size: 10px;
    font-weight: 700;
}

.real-search-area select {
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.real-search-btn {
    height: 38px;
    padding: 0 20px;
    border: 0;
    border-radius: 5px;
    background: #15803d;
    color: white;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.real-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.real-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

.real-table thead {
    background: #050505;
}

.real-table th {
    padding: 10px 7px;
    color: #fff;
    font-size: 8px;
    text-align: left;
    white-space: nowrap;
}

.real-table td {
    padding: 10px 7px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 8px;
    white-space: nowrap;
}

.real-table tbody tr:nth-child(even) {
    background: #f3f4f6;
}

.real-actions {
    font-size: 12px !important;
}

/* ===============================
   FACTURACION
================================ */

.fact-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 15px;
    margin: 18px 0;
}

.fact-actions-left,
.fact-actions-center,
.fact-actions-right {
    display: flex;
    align-items: center;
    gap: 9px;
}

.fact-actions-center {
    justify-content: center;
}

.fact-actions-right {
    justify-content: flex-end;
}

.fact-actions-right label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #4b5563;
    font-size: 10px;
    font-weight: 700;
}

.fact-actions-right select {
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.fact-green-btn {
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 5px;
    background: #15803d;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.export-excel {
    width: 38px;
    height: 36px;
    border: 1px solid #d4a72c;
    border-radius: 5px;
    background: #fffbea;
    cursor: pointer;
}

.sunat-pending,
.sunat-baja,
.sunat-ok {
    display: inline-block;
    min-width: 65px;
    padding: 5px 8px;
    border-radius: 5px;
    text-align: center;
    font-size: 8px;
    font-weight: 800;
}

.sunat-pending {
    background: #f5b82e;
    color: #fff;
}

.sunat-baja {
    background: #21a9bd;
    color: #fff;
}

.sunat-ok {
    background: #16a34a;
    color: #fff;
}

.fact-send {
    color: #14b8a6 !important;
    font-size: 15px !important;
    font-weight: 800;
    text-align: center;
}

/*ICONOS DE EXCELL,PDF,CORREO*/
.export-btn {
    width: 48px;
    height: 42px;
    border-radius: 6px;
    background: #fff;
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* EXCEL */
.export-btn.excel {
    color: #198754;
    border: 1px solid #198754;
}

/* PDF */
.export-btn.pdf {
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* CORREO */
.export-btn.mail {
    color: #d63384;
    border: 1px solid #d63384;
}

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

/*LUPA*/
.invoice-search-btn {
    height: 42px;
    min-width: 135px;
    padding: 0 20px;

    background: #d63384;
    color: white;

    border: none;
    border-radius: 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.invoice-search-btn i {
    font-size: 18px;
    color: white;
}

.invoice-search-btn:hover {
    background: #146c43;
}

/* SCROLL DE LA BARRA*/
.real-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
}

.real-table {
    min-width: 1150px;
}

.real-table-wrapper::-webkit-scrollbar {
    height: 9px;
}

.real-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.real-table-wrapper::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 10px;
}

.real-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* ===============================
   INVENTARIO
================================ */

.inventory-filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 22px;
}

.inventory-product-filter {
    grid-column: span 1;
}

.inventory-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 18px 0;
}

.inventory-report-btn {
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 4px;
    background: #1473c9;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.inventory-report-btn i {
    font-size: 15px;
}

.inventory-search-area {
    display: flex;
    align-items: end;
    gap: 14px;
}

.inventory-search-area label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #374151;
    font-size: 10px;
    font-weight: 700;
}

.inventory-search-area select {
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.inventory-search-btn {
    height: 38px;
    padding: 0 20px;
    border: 0;
    border-radius: 5px;
    background: #15803d;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.inventory-search-btn i {
    font-size: 16px;
}

.inventory-table {
    min-width: 900px;
}

.inventory-table th:nth-child(2) {
    width: 46%;
}

.inventory-table th:nth-child(3) {
    width: 24%;
}

.inventory-table td:nth-child(n+4),
.inventory-table th:nth-child(n+4) {
    text-align: center;
}

.inventory-action {
    color: #1473c9 !important;
    font-size: 13px !important;
    text-align: center;
}

.stock-current {
    color: #4d7c0f !important;
    font-weight: 800;
}

.inventory-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 25px;
}

.inventory-pagination button {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.inventory-pagination button.active {
    border-color: #1473c9;
    background: #1473c9;
    color: #fff;
}

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

@media (max-width: 600px) {
    .inventory-filters-grid {
        grid-template-columns: 1fr;
    }

    .inventory-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-search-area {
        justify-content: space-between;
    }
}

/* ===============================
   COMPRAS
================================ */

.purchase-title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 18px;
}

.purchase-title {
    margin: 0;
}

.purchase-title h3 {
    color: #b96823;
}

.new-purchase-btn {
    justify-self: end;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 3px;
    background: #1547bd;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.new-purchase-btn i {
    margin-left: 5px;
}

.purchase-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 20px;
}

.purchase-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 16px 0;
}

.purchase-export {
    display: flex;
    gap: 7px;
}

.purchase-search {
    display: flex;
    align-items: end;
    gap: 14px;
}

.purchase-search label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #374151;
    font-size: 10px;
    font-weight: 700;
}

.purchase-search select {
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.purchase-search-btn {
    height: 38px;
    padding: 0 20px;
    border: 0;
    border-radius: 5px;
    background: #15803d;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.purchase-search-btn i {
    font-size: 16px;
}

.purchase-table {
    min-width: 1150px;
}

.purchase-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #1769aa !important;
    font-size: 13px !important;
}

.purchase-actions .fa-file-excel {
    color: #15803d;
}

.purchase-actions button {
    width: 30px;
    height: 25px;
    border: 0;
    border-radius: 4px;
    background: #1473c9;
    color: #fff;
    cursor: pointer;
}

.purchase-bottom {
    position: relative;
    min-height: 80px;
}

.purchase-total {
    position: absolute;
    right: 20px;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 22px;
    color: #4d7c0f;
    font-size: 15px;
}

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

@media (max-width: 600px) {
    .purchase-title-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .new-purchase-btn {
        justify-self: center;
    }

    .purchase-filters-grid {
        grid-template-columns: 1fr;
    }

    .purchase-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .purchase-search {
        justify-content: space-between;
    }

    .purchase-total {
        position: static;
        justify-content: center;
        margin-top: 20px;
    }
}

/* ===============================
   CLIENTES
================================ */

.clients-title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 30px;
}

.clients-title {
    margin: 0;
}

.clients-title h3 {
    color: #b96823;
    font-size: 32px;
}

.new-client-btn {
    justify-self: end;
    height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 4px;
    background: #1547bd;
    color: white;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.new-client-btn i {
    margin-left: 5px;
}


.clients-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.clients-show {
    display: flex;
    align-items: center;
    gap: 9px;
}

.clients-show label,
.clients-search label {
    color: #374151;
    font-size: 11px;
    font-weight: 700;
}

.clients-show select {
    width: 65px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    background: white;
}

.clients-search {
    display: flex;
    align-items: center;
    gap: 9px;
}

.clients-search input {
    width: 230px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
}


.clients-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
}

.clients-table thead {
    background: #050505;
}

.clients-table th {
    padding: 12px 10px;
    color: white;
    font-size: 10px;
    text-align: left;
}

.clients-table th:first-child {
    width: 20%;
}

.clients-table th:nth-child(2) {
    width: 40%;
}

.clients-table th:nth-child(3) {
    width: 33%;
}

.clients-table th:last-child {
    width: 7%;
}


.clients-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    font-size: 10px;
}

.clients-table tbody tr:hover {
    background: #f8fafc;
}


.client-edit-btn {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #1473c9;
    font-size: 16px;
    cursor: pointer;
}

.client-edit-btn:hover {
    color: #0d47a1;
}


.clients-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 22px;
}

.clients-register-info {
    color: #475569;
    font-size: 10px;
}

.clients-pagination {
    display: flex;
    gap: 5px;
}

.clients-pagination button {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #475569;
    cursor: pointer;
}

.clients-pagination button.active {
    border-color: #1473c9;
    background: #1473c9;
    color: white;
}


@media (max-width: 700px) {

    .clients-title-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .new-client-btn {
        justify-self: center;
    }

    .clients-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .clients-search input {
        flex: 1;
        width: auto;
    }

    .clients-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ===============================
   REPORTES - PRODUCTOS VENDIDOS
================================ */

.reports-title h3 {
    color: #b96823;
}

.reports-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 22px;
}

.reports-product-filter {
    grid-column: span 2;
}

.reports-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 18px 0;
}

.reports-report-btn {
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 4px;
    background: #1547bd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.reports-report-btn i {
    font-size: 15px;
}

.reports-search-area {
    display: flex;
    align-items: end;
    gap: 14px;
}

.reports-search-area label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #374151;
    font-size: 10px;
    font-weight: 700;
}

.reports-search-area select {
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.reports-search-btn {
    height: 38px;
    padding: 0 20px;
    border: 0;
    border-radius: 5px;
    background: #15803d;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.reports-search-btn i {
    font-size: 16px;
}

.reports-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.reports-table thead {
    background: #050505;
}

.reports-table th {
    padding: 11px 10px;
    color: #fff;
    font-size: 9px;
    text-align: left;
}

.reports-table th:nth-child(1) {
    width: 50%;
}

.reports-table th:nth-child(2) {
    width: 25%;
}

.reports-table th:nth-child(3),
.reports-table th:nth-child(4) {
    width: 12.5%;
    text-align: right;
}

.reports-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #e5e7eb;
    color: #475569;
    font-size: 9px;
}

.reports-table td:nth-child(3),
.reports-table td:nth-child(4) {
    text-align: right;
}

.reports-table td:nth-child(4) {
    font-weight: 800;
}

.reports-table tbody tr:nth-child(even) {
    background: #f3f4f6;
}

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

    .reports-product-filter {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .reports-filters-grid {
        grid-template-columns: 1fr;
    }

    .reports-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .reports-search-area {
        justify-content: space-between;
    }
}

/* ===============================
   CONFIGURACION - USUARIOS
================================ */

.users-title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 22px;
}

.users-title {
    margin: 0;
}

.users-title h3 {
    color: #b96823;
    font-size: 32px;
}

.new-user-btn {
    justify-self: end;
    height: 38px;
    padding: 0 15px;

    border: 0;
    border-radius: 4px;

    background: #1547bd;
    color: #fff;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;
}

.new-user-btn i {
    margin-left: 5px;
}


.users-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: #050505;
}

.users-table th {
    padding: 12px 10px;

    color: #fff;

    font-size: 10px;
    text-align: left;
}

.users-table th:nth-child(1) {
    width: 22%;
}

.users-table th:nth-child(2) {
    width: 22%;
}

.users-table th:nth-child(3) {
    width: 34%;
}

.users-table th:nth-child(4),
.users-table th:nth-child(5) {
    width: 11%;
    text-align: center;
}


.users-table td {
    padding: 15px 10px;

    border-bottom: 1px solid #f1f5f9;

    color: #374151;

    font-size: 10px;
}

.users-table td:nth-child(4),
.users-table td:nth-child(5) {
    text-align: center;
}


.user-edit-btn,
.user-delete-btn {
    width: 32px;
    height: 32px;

    border: 0;
    background: transparent;

    cursor: pointer;

    font-size: 15px;
}

.user-edit-btn {
    color: #1473c9;
}

.user-delete-btn {
    color: #ef4444;
}

.user-edit-btn:hover {
    color: #0d47a1;
}

.user-delete-btn:hover {
    color: #b91c1c;
}


@media (max-width: 600px) {

    .users-title-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .new-user-btn {
        justify-self: center;
    }

}

/* TITULO SUPERIOR DEL SISTEMA */

.system-title {
    grid-column: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 800;

    white-space: nowrap;
}

.system-title i {
    color: #d9822b;
    font-size: 16px;
}

.system-user {
    grid-column: 3;
    justify-self: end;

    display: flex;
    align-items: center;
    gap: 7px;

    color: #cbd5e1;
    font-size: 10px;

    white-space: nowrap;
}

.system-user i {
    color: #d9822b;
    font-size: 12px;
}

.system-topbar {
    width: 100%;
    height: 58px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding: 0 22px;
    box-sizing: border-box;

    background: #0f172a;
}

.window-buttons {
    grid-column: 1;
    justify-self: start;

    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {

    .system-topbar {
        grid-template-columns: auto 1fr auto;
        padding: 0 12px;
        height: 54px;
    }

    .window-buttons {
        gap: 4px;
    }

    .window-buttons span {
        width: 9px;
        height: 9px;
    }

    .system-title {
        font-size: 11px;
        gap: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .system-title i {
        font-size: 13px;
    }

    .system-user span {
        display: none;
    }

    .system-user i {
        font-size: 12px;
    }

    .system-content {
        padding: 18px 14px;
    }

    .real-module-title h3,
    .users-title h3,
    .clients-title h3 {
        font-size: 27px;
    }
}

@media (max-width: 480px) {

    .system-title {
        font-size: 10px;
    }

    .system-title span {
        max-width: 235px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .system-content {
        padding: 15px 10px;
    }
}

.system-sidebar-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 7px;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
}

/* =================================
    MENU DEL SISTEMA EN CELULAR
================================= */

@media (max-width: 768px) {

    .system-window {
        position: relative !important;
        overflow: visible !important;
    }

    .system-body {
        position: relative !important;
        display: block !important;
        overflow: visible !important;
    }

    .system-sidebar {
        display: block !important;

        position: absolute !important;
        top: 0 !important;
        left: 0 !important;

        width: 215px !important;
        min-width: 215px !important;
        height: auto !important;
        min-height: 500px !important;

        background: #101827 !important;

        z-index: 99999 !important;

        transform: translateX(-110%) !important;
        transition: transform 0.3s ease !important;

        visibility: visible !important;
        opacity: 1 !important;
    }

    .system-sidebar.open {
        transform: translateX(0) !important;
    }

    .system-content {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .system-sidebar-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        position: relative;
        z-index: 100000;

        width: 34px;
        height: 34px;

        border: 0;
        border-radius: 6px;

        background: rgba(255,255,255,.10);
        color: #fff;
    }
}

/* =========================================
   CORREGIR ENLACE EQUIPOS DEL HEADER
========================================= */

.nav-links a {
    white-space: nowrap;
}

.nav-links a i {
    margin-right: 5px;
}

/* Enlace Equipos */
.nav-links a[href="equipos.html"] {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* =========================================
   EQUIPOS EN UNA SOLA LÍNEA
========================================= */

#mainNav a[href="equipos.html"] {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 6px;

    white-space: nowrap !important;
}

#mainNav a[href="equipos.html"] i {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;

    font-size: 14px;
    line-height: 1;
}

#mainNav {
    display: flex;
    align-items: center;
}



/* =========================================
   MENÚ MÓVIL INDEX
========================================= */

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .menu-toggle {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;

        border: none;
        border-radius: 9px;

        background: #fff3e6;
        color: #e67e16;

        font-size: 22px;
        font-weight: 700;

        cursor: pointer;

        z-index: 1001;
    }


    #mainNav {
        position: absolute;

        top: 100%;
        left: 15px;
        right: 15px;

        display: none !important;

        flex-direction: column !important;
        align-items: stretch !important;

        gap: 4px;

        padding: 12px;

        background: #ffffff;

        border-radius: 14px;

        box-shadow:
            0 15px 35px
            rgba(15, 35, 60, 0.18);

        z-index: 1000;
    }


    #mainNav.active {
        display: flex !important;
    }


    #mainNav a {
        width: 100%;

        padding: 12px 14px;

        display: flex;
        align-items: center;

        color: #0d2340;

        border-radius: 8px;

        white-space: nowrap;
    }


    #mainNav a:hover {
        background: #fff3e6;
        color: #e67e16;
    }

}

/* =========================================
   CLIENTES SOLUSOFT
========================================= */

.clients-section {
    padding: 80px 20px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fffaf4 100%
        );
}

.clients-heading {
    max-width: 760px;

    margin: 0 auto 45px;

    text-align: center;
}

.clients-heading .section-badge {
    display: inline-block;

    margin-bottom: 12px;

    color: #e67e16;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.clients-heading h2 {
    margin: 0;

    color: #0d2340;

    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.clients-heading h2 span {
    color: #e67e16;
}

.clients-heading p {
    max-width: 620px;

    margin: 18px auto 0;

    color: #667085;

    font-size: 15px;
    line-height: 1.7;
}


/* GRID DE LOGOS */

.clients-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    max-width: 1100px;

    margin: 0 auto;
}


/* TARJETA LOGO */

.client-logo {
    height: 130px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #ece8e3;
    border-radius: 14px;

    box-shadow:
        0 6px 18px
        rgba(15, 35, 60, 0.05);

    transition: 0.25s ease;
}

.client-logo:hover {
    transform: translateY(-5px);

    border-color: #efb06e;

    box-shadow:
        0 12px 28px
        rgba(15, 35, 60, 0.10);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* TABLET */

@media (max-width: 900px) {

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

}


/* CELULAR */

@media (max-width: 600px) {

    .clients-section {
        padding: 55px 16px;
    }

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

        gap: 14px;
    }

    .client-logo {
        height: 105px;

        padding: 15px;
    }

    .client-logo img {
        max-height: 65px;
    }

}

/* =========================================
   CARRUSEL DE CLIENTES
========================================= */

.clients-slider {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    overflow: hidden;
    position: relative;

    padding: 20px 0 40px;

    /* Desvanecer los extremos */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 7%,
        black 93%,
        transparent 100%
    );

        mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 7%,
        black 93%,
        transparent 100%
    );
}

/* CONTENEDOR EN MOVIMIENTO */

.clients-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;    
}


/* CADA LOGO */

.clients-track .client-logo {
    flex: 0 0 180px;

    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #ece8e3;
    border-radius: 14px;

    box-shadow:
        0 6px 18px
        rgba(15, 35, 60, 0.06);

    transition: 0.25s ease;
}


/* IMAGEN */

.clients-track .client-logo img {
    width: auto;
    height: auto;

    max-width: 92%;
    max-height: 92px;

    object-fit: contain;

    transform: scale(1.08);

    transition: 0.25s ease;
}


/* DETENER CUANDO PONES EL MOUSE */

.clients-slider:hover .clients-track {
    animation-play-state: paused;
}

/* CELULAR */

@media (max-width: 600px) {

    .clients-track {
        gap: 14px;

        animation-duration: 25s;
    }

    .clients-track .client-logo {
        flex: 0 0 190px;
        height: 135px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 14px;
    }

    .clients-track .client-logo img {
        max-height: 65px;
    }

}

.clients-track .client-logo:hover {
    transform: translateY(-5px) scale(1.03);

    border-color: #e67e16;

    box-shadow:
        0 12px 26px
        rgba(15, 35, 60, 0.12);
}

/* =========================================
   GALERÍA CLIENTES SOLUSOFT
========================================= */

.clients-gallery {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 50px;

    align-items: center;
    gap: 14px;
}


.clients-gallery-window {
    width: 100%;
    overflow: hidden;
}


.clients-gallery-track {
    display: flex;

    transition:
        transform 0.55s
        cubic-bezier(.22, .61, .36, 1);
}


/* UNA PÁGINA */

.clients-page {
    min-width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    grid-template-rows:
        repeat(2, 180px);

    gap: 12px;
}


/* TARJETA */

.client-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #eee8e1;
    border-radius: 12px;

    box-shadow:
        0 4px 14px
        rgba(15, 35, 60, 0.06);

    transition: 0.25s ease;
}


.client-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px
        rgba(15, 35, 60, 0.13);
}


/* IMAGEN */

.client-card img {
    width: auto;
    height: auto;

    max-width: 88%;
    max-height: 145px;

    object-fit: contain;

    padding: 8px;

    display: block;

    transition: transform 0.3s ease;
}


.client-card:hover img {
    transform: scale(1.04);
}


/* FLECHAS */

.clients-gallery-arrow {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #efb46f;
    border-radius: 50%;

    background: #ffffff;

    color: #e67e16;

    font-size: 17px;

    cursor: pointer;

    box-shadow:
        0 6px 18px
        rgba(15, 35, 60, 0.10);

    transition: 0.25s ease;
}


.clients-gallery-arrow:hover {
    background: #e67e16;
    color: #ffffff;

    transform: scale(1.08);
}


/* PUNTOS */

.clients-dots {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 18px;
}


.clients-dot {
    width: 10px;
    height: 10px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: #d5d5d5;

    cursor: pointer;

    transition: 0.25s ease;
}


.clients-dot.active {
    width: 13px;
    height: 13px;

    background: #e67e16;
}


/* TABLET */

@media (max-width: 900px) {

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

        grid-template-rows:
            repeat(4, 180px);
    }

}


/* CELULAR */

@media (max-width: 600px) {

    .clients-gallery {
        grid-template-columns:
            38px minmax(0, 1fr) 38px;

        gap: 5px;
    }

    .clients-gallery-arrow {
        width: 36px;
        height: 36px;

        font-size: 13px;
    }

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

        grid-template-rows:
            repeat(4, 135px);

        gap: 7px;
    }

    .client-card img {
        padding: 7px;
    }

}

/* =========================================
   REDES SOCIALES - FOOTER
========================================= */

.footer-social {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social span {
    color: #ffffff;
    font-weight: 700;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.footer-social a:hover {
    color: #e8891c;
}

.footer-social i {
    font-size: 18px;
}

/* Redes sociales del footer en una sola línea */
.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}