/* Estilos personalizados para el nuevo diseño */

/* Fondo blanco para toda la página */
body {
    background-color: #f8f9fa !important;
    font-family: 'Open Sans', sans-serif;
}

/* Contenedor principal con fondo blanco */
.container-fluid, .container {
    /* background-color: #ffffff; */
    border-radius: 0;
}

/* Header centrado */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e9ecef;
}

.header .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

.header .logo img {
    transition: transform 0.3s ease;
}

.header .logo:hover img {
    transform: scale(1.05);
}

.main-nav .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-nav .nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.user-actions .btn {
    border-radius: 20px;
    font-weight: 500;
    padding: 8px 20px;
}

/* Carrusel mejorado */
.carousel-inner {
    border-radius: 15px !important;
}

.carousel-item img {
    border-radius: 15px;
}

/* Botones de navegación del carrusel */
.carousel-nav-buttons {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 10;
}

.carousel-nav-buttons .btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.carousel-nav-buttons .btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.col-lg-8 {
    position: relative;
}

/* Footer mejorado */
.footer {
    background: #fff;
    color: #333;
    margin-top: 50px;
    margin-left: 0 !important;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    width: 100%;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer .social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
    color: #6c757d;
}

.footer .social-links a:hover {
    color: #007bff !important;
}

.footer h5 {
    font-weight: 600;
    color: #333;
}

.footer .text-dark {
    color: #6c757d !important;
}

.footer .text-dark:hover {
    color: #007bff !important;
    text-decoration: none;
}

/* Vista de Servicios */
.negocio-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.negocio-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.negocio-item .card-body {
    padding: 1.5rem;
}

.negocio-item img {
    transition: transform 0.3s ease;
}

.negocio-item:hover img {
    transform: scale(1.05);
}

/* Filtros laterales */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Filtros colapsables */
.card-header .btn-link {
    color: #333;
    font-weight: 500;
}

.card-header .btn-link:hover {
    color: #007bff;
}

.card-header .btn-link:focus {
    box-shadow: none;
}

/* Carrusel pequeño */
#carouselServicios {
    max-height: 600px;
    overflow: hidden;
}

#carouselServicios .carousel-caption h6 {
    font-size: 0.9rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Buscador de resultados */
.input-group .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Iconos de filtros */
.form-check-label i {
    font-size: 0.9rem;
}

/* Botones de navegación del carrusel pequeño */
.carousel-nav-buttons-small {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 10;
}

.carousel-nav-buttons-small .btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.carousel-nav-buttons-small .btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Botones de filtro */
.filter-btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 10px 25px;
    transition: all 0.3s ease;
    border: 2px solid;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Tarjetas de negocios mejoradas */
.negocio-card .card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.negocio-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.negocio-card .card-img-top {
    border-radius: 15px 15px 0 0;
    transition: transform 0.3s ease;
}

.negocio-card .card:hover .card-img-top {
    transform: scale(1.05);
}

.negocio-card .badge {
    border-radius: 15px;
    font-size: 0.75rem;
    padding: 5px 10px;
}

.negocio-card .card-title {
    color: #2c3e50;
    font-size: 1rem;
}

.negocio-card .btn-outline-primary {
    border-radius: 20px;
    font-size: 0.875rem;
    padding: 5px 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .user-actions .btn {
        padding: 6px 12px;
        font-size: 0.875rem;
    }
    
    .user-actions .btn span {
        display: none;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .carousel-item img {
        height: 300px !important;
    }
    
    #carouselServicios {
        max-height: 300px !important;
    }
    
    #carouselServicios .carousel-inner {
        min-height: 300px !important;
    }

}

@media (max-width: 576px) {
    .header .container-fluid {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .carousel-item img {
        height: 250px !important;
    }
    
    #carouselServicios {
        max-height: 250px !important;
    }
    
    #carouselServicios .carousel-inner {
        min-height: 250px !important;
    }

}

/* Grid centrado para pocas tarjetas */
#negociosGrid {
    justify-content: center;
}

/* Estilos para Login */
.section.register {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.section.register .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section.register .card-body {
    padding: 2rem;
}

.section.register .card-title {
    color: #2B2F36;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.section.register .input-group-text {
    border-radius: 8px 0 0 8px;
    border-right: none;
    background: rgba(18,181,201,0.05);
    border-color: #E8EEF5;
    color: #12B5C9;
}

.section.register .form-control {
    border-radius: 0 8px 8px 0;
    border-left: none;
    padding: 12px 15px;
    font-family: 'Inter', sans-serif;
    border-color: #E8EEF5;
}

.section.register .form-control:focus {
    border-color: #12B5C9;
    box-shadow: 0 0 0 0.2rem rgba(18, 181, 201, 0.15);
}

.section.register .btn-primary {
    background: #12B5C9;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.section.register .btn-primary:hover {
    background: #0E8A9A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(18, 181, 201, 0.4);
}

.section.register .text-primary {
    color: #12B5C9 !important;
}

.section.register a {
    color: #12B5C9;
    transition: color 0.3s ease;
}

.section.register a:hover {
    color: #0E8A9A;
}

/* Estilos para Administrador */
.sidebar {
    background: #fff;
    border-right: 1px solid #e9ecef;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.sidebar .category-header {
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.sidebar .category-header:hover {
    transform: translateX(5px);
}

.sidebar .filter-header h5 {
    color: #2c3e50;
}

/* Tabla de administrador mejorada */
.table-hover tbody tr:hover {
    background-color: rgba(65, 84, 241, 0.05);
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #4154f1 0%, #6c7ae0 100%) !important;
}

/* Botones mejorados */
.btn-outline-primary {
    border-color: #4154f1;
    color: #4154f1;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #4154f1 0%, #6c7ae0 100%);
    border-color: #4154f1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(65, 84, 241, 0.3);
}

/* Consistencia en el main */
#main {
    background: #fff;
    min-height: calc(100vh - 140px);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.negocio-card {
    animation: fadeInUp 0.6s ease forwards;
}

.negocio-card:nth-child(1) { animation-delay: 0.1s; }
.negocio-card:nth-child(2) { animation-delay: 0.2s; }
.negocio-card:nth-child(3) { animation-delay: 0.3s; }
.negocio-card:nth-child(4) { animation-delay: 0.4s; }
.negocio-card:nth-child(5) { animation-delay: 0.5s; }
.negocio-card:nth-child(6) { animation-delay: 0.6s; }
.negocio-card:nth-child(7) { animation-delay: 0.7s; }
.negocio-card:nth-child(8) { animation-delay: 0.8s; }

/* Responsive para sidebar */
@media (max-width: 1199px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .toggle-sidebar .sidebar {
        transform: translateX(0);
    }
    
    #main {
        margin-left: 0 !important;
    }
}

/* Mejoras para móvil */
@media (max-width: 768px) {
    .section.register .card-body {
        padding: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .badge {
        font-size: 0.7rem;
    }
}
