/* Dynamic theme-ready version generated for configuracion_negocio colors. */
/* =========================================================
   RESPONSIVE - Ajustes globales para tablet y móvil
========================================================= */

@media (max-width: 1220px) {
    .topbar {
        width: min(100% - 24px, 1280px);
        grid-template-columns: minmax(215px, 280px) minmax(0, 1fr) auto;
        gap: 10px;
    }

    .desktop-nav a {
        padding: 0 9px;
        font-size: 12.5px;
    }

    .brand strong,
    .brand-text strong {
        font-size: 22px;
    }
}

@media (max-width: 1040px) {
    .topbar {
        grid-template-columns: minmax(205px, 260px) minmax(0, 1fr) auto;
    }

    .brand small,
    .brand-text small {
        max-width: 170px;
        letter-spacing: 1.2px;
    }

    .desktop-nav a {
        padding: 0 7px;
        font-size: 12px;
    }
}

@media (max-width: 920px) {
    :root {
        --topbar-h: 66px;
    }

    body {
        padding-bottom: 86px;
    }

    .topbar {
        min-height: 68px;
        margin-top: 10px;
        padding: 8px 10px;
        top: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        border-radius: 24px;
    }

    .desktop-nav {
        display: none;
    }

    .topbar-actions {
        display: flex;
    }

    .brand-logo-wrap,
    .brand-logo-box,
    .brand-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 16px;
    }

    .brand strong,
    .brand-text strong {
        font-size: 20px;
    }

    .brand small,
    .brand-text small {
        max-width: 180px;
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .ld-header-icon-btn {
        width: 42px;
        height: 42px;
    }

    .ld-hover-menu {
        position: fixed;
        top: 82px;
        right: 12px;
        width: min(320px, calc(100vw - 24px));
        max-height: calc(100vh - 112px);
        overflow-y: auto;
    }

    .ld-hover-menu::before {
        display: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        width: 100%;
        min-height: 68px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        background: rgba(255, 255, 255, .95);
        border-top: 1px solid rgba(var(--pink-rgb), .45);
        box-shadow: 0 -14px 34px rgba(var(--brown-rgb), .12);
        backdrop-filter: blur(16px);
    }

    .mobile-bottom-nav a {
        min-width: 0;
        display: grid;
        place-items: center;
        gap: 3px;
        padding: 6px 4px;
        border-radius: 16px;
        color: rgba(var(--brown-rgb), .72);
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-bottom-nav a.active {
        color: var(--brown);
        background: rgba(var(--pink-rgb), .22);
    }

    .mobile-bottom-nav span {
        font-size: 21px;
        line-height: 1;
    }

    .mobile-bottom-nav small {
        max-width: 100%;
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 760px) {
    .hero,
    .hero-premium {
        width: min(100% - 24px, 1280px);
        min-height: auto;
        padding: 34px 0 32px;
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: left;
    }

    .hero-background::before,
    .hero-premium::before {
        inset: 10px -6px 8px;
        border-radius: 32px;
    }

    .hero-copy {
        padding: 20px 18px 0;
    }

    .hero-copy h1,
    .hero h1 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .hero-copy p,
    .hero p {
        font-size: 15px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .hero-media,
    .hero-visual {
        padding: 0 14px 18px;
    }

    .hero-image-card {
        height: 320px;
        max-width: 100%;
        border-radius: 30px;
    }

    .floating-badge {
        padding: 9px 12px;
        font-size: 12px;
    }

    .badge-top {
        top: 16px;
        left: 16px;
    }

    .badge-bottom {
        right: 16px;
        bottom: 16px;
    }

    .trust-strip {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-body {
        padding: 14px;
    }

    .product-body h3 {
        font-size: 19px;
    }

    .product-body p {
        display: none;
    }

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

    .product-footer .btn {
        width: 100%;
    }

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

    .track-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer,
    .footer-premium {
        width: 100%;
        margin-top: 34px;
        padding: 28px 18px 108px;
        grid-template-columns: 1fr;
        gap: 24px;
        border-radius: 0;
    }

    .payment-methods-grid,
    .form-grid,
    .form-grid-2,
    .admin-filter {
        grid-template-columns: 1fr;
    }

    .dashboard-header,
    .admin-header,
    .section-heading-split {
        flex-direction: column;
    }

    .dashboard-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .table-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

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

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   RESPONSIVE TOPBAR
========================================================= */

@media (max-width: 1100px) {
    .topbar {
        padding: 10px 22px;
        gap: 14px;
    }

    .desktop-nav a {
        padding: 0 10px;
        font-size: 13px;
    }

    .brand small {
        max-width: 150px;
    }
}

@media (max-width: 900px) {
    .topbar {
        min-height: 70px;
        padding: 9px 14px;
        grid-template-columns: 1fr auto;
    }

    .app-shell {
        padding-top: 70px;
    }

    .desktop-nav {
        display: none;
    }

    .brand-logo-box {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .brand strong {
        font-size: 16px;
    }

    .brand small {
        max-width: 180px;
        font-size: 10px;
    }

    .topbar-actions {
        gap: 6px;
    }

    .ld-header-icon-btn {
        width: 44px;
        height: 44px;
    }

    .ld-hover-menu {
        position: fixed;
        top: 78px;
        right: 12px;
        width: min(320px, calc(100vw - 24px));
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .ld-hover-menu::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .topbar {
        min-height: 66px;
        padding: 8px 10px;
    }

    .app-shell {
        padding-top: 66px;
    }

    .brand {
        gap: 9px;
    }

    .brand-logo-box {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .brand small {
        display: none;
    }

    .brand strong {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ld-header-icon-btn {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 420px) {
    .hero-image-card {
        height: 280px;
    }

    .pd-form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FORCE FULL WIDTH FIXED TOPBAR - FINAL OVERRIDE
========================================================= */

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    padding-top: 78px;
}

.app-shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
}

/* Header a todo el ancho real de la pantalla */
.topbar {
    width: 100vw !important;
    max-width: none !important;
    min-height: 78px;

    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    z-index: 1200 !important;

    margin: 0 !important;
    padding: 10px clamp(18px, 4vw, 58px) !important;

    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 24px !important;

    border-radius: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(var(--pink-rgb), .42) !important;

    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 12px 34px rgba(var(--brown-rgb), .10) !important;
    backdrop-filter: blur(18px);
    box-sizing: border-box;
}

/* Logo */
.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--brown);
}

/* Menú central visible en PC/Laptop */
.desktop-nav {
    min-width: 0 !important;
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
}

.desktop-nav a {
    min-height: 42px;
    padding: 0 15px;

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

    border-radius: 999px;
    color: rgba(var(--brown-rgb), .78);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.desktop-nav a:hover {
    color: var(--brown);
    background: rgba(var(--pink-rgb), .18);
    transform: translateY(-1px);
}

.desktop-nav a.active {
    color: var(--brown);
    background: rgba(var(--pink-rgb), .26);
    box-shadow: inset 0 0 0 1px rgba(var(--pink-rgb), .36);
}

/* Acciones derecha */
.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: max-content;
}

/* Ajuste para que los dropdown no se corten */
.ld-hover-menu {
    z-index: 1300;
}

/* =========================================================
   RESPONSIVE TOPBAR
========================================================= */

@media (max-width: 1100px) {
    .topbar {
        padding: 10px 22px !important;
        gap: 14px !important;
    }

    .desktop-nav a {
        padding: 0 10px;
        font-size: 13px;
    }

    .brand small {
        max-width: 150px;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 70px;
        padding-bottom: 78px;
    }

    .topbar {
        min-height: 70px;
        padding: 9px 14px !important;
        grid-template-columns: 1fr auto !important;
    }

    .desktop-nav {
        display: none !important;
    }

    .brand-logo-box {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .brand strong {
        font-size: 16px;
    }

    .brand small {
        max-width: 180px;
        font-size: 10px;
    }

    .topbar-actions {
        gap: 6px;
    }

    .ld-header-icon-btn {
        width: 44px;
        height: 44px;
    }

    .ld-hover-menu {
        position: fixed;
        top: 78px;
        right: 12px;
        width: min(320px, calc(100vw - 24px));
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .ld-hover-menu::before {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 66px;
        padding-bottom: 78px;
    }

    .topbar {
        min-height: 66px;
        padding: 8px 10px !important;
    }

    .brand {
        gap: 9px;
    }

    .brand-logo-box {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .brand small {
        display: none;
    }

    .brand strong {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ld-header-icon-btn {
        width: 42px;
        height: 42px;
    }
}
