/* Paleta de colores de la marca */
:root {
    --color-azul: #5FAFB3;
    --color-dorado: #C6A86D;
    --color-gris: #6F6F6B;
    --color-azul-hover: #4d9fa3;
    --color-dorado-hover: #b5985d;
}

/* Estilos generales */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    min-height: 100vh;
}

/* Contenedor principal */
.container-fluid {
    padding: 1rem;
}

/* Estilos de tarjetas */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background: #fff;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-bottom: 2px solid rgba(95, 175, 179, 0.15);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--color-gris);
}

.card-body {
    padding: 1.5rem;
    background: #fff;
}

/* Estilos de botones */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-azul-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(95, 175, 179, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-azul-hover) 0%, var(--color-azul) 100%);
    box-shadow: 0 6px 12px rgba(95, 175, 179, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(95, 175, 179, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-azul-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(95, 175, 179, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, var(--color-azul-hover) 0%, var(--color-azul) 100%);
    box-shadow: 0 6px 12px rgba(95, 175, 179, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, var(--color-dorado) 0%, var(--color-dorado-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(198, 168, 109, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--color-dorado-hover) 0%, var(--color-dorado) 100%);
    box-shadow: 0 6px 12px rgba(198, 168, 109, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-gris) 0%, #5d5d59 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(111, 111, 107, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5d5d59 0%, var(--color-gris) 100%);
    box-shadow: 0 6px 12px rgba(111, 111, 107, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.btn-sm i {
    margin: 0;
    line-height: 1;
    font-size: 0.9rem;
}

/* Estilos de tablas */
.table {
    margin-bottom: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table thead {
    background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-azul-hover) 100%) !important;
}

.table thead th,
.table thead td {
    border: none !important;
    font-weight: 700 !important;
    color: #fff !important;
    padding: 1rem 0.75rem !important;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
    background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-azul-hover) 100%) !important;
    white-space: nowrap;
}

.table th {
    border: none;
    font-weight: 600;
    color: #fff;
    padding: 1rem 0.75rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(111, 111, 107, 0.1);
    color: #333;
}

.table tbody tr {
    transition: all 0.2s ease;
    background: #fff;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(95, 175, 179, 0.1) !important;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(95, 175, 179, 0.15);
}

.table-responsive {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Estilos de formularios */
.form-control {
    border-radius: 8px;
    border: 2px solid rgba(111, 111, 107, 0.2);
    padding: 0.65rem 0.9rem;
    transition: all 0.3s ease;
    background: #fff;
    font-size: 0.95rem;
}

.form-control:hover {
    border-color: rgba(95, 175, 179, 0.4);
}

.form-control:focus {
    border-color: var(--color-azul);
    box-shadow: 0 0 0 0.25rem rgba(95, 175, 179, 0.15), 0 4px 6px rgba(95, 175, 179, 0.1);
    outline: none;
    background: #fff;
}

.form-select {
    border-radius: 8px;
    border: 2px solid rgba(111, 111, 107, 0.2);
    padding: 0.65rem 0.9rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-select:hover {
    border-color: rgba(95, 175, 179, 0.4);
}

.form-select:focus {
    border-color: var(--color-azul);
    box-shadow: 0 0 0 0.25rem rgba(95, 175, 179, 0.15), 0 4px 6px rgba(95, 175, 179, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--color-gris);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Estilos de navegación */
.navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-azul-hover) 100%) !important;
}

.navbar-dark.bg-primary {
    background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-azul-hover) 100%) !important;
}

.navbar-brand {
    padding: 0.5rem 1rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 0.25rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: #fff !important;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active::after {
    width: 80%;
}

/* Estilos para el botón Modo Real */
.modo-real-container {
    position: absolute;
    top: 50px;
    right: 180px;
}

.modo-real-form {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.modo-real-container .btn {
    white-space: nowrap;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ajuste responsivo para el botón Modo Real */
@media (max-width: 1400px) {
    .modo-real-container {
        right: 180px;
    }
}

@media (max-width: 1200px) {
    .modo-real-container {
        right: 150px;
    }
}

@media (max-width: 992px) {
    .modo-real-container {
        position: static;
        transform: none;
        margin-left: auto;
        margin-right: 1rem;
        order: -1;
        top: auto;
    }
    
    .navbar .container-fluid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .modo-real-container {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .modo-real-container {
        width: 100%;
        justify-content: flex-end;
        margin-right: 0;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Estilos de alertas */
.alert {
    border: none;
    border-radius: 5px;
    padding: 1rem;
}

.alert-primary {
    background-color: rgba(95, 175, 179, 0.1);
    color: var(--color-azul);
    border-left: 4px solid var(--color-azul);
}

/* Estilos de paginación */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--color-azul);
    border: 1px solid rgba(111, 111, 107, 0.3);
    padding: 0.5rem 0.75rem;
}

.page-link:hover {
    color: var(--color-azul-hover);
    background-color: rgba(95, 175, 179, 0.1);
    border-color: var(--color-azul);
}

.page-item.active .page-link {
    background-color: var(--color-azul);
    border-color: var(--color-azul);
    color: #fff;
}

/* Estilos de filtros */
.filter-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid rgba(95, 175, 179, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.filter-section .btn {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos de kanban */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.kanban-column {
    min-width: 300px;
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 1rem;
    border: 1px solid rgba(111, 111, 107, 0.2);
}

.kanban-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 3px solid var(--color-azul);
}

/* Estilos de cotizaciones */
.quote-card {
    border-left: 4px solid var(--color-azul);
}

.quote-status {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending {
    background: linear-gradient(135deg, rgba(198, 168, 109, 0.25) 0%, rgba(198, 168, 109, 0.15) 100%);
    color: var(--color-dorado);
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    border: 1px solid rgba(198, 168, 109, 0.3);
    box-shadow: 0 2px 4px rgba(198, 168, 109, 0.15);
}

.status-approved {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.1) 100%);
    color: #28a745;
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    border: 1px solid rgba(40, 167, 69, 0.3);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.15);
}

.status-rejected {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(220, 53, 69, 0.1) 100%);
    color: #dc3545;
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    border: 1px solid rgba(220, 53, 69, 0.3);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.15);
}

/* Estilos adicionales para enlaces */
a {
    color: var(--color-azul);
    text-decoration: none;
}

a:hover {
    color: var(--color-azul-hover);
    text-decoration: underline;
}

/* Estilos para badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-primary {
    background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-azul-hover) 100%);
    color: #fff;
}

.badge-warning {
    background: linear-gradient(135deg, var(--color-dorado) 0%, var(--color-dorado-hover) 100%);
    color: #fff;
}

.badge-secondary {
    background: linear-gradient(135deg, var(--color-gris) 0%, #5d5d59 100%);
    color: #fff;
}

/* Estilos para botones outline */
.btn-outline-primary {
    color: var(--color-azul);
    border: 2px solid var(--color-azul);
    background-color: transparent;
    box-shadow: 0 2px 4px rgba(95, 175, 179, 0.2);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-azul-hover) 100%);
    border-color: var(--color-azul);
    color: #fff;
    box-shadow: 0 4px 8px rgba(95, 175, 179, 0.3);
    transform: translateY(-2px);
}

.btn-outline-warning {
    color: var(--color-dorado);
    border: 2px solid var(--color-dorado);
    background-color: transparent;
    box-shadow: 0 2px 4px rgba(198, 168, 109, 0.2);
}

.btn-outline-warning:hover {
    background: linear-gradient(135deg, var(--color-dorado) 0%, var(--color-dorado-hover) 100%);
    border-color: var(--color-dorado);
    color: #fff;
    box-shadow: 0 4px 8px rgba(198, 168, 109, 0.3);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    color: var(--color-gris);
    border: 2px solid var(--color-gris);
    background-color: transparent;
    box-shadow: 0 2px 4px rgba(111, 111, 107, 0.2);
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, var(--color-gris) 0%, #5d5d59 100%);
    border-color: var(--color-gris);
    color: #fff;
    box-shadow: 0 4px 8px rgba(111, 111, 107, 0.3);
    transform: translateY(-2px);
}

/* Estilos para dropdown */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: #fff;
}

.dropdown-item {
    padding: 0.6rem 1.25rem;
    transition: all 0.2s ease;
    color: var(--color-gris);
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(95, 175, 179, 0.15) 0%, rgba(95, 175, 179, 0.05) 100%);
    color: var(--color-azul);
    padding-left: 1.5rem;
}

.dropdown-item.active {
    background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-azul-hover) 100%);
    color: #fff;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid rgba(111, 111, 107, 0.15);
}

/* Estilos para h1, h2, h3, etc. */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-gris);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--color-gris) 0%, var(--color-azul) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

/* Estilos para texto secundario */
.text-muted {
    color: var(--color-gris) !important;
    opacity: 0.75;
}

/* Estilos para secciones principales */
.d-flex.justify-content-between {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(95, 175, 179, 0.15);
}

/* Mejoras adicionales */
.table-responsive {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* Estilos para inputs de fecha y select */
input[type="date"],
input[type="text"] {
    transition: all 0.3s ease;
}

/* Mejoras en el footer */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    color: var(--color-gris);
    opacity: 0.7;
    border-top: 1px solid rgba(111, 111, 107, 0.2);
}

/* Estilos para modales */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-azul-hover) 100%);
    color: #fff;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(111, 111, 107, 0.15);
    padding: 1rem 1.5rem;
}

/* Asegurar visibilidad de títulos de tabla */
table.table thead tr th {
    background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-azul-hover) 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Mejoras en los títulos de página */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid rgba(95, 175, 179, 0.2);
}

.page-header h1,
.page-header h2,
.page-header h3 {
    margin: 0;
}

/* Estilos para alertas mejoradas */
.alert {
    border-radius: 8px;
    border-left: 4px solid;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-left-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-left-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(198, 168, 109, 0.15) 0%, rgba(198, 168, 109, 0.08) 100%);
    border-left-color: var(--color-dorado);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, rgba(95, 175, 179, 0.1) 0%, rgba(95, 175, 179, 0.05) 100%);
    border-left-color: var(--color-azul);
    color: var(--color-azul);
}

/* Estilos para inputs de búsqueda */
input[type="search"],
input[type="text"].form-control {
    background-image: none;
}

/* Mejoras en el contenedor principal */
main.contenedor {
    background: transparent;
    min-height: calc(100vh - 80px);
}

/* Estilos para separadores visuales */
hr {
    border: none;
    border-top: 2px solid rgba(95, 175, 179, 0.2);
    margin: 2rem 0;
}

/* Estilos para iconos en botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.btn i {
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.btn:not(.btn-sm) i {
    margin-right: 0.5rem;
}

.btn-sm i {
    margin: 0;
    line-height: 1;
    font-size: 0.9rem;
}

/* Alineación de botones en grupos */
.btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.btn-group .btn {
    margin: 0;
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn-group .btn:not(:first-child):not(:last-child) {
    border-radius: 0;
}

/* Asegurar que los botones en las celdas de tabla estén alineados */
.table td {
    vertical-align: middle !important;
}

.table td .btn,
.table td .btn-group {
    vertical-align: middle !important;
    margin: 0 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table td .btn:first-child,
.table td .btn-group:first-child {
    margin-left: 0;
}

.table td .btn:last-child,
.table td .btn-group:last-child {
    margin-right: 0;
}

/* Forzar alineación vertical en celdas de acciones */
.table td:last-child {
    text-align: center;
    white-space: nowrap;
}

.table td:last-child .btn {
    margin: 0 2px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
} 