html, body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6f9;
    color: #333;
    overflow-x: hidden;
}

body {
    padding-top: 100px; /* Compensar navbar fija solo cuando sea necesario */
}

/* Reset específico para páginas sin sidebar */
.login-container,
.index-content {
    padding-top: 0 !important;
}

.login-container body,
.index-content body {
    padding-top: 0 !important;
}

/* Navbar con color azul personalizado #002752 */
.navbar-custom {
    background-color: #002752 !important;
    height: 90px; /* Altura fija para la navbar */
    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;
}

/* Iconos de redes sociales en navbar */
.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: #4facfe !important;
}

/* SIDEBAR MEJORADO - ALTURA COMPLETA HASTA ABAJO */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 90px; /* Posicionar debajo de la navbar */
    left: 0;
    background-color: #ffffff;
    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); /* Ajustar altura considerando la navbar - EXTENDIDO HASTA ABAJO */
    display: flex;
    flex-direction: column;
}

/* Contenido superior de la sidebar */
.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: #002752;
    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: #e9ecef;
}

.sidebar .nav-link.active {
    background-color: #002752;
    color: white !important;
}

.sidebar > div,
.sidebar .p-3 {
    padding: 20px 15px !important;
}

.sidebar * {
    max-width: 100%;
    box-sizing: border-box;
}

/* CORRECCIÓN ESPECÍFICA PARA NOMBRES DE NEGOCIO */
.business-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 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 CON CORRECCIÓN DE TÍTULOS */
.professional-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #002752;
    margin-bottom: 30px;
    min-height: auto;
    height: auto !important;
    margin-top: 20px; /* Separación adicional del top */
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.header-icon {
    background: linear-gradient(135deg, #002752 0%, #001a3d 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(0, 39, 82, 0.3);
    flex-shrink: 0;
}

.header-text {
    flex: 1;
    min-width: 0;
    overflow: visible !important;
}

.header-title {
    color: #002752;
    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: #6c757d;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    white-space: normal !important;
    line-height: 1.4 !important;
}

.business-badge {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 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(79, 172, 254, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

/* AJUSTE PRINCIPAL */
.main-content {
    margin-left: 300px;
    padding: 20px;
    width: calc(100vw - 320px);
    min-height: calc(100vh - 90px); /* Ajustar considerando navbar */
    padding-top: 20px; /* Padding adicional en el top */
}

.table-primary th {
    background-color: #002752;
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.btn-primary {
    background-color: #002752;
    border-color: #002752;
}

.btn-primary:hover {
    background-color: #001a3d;
    border-color: #001a3d;
}

.form-control:focus {
    border-color: #002752;
    box-shadow: 0 0 0 0.25rem rgba(0, 39, 82, 0.25);
}

h2, h3 {
    color: #002752;
    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;
}

/* Estilos para logo del navbar */
.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);
}

/* Estilos para logo del sidebar */
.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 y animación para logo central */
.central-logo-container {
    text-align: center;
    margin: 20px auto !important; /* Margen adicional */
    padding: 20px 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.central-logo {
    max-width: 150px !important;
    width: 150px !important;
    height: auto !important;
    max-height: 150px !important;
    display: block;
    margin: 0 auto !important;
    padding: 0 !important;
    animation: logoEntrance 1.5s ease-out;
}

.tagline {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #002752;
    font-style: italic;
    animation: taglineEntrance 2s ease-out 0.5s both;
}

/* Animación del logo central */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(5deg);
    }
    70% {
        transform: scale(0.95) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Animación del tagline */
@keyframes taglineEntrance {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto hover para el logo central */
.central-logo:hover {
    animation: logoBounce 0.6s ease;
}

@keyframes logoBounce {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    25% {
        transform: scale(1.05) translateY(-10px);
    }
    50% {
        transform: scale(0.98) translateY(-5px);
    }
    75% {
        transform: scale(1.02) translateY(-2px);
    }
}

/* Estilos para botones de categorías */
.category-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    margin-top: 20px; /* Separación adicional */
}

.category-btn {
    padding: 12px 24px;
    border: 2px solid #002752;
    background-color: white;
    color: #002752;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.category-btn i {
    font-size: 16px;
}

.category-btn:hover {
    background-color: #002752;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 39, 82, 0.3);
}

.category-btn.active {
    background-color: #002752;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 39, 82, 0.4);
}

/* Animación para productos */
.product-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.product-item.hidden {
    display: none;
}

/* Botón Ver Ubicación */
.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #4facfe;
    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: #00f2fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* MEJORA PARA TABLAS */
.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;
}

/* Ajustes para cards profesionales */
.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 CON CORRECCIONES */

/* Tablets (768px - 991px) */
@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;
    }
}

/* Tablets pequeños y móviles grandes (576px - 767px) */
@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;
    }
    
    .central-logo {
        max-width: 120px !important;
        width: 120px !important;
        max-height: 120px !important;
    }
    
    .central-logo-container {
        margin: 10px auto !important;
        padding: 15px 0 !important;
    }
    
    .tagline {
        font-size: 1.1rem;
        margin-top: 15px;
    }
    
    .category-buttons-container {
        gap: 8px;
        padding: 15px;
        margin-top: 15px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 12px;
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
        max-width: calc(50% - 8px);
        justify-content: center;
    }
    
    .category-btn i {
        font-size: 14px;
    }
    
    .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;
    }
}

/* Móviles pequeños (menos de 576px) */
@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;
    }
    
    .central-logo {
        max-width: 100px !important;
        width: 100px !important;
        max-height: 100px !important;
    }
    
    .central-logo-container {
        margin: 5px auto !important;
        padding: 10px 0 !important;
    }
    
    .tagline {
        font-size: 1rem;
        margin-top: 12px;
    }
    
    .category-buttons-container {
        gap: 6px;
        padding: 12px;
        margin-top: 10px;
    }
    
    .category-btn {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .category-btn i {
        font-size: 12px;
    }
    
    .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;
    }
}

/* Efecto de carga suave para productos */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    animation: fadeIn 0.5s ease;
}

/* Overlay para sidebar en móvil */
.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;
}

/* Botón de menú hamburguesa */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1051;
    background-color: #002752;
    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;
    }
}

/* Prevenir scroll horizontal global */
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;
}

/* Estilos para admin badge */
.admin-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 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, #667eea 0%, #764ba2 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;
    }
}

/* Mejoras adicionales para formularios y tabs */
.tab-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    border-bottom: 2px solid #002752;
}

.nav-tabs .nav-link {
    color: #002752;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    background-color: #002752;
    color: white;
    border-color: #002752;
}

.nav-tabs .nav-link:hover {
    border-color: #002752;
}

.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;
}

/* Estilos para el tagline/eslogan */
.tagline-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #002752;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    animation: taglineSlideIn 1.2s ease-out 0.3s backwards;
    line-height: 1.4;
    padding: 0 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* Animación de entrada para el tagline */
@keyframes taglineSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto hover suave para el tagline */
.tagline-text {
    transition: color 0.4s ease, transform 0.4s ease;
}

.central-logo-container:hover .tagline-text {
    color: #f5576c;
    transform: scale(1.02);
}

/* Responsive para el tagline */
@media (max-width: 991px) {
    .tagline-text {
        font-size: 1.5rem;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .tagline-text {
        font-size: 1.3rem;
        margin-top: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 575px) {
    .tagline-text {
        font-size: 1.1rem;
        margin-top: 12px;
        padding: 0 10px;
        letter-spacing: 0.3px;
    }
}

/* Mejorar el contenedor del logo central */
.central-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

/* Animaciones suaves para elementos profesionales */
.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);
    }
}

/* Mejoras en formularios */
.form-control:focus,
.form-select:focus {
    border-color: #002752;
    box-shadow: 0 0 0 0.25rem rgba(0, 39, 82, 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);
}

/* CORRECCIONES ADICIONALES PARA TEXTO CORTADO */
* {
    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;
}

/* Asegurar que los contenedores tengan altura automática */
.sidebar,
.business-info-card,
.professional-header,
.header-content,
.header-text {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

/* Corrección específica para títulos largos */
.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;
}

/* CORRECCIÓN ESPECÍFICA PARA LA NAVBAR FIJA */
.navbar.fixed-top {
    z-index: 1030;
}

.sidebar {
    z-index: 1000;
}

/* Ajustes adicionales para contenido que se ve cortado */
.container.mt-5 {
    margin-top: 2rem !important; /* Reducir margen top que puede causar overlap */
}

.container.mt-4 {
    margin-top: 1.5rem !important;
}

/* Para páginas que usan .container mt-5 pt-4 */
.container.mt-5.pt-4 {
    padding-top: 1rem !important;
    margin-top: 1.5rem !important;
}

/* CORRECCIÓN ESPECÍFICA PARA PÁGINAS SIN SIDEBAR */
.no-sidebar body {
    padding-top: 0 !important;
}

/* RESET COMPLETO PARA ELIMINAR BARRAS BLANCAS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Asegurar que páginas específicas no tengan padding-top */
body.login-page,
body.index-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Estructura específica para login y index */
.login-container,
.index-content {
    margin: 0 !important;
    padding: 0 !important;
}

.main-login-content {
    margin-top: 0 !important;
}