/* NET NOVA DIGITAL - Estilos principales */

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navbar personalizado */
.navbar-brand {
    font-weight: bold;
    color: #fff !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.85);
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    margin-top: 56px;
}

/* Cards y servicios */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff, #6c5ce7);
    color: white;
    font-size: 3rem;
}

.service-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Dashboard y admin */
.sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 20px;
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 15px 25px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.main-content {
    margin-left: 0;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Mobile menu */
.mobile-menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: #007bff;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 1.2rem;
}

/* Forms */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Tickets y tablas */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
}

/* Badges y estados */
.badge {
    padding: 0.5em 0.8em;
    font-size: 0.85em;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-body {
    padding: 30px;
}

/* Store */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.product-image-placeholder {
    background: linear-gradient(45deg, #007bff, #6c5ce7);
    color: white;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.price-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

/* Responsive */
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        width: 280px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-section {
        padding: 60px 0;
        margin-top: 76px;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
}

/* Mejoras adicionales para móviles */
@media (max-width: 767.98px) {
    /* Hero section móvil */
    .hero-section {
        padding: 40px 0;
        margin-top: 66px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .btn {
        margin-bottom: 10px;
        width: 100%;
    }
    
    /* Navegación móvil */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0;
    }
    
    /* Cards y servicios móvil */
    .service-card, .product-card {
        margin-bottom: 15px;
    }
    
    .service-image, .product-image-placeholder {
        height: 150px;
        font-size: 2rem;
    }
    
    /* Formularios móvil */
    .form-control {
        font-size: 16px; /* Evita zoom en iOS */
        padding: 12px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Tablas responsivas */
    .table-responsive {
        border: none;
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th, .table td {
        padding: 8px;
        vertical-align: middle;
    }
    
    /* Ocultar columnas menos importantes en móvil */
    .d-mobile-none {
        display: none !important;
    }
    
    /* Modales móvil */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    /* Login móvil */
    .login-card {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .login-header {
        padding: 20px;
    }
    
    .login-body {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    /* Pantallas extra pequeñas */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 5px;
    }
    
    /* Espaciado móvil */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}

/* Mejoras para tablas en móvil */
@media (max-width: 991.98px) {
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
    }
    
    .table-responsive::-webkit-scrollbar {
        height: 8px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

/* Mejoras para formularios con valores monetarios */
.currency-input {
    position: relative;
}

.currency-input::before {
    content: '$';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-weight: 500;
    z-index: 3;
    pointer-events: none;
}

.currency-input input {
    padding-left: 30px;
    text-align: right;
}

/* Suma automática de valores */
.total-display {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
}

.total-display .total-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
    display: block;
}

/* Estilos para imágenes de servicios */
.service-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image-container img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section.active {
    animation: fadeIn 0.5s ease;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea, #764ba2) border-box;
}