html, body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Roboto', sans-serif;
    background-color: #ffb085;
    color: #333;
    overflow-x: hidden;
}

body {
    padding-top: 100px;
}

.login-container,
.index-content {
    padding-top: 0 !important;
}

.login-container body,
.index-content body {
    padding-top: 0 !important;
}

/* Navbar con color naranja rojizo */
.navbar-custom {
    background-color: #ff6b35 !important;
    height: 90px;
    padding: 0.5rem 1rem;
    margin: 0 !important;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: #ffffff !important;
}

.navbar-custom .nav-link:hover {
    color: #e0e0e0 !important;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 20px;
}

.social-icons a {
    color: #ffffff !important;
    font-size: 1.3rem;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #ffd4c4 !important;
}

/* SIDEBAR MEJORADO */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 90px;
    left: 0;
    background-color: #ffb085;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
}

.sidebar .sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar .sidebar-header {
    flex-shrink: 0;
    padding: 20px 15px;
}

.sidebar .sidebar-nav {
    flex: 1;
    padding: 0;
}

.sidebar h4,
.sidebar h5 {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    overflow: visible !important;
    padding: 0 15px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
    hyphens: auto !important;
    margin: 10px 0 !important;
    text-align: center !important;
    text-overflow: unset !important;
}

.sidebar .nav-link {
    color: #333;
    transition: background-color 0.3s;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    padding: 12px 20px !important;
    line-height: 1.4 !important;
    text-overflow: unset !important;
}

.sidebar .nav-link:hover {
    background-color: #ff8c5a;
}

.sidebar .nav-link.active {
    background-color: #ff6b35;
    color: white !important;
}

.sidebar > div,
.sidebar .p-3 {
    padding: 20px 15px !important;
}

.sidebar * {
    max-width: 100%;
    box-sizing: border-box;
}

.business-info-card {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    border-radius: 15px;
    padding: 20px 15px;
    margin: 10px 0;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    min-height: auto;
    height: auto !important;
}

.business-info-card:hover {
    transform: translateY(-2px);
}

.business-icon {
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.business-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    word-wrap: break-word !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 100% !important;
    hyphens: auto !important;
    padding: 0 5px;
}

.business-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal !important;
    line-height: 1.3 !important;
}

/* HEADER PROFESIONAL */
.professional-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffb085 0%, #ffc9a8 100%);
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #ff6b35;
    margin-bottom: 30px;
    min-height: auto;
    height: auto !important;
    margin-top: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.header-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #e85a2a 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    flex-shrink: 0;
}

.header-text {
    flex: 1;
    min-width: 0;
    overflow: visible !important;
}

.header-title {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    font-family: 'Montserrat', sans-serif;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
    overflow: visible !important;
    text-overflow: unset !important;
    hyphens: auto !important;
}

.header-subtitle {
    color: #555;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    white-space: normal !important;
    line-height: 1.4 !important;
}

.business-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.main-content {
    margin-left: 300px;
    padding: 20px;
    width: calc(100vw - 320px);
    min-height: calc(100vh - 90px);
    padding-top: 20px;
}

.table-primary th {
    background-color: #ff6b35;
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #ffc9a8;
}

.btn-primary {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

.btn-primary:hover {
    background-color: #e85a2a;
    border-color: #e85a2a;
}

.form-control:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

h2, h3 {
    color: #333;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.3 !important;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    background-color: #f0f0f0;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
}

.navbar-logo {
    height: 80px !important;
    width: auto !important;
    max-height: 80px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.sidebar-logo {
    height: 70px !important;
    width: auto !important;
    max-height: 70px !important;
    max-width: 250px !important;
    display: block;
    margin: 0 auto 15px auto !important;
    padding: 0 !important;
}

/* ESTILOS DEL LOGO CENTRAL ELIMINADOS - YA NO SE USAN */

.product-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.product-item.hidden {
    display: none;
}

.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #ff8c5a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.location-btn:hover {
    background-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
}

.table-responsive table {
    width: 100%;
    margin-bottom: 0;
}

.table {
    white-space: nowrap;
}

.table th,
.table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table .btn-sm {
    white-space: nowrap;
    margin: 2px;
}

.professional-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

/* RESPONSIVE DESIGN */

@media (max-width: 991px) {
    body {
        padding-top: 80px;
    }
    
    .navbar-custom {
        height: 70px;
    }
    
    .sidebar {
        width: 250px;
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .main-content {
        margin-left: 270px;
        width: calc(100vw - 290px);
        padding: 15px;
        min-height: calc(100vh - 70px);
    }
    
    .navbar-logo {
        height: 60px !important;
        max-height: 60px !important;
    }
    
    .sidebar-logo {
        height: 55px !important;
        max-height: 55px !important;
    }
    
    .professional-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
        height: auto !important;
        margin-top: 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-title {
        font-size: 1.6rem;
    }
    
    .business-badge {
        align-self: center;
    }
    
    .business-name {
        font-size: 1rem;
    }
    
    body {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 1.1rem;
        padding-top: 70px;
    }
    
    .navbar-custom {
        height: 60px;
        padding: 0.25rem 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
        line-height: 1.3 !important;
    }
    
    h2 {
        font-size: 1.4rem;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.2rem;
        line-height: 1.3 !important;
    }
    
    h4 {
        font-size: 1.1rem;
        line-height: 1.3 !important;
    }
    
    h5 {
        font-size: 1rem;
        line-height: 1.3 !important;
    }
    
    p, .form-control, .btn {
        font-size: 1rem;
    }
    
    .sidebar {
        position: fixed;
        left: -300px;
        width: 280px;
        top: 0;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1050;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
        min-height: calc(100vh - 60px);
        padding-top: 20px;
    }
    
    .navbar-logo {
        height: 50px !important;
        max-height: 50px !important;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .social-icons {
        gap: 10px;
        margin-left: 10px;
    }
    
    .social-icons a {
        font-size: 1.1rem;
    }
    
    .professional-header {
        padding: 15px;
        margin-bottom: 20px;
        height: auto !important;
        min-height: auto;
        margin-top: 10px;
    }
    
    .header-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .header-title {
        font-size: 1.3rem;
        line-height: 1.3 !important;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
        line-height: 1.4 !important;
    }
    
    .business-info-card {
        padding: 15px 10px;
        height: auto !important;
        min-height: auto;
    }
    
    .business-name {
        font-size: 0.95rem;
        line-height: 1.3 !important;
    }
    
    .business-label {
        font-size: 0.8rem;
        line-height: 1.3 !important;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 1.05rem;
        overflow-x: hidden;
        padding-top: 60px;
    }
    
    .navbar-custom {
        height: 55px;
        padding: 0.2rem 0.5rem;
    }
    
    h1 {
        font-size: 1.4rem;
        line-height: 1.3 !important;
    }
    
    h2 {
        font-size: 1.3rem;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.1rem;
        line-height: 1.3 !important;
    }
    
    h4 {
        font-size: 1rem;
        line-height: 1.3 !important;
    }
    
    p, .form-control, .btn, .form-label {
        font-size: 0.95rem;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .main-content {
        padding: 10px;
        min-height: calc(100vh - 55px);
        padding-top: 15px;
    }
    
    .navbar-logo {
        height: 45px !important;
        max-height: 45px !important;
    }
    
    .card-img-top {
        height: 140px;
    }
    
    .table-responsive {
        font-size: 0.7rem;
    }
    
    .table th,
    .table td {
        padding: 6px 8px;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 0.8rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .sidebar {
        width: 250px;
        left: -270px;
        top: 0;
        height: 100vh;
    }
    
    .sidebar h4,
    .sidebar h5 {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        padding: 0 10px !important;
    }
    
    .row {
        gap: 8px;
    }
    
    .col-md-3 {
        min-width: 48%;
        flex: 0 0 48%;
    }
    
    .social-icons {
        gap: 8px;
        margin-left: 5px;
    }
    
    .social-icons a {
        font-size: 1rem;
    }
    
    .location-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .professional-header {
        padding: 12px;
        margin-bottom: 15px;
        height: auto !important;
        min-height: auto;
        margin-top: 5px;
    }
    
    .header-content {
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .header-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .header-title {
        font-size: 1.2rem;
        line-height: 1.3 !important;
        text-align: center;
    }
    
    .header-subtitle {
        font-size: 0.85rem;
        line-height: 1.4 !important;
        text-align: center;
    }
    
    .business-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .business-info-card {
        padding: 12px 8px;
        margin: 8px 0;
        height: auto !important;
        min-height: auto;
    }
    
    .business-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .business-name {
        font-size: 0.9rem;
        line-height: 1.3 !important;
        padding: 0 3px;
    }
    
    .business-label {
        font-size: 0.75rem;
        line-height: 1.3 !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    animation: fadeIn 0.5s ease;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.sidebar-overlay.show {
    display: block;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1051;
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
        top: 10px;
    }
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

.container,
.container-fluid {
    max-width: 100%;
}

.row {
    margin-left: -8px;
    margin-right: -8px;
}

.row > * {
    padding-left: 8px;
    padding-right: 8px;
}

.admin-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
    white-space: normal !important;
    line-height: 1.3 !important;
}

.stat-card {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.stat-card p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    color: white;
}

@media (max-width: 767px) {
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .stat-card p {
        font-size: 1rem;
    }
    
    .admin-badge {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

.tab-content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    border-bottom: 2px solid #ff6b35;
}

.nav-tabs .nav-link {
    color: #333;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    background-color: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.nav-tabs .nav-link:hover {
    border-color: #ff6b35;
}

.sidebar .text-center {
    padding: 15px 10px !important;
}

.sidebar .text-primary {
    word-break: break-word !important;
    hyphens: auto !important;
    padding: 0 10px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
}

* {
    text-overflow: clip !important;
}

.sidebar *, 
.professional-header *,
.business-info-card * {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
}

.sidebar,
.business-info-card,
.professional-header,
.header-content,
.header-text {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

.header-title,
.business-name,
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    line-height: 1.3 !important;
}

.navbar.fixed-top {
    z-index: 1030;
}

.sidebar {
    z-index: 1000;
}

.container.mt-5 {
    margin-top: 2rem !important;
}

.container.mt-4 {
    margin-top: 1.5rem !important;
}

.container.mt-5.pt-4 {
    padding-top: 1rem !important;
    margin-top: 1.5rem !important;
}

.no-sidebar body {
    padding-top: 0 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page,
body.index-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.login-container,
.index-content {
    margin: 0 !important;
    padding: 0 !important;
}

.main-login-content {
    margin-top: 0 !important;
}

.business-info-card,
.professional-header,
.business-badge {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control:focus,
.form-select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.15);
    transition: all 0.3s ease;
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}